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

2
dlls/hunger/tfcsniper.cpp

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

6
dlls/mp5.cpp

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

Loading…
Cancel
Save