User:Lagg/API notes

From Team Fortress Wiki
< User:Lagg
Revision as of 12:51, 6 November 2011 by Lagg (talk | contribs) (Valve making an off-by-one error. NO WAY)
Jump to: navigation, search

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

Class indexes

  • 0: Scout
  • 1: Scout*
  • 2: Sniper
  • 3: Soldier
  • 4: Demoman
  • 5: Medic
  • 6: Heavy
  • 7: Pyro
  • 8: Spy
  • 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

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