sp/src/game/server/hl2/weapon_smg1.cpp
void CWeaponSMG1::Equip( CBaseCombatCharacter *pOwner )
{
	if( pOwner->Classify() == CLASS_PLAYER_ALLY )
	{
		m_fMaxRange1 = 3000;
	}
	else
	{
		m_fMaxRange1 = 1400;
	}

	BaseClass::Equip( pOwner );
}
//-----------------------------------------------------------------------------
// Purpose: Give this weapon longer range when wielded by an ally NPC.
//-----------------------------------------------------------------------------
Give this weapon longer range when wielded by an ally NPC.
Give this weapon longer range when wielded by an ally NPC .
void CWeaponSMG1::Equip( CBaseCombatCharacter *pOwner )
{
	if( pOwner->Classify() == CLASS_PLAYER_ALLY )
	{
		m_fMaxRange1 = 3000;
	}
	else
	{
		m_fMaxRange1 = 1400;
	}
	BaseClass::Equip( pOwner );
}
void CWeaponSMG1 :: Equip ( CBaseCombatCharacter * pOwner ) { if ( pOwner -> Classify ( ) == CLASS_PLAYER_ALLY ) { m_fMaxRange1 = 3000 ; } else { m_fMaxRange1 = 1400 ; } BaseClass :: Equip ( pOwner ) ; }
Purpose: Give this weapon longer range when wielded by an ally NPC.
Purpose : Give this weapon longer range when wielded by an ally NPC .