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.

129 lines
10 KiB

6 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_SSL_PYRAMID_TOP, /*pos*/ -2047, 1536, -1023, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPyramidTop
  3. return
  4. script_func_local_2:
  5. object /*model*/ MODEL_SSL_TOX_BOX, /*pos*/ -1284, 0, -5895, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvToxBox
  6. object /*model*/ MODEL_SSL_TOX_BOX, /*pos*/ 1283, 0, -4865, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvToxBox
  7. object /*model*/ MODEL_SSL_TOX_BOX, /*pos*/ 4873, 0, -3335, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvToxBox
  8. object /*model*/ MODEL_TORNADO, /*pos*/ -3600, -200, 2940, /*angle*/ 0, 0, 0, /*behParam*/ 0x00120000, /*beh*/ bhvTornado
  9. object /*model*/ MODEL_TORNADO, /*pos*/ 1017, -200, 3832, /*angle*/ 0, 0, 0, /*behParam*/ 0x00190000, /*beh*/ bhvTornado, /*acts*/ ACT_4 | ACT_5 | ACT_6
  10. object /*model*/ MODEL_TORNADO, /*pos*/ 3066, -200, 400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00190000, /*beh*/ bhvTornado, /*acts*/ ACT_4 | ACT_5 | ACT_6
  11. object /*model*/ MODEL_KLEPTO, /*pos*/ 2200, 1174, -2820, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvKlepto, /*acts*/ ACT_1
  12. object /*model*/ MODEL_KLEPTO, /*pos*/ -5963, 573, -4784, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvKlepto, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6
  13. return
  14. script_func_local_3:
  15. object /*model*/ MODEL_STAR, /*pos*/ -2050, 1200, -580, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  16. object /*model*/ MODEL_NONE, /*pos*/ 6000, 800, 3500, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS
  17. return
  18. script_func_local_4:
  19. object /*model*/ MODEL_NONE, /*pos*/ 2867, 640, 2867, /*angle*/ 0, 0, 0, /*behParam*/ 0x004D0000, /*beh*/ bhvPoleGrabbing
  20. object /*model*/ MODEL_NONE, /*pos*/ 0, 3200, 1331, /*angle*/ 0, 0, 0, /*behParam*/ 0x005C0000, /*beh*/ bhvPoleGrabbing
  21. object /*model*/ MODEL_SSL_GRINDEL, /*pos*/ 3297, 0, 95, /*angle*/ 0, 0, 0, /*behParam*/ 0x001C0000, /*beh*/ bhvGrindel
  22. object /*model*/ MODEL_SSL_GRINDEL, /*pos*/ -870, 3840, 105, /*angle*/ 0, 180, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHorizontalGrindel
  23. object /*model*/ MODEL_SSL_GRINDEL, /*pos*/ -3362, 0, -1385, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHorizontalGrindel
  24. object /*model*/ MODEL_SSL_SPINDEL, /*pos*/ -2458, 2109, -1430, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSpindel
  25. object /*model*/ MODEL_SSL_MOVING_PYRAMID_WALL, /*pos*/ 858, 1927, -2307, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSslMovingPyramidWall
  26. object /*model*/ MODEL_SSL_MOVING_PYRAMID_WALL, /*pos*/ 730, 1927, -2307, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvSslMovingPyramidWall
  27. object /*model*/ MODEL_SSL_MOVING_PYRAMID_WALL, /*pos*/ 1473, 2567, -2307, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvSslMovingPyramidWall
  28. object /*model*/ MODEL_SSL_MOVING_PYRAMID_WALL, /*pos*/ 1345, 2567, -2307, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvSslMovingPyramidWall
  29. object /*model*/ MODEL_SSL_PYRAMID_ELEVATOR, /*pos*/ 0, 4966, 256, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPyramidElevator
  30. object /*model*/ MODEL_NONE, /*pos*/ 1198, -133, 2396, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSandSoundLoop
  31. object /*model*/ MODEL_NONE, /*pos*/ 7, 1229, -708, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSandSoundLoop
  32. object /*model*/ MODEL_NONE, /*pos*/ 7, 4317, -708, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSandSoundLoop
  33. return
  34. script_func_local_5:
  35. object /*model*/ MODEL_STAR, /*pos*/ 500, 5050, -500, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  36. object /*model*/ MODEL_NONE, /*pos*/ 900, 1400, 2350, /*angle*/ 0, 0, 0, /*behParam*/ 0x05040000, /*beh*/ bhvHiddenStar, /*acts*/ ALL_ACTS
  37. return
  38. script_func_local_6:
  39. object /*model*/ MODEL_NONE, /*pos*/ 0, -1534, -3693, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvEyerokBoss
  40. return
  41. glabel level_ssl_entry
  42. init_level
  43. load_mio0 /*seg*/ 0x07, /*romStart*/ _ssl_segment_7SegmentRomStart, /*romEnd*/ _ssl_segment_7SegmentRomEnd
  44. load_mio0 /*seg*/ 0x0A, /*romStart*/ _ssl_skybox_mio0SegmentRomStart, /*romEnd*/ _ssl_skybox_mio0SegmentRomEnd
  45. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _generic_mio0SegmentRomStart, /*romEnd*/ _generic_mio0SegmentRomEnd
  46. load_mio0 /*seg*/ 0x05, /*romStart*/ _group5_mio0SegmentRomStart, /*romEnd*/ _group5_mio0SegmentRomEnd
  47. load_raw /*seg*/ 0x0C, /*romStart*/ _group5_geoSegmentRomStart, /*romEnd*/ _group5_geoSegmentRomEnd
  48. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  49. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  50. alloc_level_pool
  51. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  52. jump_link /*target*/ script_func_global_1
  53. jump_link /*target*/ script_func_global_6
  54. load_model_from_geo /*model*/ MODEL_SSL_PALM_TREE, /*geo*/ palm_tree_geo
  55. load_model_from_geo /*model*/ MODEL_LEVEL_GEOMETRY_03, /*geo*/ ssl_geo_0005C0
  56. load_model_from_geo /*model*/ MODEL_LEVEL_GEOMETRY_04, /*geo*/ ssl_geo_0005D8
  57. load_model_from_geo /*model*/ MODEL_SSL_PYRAMID_TOP, /*geo*/ ssl_geo_000618
  58. load_model_from_geo /*model*/ MODEL_SSL_GRINDEL, /*geo*/ ssl_geo_000734
  59. load_model_from_geo /*model*/ MODEL_SSL_SPINDEL, /*geo*/ ssl_geo_000764
  60. load_model_from_geo /*model*/ MODEL_SSL_MOVING_PYRAMID_WALL, /*geo*/ ssl_geo_000794
  61. load_model_from_geo /*model*/ MODEL_SSL_PYRAMID_ELEVATOR, /*geo*/ ssl_geo_0007AC
  62. load_model_from_geo /*model*/ MODEL_SSL_TOX_BOX, /*geo*/ ssl_geo_000630
  63. area /*index*/ 1, /*geo*/ ssl_geo_000648
  64. object /*model*/ MODEL_NONE, /*pos*/ 653, 1038, 6566, /*angle*/ 0, 90, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps74
  65. object /*model*/ MODEL_NONE, /*pos*/ -2048, 0, 56, /*angle*/ 0, 0, 0, /*behParam*/ 0x00140000, /*beh*/ bhvWarp
  66. object /*model*/ MODEL_NONE, /*pos*/ -2048, 768, -1024, /*angle*/ 0, 0, 0, /*behParam*/ 0x0F1E0000, /*beh*/ bhvWarp
  67. object /*model*/ MODEL_NONE, /*pos*/ 6930, 0, -4871, /*angle*/ 0, 159, 0, /*behParam*/ 0x001F0000, /*beh*/ bhvFadingWarp
  68. object /*model*/ MODEL_NONE, /*pos*/ -5943, 0, -4903, /*angle*/ 0, 49, 0, /*behParam*/ 0x00200000, /*beh*/ bhvFadingWarp
  69. warp_node /*id*/ 0x0A, /*destLevel*/ 0x08, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  70. warp_node /*id*/ 0x14, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*unk6*/ 0x8000
  71. warp_node /*id*/ 0x1E, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x14, /*unk6*/ 0x8000
  72. warp_node /*id*/ 0x1F, /*destLevel*/ 0x08, /*destArea*/ 0x01, /*destNode*/ 0x20, /*unk6*/ 0x0000
  73. warp_node /*id*/ 0x20, /*destLevel*/ 0x08, /*destArea*/ 0x01, /*destNode*/ 0x1F, /*unk6*/ 0x0000
  74. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x33, /*unk6*/ 0x0000
  75. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x65, /*unk6*/ 0x0000
  76. jump_link /*target*/ script_func_local_1
  77. jump_link /*target*/ script_func_local_2
  78. jump_link /*target*/ script_func_local_3
  79. terrain /*terrainData*/ ssl_seg7_area_1_collision
  80. macro_objects /*objList*/ ssl_seg7_area_1_macro_objs
  81. set_music /*unk2*/ 0x0000, /*seq*/ SEQ_LEVEL_HOT
  82. terrain_type /*terrainType*/ 0x0003
  83. end_area
  84. area /*index*/ 2, /*geo*/ ssl_geo_0007CC
  85. object /*model*/ MODEL_NONE, /*pos*/ 0, 300, 6451, /*angle*/ 0, 180, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps64
  86. object /*model*/ MODEL_NONE, /*pos*/ 0, 5500, 256, /*angle*/ 0, 180, 0, /*behParam*/ 0x00140000, /*beh*/ bhvWarps64
  87. object /*model*/ MODEL_NONE, /*pos*/ 3070, 1280, 2900, /*angle*/ 0, 180, 0, /*behParam*/ 0x00150000, /*beh*/ bhvFadingWarp
  88. object /*model*/ MODEL_NONE, /*pos*/ 2546, 1150, -2647, /*angle*/ 0, 78, 0, /*behParam*/ 0x00160000, /*beh*/ bhvFadingWarp
  89. warp_node /*id*/ 0x0A, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  90. warp_node /*id*/ 0x14, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x14, /*unk6*/ 0x0000
  91. warp_node /*id*/ 0x15, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x16, /*unk6*/ 0x0000
  92. warp_node /*id*/ 0x16, /*destLevel*/ 0x08, /*destArea*/ 0x02, /*destNode*/ 0x15, /*unk6*/ 0x0000
  93. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x33, /*unk6*/ 0x0000
  94. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x65, /*unk6*/ 0x0000
  95. jump_link /*target*/ script_func_local_4
  96. jump_link /*target*/ script_func_local_5
  97. instant_warp /*index*/ 3, /*destArea*/ 3, /*displace*/ 0, 0, 0
  98. terrain /*terrainData*/ ssl_seg7_area_2_collision
  99. macro_objects /*objList*/ ssl_seg7_area_2_macro_objs
  100. set_music /*unk2*/ 0x0004, /*seq*/ SEQ_LEVEL_UNDERGROUND
  101. terrain_type /*terrainType*/ 0x0001
  102. end_area
  103. area /*index*/ 3, /*geo*/ ssl_geo_00088C
  104. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x33, /*unk6*/ 0x0000
  105. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x65, /*unk6*/ 0x0000
  106. jump_link /*target*/ script_func_local_6
  107. terrain /*terrainData*/ ssl_seg7_area_3_collision
  108. macro_objects /*objList*/ ssl_seg7_area_3_macro_objs
  109. instant_warp /*index*/ 2, /*destArea*/ 2, /*displace*/ 0, 0, 0
  110. set_music /*unk2*/ 0x0004, /*seq*/ SEQ_LEVEL_UNDERGROUND
  111. terrain_type /*terrainType*/ 0x0001
  112. end_area
  113. free_level_pool
  114. mario_pos /*area*/ 1, /*yaw*/ 88, /*pos*/ 653, 38, 6566
  115. call /*arg*/ 0, /*func*/ lvl_init_or_update
  116. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  117. clear_level
  118. sleep_before_exit /*frames*/ 1
  119. exit