Fix beretta silencer view.

This commit is contained in:
Night Owl 2016-10-14 00:02:35 +05:00
parent b6e2bb45e4
commit 2eb22ff216

View File

@ -106,9 +106,7 @@ int CGlock::GetItemInfo( ItemInfo *p )
BOOL CGlock::Deploy() BOOL CGlock::Deploy()
{ {
#ifdef CLIENT_DLL pev->body = SILENCER_ON;
pev->body = 1;
#endif
return DefaultDeploy( "models/v_9mmhandgun.mdl", "models/p_9mmhandgun.mdl", GLOCK_DRAW, "onehanded", UseDecrement(), pev->body ); return DefaultDeploy( "models/v_9mmhandgun.mdl", "models/p_9mmhandgun.mdl", GLOCK_DRAW, "onehanded", UseDecrement(), pev->body );
} }
void CGlock::Holster( int skiplocal /*= 0*/ ) void CGlock::Holster( int skiplocal /*= 0*/ )
@ -138,6 +136,8 @@ void CGlock::SecondaryAttack( void )
SendWeaponAnim( GLOCK_HOLSTER, 1, SILENCER_OFF ); SendWeaponAnim( GLOCK_HOLSTER, 1, SILENCER_OFF );
pev->body = SILENCER_ON;
m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 2.0 ); m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 2.0 );
} }
else else
@ -149,6 +149,8 @@ void CGlock::SecondaryAttack( void )
SendWeaponAnim( GLOCK_ADD_SILENCER, 1, SILENCER_ON ); SendWeaponAnim( GLOCK_ADD_SILENCER, 1, SILENCER_ON );
pev->body = SILENCER_OFF;
m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 3.4 ); m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 3.4 );
} }
} }