AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [TF2] List of Item Definition Indexes (https://forums.alliedmods.net/showthread.php?t=102043)

Wazz 08-29-2009 16:10

[TF2] List of Item Definition Indexes
 
So this is a list of all the item definition indexes that I have found, the hat indexes were found by Damizean.
Usage: SetEntProp(edict, Prop_Send, "m_iItemDefinitionIndex", index);

Weapons:
0 - Scout's Bat
1 - Demoman's Bottle
2 - Pyro's Axe
3 - Sniper's Kukri
4 - Spy's Knife
5 - Heavy's Fists
6 - Soldier's Shovel
7 - Engineer's Wrench
8 - Medic's Bonesaw
9 - Enginner's Shotgun
10 - Soldier's Shotgun
11 - Heavy's Shotgun
12 - Pyro's Shotgun
13 - Scout's Scattergun
14 - Sniper's Rifle
15 - Heavy's Minigun
16 - Sniper's SMG
17 - Medics Syringegun
18 - Soldier's Rocket Launcher
19 - Demoman's Grenade Launcher
20 - Demoman's Sticky Bomb Launcher
21 - Pyro's Flamethrower
22 - Engineer's Pistol
23 - Scout's Pistol
24 - Spy's Pistol
25 - Engineer's Builder
26 - Engineer's Demolisher
27 - Spy's Disguise Kit
29 - Medic's Ubergun
30 - Spy's Watch
35 - Medic's Kritzkrieg
36 - Medic's Blutslauger
37 - Medic's Ubersaw
38 - Pyro's Axetinguisher
39 - Pyro's Flaregun
40 - Pyro's Backburner
41 - Heavy's Natascha
42 - Heavy's Sandvich
43 - Heavy's Killer Gloves Of Boxing
44 - Scout's Wooden Bat
45 - Scout's Force-A-Nature
56 - Sniper's Huntsman
57 - Sniper's Razorback
58 - Sniper's Jarate
59 - Spy's Dead Ringer
60 - Spy's Cloak And Dagger
61 - Spy's Ambassador
Hats:
47 - Demoman's 'Fro
48 - Mining Light
49 - Football Helmet
50 - Prussian Pikelhaude
51 - Pyro's Beanie
52 - Batter's Helmet
53 - Trophy hat
54 - Soldier's Stash
55 - Fancy Fedora
94 - Texas Ten Gallon
95 - Engineer's Cap
96 - Officer's Ushanka
97 - Tough Guy's Tuque
98 - Stainless Pot
99 - Tyrant's Helm
100 - Glengarry Bonnet
101 - Vintage Tyrolean
102 - Respectless Rubber Glove
103 - Camera Beard
104 - Otolaryngologist's Mirror
105 - Brigade Helm
106 - Bonk Helm
107 - Ye Olde Baker Boy
108 - Backbiter's Billycock
109 - Professional's Panama
110 - Master's Yellow Belt
120 - Scottsman's Stove Pipe


Apologies in advance for any typos or incorrect names, however you should be able to work out what each item is.

bl4nk 08-29-2009 20:25

Re: [TF2] List of Item Definition Indexes
 
You can find all of these in the items.ctx file.

Wazz 08-29-2009 20:59

Re: [TF2] List of Item Definition Indexes
 
Hah darn. Ah well :(

voogru 08-30-2009 07:46

Re: [TF2] List of Item Definition Indexes
 
Btw, just a note about the "m_iEntityQuality".

Don't dare ever set it over 9.

Every client that gets that entity sent to them will crash.

Damizean 08-30-2009 08:01

Re: [TF2] List of Item Definition Indexes
 
Quote:

Originally Posted by voogru (Post 917763)
Btw, just a note about the "m_iEntityQuality".

Don't dare ever set it over 9.

Every client that gets that entity sent to them will crash.

Haha, yeah, I suffered from that too. Anyway, it's interesting the number of colors there are for the item quality, but only the 3 (unique) is used.

naris 09-12-2009 20:40

Re: [TF2] List of Item Definition Indexes
 
Quote:

Originally Posted by voogru (Post 917763)
Btw, just a note about the "m_iEntityQuality".

Don't dare ever set it over 9.

Every client that gets that entity sent to them will crash.

Hmmm... that could make an entertaining replacement for banning people :twisted:

voogru 09-12-2009 21:29

Re: [TF2] List of Item Definition Indexes
 
Quote:

Originally Posted by naris (Post 931136)
Hmmm... that could make an entertaining replacement for banning people :twisted:

It will crash anyone who sees the entity.

Chris-_- 09-13-2009 08:01

Re: [TF2] List of Item Definition Indexes
 
A crash utility would be nice however. I'm not even joking.

Pyroguy 11-08-2009 06:29

Re: [TF2] List of Item Definition Indexes
 
Could this be used to let players play with items even if they don't have the necessary achievements? If so, how?

DJ Tsunami 11-08-2009 17:13

Re: [TF2] List of Item Definition Indexes
 
http://forums.alliedmods.net/showthread.php?t=98651

Pyroguy 11-09-2009 00:31

Re: [TF2] List of Item Definition Indexes
 
I was hoping for the weapons as well.

TheSpyHunter 11-09-2009 07:00

Re: [TF2] List of Item Definition Indexes
 
Using this method is it possible to give a player a weapon they havent unlocked?

If so how...?

Zuko 11-25-2009 09:17

Re: [TF2] List of Item Definition Indexes
 
Where can I find weapon indexes for L4D2?

Jindo 11-25-2009 15:59

Re: [TF2] List of Item Definition Indexes
 
Quote:

Originally Posted by Zuko (Post 998654)
Where can I find weapon indexes for L4D2?

As far as I know this system is exclusive to TF2 as part of the item drop system.

Zuko 11-27-2009 01:15

Re: [TF2] List of Item Definition Indexes
 
ok, I just wondering if there is posibillity to spawn weapon using indexes in L4D2.

Code:

EquipPlayerWeapon

          Syntax: native EquipPlayerWeapon(client, weapon);

Usage: client        Client index.
 item            CBaseCombatWeapon entity index.Notes: Equip's a player's weapon.


Wazz 11-27-2009 05:53

Re: [TF2] List of Item Definition Indexes
 
The list I gave in the first post are item definition indexes. These are not the same as entity indexes. For EquipPlayerWeapon you first need to call GiveNamedItem and get the entity index from that.

Jindo 12-19-2009 17:00

Re: [TF2] List of Item Definition Indexes
 
Weapons:

127 - Soldier's Direct Hit
128 - Soldier's Equalizer
129 - Soldier's Buff Banner
130 - Demoman's Scottish Resistance
131 - Demoman's Chargin' Targe
132 - Demoman's Eyelander
133 - Soldier's Gunboats

Hats:

115 - Halloween Hat (only appears on Halloween)
116 - Ghastly Gibus
121 - Service Medal
125 - Cheater's Lament
126 - Bill's Hat

Crafts:

5000 - Scrap Metal
5001 - Reclaimed Metal
5002 - Refined Metal
5003 - Scout Class Token
5004 - Sniper Class Token
5005 - Soldier Class Token
5006 - Demoman Class Token
5007 - Heavy Class Token
5008 - Medic Class Token
5009 - Pyro Class Token
5010 - Spy Class Token
5011 - Engineer Class Token
5012 - Primary Slot Token
5013 - Secondary Slot Token
5014 - Melee Slot Token
5015 - Grenade Slot Token
5016 - Building Slot Token
5017 - PDA Slot Token
5018 - PDA2 Slot Token
5019 - Head Slot Token

noodleboy347 12-20-2009 16:17

Re: [TF2] List of Item Definition Indexes
 
Why are those craft item indexes so high?!

Jindo 12-20-2009 16:21

Re: [TF2] List of Item Definition Indexes
 
Quote:

Originally Posted by noodleboy347 (Post 1024378)
Why are those craft item indexes so high?!

Probably because Valve are trying to organize things and have them seperate from the actual items, and who knows what sort of systems they will put in place (custom weapons with dynamically produced attributes could well become a possibility as a result of the crafting system)

Jindo 12-23-2009 06:01

Re: [TF2] List of Item Definition Indexes
 
I've gone ahead and added this list to the wiki:

http://wiki.alliedmods.net/Team_Fort...nition_Indexes

This way the entire list is all together and anyone can add to it as Valve add more items.


All times are GMT -4. The time now is 18:16.

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