Fix rapid swing bug for poolstick (#400)

This commit is contained in:
M.Millar 2023-10-26 05:33:10 -07:00 committed by GitHub
parent 991761c5b8
commit 67fcab8532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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