mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 08:57:52 +00:00
Place crowbar delay fix under a macro
This commit is contained in:
parent
1f584d7237
commit
c96794aa2d
@ -330,7 +330,11 @@ int CCrowbar::Swing( int fFirst )
|
|||||||
SetThink( &CCrowbar::Smack );
|
SetThink( &CCrowbar::Smack );
|
||||||
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
|
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
|
||||||
#endif
|
#endif
|
||||||
|
#if CROWBAR_DELAY_FIX
|
||||||
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
|
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
|
||||||
|
#else
|
||||||
|
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef CROWBAR_IDLE_ANIM
|
#ifdef CROWBAR_IDLE_ANIM
|
||||||
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );
|
||||||
|
Loading…
Reference in New Issue
Block a user