mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix beretta viewmodel again.
This commit is contained in:
parent
de458c7e5c
commit
d1d76a4ba7
@ -106,7 +106,7 @@ int CGlock::GetItemInfo( ItemInfo *p )
|
||||
|
||||
BOOL CGlock::Deploy()
|
||||
{
|
||||
pev->body = SILENCER_ON;
|
||||
pev->body = m_fSilencerOn ? SILENCER_ON : SILENCER_OFF;
|
||||
return DefaultDeploy( "models/v_9mmhandgun.mdl", "models/p_9mmhandgun.mdl", GLOCK_DRAW, "onehanded", UseDecrement(), pev->body );
|
||||
}
|
||||
void CGlock::Holster( int skiplocal /*= 0*/ )
|
||||
@ -197,7 +197,7 @@ void CGlock::GlockFire( float flSpread, float flCycleTime, BOOL fUseAutoAim )
|
||||
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
|
||||
|
||||
// silenced
|
||||
if( pev->body == 1 )
|
||||
if( m_fSilencerOn )
|
||||
{
|
||||
m_pPlayer->m_iWeaponVolume = QUIET_GUN_VOLUME;
|
||||
m_pPlayer->m_iWeaponFlash = DIM_GUN_FLASH;
|
||||
|
Loading…
x
Reference in New Issue
Block a user