Update Legacy Weapons for Sound

This commit is contained in:
Philip W 2024-03-22 12:41:41 +00:00
parent 1559c61e8e
commit a7976f6749
4 changed files with 12 additions and 13 deletions

View File

@ -120,7 +120,7 @@ public:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stats")
float StaminaDecreaseRate = 0.2;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stats")
float StaminaRegenRate = 0.05;
float StaminaRegenRate = 0.1;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stats")
float SprintSpeed = 900;

View File

@ -44,6 +44,7 @@ void AShotgunClass::Fire()
}
}
currentAmmoCount--;
WeaponFired.Broadcast();
playerControllerRef->PlayerCameraManager->StartCameraShake(CameraShakeClass, 1);
GenerateRecoilVector();
ClickDetectionTimer();
@ -82,5 +83,3 @@ void AShotgunClass::StopFire()
{
bSingleShotOnly = false;
}