Add a missing UTIL_WeaponTimeBase() calls.

This commit is contained in:
Night Owl 2018-09-12 00:21:39 +05:00
parent 8aeb27a6b9
commit edc9ca0202
3 changed files with 5 additions and 5 deletions

View File

@ -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 );

View File

@ -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() )
{

View File

@ -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 )
if( m_pPlayer->pev->waterlevel == 3 )
{
PlayEmptySound( );
m_flNextPrimaryAttack = 0.15;
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.15;
return;
}