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:
M.Millar 2022-05-26 10:58:51 -07:00 committed by GitHub
parent 2ffa0261e3
commit 81dce2f203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;