Fix rapid crowbar bug

This commit is contained in:
Roman Chistokhodov 2019-07-08 21:11:06 +03:00
parent f6135287e6
commit b349bbfd82
1 changed files with 3 additions and 0 deletions

View File

@ -287,7 +287,10 @@ int CCrowbar::Swing( int fFirst )
}
m_pPlayer->m_iWeaponVolume = CROWBAR_BODYHIT_VOLUME;
if( !pEntity->IsAlive() )
{
m_flNextPrimaryAttack = GetNextAttackDelay(0.25);
return TRUE;
}
else
flVol = 0.1;