Fix crowbar delay after the first hit

This commit is contained in:
Roman Chistokhodov 2019-07-08 21:20:14 +03:00
parent f6135287e6
commit 1f584d7237

View File

@ -330,7 +330,7 @@ int CCrowbar::Swing( int fFirst )
SetThink( &CCrowbar::Smack );
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
#endif
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
}
#ifdef CROWBAR_IDLE_ANIM
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );