Browse Source

Merge pull request #87 from FreeSlave/fix_rapid_crowbar

Fix rapid crowbar bug
half-secret
Andrey Akhmichin 5 years ago committed by GitHub
parent
commit
77891cdfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dlls/crowbar.cpp

5
dlls/crowbar.cpp

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

Loading…
Cancel
Save