Bugfix Stamina Not Being Used
This commit is contained in:
parent
3b41b28b4c
commit
7b26664218
BIN
EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/AdvancedLocomotionV4/Blueprints/CharacterLogic/ALS_Base_CharacterBP.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
@ -129,7 +129,7 @@ void AEndlessVendettaCharacter::Tick(float DeltaTime)
|
||||
{
|
||||
if (bIsPlayerSprinting)
|
||||
{
|
||||
CurrentStamina -= FMath::Clamp(StaminaDecreaseRate, 0.0f, 100.0f);
|
||||
CurrentStamina = FMath::Clamp(CurrentStamina - StaminaDecreaseRate, 0.0f, 100.0f);
|
||||
if (CurrentStamina <= 0.0f)
|
||||
{
|
||||
bIsPlayerSprinting = false;
|
||||
|
Loading…
Reference in New Issue
Block a user