Thread
:
Get item slot for item in TF2Items_OnGiveNamedItem?
View Single Post
Author
Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
12-14-2011 , 13:59 Get item slot for item in TF2Items_OnGiveNamedItem?
#
1
Is it possible to get the item slot that the item is being equipped in during the TF2Items_OnGiveNamedItem callback?
Basically, I'm trying to block hats from being equipped entirely. However, while all hats/misc items are tf_wearable class, not all tf_wearable class items are hats/misc items; Sniper shields and Demoman feet items are as well.
Basically, I'm trying to block items by their class names, so as to future-proof it so I don't have to update item indexes with every TF2 update.
__________________
Not currently working on SourceMod plugin development.
Last edited by Powerlord; 12-14-2011 at
14:00
.
Powerlord
View Public Profile
Find More Posts by Powerlord