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.

48 lines
3.0 KiB

5 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_CAP_SWITCH, /*pos*/ 0, 363, -6144, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvCapSwitch
  3. object /*model*/ MODEL_NONE, /*pos*/ 0, 500, -7373, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop
  4. object /*model*/ MODEL_NONE, /*pos*/ 0, 500, 3584, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop
  5. return
  6. script_func_local_2:
  7. object /*model*/ MODEL_NONE, /*pos*/ 0, -200, -7000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar
  8. return
  9. glabel level_cotmc_entry
  10. init_level
  11. load_mio0 /*seg*/ 0x07, /*romStart*/ _cotmc_segment_7SegmentRomStart, /*romEnd*/ _cotmc_segment_7SegmentRomEnd
  12. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _cave_mio0SegmentRomStart, /*romEnd*/ _cave_mio0SegmentRomEnd
  13. load_mio0 /*seg*/ 0x05, /*romStart*/ _group8_mio0SegmentRomStart, /*romEnd*/ _group8_mio0SegmentRomEnd
  14. load_raw /*seg*/ 0x0C, /*romStart*/ _group8_geoSegmentRomStart, /*romEnd*/ _group8_geoSegmentRomEnd
  15. load_mio0 /*seg*/ 0x06, /*romStart*/ _group17_mio0SegmentRomStart, /*romEnd*/ _group17_mio0SegmentRomEnd
  16. load_raw /*seg*/ 0x0D, /*romStart*/ _group17_geoSegmentRomStart, /*romEnd*/ _group17_geoSegmentRomEnd
  17. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  18. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  19. alloc_level_pool
  20. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  21. jump_link /*target*/ script_func_global_9
  22. jump_link /*target*/ script_func_global_18
  23. jump_link /*target*/ script_func_global_1
  24. area /*index*/ 1, /*geo*/ cotmc_geo_0001A0
  25. object /*model*/ MODEL_NONE, /*pos*/ -4185, 1020, -47, /*angle*/ 0, 90, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps64
  26. warp_node /*id*/ 0x0A, /*destLevel*/ 0x1C, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  27. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x34, /*unk6*/ 0x0000
  28. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x03, /*destNode*/ 0x66, /*unk6*/ 0x0000
  29. warp_node /*id*/ 0xF3, /*destLevel*/ 0x10, /*destArea*/ 0x01, /*destNode*/ 0x14, /*unk6*/ 0x0000
  30. jump_link /*target*/ script_func_local_2
  31. jump_link /*target*/ script_func_local_1
  32. terrain /*terrainData*/ cotmc_seg7_collision_level
  33. macro_objects /*objList*/ cotmc_seg7_macro_objs
  34. show_dialog /*unk2*/ 0x00, /*dialogid*/ 0x82
  35. set_music /*unk2*/ 0x0004, /*seq*/ SEQ_LEVEL_UNDERGROUND
  36. terrain_type /*terrainType*/ 0x0001
  37. end_area
  38. free_level_pool
  39. mario_pos /*area*/ 1, /*yaw*/ 90, /*pos*/ -4185, 20, -47
  40. call /*arg*/ 0, /*func*/ lvl_init_or_update
  41. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  42. clear_level
  43. sleep_before_exit /*frames*/ 1
  44. exit