mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 08:57:52 +00:00
Merge pull request #158 from FreeSlave/crowbar_smack_think_time
Fix crowbar smack think time
This commit is contained in:
commit
8076a58366
@ -335,7 +335,7 @@ int CCrowbar::Swing( int fFirst )
|
|||||||
m_pPlayer->m_iWeaponVolume = (int)( flVol * CROWBAR_WALLHIT_VOLUME );
|
m_pPlayer->m_iWeaponVolume = (int)( flVol * CROWBAR_WALLHIT_VOLUME );
|
||||||
|
|
||||||
SetThink( &CCrowbar::Smack );
|
SetThink( &CCrowbar::Smack );
|
||||||
pev->nextthink = UTIL_WeaponTimeBase() + 0.2f;
|
pev->nextthink = gpGlobals->time + 0.2f;
|
||||||
#endif
|
#endif
|
||||||
#if CROWBAR_DELAY_FIX
|
#if CROWBAR_DELAY_FIX
|
||||||
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25f;
|
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25f;
|
||||||
|
Loading…
Reference in New Issue
Block a user