2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00
This commit is contained in:
Night Owl 2017-07-05 02:41:23 +05:00
parent 4800c0d54c
commit 780b4616fe

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 )