mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 09:57:21 +01: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_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 )
|
||||
|
Loading…
Reference in New Issue
Block a user