This commit is contained in:
Night Owl 2017-07-05 02:41:23 +05:00
parent 4800c0d54c
commit 780b4616fe
1 changed files with 4 additions and 2 deletions

View File

@ -460,6 +460,8 @@ void CRpg::PrimaryAttack()
m_flNextPrimaryAttack = GetNextAttackDelay( 1.5 );
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 1.5;
ResetEmptySound();
}
else
{
@ -487,13 +489,13 @@ void CRpg::WeaponIdle( void )
{
UpdateSpot();
ResetEmptySound();
if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() )
return;
if( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] )
{
ResetEmptySound();
int iAnim;
float flRand = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 0, 1 );
if( flRand <= 0.75 || m_fSpotActive )