Remove the ability to Fire when Sprinting

This commit is contained in:
baz 2024-02-07 17:08:32 +00:00
parent f40ed3f1a7
commit 6072f824ce
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void APlayerCharacter::EndJumpCallback(const FInputActionInstance& Instance)
void APlayerCharacter::BeginFireCallback(const FInputActionInstance& Instance)
{
if (CurrentWeapon == nullptr || CurrentWeapon->GetCurrentWeaponStatus()->GetValue() != Idle)
if (CurrentWeapon == nullptr || CurrentWeapon->GetCurrentWeaponStatus()->GetValue() != Idle || IsSprinting)
{
return;
}