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.

87 lines
6.2 KiB

5 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_STAR, /*pos*/ 700, 4500, 690, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  3. object /*model*/ MODEL_STAR, /*pos*/ 4350, 1350, 4350, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  4. object /*model*/ MODEL_NONE, /*pos*/ 5000, 1200, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS
  5. return
  6. script_func_local_2:
  7. object /*model*/ MODEL_NONE, /*pos*/ 977, 1024, 2075, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSnowMoundSpawn
  8. return
  9. script_func_local_3:
  10. object /*model*/ MODEL_PENGUIN, /*pos*/ 1715, 3328, 518, /*angle*/ 0, -51, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWalkingPenguin
  11. object /*model*/ MODEL_NONE, /*pos*/ 700, 3428, 700, /*angle*/ 0, 30, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSnowmanWindBlowing
  12. object /*model*/ MODEL_NONE, /*pos*/ 480, 2300, 1370, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvIgloo
  13. object /*model*/ MODEL_BIG_CHILL_BULLY, /*pos*/ 315, 1331, -4852, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvBigChillBully
  14. object /*model*/ MODEL_MR_BLIZZARD_HIDDEN, /*pos*/ 2954, 970, 750, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvMrBlizzard
  15. return
  16. script_func_local_4:
  17. object /*model*/ MODEL_STAR, /*pos*/ 0, 500, 1000, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  18. return
  19. glabel level_sl_entry
  20. init_level
  21. load_mio0 /*seg*/ 0x07, /*romStart*/ _sl_segment_7SegmentRomStart, /*romEnd*/ _sl_segment_7SegmentRomEnd
  22. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _snow_mio0SegmentRomStart, /*romEnd*/ _snow_mio0SegmentRomEnd
  23. load_mio0 /*seg*/ 0x0B, /*romStart*/ _effect_mio0SegmentRomStart, /*romEnd*/ _effect_mio0SegmentRomEnd
  24. load_mio0 /*seg*/ 0x0A, /*romStart*/ _ccm_skybox_mio0SegmentRomStart, /*romEnd*/ _ccm_skybox_mio0SegmentRomEnd
  25. load_mio0 /*seg*/ 0x05, /*romStart*/ _group7_mio0SegmentRomStart, /*romEnd*/ _group7_mio0SegmentRomEnd
  26. load_raw /*seg*/ 0x0C, /*romStart*/ _group7_geoSegmentRomStart, /*romEnd*/ _group7_geoSegmentRomEnd
  27. load_mio0 /*seg*/ 0x06, /*romStart*/ _group16_mio0SegmentRomStart, /*romEnd*/ _group16_mio0SegmentRomEnd
  28. load_raw /*seg*/ 0x0D, /*romStart*/ _group16_geoSegmentRomStart, /*romEnd*/ _group16_geoSegmentRomEnd
  29. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  30. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  31. alloc_level_pool
  32. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  33. jump_link /*target*/ script_func_global_1
  34. jump_link /*target*/ script_func_global_8
  35. jump_link /*target*/ script_func_global_17
  36. load_model_from_geo /*model*/ MODEL_SL_SNOW_TRIANGLE, /*geo*/ sl_geo_000390
  37. load_model_from_geo /*model*/ MODEL_SL_CRACKED_ICE, /*geo*/ sl_geo_000360
  38. load_model_from_geo /*model*/ MODEL_SL_CRACKED_ICE_CHUNK, /*geo*/ sl_geo_000378
  39. load_model_from_geo /*model*/ MODEL_SL_SNOW_TREE, /*geo*/ snow_tree_geo
  40. area /*index*/ 1, /*geo*/ sl_geo_0003A8
  41. object /*model*/ MODEL_NONE, /*pos*/ 5541, 2024, 443, /*angle*/ 0, 270, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps74
  42. object /*model*/ MODEL_NONE, /*pos*/ 257, 2150, 1399, /*angle*/ 0, 290, 0, /*behParam*/ 0x000B0000, /*beh*/ bhvWarps60
  43. object /*model*/ MODEL_NONE, /*pos*/ 569, 2150, 1336, /*angle*/ 0, 0, 0, /*behParam*/ 0x060C0000, /*beh*/ bhvWarp
  44. object /*model*/ MODEL_NONE, /*pos*/ 5468, 1056, -5400, /*angle*/ 0, -20, 0, /*behParam*/ 0x000D0000, /*beh*/ bhvFadingWarp
  45. object /*model*/ MODEL_NONE, /*pos*/ -3698, 1024, -1237, /*angle*/ 0, 6, 0, /*behParam*/ 0x000E0000, /*beh*/ bhvFadingWarp
  46. warp_node /*id*/ 0x0A, /*destLevel*/ 0x0A, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  47. warp_node /*id*/ 0x0B, /*destLevel*/ 0x0A, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*unk6*/ 0x0000
  48. warp_node /*id*/ 0x0C, /*destLevel*/ 0x0A, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  49. warp_node /*id*/ 0x0D, /*destLevel*/ 0x0A, /*destArea*/ 0x01, /*destNode*/ 0x0E, /*unk6*/ 0x0000
  50. warp_node /*id*/ 0x0E, /*destLevel*/ 0x0A, /*destArea*/ 0x01, /*destNode*/ 0x0D, /*unk6*/ 0x0000
  51. jump_link /*target*/ script_func_local_1
  52. jump_link /*target*/ script_func_local_2
  53. jump_link /*target*/ script_func_local_3
  54. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x36, /*unk6*/ 0x0000
  55. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x68, /*unk6*/ 0x0000
  56. terrain /*terrainData*/ sl_seg7_area_1_collision
  57. macro_objects /*objList*/ sl_seg7_area_1_macro_objs
  58. set_music /*unk2*/ 0x0000, /*seq*/ SEQ_LEVEL_SNOW
  59. terrain_type /*terrainType*/ 0x0002
  60. end_area
  61. area /*index*/ 2, /*geo*/ sl_geo_000484
  62. object /*model*/ MODEL_NONE, /*pos*/ 0, 0, 2867, /*angle*/ 0, 180, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps60
  63. object /*model*/ MODEL_NONE, /*pos*/ 0, 0, 3277, /*angle*/ 0, 0, 0, /*behParam*/ 0x140B0000, /*beh*/ bhvWarp
  64. warp_node /*id*/ 0x0A, /*destLevel*/ 0x0A, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  65. warp_node /*id*/ 0x0B, /*destLevel*/ 0x0A, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*unk6*/ 0x0000
  66. jump_link /*target*/ script_func_local_4
  67. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x36, /*unk6*/ 0x0000
  68. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x68, /*unk6*/ 0x0000
  69. terrain /*terrainData*/ sl_seg7_area_2_collision
  70. macro_objects /*objList*/ sl_seg7_area_2_macro_objs
  71. set_music /*unk2*/ 0x0004, /*seq*/ SEQ_LEVEL_UNDERGROUND
  72. terrain_type /*terrainType*/ 0x0002
  73. end_area
  74. free_level_pool
  75. mario_pos /*area*/ 1, /*yaw*/ 270, /*pos*/ 5541, 1024, 443
  76. call /*arg*/ 0, /*func*/ lvl_init_or_update
  77. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  78. clear_level
  79. sleep_before_exit /*frames*/ 1
  80. exit