mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Apply CROWBAR_FIX_RAPID_CROWBAR to knife (#251)
This will apply the crowbar swing delay fix to the knife, preventing rapid melee.
This commit is contained in:
parent
2ffa0261e3
commit
81dce2f203
@ -228,7 +228,12 @@ int CKnife::Swing(int fFirst)
|
||||
}
|
||||
m_pPlayer->m_iWeaponVolume = KNIFE_BODYHIT_VOLUME;
|
||||
if (!pEntity->IsAlive())
|
||||
{
|
||||
#if CROWBAR_FIX_RAPID_CROWBAR
|
||||
m_flNextPrimaryAttack = GetNextAttackDelay(0.25);
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
flVol = 0.1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user