Super Mario 64s source code (from a leak on 4chan so be careful)
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.

409 lines
22 KiB

6 years ago
  1. .include "macros.inc"
  2. .include "level_commands.inc"
  3. .section .level, "a"
  4. glabel level_main_scripts_entry
  5. load_mio0 /*seg*/ 0x04, /*romStart*/ _group0_mio0SegmentRomStart, /*romEnd*/ _group0_mio0SegmentRomEnd
  6. load_mio0 /*seg*/ 0x03, /*romStart*/ _common1_mio0SegmentRomStart, /*romEnd*/ _common1_mio0SegmentRomEnd
  7. load_raw /*seg*/ 0x17, /*romStart*/ _group0_geoSegmentRomStart, /*romEnd*/ _group0_geoSegmentRomEnd
  8. load_raw /*seg*/ 0x16, /*romStart*/ _common1_geoSegmentRomStart, /*romEnd*/ _common1_geoSegmentRomEnd
  9. load_raw /*seg*/ 0x13, /*romStart*/ _behaviorSegmentRomStart, /*romEnd*/ _behaviorSegmentRomEnd
  10. alloc_level_pool
  11. load_model_from_geo /*model*/ MODEL_MARIO, /*geo*/ mario_geo
  12. load_model_from_geo /*model*/ MODEL_SMOKE, /*geo*/ smoke_geo
  13. load_model_from_geo /*model*/ MODEL_SPARKLES, /*geo*/ sparkles_geo
  14. load_model_from_geo /*model*/ MODEL_BUBBLE, /*geo*/ bubble_geo
  15. load_model_from_geo /*model*/ MODEL_SPOT_ON_GROUND, /*geo*/ spot_on_ground_geo
  16. load_model_from_geo /*model*/ MODEL_WATER_WAVES_2, /*geo*/ water_waves2_geo
  17. load_model_from_geo /*model*/ MODEL_WATER_SPLASH, /*geo*/ water_splash_geo
  18. load_model_from_geo /*model*/ MODEL_WATER_WAVES, /*geo*/ water_waves_geo
  19. load_model_from_geo /*model*/ MODEL_YELLOW_COIN, /*geo*/ yellow_coin_geo
  20. load_model_from_geo /*model*/ MODEL_STAR, /*geo*/ star_geo
  21. load_model_from_geo /*model*/ MODEL_TRANSPARENT_STAR, /*geo*/ transparent_star_geo
  22. load_model_from_geo /*model*/ MODEL_WOODEN_SIGNPOST, /*geo*/ wooden_signpost_geo
  23. load_model_from_dl /*model*/ MODEL_SMALL_SNOW_BALL, /*dl*/ small_snow_ball_dl, /*layer*/ LAYER_ALPHA
  24. load_model_from_geo /*model*/ MODEL_RED_FLAME, /*geo*/ red_flame_geo
  25. load_model_from_geo /*model*/ MODEL_BLUE_FLAME, /*geo*/ blue_flame_geo
  26. load_model_from_geo /*model*/ MODEL_BURN_SMOKE, /*geo*/ burn_smoke_geo
  27. load_model_from_geo /*model*/ MODEL_LEAVES, /*geo*/ leaves_geo
  28. load_model_from_geo /*model*/ MODEL_PURPLE_MARBLE, /*geo*/ purple_marble_geo
  29. load_model_from_geo /*model*/ MODEL_FISH, /*geo*/ fish_geo
  30. load_model_from_geo /*model*/ MODEL_FISH_2, /*geo*/ fish2_geo
  31. load_model_from_geo /*model*/ MODEL_SPARKLES_ANIMATION, /*geo*/ sparkles_animation_geo
  32. load_model_from_dl /*model*/ MODEL_SAND_DUST, /*dl*/ sand_seg3_dl_0302BCD0, /*layer*/ LAYER_ALPHA
  33. load_model_from_geo /*model*/ MODEL_BUTTERFLY, /*geo*/ butterfly_geo
  34. load_model_from_geo /*model*/ MODEL_BURN_SMOKE_COPY, /*geo*/ burn_smoke_geo
  35. load_model_from_dl /*model*/ MODEL_PEBBLE, /*dl*/ pebble_seg3_dl_0301CB00, /*layer*/ LAYER_ALPHA
  36. load_model_from_geo /*model*/ MODEL_MIST, /*geo*/ mist_geo
  37. load_model_from_geo /*model*/ MODEL_WHITE_PUFF, /*geo*/ white_puff_geo
  38. load_model_from_dl /*model*/ MODEL_SNOWMAN_SNOW_BALL_DL, /*dl*/ snowman_snow_ball_dl, /*layer*/ LAYER_ALPHA
  39. load_model_from_geo /*model*/ MODEL_SNOWMAN_SNOW_BALL, /*geo*/ snowman_snow_ball_geo
  40. load_model_from_geo /*model*/ MODEL_YELLOW_COIN_NO_SHADOW, /*geo*/ yellow_coin_no_shadow_geo
  41. load_model_from_geo /*model*/ MODEL_BLUE_COIN, /*geo*/ blue_coin_geo
  42. load_model_from_geo /*model*/ MODEL_BLUE_COIN_NO_SHADOW, /*geo*/ blue_coin_no_shadow_geo
  43. load_model_from_geo /*model*/ MODEL_MARIOS_WINGED_METAL_CAP, /*geo*/ marios_winged_metal_cap_geo
  44. load_model_from_geo /*model*/ MODEL_MARIOS_METAL_CAP, /*geo*/ marios_metal_cap_geo
  45. load_model_from_geo /*model*/ MODEL_MARIOS_WING_CAP, /*geo*/ marios_wing_cap_geo
  46. load_model_from_geo /*model*/ MODEL_MARIOS_CAP, /*geo*/ marios_cap_geo
  47. load_model_from_geo /*model*/ MODEL_MARIOS_CAP, /*geo*/ marios_cap_geo # repeated
  48. load_model_from_geo /*model*/ MODEL_BOWSER_KEY, /*geo*/ bowser_key_geo
  49. load_model_from_geo /*model*/ MODEL_BOWSER_KEY_2, /*geo*/ bowser_key2_geo
  50. load_model_from_geo /*model*/ MODEL_RED_FLAME_SHADOW, /*geo*/ red_flame_shadow_geo
  51. load_model_from_geo /*model*/ MODEL_1UP, /*geo*/ mushroom_1up_geo
  52. load_model_from_geo /*model*/ MODEL_RED_COIN, /*geo*/ red_coin_geo
  53. load_model_from_geo /*model*/ MODEL_RED_COIN_NO_SHADOW, /*geo*/ red_coin_no_shadow_geo
  54. load_model_from_geo /*model*/ MODEL_NUMBER, /*geo*/ number_geo
  55. load_model_from_geo /*model*/ MODEL_EXPLOSION, /*geo*/ explosion_geo
  56. load_model_from_geo /*model*/ MODEL_DIRT_ANIMATION, /*geo*/ dirt_animation_geo
  57. load_model_from_geo /*model*/ MODEL_CARTOON_STAR, /*geo*/ cartoon_star_geo
  58. free_level_pool
  59. call /*arg*/ 0, /*func*/ lvl_init_from_save_file
  60. loop_begin
  61. execute /*seg*/ 0x14, /*script*/ _menuSegmentRomStart, /*scriptEnd*/ _menuSegmentRomEnd, /*entry*/ level_main_menu_entry_2
  62. jump_link /*target*/ script_func_local_1
  63. sleep /*frames*/ 1
  64. loop_until /*op*/ OP_LT, /*arg*/ 0
  65. jump_if /*op*/ OP_EQ, /*arg*/ -1, /*target*/ L2
  66. jump_if /*op*/ OP_EQ, /*arg*/ -2, /*target*/ L3
  67. jump_if /*op*/ OP_EQ, /*arg*/ -3, /*target*/ L4
  68. jump_if /*op*/ OP_EQ, /*arg*/ -8, /*target*/ L1
  69. jump_if /*op*/ OP_EQ, /*arg*/ -9, /*target*/ L5
  70. L1:
  71. exit_and_execute /*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_entry_1
  72. L2:
  73. exit_and_execute /*seg*/ 0x0E, /*script*/ _endingSegmentRomStart, /*scriptEnd*/ _endingSegmentRomEnd, /*entry*/ level_ending_entry
  74. L3:
  75. exit_and_execute /*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_entry_2
  76. L4:
  77. exit_and_execute /*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_entry_3
  78. L5:
  79. exit_and_execute /*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_entry_4
  80. script_func_local_1:
  81. get_or_set /*op*/ OP_GET, /*var*/ VAR_CURR_LEVEL_NUM
  82. jump_if /*op*/ OP_EQ, /*arg*/ 4, /*target*/ L6
  83. jump_if /*op*/ OP_EQ, /*arg*/ 5, /*target*/ L7
  84. jump_if /*op*/ OP_EQ, /*arg*/ 6, /*target*/ L8
  85. jump_if /*op*/ OP_EQ, /*arg*/ 7, /*target*/ L9
  86. jump_if /*op*/ OP_EQ, /*arg*/ 8, /*target*/ L10
  87. jump_if /*op*/ OP_EQ, /*arg*/ 9, /*target*/ L11
  88. jump_if /*op*/ OP_EQ, /*arg*/ 10, /*target*/ L12
  89. jump_if /*op*/ OP_EQ, /*arg*/ 11, /*target*/ L13
  90. jump_if /*op*/ OP_EQ, /*arg*/ 12, /*target*/ L14
  91. jump_if /*op*/ OP_EQ, /*arg*/ 13, /*target*/ L15
  92. jump_if /*op*/ OP_EQ, /*arg*/ 14, /*target*/ L16
  93. jump_if /*op*/ OP_EQ, /*arg*/ 15, /*target*/ L17
  94. jump_if /*op*/ OP_EQ, /*arg*/ 16, /*target*/ L18
  95. jump_if /*op*/ OP_EQ, /*arg*/ 17, /*target*/ L19
  96. jump_if /*op*/ OP_EQ, /*arg*/ 18, /*target*/ L20
  97. jump_if /*op*/ OP_EQ, /*arg*/ 19, /*target*/ L21
  98. jump_if /*op*/ OP_EQ, /*arg*/ 20, /*target*/ L22
  99. jump_if /*op*/ OP_EQ, /*arg*/ 21, /*target*/ L23
  100. jump_if /*op*/ OP_EQ, /*arg*/ 22, /*target*/ L24
  101. jump_if /*op*/ OP_EQ, /*arg*/ 23, /*target*/ L25
  102. jump_if /*op*/ OP_EQ, /*arg*/ 24, /*target*/ L26
  103. jump_if /*op*/ OP_EQ, /*arg*/ 25, /*target*/ L27
  104. jump_if /*op*/ OP_EQ, /*arg*/ 26, /*target*/ L28
  105. jump_if /*op*/ OP_EQ, /*arg*/ 27, /*target*/ L29
  106. jump_if /*op*/ OP_EQ, /*arg*/ 28, /*target*/ L30
  107. jump_if /*op*/ OP_EQ, /*arg*/ 29, /*target*/ L31
  108. jump_if /*op*/ OP_EQ, /*arg*/ 30, /*target*/ L32
  109. jump_if /*op*/ OP_EQ, /*arg*/ 31, /*target*/ L33
  110. jump_if /*op*/ OP_EQ, /*arg*/ 33, /*target*/ L34
  111. jump_if /*op*/ OP_EQ, /*arg*/ 34, /*target*/ L35
  112. jump_if /*op*/ OP_EQ, /*arg*/ 36, /*target*/ L36
  113. exit
  114. L6:
  115. execute /*seg*/ 0x0E, /*script*/ _bbhSegmentRomStart, /*scriptEnd*/ _bbhSegmentRomEnd, /*entry*/ level_bbh_entry
  116. return
  117. L7:
  118. execute /*seg*/ 0x0E, /*script*/ _ccmSegmentRomStart, /*scriptEnd*/ _ccmSegmentRomEnd, /*entry*/ level_ccm_entry
  119. return
  120. L8:
  121. execute /*seg*/ 0x0E, /*script*/ _castle_insideSegmentRomStart, /*scriptEnd*/ _castle_insideSegmentRomEnd, /*entry*/ level_castle_entry
  122. return
  123. L9:
  124. execute /*seg*/ 0x0E, /*script*/ _hmcSegmentRomStart, /*scriptEnd*/ _hmcSegmentRomEnd, /*entry*/ level_hmc_entry
  125. return
  126. L10:
  127. execute /*seg*/ 0x0E, /*script*/ _sslSegmentRomStart, /*scriptEnd*/ _sslSegmentRomEnd, /*entry*/ level_ssl_entry
  128. return
  129. L11:
  130. execute /*seg*/ 0x0E, /*script*/ _bobSegmentRomStart, /*scriptEnd*/ _bobSegmentRomEnd, /*entry*/ level_bob_entry
  131. return
  132. L12:
  133. execute /*seg*/ 0x0E, /*script*/ _slSegmentRomStart, /*scriptEnd*/ _slSegmentRomEnd, /*entry*/ level_sl_entry
  134. return
  135. L13:
  136. execute /*seg*/ 0x0E, /*script*/ _wdwSegmentRomStart, /*scriptEnd*/ _wdwSegmentRomEnd, /*entry*/ level_wdw_entry
  137. return
  138. L14:
  139. execute /*seg*/ 0x0E, /*script*/ _jrbSegmentRomStart, /*scriptEnd*/ _jrbSegmentRomEnd, /*entry*/ level_jrb_entry
  140. return
  141. L15:
  142. execute /*seg*/ 0x0E, /*script*/ _thiSegmentRomStart, /*scriptEnd*/ _thiSegmentRomEnd, /*entry*/ level_thi_entry
  143. return
  144. L16:
  145. execute /*seg*/ 0x0E, /*script*/ _ttcSegmentRomStart, /*scriptEnd*/ _ttcSegmentRomEnd, /*entry*/ level_ttc_entry
  146. return
  147. L17:
  148. execute /*seg*/ 0x0E, /*script*/ _rrSegmentRomStart, /*scriptEnd*/ _rrSegmentRomEnd, /*entry*/ level_rr_entry
  149. return
  150. L18:
  151. execute /*seg*/ 0x0E, /*script*/ _castle_groundsSegmentRomStart, /*scriptEnd*/ _castle_groundsSegmentRomEnd, /*entry*/ level_castle_grounds_entry
  152. return
  153. L19:
  154. execute /*seg*/ 0x0E, /*script*/ _bitdwSegmentRomStart, /*scriptEnd*/ _bitdwSegmentRomEnd, /*entry*/ level_bitdw_entry
  155. return
  156. L20:
  157. execute /*seg*/ 0x0E, /*script*/ _vcutmSegmentRomStart, /*scriptEnd*/ _vcutmSegmentRomEnd, /*entry*/ level_vcutm_entry
  158. return
  159. L21:
  160. execute /*seg*/ 0x0E, /*script*/ _bitfsSegmentRomStart, /*scriptEnd*/ _bitfsSegmentRomEnd, /*entry*/ level_bitfs_entry
  161. return
  162. L22:
  163. execute /*seg*/ 0x0E, /*script*/ _saSegmentRomStart, /*scriptEnd*/ _saSegmentRomEnd, /*entry*/ level_sa_entry
  164. return
  165. L23:
  166. execute /*seg*/ 0x0E, /*script*/ _bitsSegmentRomStart, /*scriptEnd*/ _bitsSegmentRomEnd, /*entry*/ level_bits_entry
  167. return
  168. L24:
  169. execute /*seg*/ 0x0E, /*script*/ _lllSegmentRomStart, /*scriptEnd*/ _lllSegmentRomEnd, /*entry*/ level_lll_entry
  170. return
  171. L25:
  172. execute /*seg*/ 0x0E, /*script*/ _dddSegmentRomStart, /*scriptEnd*/ _dddSegmentRomEnd, /*entry*/ level_ddd_entry
  173. return
  174. L26:
  175. execute /*seg*/ 0x0E, /*script*/ _wfSegmentRomStart, /*scriptEnd*/ _wfSegmentRomEnd, /*entry*/ level_wf_entry
  176. return
  177. L27:
  178. execute /*seg*/ 0x0E, /*script*/ _endingSegmentRomStart, /*scriptEnd*/ _endingSegmentRomEnd, /*entry*/ level_ending_entry
  179. return
  180. L28:
  181. execute /*seg*/ 0x0E, /*script*/ _castle_courtyardSegmentRomStart, /*scriptEnd*/ _castle_courtyardSegmentRomEnd, /*entry*/ level_castle_courtyard_entry
  182. return
  183. L29:
  184. execute /*seg*/ 0x0E, /*script*/ _pssSegmentRomStart, /*scriptEnd*/ _pssSegmentRomEnd, /*entry*/ level_pss_entry
  185. return
  186. L30:
  187. execute /*seg*/ 0x0E, /*script*/ _cotmcSegmentRomStart, /*scriptEnd*/ _cotmcSegmentRomEnd, /*entry*/ level_cotmc_entry
  188. return
  189. L31:
  190. execute /*seg*/ 0x0E, /*script*/ _totwcSegmentRomStart, /*scriptEnd*/ _totwcSegmentRomEnd, /*entry*/ level_totwc_entry
  191. return
  192. L32:
  193. execute /*seg*/ 0x0E, /*script*/ _bowser_1SegmentRomStart, /*scriptEnd*/ _bowser_1SegmentRomEnd, /*entry*/ level_bowser_1_entry
  194. return
  195. L33:
  196. execute /*seg*/ 0x0E, /*script*/ _wmotrSegmentRomStart, /*scriptEnd*/ _wmotrSegmentRomEnd, /*entry*/ level_wmotr_entry
  197. return
  198. L34:
  199. execute /*seg*/ 0x0E, /*script*/ _bowser_2SegmentRomStart, /*scriptEnd*/ _bowser_2SegmentRomEnd, /*entry*/ level_bowser_2_entry
  200. return
  201. L35:
  202. execute /*seg*/ 0x0E, /*script*/ _bowser_3SegmentRomStart, /*scriptEnd*/ _bowser_3SegmentRomEnd, /*entry*/ level_bowser_3_entry
  203. return
  204. L36:
  205. execute /*seg*/ 0x0E, /*script*/ _ttmSegmentRomStart, /*scriptEnd*/ _ttmSegmentRomEnd, /*entry*/ level_ttm_entry
  206. return
  207. glabel script_func_global_1
  208. load_model_from_geo /*model*/ MODEL_BLUE_COIN_SWITCH, /*geo*/ blue_coin_switch_geo
  209. load_model_from_geo /*model*/ MODEL_AMP, /*geo*/ amp_geo
  210. load_model_from_geo /*model*/ MODEL_PURPLE_SWITCH, /*geo*/ purple_switch_geo
  211. load_model_from_geo /*model*/ MODEL_CHECKERBOARD_PLATFORM, /*geo*/ checkerboard_platform_geo
  212. load_model_from_geo /*model*/ MODEL_BREAKABLE_BOX, /*geo*/ breakable_box_geo
  213. load_model_from_geo /*model*/ MODEL_BREAKABLE_BOX_SMALL, /*geo*/ breakable_box_small_geo
  214. load_model_from_geo /*model*/ MODEL_EXCLAMATION_BOX_OUTLINE, /*geo*/ exclamation_box_outline_geo
  215. load_model_from_geo /*model*/ MODEL_EXCLAMATION_BOX, /*geo*/ exclamation_box_geo
  216. load_model_from_geo /*model*/ MODEL_GOOMBA, /*geo*/ goomba_geo
  217. load_model_from_dl /*model*/ MODEL_EXCLAMATION_POINT, /*dl*/ exclamation_box_outline_seg8_dl_08025F08, /*layer*/ LAYER_ALPHA
  218. load_model_from_geo /*model*/ MODEL_KOOPA_SHELL, /*geo*/ koopa_shell_geo
  219. load_model_from_geo /*model*/ MODEL_METAL_BOX, /*geo*/ metal_box_geo
  220. load_model_from_dl /*model*/ MODEL_METAL_BOX_DL, /*dl*/ metal_box_dl, /*layer*/ LAYER_OPAQUE
  221. load_model_from_geo /*model*/ MODEL_BLACK_BOBOMB, /*geo*/ black_bobomb_geo
  222. load_model_from_geo /*model*/ MODEL_BOBOMB_BUDDY, /*geo*/ bobomb_buddy_geo
  223. load_model_from_dl /*model*/ MODEL_DL_CANNON_LID, /*dl*/ cannon_lid_seg8_dl_080048E0, /*layer*/ LAYER_OPAQUE
  224. load_model_from_geo /*model*/ MODEL_BOWLING_BALL, /*geo*/ bowling_ball_geo
  225. load_model_from_geo /*model*/ MODEL_CANNON_BARREL, /*geo*/ cannon_barrel_geo
  226. load_model_from_geo /*model*/ MODEL_CANNON_BASE, /*geo*/ cannon_base_geo
  227. load_model_from_geo /*model*/ MODEL_HEART, /*geo*/ heart_geo
  228. load_model_from_geo /*model*/ MODEL_FLYGUY, /*geo*/ flyguy_geo
  229. load_model_from_geo /*model*/ MODEL_CHUCKYA, /*geo*/ chuckya_geo
  230. load_model_from_geo /*model*/ MODEL_BOWLING_BALL_2, /*geo*/ bowling_ball2_geo
  231. return
  232. glabel script_func_global_2
  233. load_model_from_geo /*model*/ MODEL_BULLET_BILL, /*geo*/ bullet_bill_geo
  234. load_model_from_geo /*model*/ MODEL_YELLOW_SPHERE, /*geo*/ yellow_sphere_geo
  235. load_model_from_geo /*model*/ MODEL_HOOT, /*geo*/ hoot_geo
  236. load_model_from_geo /*model*/ MODEL_YOSHI_EGG, /*geo*/ yoshi_egg_geo
  237. load_model_from_geo /*model*/ MODEL_THWOMP, /*geo*/ thwomp_geo
  238. load_model_from_geo /*model*/ MODEL_HEAVE_HO, /*geo*/ heave_ho_geo
  239. return
  240. glabel script_func_global_3
  241. load_model_from_geo /*model*/ MODEL_BLARGG, /*geo*/ blargg_geo
  242. load_model_from_geo /*model*/ MODEL_BULLY, /*geo*/ bully_geo
  243. load_model_from_geo /*model*/ MODEL_BULLY_BOSS, /*geo*/ bully_boss_geo
  244. return
  245. glabel script_func_global_4
  246. load_model_from_geo /*model*/ MODEL_WATER_BOMB, /*geo*/ water_bomb_geo
  247. load_model_from_geo /*model*/ MODEL_WATER_BOMB_SHADOW, /*geo*/ water_bomb_shadow_geo
  248. load_model_from_geo /*model*/ MODEL_KING_BOBOMB, /*geo*/ king_bobomb_geo
  249. return
  250. glabel script_func_global_5
  251. load_model_from_geo /*model*/ MODEL_MANTA_RAY, /*geo*/ manta_seg5_geo_05008D14
  252. load_model_from_geo /*model*/ MODEL_UNAGI, /*geo*/ unagi_geo
  253. load_model_from_geo /*model*/ MODEL_SUSHI, /*geo*/ sushi_geo
  254. load_model_from_dl /*model*/ MODEL_DL_WHIRLPOOL, /*dl*/ whirlpool_seg5_dl_05013CB8, /*layer*/ LAYER_TRANSPARENT
  255. load_model_from_geo /*model*/ MODEL_CLAM_SHELL, /*geo*/ clam_shell_geo
  256. return
  257. glabel script_func_global_6
  258. load_model_from_geo /*model*/ MODEL_POKEY_HEAD, /*geo*/ pokey_head_geo
  259. load_model_from_geo /*model*/ MODEL_POKEY_BODY_PART, /*geo*/ pokey_body_part_geo
  260. load_model_from_geo /*model*/ MODEL_TORNADO, /*geo*/ tornado_seg5_geo_05014630
  261. load_model_from_geo /*model*/ MODEL_KLEPTO, /*geo*/ klepto_geo
  262. load_model_from_geo /*model*/ MODEL_EYEROK, /*geo*/ eyerok_geo
  263. load_model_from_geo /*model*/ MODEL_EYEROK_2, /*geo*/ eyerok2_geo
  264. return
  265. glabel script_func_global_7
  266. load_model_from_dl /*model*/ MODEL_DL_MONTY_MOLE_HOLE, /*dl*/ monty_mole_hole_seg5_dl_05000840, /*layer*/ LAYER_TRANSPARENT_DECAL
  267. load_model_from_geo /*model*/ MODEL_MONTY_MOLE, /*geo*/ monty_mole_geo
  268. load_model_from_geo /*model*/ MODEL_UKIKI, /*geo*/ ukiki_geo
  269. load_model_from_geo /*model*/ MODEL_FWOOSH, /*geo*/ fwoosh_geo
  270. return
  271. glabel script_func_global_8
  272. load_model_from_geo /*model*/ MODEL_SPINDRIFT, /*geo*/ spindrift_geo
  273. load_model_from_geo /*model*/ MODEL_MR_BLIZZARD_HIDDEN, /*geo*/ mr_blizzard_hidden_geo
  274. load_model_from_geo /*model*/ MODEL_MR_BLIZZARD, /*geo*/ mr_blizzard_geo
  275. load_model_from_geo /*model*/ MODEL_PENGUIN, /*geo*/ penguin_geo
  276. return
  277. glabel script_func_global_9
  278. load_model_from_dl /*model*/ MODEL_CAP_SWITCH_EXCLAMATION, /*dl*/ cap_switch_exclamation_seg5_dl_05002E00, /*layer*/ LAYER_ALPHA
  279. load_model_from_geo /*model*/ MODEL_CAP_SWITCH, /*geo*/ cap_switch_geo
  280. load_model_from_dl /*model*/ MODEL_CAP_SWITCH_BASE, /*dl*/ cap_switch_base_seg5_dl_05003120, /*layer*/ LAYER_OPAQUE
  281. return
  282. glabel script_func_global_10
  283. load_model_from_geo /*model*/ MODEL_BOO, /*geo*/ boo_geo
  284. load_model_from_geo /*model*/ MODEL_SMALL_KEY, /*geo*/ small_key_geo
  285. load_model_from_geo /*model*/ MODEL_HAUNTED_CHAIR, /*geo*/ haunted_chair_geo
  286. load_model_from_geo /*model*/ MODEL_MAD_PIANO, /*geo*/ mad_piano_geo
  287. load_model_from_geo /*model*/ MODEL_BOOKEND_PART, /*geo*/ bookend_part_geo
  288. load_model_from_geo /*model*/ MODEL_BOOKEND, /*geo*/ bookend_geo
  289. load_model_from_geo /*model*/ MODEL_HAUNTED_CAGE, /*geo*/ haunted_cage_geo
  290. return
  291. glabel script_func_global_11
  292. load_model_from_geo /*model*/ MODEL_BIRDS, /*geo*/ birds_geo
  293. load_model_from_geo /*model*/ MODEL_PEACH, /*geo*/ peach_geo
  294. load_model_from_geo /*model*/ MODEL_YOSHI, /*geo*/ yoshi_geo
  295. return
  296. glabel script_func_global_12
  297. load_model_from_geo /*model*/ MODEL_ENEMY_LAKITU, /*geo*/ enemy_lakitu_geo
  298. load_model_from_geo /*model*/ MODEL_SPINY_BALL, /*geo*/ spiny_ball_geo
  299. load_model_from_geo /*model*/ MODEL_SPINY, /*geo*/ spiny_geo
  300. load_model_from_geo /*model*/ MODEL_WIGGLER, /*geo*/ wiggler_geo
  301. load_model_from_geo /*model*/ MODEL_WIGGLER_BODY_PART, /*geo*/ wiggler2_geo
  302. load_model_from_geo /*model*/ MODEL_BUBBA, /*geo*/ bubba_geo
  303. return
  304. glabel script_func_global_13
  305. load_model_from_geo /*model*/ MODEL_BOWSER, /*geo*/ bowser_geo
  306. load_model_from_geo /*model*/ MODEL_BOWSER_BOMB2, /*geo*/ bowser_bomb_geo
  307. load_model_from_geo /*model*/ MODEL_BOWSER_BOMB, /*geo*/ bowser_bomb_geo
  308. load_model_from_geo /*model*/ MODEL_BOWSER_SMOKE, /*geo*/ bowser_impact_smoke_geo
  309. load_model_from_geo /*model*/ MODEL_BOWSER_FLAMES, /*geo*/ bowser_flames_geo
  310. load_model_from_geo /*model*/ MODEL_BOWSER_WAVE, /*geo*/ invisible_bowser_accessory_geo
  311. load_model_from_geo /*model*/ MODEL_BOWSER2, /*geo*/ bowser2_geo
  312. return
  313. glabel script_func_global_14
  314. load_model_from_geo /*model*/ MODEL_BUB, /*geo*/ bub_geo
  315. load_model_from_geo /*model*/ MODEL_TREASURE_CHEST_BASE, /*geo*/ treasure_chest_base_geo
  316. load_model_from_geo /*model*/ MODEL_TREASURE_CHEST_LID, /*geo*/ treasure_chest_lid_geo
  317. load_model_from_geo /*model*/ MODEL_CYAN_FISH, /*geo*/ cyan_fish_geo
  318. load_model_from_geo /*model*/ MODEL_WATER_RING, /*geo*/ water_ring_geo
  319. load_model_from_geo /*model*/ MODEL_WATER_MINE, /*geo*/ water_mine_geo
  320. load_model_from_geo /*model*/ MODEL_SEAWEED, /*geo*/ seaweed_geo
  321. load_model_from_geo /*model*/ MODEL_SKEETER, /*geo*/ skeeter_geo
  322. return
  323. glabel script_func_global_15
  324. load_model_from_geo /*model*/ MODEL_PIRANHA_PLANT, /*geo*/ piranha_plant_geo
  325. load_model_from_geo /*model*/ MODEL_WHOMP, /*geo*/ whomp_geo
  326. load_model_from_geo /*model*/ MODEL_KOOPA_WITH_SHELL, /*geo*/ koopa_with_shell_geo
  327. load_model_from_geo /*model*/ MODEL_KOOPA_WITHOUT_SHELL, /*geo*/ koopa_without_shell_geo
  328. load_model_from_geo /*model*/ MODEL_METALLIC_BALL, /*geo*/ metallic_ball_geo
  329. load_model_from_geo /*model*/ MODEL_CHAIN_CHOMP, /*geo*/ chain_chomp
  330. load_model_from_geo /*model*/ MODEL_KOOPA_FLAG, /*geo*/ koopa_flag_geo
  331. load_model_from_geo /*model*/ MODEL_WOODEN_POST, /*geo*/ wooden_post_geo
  332. return
  333. glabel script_func_global_16
  334. load_model_from_geo /*model*/ MODEL_MIPS, /*geo*/ mips_geo
  335. load_model_from_geo /*model*/ MODEL_BOO_CASTLE, /*geo*/ boo_castle_geo
  336. load_model_from_geo /*model*/ MODEL_LAKITU, /*geo*/ lakitu_geo
  337. load_model_from_geo /*model*/ MODEL_TOAD, /*geo*/ toad_geo
  338. return
  339. glabel script_func_global_17
  340. load_model_from_geo /*model*/ MODEL_CHILL_BULLY, /*geo*/ chilly_chief_seg6_geo
  341. load_model_from_geo /*model*/ MODEL_BIG_CHILL_BULLY, /*geo*/ chilly_chief_seg6_geo2
  342. load_model_from_geo /*model*/ MODEL_MONEYBAG, /*geo*/ moneybag_geo
  343. return
  344. glabel script_func_global_18
  345. load_model_from_geo /*model*/ MODEL_SWOOP, /*geo*/ swoop_geo
  346. load_model_from_geo /*model*/ MODEL_SCUTTLEBUG, /*geo*/ scuttlebug_geo
  347. load_model_from_geo /*model*/ MODEL_MR_I_IRIS, /*geo*/ mr_i_iris_geo
  348. load_model_from_geo /*model*/ MODEL_MR_I, /*geo*/ mr_i_geo
  349. load_model_from_geo /*model*/ MODEL_DORRIE, /*geo*/ dorrie_geo
  350. load_model_from_geo /*model*/ MODEL_SNUFIT, /*geo*/ snufit_geo
  351. return
  352. .align 4