Browse Source

Fix beretta silencer view.

theyhunger
Night Owl 8 years ago
parent
commit
2eb22ff216
  1. 8
      dlls/glock.cpp

8
dlls/glock.cpp

@ -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 );
} }
} }

Loading…
Cancel
Save