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.

56 lines
3.7 KiB

5 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_VCUTM_SEESAW_PLATFORM, /*pos*/ 154, -1919, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x00070000, /*beh*/ bhvSeesawPlatform
  3. object /*model*/ MODEL_VCUTM_SEESAW_PLATFORM, /*pos*/ -2047, -3378, -2047, /*angle*/ 0, 0, 0, /*behParam*/ 0x00070000, /*beh*/ bhvSeesawPlatform
  4. #! @bug invalid model IDs - model ID 0x37 isn't loaded
  5. object /*model*/ MODEL_VCUTM_CHECKERBOARD_PLATFORM_SPAWNER, /*pos*/ 3251, -1082, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x014B0000, /*beh*/ bhvCheckerboardElevatorGroup
  6. object /*model*/ MODEL_VCUTM_CHECKERBOARD_PLATFORM_SPAWNER, /*pos*/ 2355, -1901, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x014B0000, /*beh*/ bhvCheckerboardElevatorGroup
  7. object /*model*/ MODEL_VCUTM_CHECKERBOARD_PLATFORM_SPAWNER, /*pos*/ 1459, -1594, -6256, /*angle*/ 0, 90, 0, /*behParam*/ 0x014B0000, /*beh*/ bhvCheckerboardElevatorGroup
  8. object /*model*/ MODEL_VCUTM_CHECKERBOARD_PLATFORM_SPAWNER, /*pos*/ -1151, -2413, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x014B0000, /*beh*/ bhvCheckerboardElevatorGroup
  9. return
  10. script_func_local_2:
  11. object /*model*/ MODEL_CAP_SWITCH, /*pos*/ 4506, 26, -6246, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvCapSwitch
  12. return
  13. script_func_local_3:
  14. object /*model*/ MODEL_NONE, /*pos*/ 4600, 250, -4500, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar
  15. return
  16. glabel level_vcutm_entry
  17. init_level
  18. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _outside_mio0SegmentRomStart, /*romEnd*/ _outside_mio0SegmentRomEnd
  19. load_mio0 /*seg*/ 0x07, /*romStart*/ _vcutm_segment_7SegmentRomStart, /*romEnd*/ _vcutm_segment_7SegmentRomEnd
  20. load_mio0 /*seg*/ 0x05, /*romStart*/ _group8_mio0SegmentRomStart, /*romEnd*/ _group8_mio0SegmentRomEnd
  21. load_raw /*seg*/ 0x0C, /*romStart*/ _group8_geoSegmentRomStart, /*romEnd*/ _group8_geoSegmentRomEnd
  22. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  23. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  24. alloc_level_pool
  25. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  26. jump_link /*target*/ script_func_global_1
  27. jump_link /*target*/ script_func_global_9
  28. load_model_from_geo /*model*/ MODEL_VCUTM_SEESAW_PLATFORM, /*geo*/ vcutm_geo_0001F0
  29. load_model_from_geo /*model*/ MODEL_VCUTM_WARP_PIPE, /*geo*/ warp_pipe_geo
  30. area /*index*/ 1, /*geo*/ vcutm_geo_000208
  31. object /*model*/ MODEL_NONE, /*pos*/ -6143, 6734, -6143, /*angle*/ 0, 0, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps64
  32. warp_node /*id*/ 0x0A, /*destLevel*/ 0x12, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  33. warp_node /*id*/ 0xF3, /*destLevel*/ 0x10, /*destArea*/ 0x01, /*destNode*/ 0x07, /*unk6*/ 0x0000
  34. warp_node /*id*/ 0xF0, /*destLevel*/ 0x10, /*destArea*/ 0x01, /*destNode*/ 0x08, /*unk6*/ 0x0000
  35. warp_node /*id*/ 0xF1, /*destLevel*/ 0x10, /*destArea*/ 0x01, /*destNode*/ 0x06, /*unk6*/ 0x0000
  36. jump_link /*target*/ script_func_local_3
  37. jump_link /*target*/ script_func_local_1
  38. jump_link /*target*/ script_func_local_2
  39. terrain /*terrainData*/ vcutm_seg7_collision
  40. macro_objects /*objList*/ vcutm_seg7_macro_objs
  41. show_dialog /*unk2*/ 0x00, /*dialogid*/ 0x81
  42. set_music /*unk2*/ 0x0000, /*seq*/ SEQ_LEVEL_SLIDE
  43. terrain_type /*terrainType*/ 0x0001
  44. end_area
  45. free_level_pool
  46. mario_pos /*area*/ 1, /*yaw*/ 0, /*pos*/ -6143, 5734, -6143
  47. call /*arg*/ 0, /*func*/ lvl_init_or_update
  48. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  49. clear_level
  50. sleep_before_exit /*frames*/ 1
  51. exit