mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 07:58:05 +00:00
Fix beretta silencer view.
This commit is contained in:
parent
b6e2bb45e4
commit
2eb22ff216
@ -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…
Reference in New Issue
Block a user