mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Merge c98747a35e
This commit is contained in:
parent
4800c0d54c
commit
780b4616fe
@ -460,6 +460,8 @@ void CRpg::PrimaryAttack()
|
|||||||
|
|
||||||
m_flNextPrimaryAttack = GetNextAttackDelay( 1.5 );
|
m_flNextPrimaryAttack = GetNextAttackDelay( 1.5 );
|
||||||
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 1.5;
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 1.5;
|
||||||
|
|
||||||
|
ResetEmptySound();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -487,13 +489,13 @@ void CRpg::WeaponIdle( void )
|
|||||||
{
|
{
|
||||||
UpdateSpot();
|
UpdateSpot();
|
||||||
|
|
||||||
ResetEmptySound();
|
|
||||||
|
|
||||||
if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() )
|
if( m_flTimeWeaponIdle > UTIL_WeaponTimeBase() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] )
|
if( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] )
|
||||||
{
|
{
|
||||||
|
ResetEmptySound();
|
||||||
|
|
||||||
int iAnim;
|
int iAnim;
|
||||||
float flRand = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 0, 1 );
|
float flRand = UTIL_SharedRandomFloat( m_pPlayer->random_seed, 0, 1 );
|
||||||
if( flRand <= 0.75 || m_fSpotActive )
|
if( flRand <= 0.75 || m_fSpotActive )
|
||||||
|
Loading…
Reference in New Issue
Block a user