Raised This Month: $32 Target: $400
 8% 

Get item slot for item in TF2Items_OnGiveNamedItem?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-14-2011 , 13:59   Get item slot for item in TF2Items_OnGiveNamedItem?
Reply With Quote #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 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode