Browse Source

Merge pull request #88 from FreeSlave/fix_crowbar_delay

Fix crowbar delay after the first hit
half-secret
Andrey Akhmichin 5 years ago committed by GitHub
parent
commit
6dff6e3c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dlls/crowbar.cpp

4
dlls/crowbar.cpp

@ -335,7 +335,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;
#else
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 ); 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…
Cancel
Save