From edc9ca02023ddf1d1c03f1078de2a13e38e04eb3 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Wed, 12 Sep 2018 00:21:39 +0500 Subject: [PATCH] Add a missing UTIL_WeaponTimeBase() calls. --- dlls/hunger/sniper.cpp | 2 +- dlls/hunger/tfcsniper.cpp | 2 +- dlls/mp5.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/hunger/sniper.cpp b/dlls/hunger/sniper.cpp index b12d9348..04a804c3 100644 --- a/dlls/hunger/sniper.cpp +++ b/dlls/hunger/sniper.cpp @@ -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 ); diff --git a/dlls/hunger/tfcsniper.cpp b/dlls/hunger/tfcsniper.cpp index 2837bcb9..c656948e 100644 --- a/dlls/hunger/tfcsniper.cpp +++ b/dlls/hunger/tfcsniper.cpp @@ -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() ) { diff --git a/dlls/mp5.cpp b/dlls/mp5.cpp index f175b190..60aeb13c 100644 --- a/dlls/mp5.cpp +++ b/dlls/mp5.cpp @@ -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; }