Skip to content

Commit

Permalink
#95 Fixed knife
Browse files Browse the repository at this point in the history
  • Loading branch information
xthebat committed Jan 5, 2024
1 parent 1527ecb commit 0f8e095
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/Cloud9/Weapon/Classes/Cloud9WeaponMelee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,21 @@ void ACloud9WeaponMelee::Tick(float DeltaSeconds)
);
}
else if (WeaponState.IsActionActive(EWeaponAction::PrimaryStart))
{
WeaponState.ClearAction(EWeaponAction::PrimaryStart);
}
else if (WeaponState.IsActionActive(EWeaponAction::PrimaryLoop))
{
ExecuteAction(
EWeaponAction::PrimaryStart,
EWeaponAction::PrimaryLoop,
WeaponInfo->SlashCycleTime,
[&] { return PlayAnimMontage(PoseMontages->PrimaryActionMontage); }
);
}
else if (WeaponState.IsActionActive(EWeaponAction::PrimaryEnd))
{
WeaponState.ClearAction(EWeaponAction::PrimaryEnd);
}
else if (HasSecondaryAction and WeaponState.IsActionActive(EWeaponAction::Secondary))
{
ExecuteAction(
Expand Down

0 comments on commit 0f8e095

Please sign in to comment.