Did you try removing this from the above?
PHP Code:
if( bSwitchIfActive && get_pdata_cbase(id, m_pActiveItem) == iWeapon )
{
ExecuteHamB(Ham_Weapon_RetireWeapon, iWeapon);
}
Code:
/**
* Description: There is no more ammo for this gun, so switch to the next best one.
* Forward params: function(this)
* Return type: None.
* ExecuteParams: ExecuteHam(Ham_Weapon_RetireWeapon, this)
*/
Ham_Weapon_RetireWeapon,
__________________