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

From Team Fortress Wiki
Jump to: navigation, search
(Valve making an off-by-one error. NO WAY)
(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)
 
Line 4: Line 4:
  
 
* 0: Scout
 
* 0: Scout
* 1: 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
 
* 2: Sniper
 
* 3: Soldier
 
* 3: Soldier
Line 13: Line 13:
 
* 8: Spy
 
* 8: Spy
 
* 9: Engineer
 
* 9: Engineer
 
* 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
 
  
 
=== Slot indexes ===
 
=== Slot indexes ===
Line 25: Line 23:
 
* 9: Action
 
* 9: Action
 
* 10: Misc 2
 
* 10: Misc 2
 +
 +
=== 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