Merge pull request #87 from FreeSlave/fix_rapid_crowbar

Fix rapid crowbar bug
This commit is contained in:
Andrey Akhmichin 2019-10-17 04:59:15 +05:00 committed by GitHub
commit 77891cdfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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