Browse Source

Fix rapid swing bug for poolstick (#400)

asheep
M.Millar 1 year ago committed by GitHub
parent
commit
67fcab8532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dlls/asheep/poolstick.cpp

5
dlls/asheep/poolstick.cpp

@ -286,7 +286,12 @@ int CPoolstick::Swing( int fFirst )
} }
m_pPlayer->m_iWeaponVolume = POOLSTICK_BODYHIT_VOLUME; m_pPlayer->m_iWeaponVolume = POOLSTICK_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…
Cancel
Save