@aron9forever - Then what is this -_- :
PHP Code:
GetWeaponBoxType ( ent )
{
static weapon;
for ( new i=1; i<=5; i++ )
{
weapon = get_pdata_cbase ( ent, m_rgpPlayerItems_CWeaponBox[i], XO_CWEAPONBOX );
if( weapon > 0 )
return cs_get_weapon_id ( weapon );
}
return 0;
}
Couldn't I simply use cs_get_weapon_id ( ent ) instead of using this function?
What I think is, it's based on the class of weapons. Armoury Entity is what we get in maps where weapons are spawned on the ground. Once we pick it up, it turns into Weaponbox type ( as tested from Ham_Touch ). So I will have to make 2 different checks for that.