mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +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;
|
m_pPlayer->m_iWeaponVolume = KNIFE_BODYHIT_VOLUME;
|
||||||
if (!pEntity->IsAlive())
|
if (!pEntity->IsAlive())
|
||||||
|
{
|
||||||
|
#if CROWBAR_FIX_RAPID_CROWBAR
|
||||||
|
m_flNextPrimaryAttack = GetNextAttackDelay(0.25);
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
flVol = 0.1;
|
flVol = 0.1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user