Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

370 lines
15 KiB

  1. ////////////////////////////////////////////////////////////////////
  2. //
  3. // hl2orange.spa.h
  4. //
  5. // Auto-generated on Thursday, 13 September 2007 at 16:59:17
  6. // XLAST project version 1.0.402.0
  7. // SPA Compiler version 2.0.6274.0
  8. //
  9. ////////////////////////////////////////////////////////////////////
  10. #ifndef __THE_ORANGE_BOX_SPA_H__
  11. #define __THE_ORANGE_BOX_SPA_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. //
  16. // Title info
  17. //
  18. #define TITLEID_THE_ORANGE_BOX 0x4541080F
  19. //
  20. // Context ids
  21. //
  22. // These values are passed as the dwContextId to XUserSetContext.
  23. //
  24. #define CONTEXT_CHAPTER_HL2 0
  25. #define CONTEXT_SCENARIO 1
  26. #define CONTEXT_GAME 2
  27. #define CONTEXT_CHAPTER_EP1 3
  28. #define CONTEXT_CHAPTER_EP2 4
  29. #define CONTEXT_CHAPTER_PORTAL 5
  30. //
  31. // Context values
  32. //
  33. // These values are passed as the dwContextValue to XUserSetContext.
  34. //
  35. // Values for CONTEXT_CHAPTER_HL2
  36. #define CONTEXT_CHAPTER_HL2_POINT_INSERTION 0
  37. #define CONTEXT_CHAPTER_HL2_A_RED_LETTER_DAY 1
  38. #define CONTEXT_CHAPTER_HL2_ROUTE_KANAL 2
  39. #define CONTEXT_CHAPTER_HL2_WATER_HAZARD 3
  40. #define CONTEXT_CHAPTER_HL2_BLACK_MESA_EAST 4
  41. #define CONTEXT_CHAPTER_HL2_RAVENHOLM 5
  42. #define CONTEXT_CHAPTER_HL2_HIGHWAY_17 6
  43. #define CONTEXT_CHAPTER_HL2_SANDTRAPS 7
  44. #define CONTEXT_CHAPTER_HL2_NOVA_PROSPEKT 8
  45. #define CONTEXT_CHAPTER_HL2_ENTANGLEMENT 9
  46. #define CONTEXT_CHAPTER_HL2_ANTICITIZEN_ONE 10
  47. #define CONTEXT_CHAPTER_HL2_FOLLOW_FREEMAN 11
  48. #define CONTEXT_CHAPTER_HL2_OUR_BENEFACTORS 12
  49. #define CONTEXT_CHAPTER_HL2_DARK_ENERGY 13
  50. // Values for CONTEXT_SCENARIO
  51. #define CONTEXT_SCENARIO_CTF_2FORT 0
  52. #define CONTEXT_SCENARIO_CP_DUSTBOWL 1
  53. #define CONTEXT_SCENARIO_CP_GRANARY 2
  54. #define CONTEXT_SCENARIO_CP_WELL 3
  55. #define CONTEXT_SCENARIO_CP_GRAVELPIT 4
  56. #define CONTEXT_SCENARIO_TC_HYDRO 5
  57. #define CONTEXT_SCENARIO_CTF_CLOAK 6
  58. #define CONTEXT_SCENARIO_CP_CLOAK 7
  59. // Values for CONTEXT_GAME
  60. #define CONTEXT_GAME_GAME_HALF_LIFE_2 0
  61. #define CONTEXT_GAME_GAME_EPISODE_ONE 1
  62. #define CONTEXT_GAME_GAME_EPISODE_TWO 2
  63. #define CONTEXT_GAME_GAME_PORTAL 3
  64. #define CONTEXT_GAME_GAME_TEAM_FORTRESS 4
  65. // Values for CONTEXT_CHAPTER_EP1
  66. #define CONTEXT_CHAPTER_EP1_UNDUE_ALARM 0
  67. #define CONTEXT_CHAPTER_EP1_DIRECT_INTERVENTION 1
  68. #define CONTEXT_CHAPTER_EP1_LOWLIFE 2
  69. #define CONTEXT_CHAPTER_EP1_URBAN_FLIGHT 3
  70. #define CONTEXT_CHAPTER_EP1_EXIT_17 4
  71. // Values for CONTEXT_CHAPTER_EP2
  72. #define CONTEXT_CHAPTER_EP2_TO_THE_WHITE_FOREST 0
  73. #define CONTEXT_CHAPTER_EP2_THIS_VORTAL_COIL 1
  74. #define CONTEXT_CHAPTER_EP2_FREEMAN_PONTIFEX 2
  75. #define CONTEXT_CHAPTER_EP2_RIDING_SHOTGUN 3
  76. #define CONTEXT_CHAPTER_EP2_UNDER_THE_RADAR 4
  77. #define CONTEXT_CHAPTER_EP2_OUR_MUTUAL_FIEND 5
  78. #define CONTEXT_CHAPTER_EP2_T_MINUS_ONE 6
  79. // Values for CONTEXT_CHAPTER_PORTAL
  80. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_00 0
  81. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_04 1
  82. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_08 2
  83. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_10 3
  84. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_13 4
  85. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_14 5
  86. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_15 6
  87. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_16 7
  88. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_17 8
  89. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_18 9
  90. #define CONTEXT_CHAPTER_PORTAL_TESTCHAMBER_19 10
  91. // Values for X_CONTEXT_PRESENCE
  92. #define CONTEXT_PRESENCE_TF_CP 0
  93. #define CONTEXT_PRESENCE_TF_CTF_LOSING 1
  94. #define CONTEXT_PRESENCE_TF_CTF_TIED 2
  95. #define CONTEXT_PRESENCE_TF_CTF_WINNING 3
  96. #define CONTEXT_PRESENCE_APPCHOOSER 4
  97. #define CONTEXT_PRESENCE_MENU 5
  98. #define CONTEXT_PRESENCE_EP1_INGAME 6
  99. #define CONTEXT_PRESENCE_HL2_INGAME 7
  100. #define CONTEXT_PRESENCE_EP2_INGAME 8
  101. #define CONTEXT_PRESENCE_PORTAL_INGAME 9
  102. #define CONTEXT_PRESENCE_COMMENTARY 10
  103. #define CONTEXT_PRESENCE_IDLE 11
  104. // Values for X_CONTEXT_GAME_MODE
  105. #define CONTEXT_GAME_MODE_MULTIPLAYER 0
  106. #define CONTEXT_GAME_MODE_SINGLEPLAYER 1
  107. //
  108. // Property ids
  109. //
  110. // These values are passed as the dwPropertyId value to XUserSetProperty
  111. // and as the dwPropertyId value in the XUSER_PROPERTY structure.
  112. //
  113. #define PROPERTY_CAPS_OWNED 0x10000000
  114. #define PROPERTY_CAPS_TOTAL 0x10000001
  115. #define PROPERTY_PLAYER_TEAM_SCORE 0x10000002
  116. #define PROPERTY_OPPONENT_TEAM_SCORE 0x10000003
  117. #define PROPERTY_FLAG_CAPTURE_LIMIT 0x1000000B
  118. #define PROPERTY_NUMBER_OF_ROUNDS 0x1000000C
  119. #define PROPERTY_GAME_SIZE 0x1000000D
  120. #define PROPERTY_AUTOBALANCE 0x1000000E
  121. #define PROPERTY_PRIVATE_SLOTS 0x1000000F
  122. #define PROPERTY_MAX_GAME_TIME 0x10000010
  123. #define PROPERTY_NUMBER_OF_KILLS 0x10000011
  124. #define PROPERTY_DAMAGE_DEALT 0x10000012
  125. #define PROPERTY_PLAY_TIME 0x10000013
  126. #define PROPERTY_POINT_CAPTURES 0x10000014
  127. #define PROPERTY_POINT_DEFENSES 0x10000015
  128. #define PROPERTY_DOMINATIONS 0x10000016
  129. #define PROPERTY_REVENGE 0x10000017
  130. #define PROPERTY_BUILDINGS_DESTROYED 0x10000019
  131. #define PROPERTY_HEADSHOTS 0x1000001A
  132. #define PROPERTY_HEALTH_POINTS_HEALED 0x1000001B
  133. #define PROPERTY_INVULNS 0x1000001C
  134. #define PROPERTY_KILL_ASSISTS 0x1000001D
  135. #define PROPERTY_BACKSTABS 0x1000001E
  136. #define PROPERTY_HEALTH_POINTS_LEACHED 0x1000001F
  137. #define PROPERTY_BUILDINGS_BUILT 0x10000020
  138. #define PROPERTY_SENTRY_KILLS 0x10000021
  139. #define PROPERTY_TELEPORTS 0x10000022
  140. #define PROPERTY_KILLS 0x10000023
  141. #define PROPERTY_NUMBER_OF_TEAMS 0x10000025
  142. #define PROPERTY_TEAM_RED 0x10000026
  143. #define PROPERTY_TEAM_BLUE 0x10000027
  144. #define PROPERTY_TEAM_SPECTATOR 0x10000028
  145. #define PROPERTY_TEAM 0x10000029
  146. #define PROPERTY_WIN_LIMIT 0x1000002A
  147. #define PROPERTY_RANKING_TEST 0x2000000A
  148. #define PROPERTY_POINTS_SCORED 0x20000018
  149. //
  150. // Achievement ids
  151. //
  152. // These values are used in the dwAchievementId member of the
  153. // XUSER_ACHIEVEMENT structure that is used with
  154. // XUserWriteAchievements and XUserCreateAchievementEnumerator.
  155. //
  156. #define ACHIEVEMENT_HLX_KILL_ENEMIES_WITHPHYSICS 43
  157. #define ACHIEVEMENT_HLX_KILL_ENEMY_WITHHOPPERMINE 44
  158. #define ACHIEVEMENT_HLX_KILL_ENEMIES_WITHMANHACK 45
  159. #define ACHIEVEMENT_HLX_KILL_SOLDIER_WITHHISGRENADE 46
  160. #define ACHIEVEMENT_HLX_KILL_ENEMIES_WITHONEENERGYBALL 47
  161. #define ACHIEVEMENT_HLX_KILL_ELITESOLDIER_WITHHISENERGYBALL 48
  162. #define ACHIEVEMENT_EPX_GET_ZOMBINEGRENADE 50
  163. #define ACHIEVEMENT_EPX_KILL_ZOMBIES_WITHFLARES 51
  164. #define ACHIEVEMENT_HL2_HIT_CANCOP_WITHCAN 52
  165. #define ACHIEVEMENT_HL2_PUT_CANINTRASH 53
  166. #define ACHIEVEMENT_HL2_ESCAPE_APARTMENTRAID 54
  167. #define ACHIEVEMENT_HL2_BREAK_MINITELEPORTER 55
  168. #define ACHIEVEMENT_HL2_GET_CROWBAR 56
  169. #define ACHIEVEMENT_HL2_KILL_BARNACLESWITHBARREL 57
  170. #define ACHIEVEMENT_HL2_GET_AIRBOAT 58
  171. #define ACHIEVEMENT_HL2_GET_AIRBOATGUN 60
  172. #define ACHIEVEMENT_HL2_FIND_VORTIGAUNTCAVE 61
  173. #define ACHIEVEMENT_HL2_KILL_CHOPPER 62
  174. #define ACHIEVEMENT_HL2_FIND_HEVFACEPLATE 63
  175. #define ACHIEVEMENT_HL2_GET_GRAVITYGUN 64
  176. #define ACHIEVEMENT_HL2_MAKEABASKET 65
  177. #define ACHIEVEMENT_HL2_BEAT_RAVENHOLM_NOWEAPONS 66
  178. #define ACHIEVEMENT_HL2_BEAT_CEMETERY 67
  179. #define ACHIEVEMENT_HL2_KILL_ENEMIES_WITHCRANE 68
  180. #define ACHIEVEMENT_HL2_PIN_SOLDIER_TOBILLBOARD 69
  181. #define ACHIEVEMENT_HL2_KILL_ODESSAGUNSHIP 70
  182. #define ACHIEVEMENT_HL2_KILL_THREEGUNSHIPS 71
  183. #define ACHIEVEMENT_HL2_BEAT_DONTTOUCHSAND 72
  184. #define ACHIEVEMENT_HL2_KILL_ENEMIES_WITHANTLIONS 74
  185. #define ACHIEVEMENT_HL2_KILL_ENEMY_WITHTOILET 75
  186. #define ACHIEVEMENT_HL2_BEAT_TURRETSTANDOFF2 76
  187. #define ACHIEVEMENT_HL2_BEAT_TOXICTUNNEL 78
  188. #define ACHIEVEMENT_HL2_BEAT_PLAZASTANDOFF 79
  189. #define ACHIEVEMENT_HL2_KILL_ALLC1709SNIPERS 80
  190. #define ACHIEVEMENT_HL2_BEAT_SUPRESSIONDEVICE 81
  191. #define ACHIEVEMENT_HL2_BEAT_C1713STRIDERSTANDOFF 82
  192. #define ACHIEVEMENT_HL2_BEAT_GAME 84
  193. #define ACHIEVEMENT_HL2_FIND_ALLLAMBDAS 86
  194. #define ACHIEVEMENT_EP1_BEAT_MAINELEVATOR 87
  195. #define ACHIEVEMENT_EP1_BEAT_CITADELCORE 88
  196. #define ACHIEVEMENT_EP1_BEAT_CITADELCORE_NOSTALKERKILLS 89
  197. #define ACHIEVEMENT_EP1_KILL_ANTLIONS_WITHCARS 90
  198. #define ACHIEVEMENT_EP1_BEAT_GARAGEELEVATORSTANDOFF 91
  199. #define ACHIEVEMENT_EP1_KILL_ENEMIES_WITHSNIPERALYX 92
  200. #define ACHIEVEMENT_EP1_BEAT_HOSPITALATTICGUNSHIP 93
  201. #define ACHIEVEMENT_EP1_BEAT_CITIZENESCORT_NOCITIZENDEATHS 94
  202. #define ACHIEVEMENT_EP1_BEAT_GAME 95
  203. #define ACHIEVEMENT_EP1_BEAT_GAME_ONEBULLET 96
  204. #define ACHIEVEMENT_EP2_KILL_POISONANTLION 97
  205. #define ACHIEVEMENT_EP2_KILL_ALLGRUBS 98
  206. #define ACHIEVEMENT_EP2_BREAK_ALLWEBS 99
  207. #define ACHIEVEMENT_EP2_BEAT_ANTLIONINVASION 100
  208. #define ACHIEVEMENT_EP2_BEAT_ANTLIONGUARDS 101
  209. #define ACHIEVEMENT_EP2_KILL_ENEMIES_WITHCAR 102
  210. #define ACHIEVEMENT_EP2_BEAT_HUNTERAMBUSH 103
  211. #define ACHIEVEMENT_EP2_KILL_CHOPPER_NOMISSES 104
  212. #define ACHIEVEMENT_EP2_KILL_COMBINECANNON 105
  213. #define ACHIEVEMENT_EP2_FIND_ALLRADARCACHES 106
  214. #define ACHIEVEMENT_EP2_BEAT_ROCKETCACHEPUZZLE 107
  215. #define ACHIEVEMENT_EP2_BEAT_RACEWITHDOG 108
  216. #define ACHIEVEMENT_EP2_BEAT_WHITEFORESTINN 109
  217. #define ACHIEVEMENT_EP2_PUT_ITEMINROCKET 110
  218. #define ACHIEVEMENT_EP2_BEAT_MISSILESILO2 111
  219. #define ACHIEVEMENT_EP2_BEAT_OUTLAND12_NOBUILDINGSDESTROYED 112
  220. #define ACHIEVEMENT_EP2_BEAT_GAME 113
  221. #define ACHIEVEMENT_EP2_KILL_HUNTER_WITHFLECHETTES 114
  222. #define ACHIEVEMENT_PORTAL_GET_PORTALGUNS 115
  223. #define ACHIEVEMENT_PORTAL_KILL_COMPANIONCUBE 116
  224. #define ACHIEVEMENT_PORTAL_ESCAPE_TESTCHAMBERS 117
  225. #define ACHIEVEMENT_PORTAL_BEAT_GAME 118
  226. #define ACHIEVEMENT_PORTAL_INFINITEFALL 119
  227. #define ACHIEVEMENT_PORTAL_LONGJUMP 120
  228. #define ACHIEVEMENT_PORTAL_BEAT_2ADVANCEDMAPS 121
  229. #define ACHIEVEMENT_PORTAL_BEAT_4ADVANCEDMAPS 122
  230. #define ACHIEVEMENT_PORTAL_BEAT_6ADVANCEDMAPS 123
  231. #define ACHIEVEMENT_PORTAL_GET_ALLBRONZE 124
  232. #define ACHIEVEMENT_PORTAL_GET_ALLSILVER 125
  233. #define ACHIEVEMENT_PORTAL_GET_ALLGOLD 126
  234. #define ACHIEVEMENT_TF_GET_TURRETKILLS 127
  235. #define ACHIEVEMENT_TF_KILL_NEMESIS 128
  236. #define ACHIEVEMENT_TF_GET_CONSECUTIVEKILLS_NODEATHS 129
  237. #define ACHIEVEMENT_TF_GET_HEALED_BYENEMY 130
  238. #define ACHIEVEMENT_TF_PLAY_GAME_FRIENDSONLY 131
  239. #define ACHIEVEMENT_TF_WIN_MULTIPLEGAMES 132
  240. #define ACHIEVEMENT_TF_GET_MULTIPLEKILLS 133
  241. #define ACHIEVEMENT_TF_WIN_2FORT_NOENEMYCAPS 134
  242. #define ACHIEVEMENT_TF_WIN_WELL_MINIMUMTIME 135
  243. #define ACHIEVEMENT_TF_WIN_HYDRO_NOENEMYCAPS 136
  244. #define ACHIEVEMENT_TF_WIN_DUSTBOWL_NOENEMYCAPS 137
  245. #define ACHIEVEMENT_TF_WIN_GRAVELPIT_NOENEMYCAPS 138
  246. #define ACHIEVEMENT_TF_PLAY_GAME_EVERYCLASS 139
  247. #define ACHIEVEMENT_TF_PLAY_GAME_EVERYMAP 140
  248. #define ACHIEVEMENT_TF_GET_HEALPOINTS 141
  249. #define ACHIEVEMENT_TF_BURN_PLAYERSINMINIMIMTIME 142
  250. #define ACHIEVEMENT_HL2_DISINTEGRATE_SOLDIERSINFIELD 143
  251. #define ACHIEVEMENT_HL2_FOLLOW_FREEMAN 144
  252. #define ACHIEVEMENT_TF_GET_HEADSHOTS 145
  253. #define ACHIEVEMENT_PORTAL_DETACH_ALL_CAMERAS 146
  254. #define ACHIEVEMENT_PORTAL_HIT_TURRET_WITH_TURRET 148
  255. #ifndef _XBOX
  256. #define ACHIEVEMENT_PORTAL_TRANSMISSION_RECEIVED 149
  257. #define ACHIEVEMENT_TF_GENERAL_KILL_ENEMIES_AFTER_TELEPORTING 150
  258. #endif // _XBOX
  259. #define ACHIEVEMENT_TF_LAST_ORANGEBOX 150
  260. //
  261. // Stats view ids
  262. //
  263. // These are used in the dwViewId member of the XUSER_STATS_SPEC structure
  264. // passed to the XUserReadStats* and XUserCreateStatsEnumerator* functions.
  265. //
  266. // Skill leaderboards for ranked game modes
  267. #define STATS_VIEW_SKILL_RANKED_MULTIPLAYER 0xFFFF0000
  268. #define STATS_VIEW_SKILL_RANKED_SINGLEPLAYER 0xFFFF0001
  269. // Skill leaderboards for unranked (standard) game modes
  270. #define STATS_VIEW_SKILL_STANDARD_MULTIPLAYER 0xFFFE0000
  271. #define STATS_VIEW_SKILL_STANDARD_SINGLEPLAYER 0xFFFE0001
  272. // Title defined leaderboards
  273. #define STATS_VIEW_PLAYER_MAX_UNRANKED 1
  274. #define STATS_VIEW_PLAYER_MAX_RANKED 2
  275. //
  276. // Stats view column ids
  277. //
  278. // These ids are used to read columns of stats views. They are specified in
  279. // the rgwColumnIds array of the XUSER_STATS_SPEC structure. Rank, rating
  280. // and gamertag are not retrieved as custom columns and so are not included
  281. // in the following definitions. They can be retrieved from each row's
  282. // header (e.g., pStatsResults->pViews[x].pRows[y].dwRank, etc.).
  283. //
  284. // Column ids for PLAYER_MAX_UNRANKED
  285. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_POINTS_SCORED 2
  286. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_KILLS 3
  287. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_POINTS_CAPPED 1
  288. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_DAMAGE_DEALT 4
  289. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_PLAY_TIME 5
  290. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_POINT_DEFENSES 6
  291. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_DOMINATIONS 7
  292. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_REVENGE 8
  293. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_BUILDINGS_DESTROYED 9
  294. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_HEADSHOTS 10
  295. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_HEALTH_POINTS_HEALED 11
  296. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_INVULNS 12
  297. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_KILL_ASSISTS 13
  298. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_BACKSTABS 14
  299. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_HEALTH_POINTS_LEACHED 15
  300. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_BUILDINGS_BUILT 16
  301. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_SENTRY_KILLS 17
  302. #define STATS_COLUMN_PLAYER_MAX_UNRANKED_TELEPORTS 18
  303. // Column ids for PLAYER_MAX_RANKED
  304. #define STATS_COLUMN_PLAYER_MAX_RANKED_POINTS_SCORED 2
  305. //
  306. // Matchmaking queries
  307. //
  308. // These values are passed as the dwProcedureIndex parameter to
  309. // XSessionSearch to indicate which matchmaking query to run.
  310. //
  311. #define SESSION_MATCH_QUERY_PLAYER_MATCH 0
  312. //
  313. // Gamer pictures
  314. //
  315. // These ids are passed as the dwPictureId parameter to XUserAwardGamerTile.
  316. //
  317. #ifdef __cplusplus
  318. }
  319. #endif
  320. #endif // __THE_ORANGE_BOX_SPA_H__