View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-16-2015 , 16:48   Re: Get slot of tf_wearable?
Reply With Quote #2

Any particular reason you need to know the slot number?

Hell, TF2 can't even get cosmetic items slots correct for its own internal functions, such as CTFPlayer::GetEntityForLoadoutSlot, which returns nothing for slots 7 or 10, which are cosmetic 1 and 3 respectively.

For reference, loadout slots are:

0 = Primary
1 = Secondary
2 = Melee
3 = Utility
4 = Building
5 = Unknown
6 = PDA2
7 = Misc
8 = Misc
9 = Action
10 = Misc
11 = Taunt
12 = Taunt
13 = Taunt
14 = Taunt
15 = Taunt
16 = Taunt
17 = Taunt
18 = Taunt

Note: This was taken from g_szLoadoutStringsForDisplay in server_srv.so a while back, so Valve may have given them better names since then.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-16-2015 at 16:52.
Powerlord is offline