Advertisement
Guest User

Untitled

a guest
Jan 25th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 15.18 KB | None | 0 0
  1. #ifndef SSBM_H_
  2. #define SSBM_H_
  3.  
  4. // SSBM 1.2 Datasheet
  5. // ------------------
  6. // https://docs.google.com/spreadsheets/d/1JX2w-r2fuvWuNgGb6D3Cs4wHQKLFegZe2jhbBuIhCG8/edit#gid=20
  7. // ^ where all the info from this header came from ^
  8.  
  9. // SmashBoards Post by Savestate
  10. // -----------------------------
  11. // http://smashboards.com/threads/writing-codes-for-melee-in-c.425351/
  12.  
  13. /* ID LISTS */
  14.  
  15. //External Character IDs
  16. #define SSBM_ID_CHAR_EXT_CFALCON    0x00
  17. #define SSBM_ID_CHAR_EXT_DK         0x01
  18. #define SSBM_ID_CHAR_EXT_FOX        0x02
  19. #define SSBM_ID_CHAR_EXT_GW         0x03
  20. #define SSBM_ID_CHAR_EXT_KIRBY      0x04
  21. #define SSBM_ID_CHAR_EXT_BOWSER     0x05
  22. #define SSBM_ID_CHAR_EXT_LINK       0x06
  23. #define SSBM_ID_CHAR_EXT_LUIGI      0x07
  24. #define SSBM_ID_CHAR_EXT_MARIO      0x08
  25. #define SSBM_ID_CHAR_EXT_MARTH      0x09
  26. #define SSBM_ID_CHAR_EXT_MEWTWO     0x0A
  27. #define SSBM_ID_CHAR_EXT_NESS       0x0B
  28. #define SSBM_ID_CHAR_EXT_PEACH      0x0C
  29. #define SSBM_ID_CHAR_EXT_PIKACHU    0x0D
  30. #define SSBM_ID_CHAR_EXT_IC         0x0E
  31. #define SSBM_ID_CHAR_EXT_JIGGLYPUFF 0x0F
  32. #define SSBM_ID_CHAR_EXT_SAMUS      0x10
  33. #define SSBM_ID_CHAR_EXT_YOSHI      0x11
  34. #define SSBM_ID_CHAR_EXT_ZELDA      0x12
  35. #define SSBM_ID_CHAR_EXT_SHEIK      0x13
  36. #define SSBM_ID_CHAR_EXT_FALCO      0x14
  37. #define SSBM_ID_CHAR_EXT_YOUNGLINK  0x15
  38. #define SSBM_ID_CHAR_EXT_DRMARIO    0x16
  39. #define SSBM_ID_CHAR_EXT_ROY        0x17
  40. #define SSBM_ID_CHAR_EXT_PICHU      0x18
  41. #define SSBM_ID_CHAR_EXT_GANONDORF  0x19
  42. #define SSBM_ID_CHAR_EXT_MASTERHAND 0x1A
  43. #define SSBM_ID_CHAR_EXT_WIREFRAMEM 0x1B
  44. #define SSBM_ID_CHAR_EXT_WIREFRAMEF 0x1C
  45. #define SSBM_ID_CHAR_EXT_GIGABOWSER 0x1D
  46. #define SSBM_ID_CHAR_EXT_CRAZYHAND  0x1E
  47. #define SSBM_ID_CHAR_EXT_SANDBAG    0x1F
  48. #define SSBM_ID_CHAR_EXT_POPO       0x20
  49. #define SSBM_ID_CHAR_EXT_USERSELECT 0x21
  50.  
  51. //Internal Character IDs
  52. #define SSBM_ID_CHAR_INT_MARIO      0x00
  53. #define SSBM_ID_CHAR_INT_FOX        0x01
  54. #define SSBM_ID_CHAR_INT_CFALCON    0x02
  55. #define SSBM_ID_CHAR_INT_DK         0x03
  56. #define SSBM_ID_CHAR_INT_KIRBY      0x04
  57. #define SSBM_ID_CHAR_INT_BOWSER     0x05
  58. #define SSBM_ID_CHAR_INT_LINK       0x06
  59. #define SSBM_ID_CHAR_INT_SHEIK      0x07
  60. #define SSBM_ID_CHAR_INT_NESS       0x08
  61. #define SSBM_ID_CHAR_INT_PEACH      0x09
  62. #define SSBM_ID_CHAR_INT_POPO       0x0A
  63. #define SSBM_ID_CHAR_INT_NANA       0x0B
  64. #define SSBM_ID_CHAR_INT_PIKACHU    0x0C
  65. #define SSBM_ID_CHAR_INT_SAMUS      0x0D
  66. #define SSBM_ID_CHAR_INT_YOSHI      0x0E
  67. #define SSBM_ID_CHAR_INT_JIGGLYPUFF 0x0F
  68. #define SSBM_ID_CHAR_INT_MEWTWO     0x10
  69. #define SSBM_ID_CHAR_INT_LUIGI      0x11
  70. #define SSBM_ID_CHAR_INT_MARTH      0x12
  71. #define SSBM_ID_CHAR_INT_ZELDA      0x13
  72. #define SSBM_ID_CHAR_INT_YOUNGLINK  0x14
  73. #define SSBM_ID_CHAR_INT_DRMARIO    0x15
  74. #define SSBM_ID_CHAR_INT_FALCO      0x16
  75. #define SSBM_ID_CHAR_INT_PICHU      0x17
  76. #define SSBM_ID_CHAR_INT_GW         0x18
  77. #define SSBM_ID_CHAR_INT_GANONDORF  0x19
  78. #define SSBM_ID_CHAR_INT_ROY        0x1A
  79. #define SSBM_ID_CHAR_INT_MASTERHAND 0x1B
  80. #define SSBM_ID_CHAR_INT_CRAZYHAND  0x1C
  81. #define SSBM_ID_CHAR_INT_WIREFRAMEM 0x1D
  82. #define SSBM_ID_CHAR_INT_WIREFRAMEF 0x1E
  83. #define SSBM_ID_CHAR_INT_GIGABOWSER 0x1F
  84. #define SSBM_ID_CHAR_INT_SANDBAG    0x20
  85.  
  86. // DEBUG STAGES
  87. #define SSBM_ID_STAGE_DUMMY 0x000
  88. #define SSBM_ID_STAGE_TEST  0x001
  89.  
  90. // STANDARD STAGES
  91. #define SSBM_ID_STAGE_FOD 0x002
  92. #define SSBM_ID_STAGE_PSTADIUM 0x003
  93. #define SSBM_ID_STAGE_CASTLE 0x004
  94. #define SSBM_ID_STAGE_KONGO 0x005
  95. #define SSBM_ID_STAGE_ZEBES 0x006
  96. #define SSBM_ID_STAGE_CORNERIA 0x007
  97. #define SSBM_ID_STAGE_YSTORY 0x008
  98. #define SSBM_ID_STAGE_ONETT 0x009
  99. #define SSBM_ID_STAGE_MUTECITY 0x00A
  100. #define SSBM_ID_STAGE_RCRUISE 0x00B
  101. #define SSBM_ID_STAGE_JJAPES 0x00C
  102. #define SSBM_ID_STAGE_GREATBAY 0x00D
  103. #define SSBM_ID_STAGE_HTEMPLE 0x00E
  104. #define SSBM_ID_STAGE_KRAID 0x00F
  105. #define SSBM_ID_STAGE_YISLAND 0x010
  106. #define SSBM_ID_STAGE_GREENS 0x011
  107. #define SSBM_ID_STAGE_FOURSIDE 0x012
  108. #define SSBM_ID_STAGE_MKINGDOM1 0x013
  109. #define SSBM_ID_STAGE_MKINGDOM2 0x014
  110. #define SSBM_ID_STAGE_AKANEIA 0x015 // deleted stage
  111. #define SSBM_ID_STAGE_VENOM 0x016
  112. #define SSBM_ID_STAGE_POKEFLOATS 0x017
  113. #define SSBM_ID_STAGE_BIGBLUE 0x018
  114. #define SSBM_ID_STAGE_ICEMTN 0x019
  115. #define SSBM_ID_STAGE_ICETOP 0x01A
  116. #define SSBM_ID_STAGE_FLATZONE 0x01B
  117. #define SSBM_ID_STAGE_DREAMLAND 0x01C
  118. #define SSBM_ID_STAGE_YISLANDN64 0x01D
  119. #define SSBM_ID_STAGE_KONGON64 0x01E
  120. #define SSBM_ID_STAGE_BATTLEFIELD 0x01F
  121. #define SSBM_ID_STAGE_FINALDEST 0x020
  122.  
  123. // TARGET TEST STAGES
  124. #define SSBM_ID_STAGE_TMARIO 0x021
  125. #define SSBM_ID_STAGE_TCAPTAIN 0x022
  126. #define SSBM_ID_STAGE_TCLINK 0x023
  127. #define SSBM_ID_STAGE_TDONKEY 0x024
  128. #define SSBM_ID_STAGE_TDRMARIO 0x025
  129. #define SSBM_ID_STAGE_TFALCO 0x026
  130. #define SSBM_ID_STAGE_TFOX 0x027
  131. #define SSBM_ID_STAGE_TICECLIM 0x028
  132. #define SSBM_ID_STAGE_TKIRBY 0x029
  133. #define SSBM_ID_STAGE_TKOOPA 0x02A
  134. #define SSBM_ID_STAGE_TLINK 0x02B
  135. #define SSBM_ID_STAGE_TLUIGI 0x02C
  136. #define SSBM_ID_STAGE_TMARS 0x02D
  137. #define SSBM_ID_STAGE_TMEWTWO 0x02E
  138. #define SSBM_ID_STAGE_TNESS 0x02F
  139. #define SSBM_ID_STAGE_TPEACH 0x030
  140. #define SSBM_ID_STAGE_TPICHU 0x031
  141. #define SSBM_ID_STAGE_TPIKACHU 0x032
  142. #define SSBM_ID_STAGE_TPURIN 0x033
  143. #define SSBM_ID_STAGE_TSAMUS 0x034
  144. #define SSBM_ID_STAGE_TSEAK 0x035
  145. #define SSBM_ID_STAGE_TYOSHI 0x036
  146. #define SSBM_ID_STAGE_TZELDA 0x037
  147. #define SSBM_ID_STAGE_TGAMEWAT 0x038
  148. #define SSBM_ID_STAGE_TEMBLEM 0x039
  149. #define SSBM_ID_STAGE_TGANON 0x03A
  150.  
  151. // EVENT MATCH STAGES
  152. #define SSBM_ID_STAGE_GOOMBA 0x0D7
  153. #define SSBM_ID_STAGE_ENTEI 0x0E3
  154. #define SSBM_ID_STAGE_MAJORA 0x0F8
  155.  
  156. // CPU AI TYPES
  157.  
  158. #define SSBM_ID_AI_STAY 0x00
  159. #define SSBM_ID_AI_WALK 0x01
  160. #define SSBM_ID_AI_ESCAPE 0x02
  161. #define SSBM_ID_AI_JUMP 0x03
  162. #define SSBM_ID_AI_NORMAL 0x04
  163. #define SSBM_ID_AI_MANUAL 0x05
  164. #define SSBM_ID_AI_NANA 0x06
  165. #define SSBM_ID_AI_DEFENSIVE 0x07
  166. #define SSBM_ID_AI_STRUGGLE 0x08
  167. #define SSBM_ID_AI_FREAK 0x09
  168. #define SSBM_ID_AI_COOPERATE 0x0A
  169. #define SSBM_ID_AI_SPLWLINK 0x0B // bombfest w/ link
  170. #define SSBM_ID_AI_SPLWSAMUS 0x0C // bombfest w/ samus
  171. #define SSBM_ID_AI_ONLYITEM 0x0D
  172. #define SSBM_ID_AI_EVZELDA 0x0E // hide-n-sheik
  173. #define SSBM_ID_AI_NOACT 0x0F
  174. #define SSBM_ID_AI_AIR 0x10
  175. #define SSBM_ID_AI_ITEM 0x11
  176. #define SSBM_ID_AI_GUARDEDGE 0x12
  177. #define SSBM_ID_AI_ALTNORMAL 0x13 // event
  178. #define SSBM_ID_AI_COOPERATIVE 0x14
  179. #define SSBM_ID_AI_COOP2 0x15
  180. #define SSBM_ID_AI_NORMALMAYBE 0x16
  181. #define SSBM_ID_AI_MULTIMANMELEE 0x17
  182. #define SSBM_ID_AI_ESCAPEANDATTACK 0x18
  183. #define SSBM_ID_AI_WALKANDATTACK 0x19
  184. #define SSBM_ID_AI_STAYANDATTACK 0x1A
  185.  
  186. // ITEMS
  187. #define SSBM_ID_ITEM_CAPSULE 0x00
  188. #define SSBM_ID_ITEM_BOX 0x01
  189. #define SSBM_ID_ITEM_BARREL 0x02
  190. #define SSBM_ID_ITEM_EGG 0x03
  191. #define SSBM_ID_ITEM_PARTYBALL 0x04
  192. #define SSBM_ID_ITEM_BARRELCANNON 0x05
  193. #define SSBM_ID_ITEM_BOBOMB 0x06
  194. #define SSBM_ID_ITEM_MRSATURN 0x07
  195. #define SSBM_ID_ITEM_HEARTCONTAINER 0x08
  196. #define SSBM_ID_ITEM_MAXIMTOMATO 0x09
  197. #define SSBM_ID_ITEM_STARMAN 0x0A
  198. #define SSBM_ID_ITEM_HOMERUNBAT 0x0B
  199. #define SSBM_ID_ITEM_BEAMSWORD 0x0C
  200. #define SSBM_ID_ITEM_PARASOL 0x0D
  201. #define SSBM_ID_ITEM_GREENSHELL 0x0E
  202. #define SSBM_ID_ITEM_REDSHELL 0x0F
  203. #define SSBM_ID_ITEM_RAYGUN 0x10
  204. #define SSBM_ID_ITEM_FREEZIE 0x11
  205. #define SSBM_ID_ITEM_FOOD 0x12
  206. #define SSBM_ID_ITEM_PROXIMITYMINE 0x13
  207. #define SSBM_ID_ITEM_FLIPPER 0x14
  208. #define SSBM_ID_ITEM_SUPERSCOPE 0x15
  209. #define SSBM_ID_ITEM_STARROD 0x16
  210. #define SSBM_ID_ITEM_LIPSTICK 0x17
  211. #define SSBM_ID_ITEM_FAN 0x18
  212. #define SSBM_ID_ITEM_FIREFLOWER 0x19
  213. #define SSBM_ID_ITEM_SUPERMUSHROOM) 0x1A
  214. #define SSBM_ID_ITEM_POISONMUSHROOM 0x1B
  215. #define SSBM_ID_ITEM_HAMMER 0x1C
  216. #define SSBM_ID_ITEM_WARPSTAR 0x1D
  217. #define SSBM_ID_ITEM_SCREWATTACK 0x1E
  218. #define SSBM_ID_ITEM_BUNNYHOOD 0x1F
  219. #define SSBM_ID_ITEM_METALBOX 0x20
  220. #define SSBM_ID_ITEM_CLOAKINGDEVICE 0x21
  221. #define SSBM_ID_ITEM_POKEBALL  0x22
  222.  
  223. #define SSBM_ID_ITEM_GOOMBA 0x2B
  224. #define SSBM_ID_ITEM_REDEAD 0x2C
  225. #define SSBM_ID_ITEM_OCTAROK 0x2D
  226. #define SSBM_ID_ITEM_OTTOSEA 0x2E
  227.  
  228. #define SSBM_ID_ITEM_RANDPOKEMON 0xA0
  229. #define SSBM_ID_ITEM_GOLDEEN 0xA1
  230. #define SSBM_ID_ITEM_CHICORITA 0xA2
  231. #define SSBM_ID_ITEM_SNORLAX 0xA3
  232. #define SSBM_ID_ITEM_BLASTOISE 0xA4
  233. #define SSBM_ID_ITEM_WEEZING 0xA5
  234. #define SSBM_ID_ITEM_CHARIZARD 0xA6
  235. #define SSBM_ID_ITEM_MOLTRES 0xA7
  236. #define SSBM_ID_ITEM_ZAPDOS 0xA8
  237. #define SSBM_ID_ITEM_ARTICUNO 0xA9
  238. #define SSBM_ID_ITEM_WOBBUFFET 0xAA
  239. #define SSBM_ID_ITEM_SCIZOR 0xAB
  240. #define SSBM_ID_ITEM_UNOWN 0xAC
  241. #define SSBM_ID_ITEM_ENTEI 0xAD
  242. #define SSBM_ID_ITEM_RAIKOU 0xAE
  243. #define SSBM_ID_ITEM_SUICUNE 0xAF
  244. #define SSBM_ID_ITEM_BELLOSSOM 0xB0
  245. #define SSBM_ID_ITEM_ELECTRODE 0xB1
  246. #define SSBM_ID_ITEM_LUGIA 0xB2
  247. #define SSBM_ID_ITEM_HOOH 0xB3
  248. #define SSBM_ID_ITEM_DITTO 0xB4
  249. #define SSBM_ID_ITEM_CLEFAIRY 0xB5
  250. #define SSBM_ID_ITEM_TOGEPI 0xB6
  251. #define SSBM_ID_ITEM_MEW 0xB7
  252. #define SSBM_ID_ITEM_CELEBI 0xB8
  253. #define SSBM_ID_ITEM_STARYU 0xB9
  254. #define SSBM_ID_ITEM_CHANSEY 0xBA
  255. #define SSBM_ID_ITEM_PORYGON2 0xBB
  256. #define SSBM_ID_ITEM_CYNDAQUIL 0xBC
  257. #define SSBM_ID_ITEM_MARILL 0xBD
  258. #define SSBM_ID_ITEM_VENUSAUR (0xBE
  259.  
  260. // ELEMENTS
  261. #define SSBM_ID_ELEMENT_NORMAL 0x00
  262. #define SSBM_ID_ELEMENT_FIRE 0x01
  263. #define SSBM_ID_ELEMENT_ELECTRIC 0x02
  264. #define SSBM_ID_ELEMENT_SLASH 0x03
  265. #define SSBM_ID_ELEMENT_COIN 0x04
  266. #define SSBM_ID_ELEMENT_ICE 0x05
  267. #define SSBM_ID_ELEMENT_SLEEPSHORT 0x06
  268. #define SSBM_ID_ELEMENT_SLEEPLONG 0x0
  269. #define SSBM_ID_ELEMENT_GROUNDED 0x08
  270. #define SSBM_ID_ELEMENT_GROUNDEDALT 0x09
  271. #define SSBM_ID_ELEMENT_CAPE 0x0A
  272. #define SSBM_ID_ELEMENT_EMPTY 0x0B
  273. #define SSBM_ID_ELEMENT_DISABLE 0x0C
  274. #define SSBM_ID_ELEMENT_DARKNESS 0x0D
  275. #define SSBM_ID_ELEMENT_SCREWATTACK 0x0E
  276. #define SSBM_ID_ELEMENT_LIPSTICK 0x0F
  277.  
  278. // SFX
  279. #define SSBM_ID_SFX_TROPHYGET 0x00AA
  280. #define SSBM_ID_SFX_AWARD 0x00AB
  281. #define SSBM_ID_SFX_MENUBACK 0x00AC
  282. #define SSBM_ID_SFX_MENUFORWARD 0x00AD
  283. #define SSBM_ID_SFX_MENUUPDOWN 0x00AE
  284. #define SSBM_ID_SFX_MENUDENIED 0x00AF
  285. #define SSBM_ID_SFX_DAMAGESOUND 0x00B0
  286. #define SSBM_ID_SFX_PAUSESOUND 0x00B1
  287. #define SSBM_ID_SFX_INTERCOMSTARFOX 0x00B2
  288. #define SSBM_ID_SFX_RESULTSLEFTRIGHT 0x00B3
  289. #define SSBM_ID_SFX_RESULTSCOING 0x00B4
  290. #define SSBM_ID_SFX_NARRATOR_GAMETITLESHOUT 0x4E20
  291. #define SSBM_ID_SFX_NARRATOR_GAMEMODES 0x7530
  292. #define SSBM_ID_SFX_NARRATOR_SINGLEPLAYERPHRASES 0x9C40
  293. #define SSBM_ID_SFX_NARRATOR_VERSUSPHRASES 0xC350
  294. #define SSBM_ID_SFX_NARRATOR_CHARACTERCALLS 0x7C830
  295.  
  296. // MUSIC
  297. #define SSBM_ID_MUSIC_CASTLE 0x04
  298. #define SSBM_ID_MUSIC_RCRUISE 0x42
  299. #define SSBM_ID_MUSIC_KONGO 0x21
  300. #define SSBM_ID_MUSIC_JJAPES 0x32
  301. #define SSBM_ID_MUSIC_GREATBAY 0x22
  302. #define SSBM_ID_MUSIC_TEMPLE 0x4b
  303. #define SSBM_ID_MUSIC_BRINSTAR 0x61
  304. #define SSBM_ID_MUSIC_BRINSTARDEPTHS 0x33
  305. #define SSBM_ID_MUSIC_YSTORY 0x60
  306. #define SSBM_ID_MUSIC_YISLAND 0x5f
  307. #define SSBM_ID_MUSIC_FOD 0x31
  308. #define SSBM_ID_MUSIC_GGREENS 0x23
  309. #define SSBM_ID_MUSIC_CORNERIA 0x06
  310. #define SSBM_ID_MUSIC_VENOM 0x54
  311. #define SSBM_ID_MUSIC_PSTADIUM 0x40
  312. #define SSBM_ID_MUSIC_POKEFLOATS 0x41
  313. #define SSBM_ID_MUSIC_MUTECITY 0x38
  314. #define SSBM_ID_MUSIC_BIGBLUE 0x03
  315. #define SSBM_ID_MUSIC_MOTHER 0x3c
  316. #define SSBM_ID_MUSIC_EARTHBOUND 0x1f
  317. #define SSBM_ID_MUSIC_MKINGDOM 0x29
  318. #define SSBM_ID_MUSIC_MKINGDOMFINALE 0x2a
  319. #define SSBM_ID_MUSIC_MKINGDOM2 0x2b
  320. #define SSBM_ID_MUSIC_MKINGDOM2FINALE 0x2c
  321. #define SSBM_ID_MUSIC_ICEMTN 0x28
  322. #define SSBM_ID_MUSIC_FLATZONE 0x1e
  323. #define SSBM_ID_MUSIC_KONGON64 0x39
  324. #define SSBM_ID_MUSIC_YISLANDN64 0x3b
  325. #define SSBM_ID_MUSIC_DREAMLAND 0x3a
  326. #define SSBM_ID_MUSIC_SMB3 0x4d
  327. #define SSBM_ID_MUSIC_SARIASTHEME 0x4a
  328. #define SSBM_ID_MUSIC_POKEMONBATTLE 0x3f
  329. #define SSBM_ID_MUSIC_FIREEMBLEM 0x01
  330. #define SSBM_ID_MUSIC_MACHRIDER 0x37
  331. #define SSBM_ID_MUSIC_MOTHER2 0x3d
  332. #define SSBM_ID_MUSIC_DRMARIO 0x07
  333. #define SSBM_ID_MUSIC_BALLOONFIGHT 0x02
  334. #define SSBM_ID_MUSIC_METALBATTLE 0x50
  335. #define SSBM_ID_MUSIC_BATTLEFIELD 0x51
  336. #define SSBM_ID_MUSIC_FINALDESTINATION 0x4e
  337. #define SSBM_ID_MUSIC_TARGET 0x53
  338. #define SSBM_ID_MUSIC_MULTIMAN1 0x26
  339. #define SSBM_ID_MUSIC_MULTIMAN2 0x27
  340.  
  341. /* Global Addresses */
  342.  
  343. #define SSBM_ADDR_CAMERAFOV 0x804DE338
  344. #define SSBM_ADDR_STOCKCOUNT 0x8045310e
  345. #define SSBM_ADDR_PERCENTDISPLAYP1 0x804530E0
  346. #define SSBM_ADDR_PERCENTDISPLAYP2 0x80453F70
  347. #define SSBM_ADDR_PERCENTDISPLAYP3 0x80454E00
  348. #define SSBM_ADDR_PERCENTDISPLAYP4 0x80455C90
  349. #define SSBM_ADDR_GAMELOOPFLAGS 0x80479d7c
  350. #define SSBM_ADDR_ITEMFREQUENCY 0x8045C370
  351. #define SSBM_ADDR_CHARACTERSELECTP1 0x803F0E08
  352. #define SSBM_ADDR_CHARACTERSELECTP2 0x803F0E2C
  353. #define SSBM_ADDR_CHARACTERSELECTP3 0x803F0E50
  354. #define SSBM_ADDR_CHARACTERSELECTP4 0x803F0E74
  355. #define SSBM_ADDR_STAGESELECTIONSCREENSELECTION 0x804D6CAD
  356. #define SSBM_ADDR_GLOBALPOWERONFRAMES 0x804d7420
  357. #define SSBM_ADDR_DATAPOINTERP1 0x80453130
  358. #define SSBM_ADDR_DATAPOINTERP2 0x80453FC0
  359. #define SSBM_ADDR_DATAPOINTERP3 0x80454E50
  360. #define SSBM_ADDR_DATAPOINTERP4 0x80455CE0
  361.  
  362. #define SSBM_ADDR_STALETABLEP1 0x8045313C
  363. #define SSBM_ADDR_STALETABLEP2 0x80453FCC
  364. #define SSBM_ADDR_STALETABLEP3 0x80454E5C
  365. #define SSBM_ADDR_STALETABLEP4 0x80455CEC
  366.  
  367. struct SSBM_stale_move {
  368.     unsigned int move_id:16;
  369.     unsigned int action_state:16;
  370. } SSBM_stale_move;
  371.  
  372. struct SSBM_stale_table {
  373.     unsigned int next_slot:32;
  374.     SSBM_stale_move stale_moves[10];
  375. } SSBM_stale_table;
  376.  
  377. #define SSBM_ADDR_GAMETIME 0x8046B6C8
  378. #define SSBM_ADDR_GAMETIMECOUNTER 0x8046B6CC
  379. #define SSBM_ADDR_TEAMMODEFLAG 0x804807C8
  380. #define SSBM_ADDR_SUDDENDEATH 0x8046DB6E
  381. #define SSBM_ADDR_NODAMAGEORKNOCKBACK 0x8046DB6D
  382. #define SSBM_ADDR_HUD 0x804D6D58
  383. #define SSBM_ADDR_GLOBALWIDTH 0x80BDC5F4
  384. #define SSBM_ADDR_GLOBALSPEED 0x80432A2C
  385. #define SSBM_ADDR_FRAMEADVANCE 0x80432A28
  386. #define SSBM_ADDR_GAMEPAUSE 0x80479D68
  387. #define SSBM_ADDR_DEFAULTMULTIPLAYERSETTINGS 0x803D4A48
  388. #define SSBM_ADDR_CURRENTMULTIPLAYERSETTINGS 0x8045BF10
  389.  
  390. // Bit Flags:  xxxx xxxx UDLR UDLR xxxS YXBA xLRZ UDRL
  391. // Nibbles: [0] ? [1] ? [2] C-Stick [3] Control Stick
  392. //          [4] Start Button [5] Right-Side Buttons [6] Top-of-Controller Buttons [7] D-Pad
  393. #define SSBM_ADDR_CONTROLLERDIGITALP1 0x804C1FAC
  394. #define SSBM_ADDR_CONTROLLERDIGITALPREVP1 0x804C1FB0
  395. // Unsigned Bytes 0x00-0x8C | Bytes: [0] Left Shoulder [1] Right Shoulder
  396. #define SSBM_ADDR_CONTROLLERSHOULDERP1 0x804C1FC8
  397. // Signed Bytes -79 - 79 (0xB1-0x4F) | Bytes: [0] Control Stick X [1] Control Stick Y [2] C-Stick X [3] C-Stick Y
  398. #define SSBM_ADDR_CONTROLLERANALOGBYTESP1 0x804C1FC4
  399. // 32-Bit Floats (-1 - 1) | Words: [0] Control Stick X [1] Control Stick Y [2] C-Stick X [3] C-Stick Y
  400. #define SSBM_ADDR_CONTROLLERANALOGFLOATSP1 0x804C1FCC
  401.  
  402. #define SSBM_ADDR_CONTROLLERDIGITALP2 0x804C1FF0
  403. #define SSBM_ADDR_CONTROLLERDIGITALPREVP2 0x804C1FF4
  404. #define SSBM_ADDR_CONTROLLERSHOULDERP2 0x804C200C
  405. #define SSBM_ADDR_CONTROLLERANALOGBYTESP2 0x804C2008
  406. #define SSBM_ADDR_CONTROLLERANALOGFLOATSP2 0x804C2010
  407.  
  408. #define SSBM_ADDR_CONTROLLERDIGITALP3 0x804C2034
  409. #define SSBM_ADDR_CONTROLLERDIGITALPREVP3 0x804C2038
  410. #define SSBM_ADDR_CONTROLLERSHOULDERP3 0x804C2050
  411. #define SSBM_ADDR_CONTROLLERANALOGBYTESP3 0x804C204C
  412. #define SSBM_ADDR_CONTROLLERANALOGFLOATSP3 0x804C2054
  413.  
  414. #define SSBM_ADDR_CONTROLLERDIGITALP4 0x804C2078
  415. #define SSBM_ADDR_CONTROLLERDIGITALPREVP4 0x804C207C
  416. #define SSBM_ADDR_CONTROLLERSHOULDERP4 0x804C2094
  417. #define SSBM_ADDR_CONTROLLERANALOGBYTESP4 0x804C2090
  418. #define SSBM_ADDR_CONTROLLERANALOGFLOATSP4 0x804C1FCC
  419.  
  420. #define SSBM_ADDR_DEBUGLEVEL 0x804D4A08
  421.  
  422.  
  423. #endif // SSBM_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement