View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-26-2012 , 02:58   Re: [TF2] Changing a weapon with TF2 items.
Reply With Quote #13

Quote:
Originally Posted by ReFlexPoison View Post
BTW Powerlord, your way works correctly. I don't understand why it doesn't work with RemoveWeaponSlot or RemoveAllWeapons
Valve's code doesn't consider them weapons is why.

Instead, they're stored in the m_hMyWearables list-type thingy along with hats and miscs. Sadly, this isn't accessible via the player entity; m_hMyWearables shows up as offset 0. It's a shame, since it's presumably just a list of entity references.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-26-2012 at 03:03.
Powerlord is offline