Browse Source

Add a missing UTIL_WeaponTimeBase() calls.

theyhunger
Night Owl 6 years ago
parent
commit
edc9ca0202
  1. 2
      dlls/hunger/sniper.cpp
  2. 2
      dlls/hunger/tfcsniper.cpp
  3. 6
      dlls/mp5.cpp

2
dlls/hunger/sniper.cpp

@ -137,7 +137,7 @@ void CWeaponEinarSniper::PrimaryAttack()
if( m_fFireOnEmpty ) if( m_fFireOnEmpty )
{ {
PlayEmptySound(); PlayEmptySound();
m_flNextPrimaryAttack = 0.25; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
} }
if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() ) if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() )
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 15, 20 ); m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 15, 20 );

2
dlls/hunger/tfcsniper.cpp

@ -118,7 +118,7 @@ void CWeaponEinarTFCSniper::PrimaryAttack()
if( m_fFireOnEmpty ) if( m_fFireOnEmpty )
{ {
PlayEmptySound(); PlayEmptySound();
m_flNextPrimaryAttack = 0.25; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
} }
if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() ) if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() )
{ {

6
dlls/mp5.cpp

@ -126,14 +126,14 @@ void CMP5::PrimaryAttack()
if( m_pPlayer->pev->waterlevel == 3 ) if( m_pPlayer->pev->waterlevel == 3 )
{ {
PlayEmptySound(); PlayEmptySound();
m_flNextPrimaryAttack = 0.15; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.15;
return; return;
} }
if( m_iClip <= 0 ) if( m_iClip <= 0 )
{ {
PlayEmptySound(); PlayEmptySound();
m_flNextPrimaryAttack = 0.15; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.15;
return; return;
} }
@ -191,7 +191,7 @@ void CMP5::SecondaryAttack( void )
if( m_pPlayer->pev->waterlevel == 3 ) if( m_pPlayer->pev->waterlevel == 3 )
{ {
PlayEmptySound( ); PlayEmptySound( );
m_flNextPrimaryAttack = 0.15; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.15;
return; return;
} }

Loading…
Cancel
Save