From 2eb22ff21645cb3dc518fe9e92e781b2387fb8b8 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 14 Oct 2016 00:02:35 +0500 Subject: [PATCH] Fix beretta silencer view. --- dlls/glock.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/glock.cpp b/dlls/glock.cpp index bc0cb58e..5f91ff08 100644 --- a/dlls/glock.cpp +++ b/dlls/glock.cpp @@ -106,9 +106,7 @@ int CGlock::GetItemInfo( ItemInfo *p ) BOOL CGlock::Deploy() { -#ifdef CLIENT_DLL - pev->body = 1; -#endif + pev->body = SILENCER_ON; return DefaultDeploy( "models/v_9mmhandgun.mdl", "models/p_9mmhandgun.mdl", GLOCK_DRAW, "onehanded", UseDecrement(), pev->body ); } void CGlock::Holster( int skiplocal /*= 0*/ ) @@ -138,6 +136,8 @@ void CGlock::SecondaryAttack( void ) SendWeaponAnim( GLOCK_HOLSTER, 1, SILENCER_OFF ); + pev->body = SILENCER_ON; + m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 2.0 ); } else @@ -149,6 +149,8 @@ void CGlock::SecondaryAttack( void ) SendWeaponAnim( GLOCK_ADD_SILENCER, 1, SILENCER_ON ); + pev->body = SILENCER_OFF; + m_flNextPrimaryAttack = m_flNextSecondaryAttack = GetNextAttackDelay( 3.4 ); } }