Browse Source

Fix crowbar delay after the first hit

half-secret
Roman Chistokhodov 5 years ago
parent
commit
1f584d7237
  1. 2
      dlls/crowbar.cpp

2
dlls/crowbar.cpp

@ -330,7 +330,7 @@ int CCrowbar::Swing( int fFirst ) @@ -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 );

Loading…
Cancel
Save