Difference between revisions of "User:Lagg/API notes"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "== Possible new index mappings for equipped field, probably useful for client data too == === Class indexes === * 5: Medic * 6: Heavy * 3: Soldier * 7: Pyro * 4: Demoman * 0: ?...")
 
(Looks like Valve gave themselves for breathing room between the slots. Wait, what is that smell? OH MY GOD IT'S A DEAD RED HERRING)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
=== Class indexes ===
 
=== Class indexes ===
  
 +
* 0: Scout
 +
* 1: Scout <ref>This is probably the correct mapping for the scout and all equipped fields with 0 in it will probably have this as well. I'm guessing this is either an off-by-one bug or a workaround of it</ref>
 +
* 2: Sniper
 +
* 3: Soldier
 +
* 4: Demoman
 
* 5: Medic
 
* 5: Medic
 
* 6: Heavy
 
* 6: Heavy
* 3: Soldier
 
 
* 7: Pyro
 
* 7: Pyro
* 4: Demoman
+
* 8: Spy
* 0: ? (Note: Entry in my backpack for the bonk helm showed it being equipped by this class and the Scout in the head slot)
 
 
* 9: Engineer
 
* 9: Engineer
* 8: Spy
 
* 2: Sniper
 
  
 
=== Slot indexes ===
 
=== Slot indexes ===
  
 +
* 0: Primary
 +
* 1: Secondary
 
* 2: Melee
 
* 2: Melee
 
* 7: Head
 
* 7: Head
 
* 8: Misc 1
 
* 8: Misc 1
* 0: Primary
+
* 9: Action
 
* 10: Misc 2
 
* 10: Misc 2
* 9: Action
+
 
 +
=== Notes ===
 +
<references/>

Latest revision as of 12:57, 6 November 2011

Possible new index mappings for equipped field, probably useful for client data too

Class indexes

  • 0: Scout
  • 1: Scout [1]
  • 2: Sniper
  • 3: Soldier
  • 4: Demoman
  • 5: Medic
  • 6: Heavy
  • 7: Pyro
  • 8: Spy
  • 9: Engineer

Slot indexes

  • 0: Primary
  • 1: Secondary
  • 2: Melee
  • 7: Head
  • 8: Misc 1
  • 9: Action
  • 10: Misc 2

Notes

  1. This is probably the correct mapping for the scout and all equipped fields with 0 in it will probably have this as well. I'm guessing this is either an off-by-one bug or a workaround of it