Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1502 commits
Select commit Hold shift + click to select a range
186273a
decomp: clarify names in run_level_main_loop
pezzadev Oct 31, 2026
39d8ff6
decomp: clarify names in update_drawbridge
pezzadev Oct 31, 2026
99ccdb7
decomp: clarify names in seeker_update
pezzadev Oct 31, 2026
e0825ec
decomp: clarify names in ground_attached_update
pezzadev Oct 31, 2026
cf5637b
decomp: clarify names in shrub_update
pezzadev Oct 31, 2026
4e7e253
decomp: clarify names in update_mode_freeze
pezzadev Oct 31, 2026
a90b4cc
decomp: clarify names in volume_camera_swing
pezzadev Oct 31, 2026
ff2eebb
decomp: clarify names in update_gunship
pezzadev Oct 31, 2026
0702c9c
decomp: clarify names in gadgetron_ceo_update
pezzadev Oct 31, 2026
f05f790
decomp: clarify names in ryno_update
pezzadev Oct 31, 2026
27c1136
decomp: clarify names in update_hero_ground_contact
pezzadev Oct 31, 2026
7c51303
decomp: clarify names in metal_detector_update
pezzadev Oct 31, 2026
d8476a6
decomp: clarify names in update_spawner_bomb
pezzadev Oct 31, 2026
d3af9de
decomp: clarify names in mine_glove_update
pezzadev Oct 31, 2026
7a9e5e0
decomp: clarify names in update_beam_barrier
pezzadev Oct 31, 2026
d182891
decomp: clarify names in handle_hero_gadget_button
pezzadev Oct 31, 2026
6c242b1
decomp: clarify names in update_mine
pezzadev Oct 31, 2026
5b87c31
decomp: clarify names in screamer_update
pezzadev Oct 31, 2026
5501e9a
decomp: clarify names in bomb_glove_update
pezzadev Oct 31, 2026
f3c3c20
decomp: clarify names in bolt_thief_update
pezzadev Oct 31, 2026
be02946
decomp: clarify names in taxi_update
pezzadev Oct 31, 2026
1f44783
decomp: clarify names in revive_spawner_pooled_child
pezzadev Oct 31, 2026
2e90d75
decomp: clarify names in process_hero_equipped_item_input
pezzadev Oct 31, 2026
455fcb4
decomp: clarify names in tesla_claw_update
pezzadev Oct 31, 2026
afd470b
decomp: clarify names in volume_camera_swing
pezzadev Oct 31, 2026
e42183e
decomp: clarify names in bomb_spawner_update
pezzadev Oct 31, 2026
ff3b557
decomp: clarify names in handle_hero_gadget_button
pezzadev Oct 31, 2026
e5f5ecb
decomp: clarify names in sand_mouse_update
pezzadev Oct 31, 2026
900b16e
decomp: clarify names in bolt_thief_update
pezzadev Oct 31, 2026
801a60b
decomp: clarify names in test_dummy_update
pezzadev Oct 31, 2026
8f2c0e8
decomp: clarify names in infobot_update
pezzadev Oct 31, 2026
dd4a05b
decomp: clarify names in bolt_crank_update
pezzadev Oct 31, 2026
8f84ddb
decomp: clarify names in update_explosive_projectile
pezzadev Oct 31, 2026
8a19f07
decomp: clarify names in update_drone
pezzadev Oct 31, 2026
38e8495
decomp: clarify names in gunship_follow_path
pezzadev Oct 31, 2026
a6aee80
decomp: clarify names in process_hero_primary_item_input
pezzadev Oct 31, 2026
ac90480
decomp: clarify names in helicopter_update
pezzadev Oct 31, 2026
46b0424
decomp: clarify names in update_hoven_anklebiter
pezzadev Oct 31, 2026
d5de43c
decomp: clarify names in update_debug_menu
pezzadev Oct 31, 2026
ea687a2
decomp: clarify names in memcard_update_state
pezzadev Oct 31, 2026
06eed9f
decomp: clarify names in update_resident_gameplay_state
pezzadev Oct 31, 2026
0df5ff9
decomp: clarify names in update_vendor_menu
pezzadev Oct 31, 2026
20d7242
decomp: clarify names in doom_bot_update
pezzadev Oct 31, 2026
48a6bb6
decomp: clarify names in update_ground_melee_enemy
pezzadev Oct 31, 2026
336e63e
decomp: clarify names in suckcannon_update
pezzadev Oct 31, 2026
717328b
decomp: clarify names in puffoid_update
pezzadev Oct 31, 2026
ac4e8dc
decomp: clarify names in sand_shark_update
pezzadev Oct 31, 2026
d5afaa4
decomp: clarify names in update_qwarks_starfighter
pezzadev Oct 31, 2026
71cd23c
decomp: clarify names in ultramech_unlimited_update
pezzadev Oct 31, 2026
3251b3f
decomp: clarify names in toxic_crab_update
pezzadev Oct 31, 2026
05cba9d
decomp: clarify names in helicopter_update
pezzadev Oct 31, 2026
2050f0a
decomp: clarify names in circular_saw_enemy_update
pezzadev Oct 31, 2026
53fa751
decomp: clarify names in woodcut_bot_update
pezzadev Oct 31, 2026
83051c2
decomp: clarify names in sentrybot_update
pezzadev Oct 31, 2026
91d3b76
decomp: clarify names in suckcannon_update
pezzadev Oct 31, 2026
ee95965
decomp: clarify names in peckbot_update
pezzadev Oct 31, 2026
a9a255e
decomp: clarify names in gadgebot_update
pezzadev Oct 31, 2026
8185d68
decomp: clarify names in toxic_crab_update
pezzadev Oct 31, 2026
116fc75
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
2524524
decomp: clarify names in l01_hero_set_state
pezzadev Oct 31, 2026
26e4084
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
542c5c2
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
dce6424
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
670cbd8
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
afdd4d9
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
003971d
decomp: clarify names in update_hero_state_machine
pezzadev Oct 31, 2026
feca635
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
d3d7e3b
decomp: clarify names in update_hero_state_transitions
pezzadev Oct 31, 2026
ac11c09
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
2e2c393
decomp: clarify names in l01_hero_set_state
pezzadev Oct 31, 2026
94429af
decomp: clarify names in update_hero_state_machine
pezzadev Oct 31, 2026
41365c6
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
51aed1d
decomp: clarify names in update_hero_state_machine
pezzadev Oct 31, 2026
e5df977
decomp: clarify names in update_hero_state_transitions
pezzadev Oct 31, 2026
9921bb5
decomp: clarify names in hero_set_state
pezzadev Oct 31, 2026
d6551d7
decomp: clarify names in process_hero_state_transitions
pezzadev Oct 31, 2026
8969ff3
decomp: clarify names in update_hero_state_machine
pezzadev Oct 31, 2026
0d294e2
decomp: clarify names in update_hero_state_transitions
pezzadev Oct 31, 2026
20cfa22
decomp: clarify names in update_hero_state_machine
pezzadev Oct 31, 2026
3800e93
decomp: clarify names in update_hero_motion_by_state
pezzadev Oct 31, 2026
d642d33
decomp: clarify names in update_hero_motion_for_current_state
pezzadev Oct 31, 2026
5863eb1
decomp: clarify names in process_hero_state_transitions
pezzadev Oct 31, 2026
9117be0
decomp: clarify names in update_hero_motion_for_current_state
pezzadev Oct 31, 2026
dbdc993
decomp: clarify names in update_hero_motion_for_current_state
pezzadev Oct 31, 2026
6ee50fc
decomp: clarify names in hero_update_transitions
pezzadev Nov 1, 2026
fadee47
decomp: clarify names in update_hero_state_transitions
pezzadev Nov 1, 2026
0ff3e1a
decomp: format naming changes after upstream rebase
pezzadev Nov 1, 2026
806935c
decomp: reuse upstream Morph-O-Ray state names after rebase
pezzadev Nov 1, 2026
a58551a
decomp: retain named global declarations after upstream rebase
pezzadev Nov 1, 2026
b5516ca
decomp: keep the alien queen private-data binding consistent
pezzadev Nov 1, 2026
80d584a
decomp: preserve consistent private-data bindings after type updates
pezzadev Nov 1, 2026
72abe64
decomp: clarify names in start_camera_blend
pezzadev Nov 1, 2026
5bd49cd
decomp: clarify names in draw_help
pezzadev Nov 1, 2026
95afb58
decomp: clarify names in update_instance_attachment_points_and_lengths
pezzadev Nov 1, 2026
c436b7c
decomp: clarify names in create_class_5c3_moby
pezzadev Nov 1, 2026
8d277b7
decomp: clarify names in spawn_on_path
pezzadev Nov 1, 2026
ed4df50
decomp: clarify names in spawn_class_221_moby
pezzadev Nov 1, 2026
218b3aa
decomp: clarify names in walloper_update
pezzadev Nov 1, 2026
e60ccaf
decomp: clarify names in breakable_window_update
pezzadev Nov 1, 2026
357da64
decomp: clarify names in homing_spark_draw
pezzadev Nov 1, 2026
860def9
decomp: clarify names in hero_set_state
pezzadev Nov 1, 2026
8da764d
decomp: clarify names in hero_set_state
pezzadev Nov 1, 2026
1adb964
overlay: name resolve_hero_pending_path_clearance
pezzadev Nov 1, 2026
ade6a40
decomp: clarify names in test_dummy_on_hoverboard_update
pezzadev Nov 1, 2026
134e151
decomp: clarify names in extermitank_update
pezzadev Nov 1, 2026
b5bdb56
decomp: clarify names in l01_hero_set_state
pezzadev Nov 1, 2026
37a3348
decomp: clarify names in hero_set_state
pezzadev Nov 1, 2026
1606305
decomp: clarify names in extermibot_update
pezzadev Nov 1, 2026
45345b1
decomp: clarify names in spawn_ship_pickup
pezzadev Nov 1, 2026
7a120ca
decomp: clarify names in reset_electric_water_switch
pezzadev Nov 1, 2026
0e308df
decomp: clarify names in set_novalis_bolt_crank_completion_flags
pezzadev Nov 1, 2026
9de9da8
decomp: clarify names in spawn_giant_clank_charged_blast
pezzadev Nov 1, 2026
4b4fb5d
decomp: clarify names in gadgebot_update
pezzadev Nov 1, 2026
6c38b93
decomp: clarify names in hero_set_state
pezzadev Nov 1, 2026
bdff07e
decomp: clarify names in hero_set_state
pezzadev Nov 1, 2026
2b81d2d
decomp: clarify names in hero_update_movement
pezzadev Nov 1, 2026
b194427
decomp: clarify names in spawn_sentrybot_projectile
pezzadev Nov 1, 2026
295c264
decomp: clarify names in voice_update_callback
pezzadev Nov 1, 2026
71f8c93
decomp: clarify names in save_camera_vectors
pezzadev Nov 1, 2026
957286a
decomp: clarify names in spawn_swingshot_hook
pezzadev Nov 1, 2026
5dde701
decomp: clarify names in enter_streamed_moby_screen
pezzadev Nov 1, 2026
94077f2
decomp: clarify names in voice_start_callback
pezzadev Nov 1, 2026
9695fea
decomp: clarify names in cancel_suck_cannon_suction_and_set_moby_state_9
pezzadev Nov 1, 2026
7edf2c0
decomp: clarify names in update_moby_suck_cannon_storage_state
pezzadev Nov 1, 2026
f3d6349
decomp: clarify names in compute_nanotech_ball_slot_position
pezzadev Nov 1, 2026
913096a
decomp: clarify names in initialize_moby_launch_motion
pezzadev Nov 1, 2026
54a86d0
decomp: clarify names in prepare_sentrybot_alarm
pezzadev Nov 1, 2026
69151f0
decomp: clarify names in vendor_orb_update
pezzadev Nov 1, 2026
d2244ad
decomp: clarify names in extermibot_update
pezzadev Nov 1, 2026
6f2543a
decomp: clarify names in hoverboard_ring_update
pezzadev Nov 1, 2026
df10a35
decomp: clarify names in restore_saved_hero_moby_and_clear_vehicle_mode
pezzadev Nov 1, 2026
46c5b73
decomp: clarify names in spawn_timed_projected_sprite_effect
pezzadev Nov 1, 2026
debe7ea
decomp: clarify names in spawn_blarg_elite_commando_rocket
pezzadev Nov 1, 2026
02b0b5b
decomp: clarify names in spawn_bolt_thief_mine
pezzadev Nov 1, 2026
aa396e1
decomp: clarify names in update_menu_preview_animation_pose
pezzadev Nov 1, 2026
864a127
decomp: clarify names in release_glove_of_doom_held_moby
pezzadev Nov 1, 2026
6f417aa
decomp: clarify names in spawn_armed_transport_rocket
pezzadev Nov 1, 2026
b0df48e
decomp: clarify names in child_carrier_update
pezzadev Nov 1, 2026
3de789a
overlay: name add_hero_up_offset
pezzadev Nov 1, 2026
4569fbc
decomp: clarify names in help_draw_prompt
pezzadev Nov 1, 2026
eb26941
decomp: clarify names in spawn_mine
pezzadev Nov 1, 2026
0fa2cf6
decomp: clarify names in spawn_bomb
pezzadev Nov 1, 2026
cfc7456
decomp: clarify names in spawn_paratrooper_projectile
pezzadev Nov 1, 2026
84d8a7c
decomp: clarify names in moby_wobble_update
pezzadev Nov 1, 2026
7cd4805
decomp: clarify names in start_snagglebeast_turn_toward_target
pezzadev Nov 1, 2026
a0ed699
decomp: clarify names in apply_resort_owner_movement
pezzadev Nov 1, 2026
4b780bd
decomp: clarify names in handle_gadgebot_hit_knockback
pezzadev Nov 1, 2026
0d321da
decomp: clarify names in updraft_vent_update
pezzadev Nov 1, 2026
3f72cc4
decomp: clarify names in spawn_level_13_homing_rocket
pezzadev Nov 1, 2026
7337d38
decomp: clarify names in update_all_point_lights
pezzadev Nov 1, 2026
7054d78
decomp: clarify names in breakaway_piece_update
pezzadev Nov 1, 2026
25b11c7
decomp: clarify names in count_group_gadgebots_not_in_state_8
pezzadev Nov 1, 2026
0487cd3
decomp: clarify names in camera_activation_check_priority
pezzadev Nov 1, 2026
ffe08c5
overlay: name set_hero_item_moby_flag_bit0
pezzadev Nov 1, 2026
a7797d6
decomp: clarify names in spawn_crate_debris
pezzadev Nov 1, 2026
8c7f79b
decomp: clarify names in spawn_fighter_jet_rocket
pezzadev Nov 1, 2026
25bd436
decomp: clarify names in floating_platform_update
pezzadev Nov 1, 2026
b84cc07
decomp: clarify names in gadgebot_spawn_container_update
pezzadev Nov 1, 2026
cd8ccb7
decomp: clarify names in update_hero_frame
pezzadev Nov 1, 2026
1355353
decomp: clarify names in linked_moby_states_update
pezzadev Nov 1, 2026
6a95c59
decomp: clarify names in prop_breakup_update
pezzadev Nov 1, 2026
cb07a89
decomp: clarify names in begin_sentrybot_turn_toward_heading
pezzadev Nov 1, 2026
1a69fde
decomp: clarify names in pterodactyl_update
pezzadev Nov 1, 2026
2dd4b43
decomp: clarify names in update_hero_frame_pipeline
pezzadev Nov 1, 2026
34f2385
decomp: clarify names in sentrybot_projectile_update
pezzadev Nov 1, 2026
4e7c13a
decomp: clarify names in memcard_save_data
pezzadev Nov 1, 2026
88bba90
decomp: clarify names in release_moby_with_collision_check
pezzadev Nov 1, 2026
1549c11
decomp: clarify names in smoke_trail_projectile_update
pezzadev Nov 1, 2026
ef180bd
decomp: clarify names in spawn_devastator_missile
pezzadev Nov 1, 2026
506251d
decomp: clarify names in swingshot_versatarget_update
pezzadev Nov 1, 2026
d7d2b99
decomp: clarify names in floating_platform_update
pezzadev Nov 1, 2026
08153e0
decomp: clarify names in energy_sphere_holder_update
pezzadev Nov 1, 2026
2bd4cbe
decomp: clarify names in crane_arm_update
pezzadev Nov 1, 2026
08a084c
decomp: clarify names in cutscene_trigger_update
pezzadev Nov 1, 2026
74c5890
decomp: clarify names in configurable_particle_emitter_update
pezzadev Nov 1, 2026
daa3709
decomp: clarify names in helicopter_update
pezzadev Nov 1, 2026
2ae9103
overlay: name add_hero_gravity_offset
pezzadev Nov 1, 2026
100c326
decomp: clarify names in flickering_point_light_update
pezzadev Nov 1, 2026
433e942
decomp: clarify names in decoy_glove_update
pezzadev Nov 1, 2026
22af156
decomp: clarify names in sand_shark_nest_update
pezzadev Nov 1, 2026
299e476
decomp: clarify names in linked_switch_group_update
pezzadev Nov 1, 2026
9c19499
decomp: clarify names in destroy_gadgebot_spawn_container
pezzadev Nov 1, 2026
ddfa2d3
decomp: clarify names in update_blarg_elite_commando_joint_aim
pezzadev Nov 1, 2026
d7fc1b9
decomp: clarify names in render_data_processor_linked_effect
pezzadev Nov 1, 2026
45bbb4a
decomp: clarify names in process_blarg_space_commando_hits
pezzadev Nov 1, 2026
ea85f6b
decomp: clarify names in taxi_platform_update
pezzadev Nov 1, 2026
e987aaf
decomp: clarify names in moving_platform_small_update
pezzadev Nov 1, 2026
d58a883
decomp: clarify names in bot_door_lock_update
pezzadev Nov 1, 2026
15b494c
decomp: clarify names in spawn_decoy
pezzadev Nov 1, 2026
7402a31
decomp: clarify names in spawner_update
pezzadev Nov 1, 2026
38bb7be
decomp: clarify names in advance_alternate_camera_transition
pezzadev Nov 1, 2026
8b7272a
decomp: clarify names in novalis_elevator_update
pezzadev Nov 1, 2026
213103d
decomp: clarify names in elevator_update
pezzadev Nov 1, 2026
880f213
decomp: clarify names in hovering_rocket_attacker_update
pezzadev Nov 1, 2026
662b7e2
decomp: clarify names in is_moby_in_state_one
pezzadev Nov 1, 2026
0322170
decomp: clarify names in red_ship_1_update
pezzadev Nov 1, 2026
03ef8a5
decomp: clarify names in spiderbot_update
pezzadev Nov 1, 2026
3331b4d
overlay: name update_hero_item_moby_flags
pezzadev Nov 1, 2026
082c605
decomp: clarify names in explosion_light_update
pezzadev Nov 1, 2026
0a28b49
decomp: clarify names in robot_dog_update
pezzadev Nov 1, 2026
38255d3
decomp: clarify names in cancel_moby_suction_and_save_state
pezzadev Nov 1, 2026
98dc12b
decomp: clarify names in command_falling_platform_update
pezzadev Nov 1, 2026
5442f79
decomp: clarify names in update_planetbuster_maximus_guns
pezzadev Nov 1, 2026
485caa7
decomp: clarify names in process_suck_cannon_suction_and_update_moby_…
pezzadev Nov 1, 2026
4bcdf77
decomp: clarify names in ocean_umbris_update
pezzadev Nov 1, 2026
c8e28fa
decomp: clarify names in prepare_sentrybot_alarm
pezzadev Nov 1, 2026
6ae224f
decomp: clarify names in update_camera_blend
pezzadev Nov 1, 2026
693d53e
decomp: clarify names in spawn_barrier_replacement
pezzadev Nov 1, 2026
dd08808
decomp: clarify names in update_menu_preview_animation_transform
pezzadev Nov 1, 2026
fa7d6e2
decomp: clarify names in set_hero_item_moby_flag_bit0
pezzadev Nov 1, 2026
b46aab2
decomp: clarify names in update_hero_item_moby_flags
pezzadev Nov 1, 2026
055e30f
decomp: clarify names in beam_slots_update
pezzadev Nov 1, 2026
2381ea7
decomp: clarify names in activate_first_inactive_group_moby
pezzadev Nov 1, 2026
39e8182
decomp: clarify names in update_camera
pezzadev Nov 1, 2026
339ba31
decomp: clarify names in respawn_volume_update
pezzadev Nov 1, 2026
84c942d
decomp: clarify names in alien_snapper_spawner_update
pezzadev Nov 1, 2026
9a3d200
decomp: clarify names in blarg_elite_commando_rocket_update
pezzadev Nov 1, 2026
5996b18
decomp: clarify names in billboard_projectile_update
pezzadev Nov 1, 2026
0406775
decomp: clarify names in electric_beam_update
pezzadev Nov 1, 2026
3fcd8da
decomp: clarify names in update_moby_hit_stats_and_state
pezzadev Nov 1, 2026
953f2a8
decomp: clarify names in swingshot_hook_update
pezzadev Nov 1, 2026
7e99ddd
decomp: clarify names in fighter_jet_update
pezzadev Nov 1, 2026
bf4ff8e
decomp: clarify names in spawn_linked_hitbox_contact_effects
pezzadev Nov 1, 2026
4d15693
decomp: clarify names in sandmouse_house_update
pezzadev Nov 1, 2026
c837762
decomp: clarify names in update_moby_proximity_interaction
pezzadev Nov 1, 2026
0a2de52
decomp: clarify names in update_bolt_grounded_pose
pezzadev Nov 1, 2026
68707b8
decomp: clarify names in path_following_moby_update
pezzadev Nov 1, 2026
a86f601
decomp: clarify names in door_update
pezzadev Nov 1, 2026
442414b
decomp: clarify names in bridge_update
pezzadev Nov 1, 2026
abfa4f2
decomp: clarify names in linked_spark_emitter_update
pezzadev Nov 1, 2026
dce1716
decomp: clarify names in timed_activation_pads_update
pezzadev Nov 1, 2026
3d9bc9c
decomp: clarify names in update_hovering_rocket_attacker_common
pezzadev Nov 1, 2026
74a40bf
decomp: clarify names in switchable_beam_barrier_update
pezzadev Nov 1, 2026
a8d1555
decomp: clarify names in split_door_update
pezzadev Nov 1, 2026
5348605
decomp: clarify names in ammocrate_update
pezzadev Nov 1, 2026
cba33f4
decomp: clarify names in floating_ship_piece_update
pezzadev Nov 1, 2026
3fbb0d7
decomp: clarify names in update_sentrybot_hit_response_and_target_vis…
pezzadev Nov 1, 2026
aa4e476
decomp: clarify names in handle_extermitank_hits_and_sync_children
pezzadev Nov 1, 2026
2e051fd
decomp: clarify names in bombomatic_update
pezzadev Nov 1, 2026
765d68a
decomp: clarify names in rocket_strike_fighter_update
pezzadev Nov 1, 2026
5733ac5
decomp: clarify names in machinegun_turret_update
pezzadev Nov 1, 2026
416d7c8
decomp: clarify names in armed_transport_update
pezzadev Nov 1, 2026
7bd91e1
decomp: clarify names in planetbuster_maximus_part_update
pezzadev Nov 1, 2026
80209c3
decomp: clarify names in blarg_elite_commando_update
pezzadev Nov 1, 2026
e6d2bcb
decomp: clarify names in decoy_update
pezzadev Nov 1, 2026
acf3e44
decomp: clarify names in sentrybot_update
pezzadev Nov 1, 2026
dcc77cd
decomp: format naming changes after upstream rebase
pezzadev Nov 1, 2026
bd44892
decomp: format naming changes after upstream rebase
pezzadev Nov 1, 2026
bcfd117
decomp: format naming changes after upstream rebase
pezzadev Nov 1, 2026
d663255
decomp: format controller input rebase resolutions
pezzadev Nov 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions include/rnc/overlay/l18/drek_boss_states.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef LOMBYTE_RNC_OVERLAY_L18_DREK_BOSS_STATES_H
#define LOMBYTE_RNC_OVERLAY_L18_DREK_BOSS_STATES_H

/* Moby state IDs shared by the final boss update and its supporting handlers. */
enum {
DREK_BOSS_INITIALIZE = 0,
DREK_BOSS_WAIT_FOR_ENCOUNTER_TRIGGER = 1,
DREK_BOSS_CIRCLE_AND_FIRE_AT_HERO = 2,
DREK_BOSS_WAIT_TO_RESTORE_SAVED_TRANSFORM = 3,
DREK_BOSS_WAIT_FOR_GROUNDED_HERO_TO_START_SCENE = 4,
DREK_BOSS_INITIALIZE_PAIRED_TRANSFORM_TRANSITION = 5,
DREK_BOSS_WAIT_FOR_SCENE = 7,
DREK_BOSS_WAIT_FOR_PAIRED_TRANSFORM_TRANSITION = 8,
DREK_BOSS_APPROACH_PATH_START = 9,
DREK_BOSS_FOLLOW_PATH_AND_FIRE_AT_MOBYS = 10,
DREK_BOSS_FINISH_PATH_AND_WAIT_FOR_HERO = 0xB,
DREK_BOSS_SELECT_NEXT_ACTION = 0xC,
DREK_BOSS_LAUNCH_FORWARD_WITH_LATERAL_OFFSET = 0xD,
DREK_BOSS_ACTION_REPOSITION_AND_AIM = 0xE,
DREK_BOSS_TARGET_GROUND_POINTS = 0xF,
DREK_BOSS_TARGET_RANDOM_ARENA_POINTS = 0x10,
DREK_BOSS_TARGET_SIDE_GROUND_POINTS = 0x11,
DREK_BOSS_APPROACH_AIM_NODE = 0x12,
DREK_BOSS_FOLLOW_HERO = 0x13,
DREK_BOSS_ACTIVATE_MISSILE_GROUP = 0x14,
DREK_BOSS_APPROACH_SELECTED_MOBY = 0x15,
DREK_BOSS_DEATH_EXPLOSIONS = 0x1A,
DREK_BOSS_RUN_ENDING_SEQUENCE = 0x1B
};

#endif /* LOMBYTE_RNC_OVERLAY_L18_DREK_BOSS_STATES_H */
4 changes: 2 additions & 2 deletions include/rnc/overlay/shared/hero/set_hero_animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ void show_health_hud(void) __asm__("FUN_L00_00234e00");

s32 get_ammo(s32) __asm__("FUN_L00_00233e98");
s32 get_hero_target_pose_status(void) __asm__("FUN_L00_00233f38");
void FUN_L00_00232fe8(void);
void FUN_L00_002330d0(void);
void set_hero_item_moby_flag_bit0(void) __asm__("FUN_L00_00232fe8");
void update_hero_item_moby_flags(void) __asm__("FUN_L00_002330d0");
s32 use_ammo(s32, s32) __asm__("FUN_L00_00233db8");

#endif /* LOMBYTE_RNC_OVERLAY_SHARED_HERO_SET_HERO_ANIMATION_H */
3 changes: 2 additions & 1 deletion include/rnc/overlay/shared/math/interpolation/spring_turn.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ s32 get_first_moby_in_group(void *, s32, s32, s32) __asm__("FUN_L00_002591d0");
s32 solve_quadratic_equation(f32 *, f32 *, f32, f32, f32) __asm__("FUN_L00_002595a0");
s32 get_next_moby_in_group(void *, void *, s32, s32) __asm__("FUN_L00_002592b8");

void FUN_L00_00258490(void *, void *, void *, s32, f32, f32, f32, f32);
void move_moby_xy_with_collision_constraints(
void *, void *, void *, s32, f32, f32, f32, f32) __asm__("FUN_L00_00258490");
float calculate_triangular_corrected_scalar(float *,
float *,
int *,
Expand Down
2 changes: 1 addition & 1 deletion include/rnc/overlay/shared/math/vu0_vector_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
s32 fast_subtract_rotations_cf(void *) __asm__("FUN_L00_001fefc8");
void add_vectors(void *, void *, void *) __asm__("FUN_L00_001ff290");
void reflect_vector(void *, void *, void *) __asm__("FUN_L00_001ff660");
void rotation_2D5FA8(void *, s32, f32) __asm__("FUN_L00_001fff28");
void build_axis_rotation_quaternion(void *, s32, f32) __asm__("FUN_L00_001fff28");

#endif /* LOMBYTE_RNC_OVERLAY_SHARED_MATH_VU0_VECTOR_OPS_H */
3 changes: 2 additions & 1 deletion include/rnc/overlay/shared/rendering/effects/particles.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ void *spawn_mode_controlled_rotating_alpha_fade_particle(void *,
struct EmberParticle;
struct EffectParticle;

unsigned char *FUN_L00_00272f68(u128 *, int, unsigned char, int, int, int, int, float);
unsigned char *spawn_timed_hero_relative_particle(
u128 *, int, unsigned char, int, int, int, int, float) __asm__("FUN_L00_00272f68");
unsigned char *spawn_color_tween_emitter_particle(void *,
unsigned char,
unsigned char,
Expand Down
2 changes: 1 addition & 1 deletion include/rnc/overlay/shared/weapons.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void linked_moby_states_update(unsigned char *) __asm__("FUN_L00_002b3
void metal_detector_update(struct Moby *) __asm__("FUN_L00_002d2ee8");
void mine_glove_update(struct Moby *) __asm__("FUN_L00_002c1ad0");
void morphoray_update() __asm__("FUN_L00_002bc7e8");
s32 FUN_L00_002caf40(s32);
s32 get_morphoray_chicken_slot_record(s32) __asm__("FUN_L00_002caf40");
int cancel_suck_cannon_suction_and_set_moby_state_5(struct Moby *) __asm__("FUN_L00_002caf10");
int launch_suck_cannon_projectile_and_update_moby_state(struct Moby *,
int,
Expand Down
5 changes: 4 additions & 1 deletion src/audio/decoder/audio_dec_begin_put.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ void audio_dec_begin_put(struct AudioDec *dec,
void **second_destination,

s32 *size2) {
enum {
AUDIO_DEC_STATE_HEADER_PENDING = 0
};
s32 writable_byte_count;

if (dec->state == 0) {
if (dec->state == AUDIO_DEC_STATE_HEADER_PENDING) {
if (dec->strType != 4) {
*first_destination = ((u8 *)&dec->hdr + dec->hdrCount);
*size1 = 0x28 - dec->hdrCount;
Expand Down
5 changes: 4 additions & 1 deletion src/audio/decoder/audio_dec_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ s32 audio_dec_create(struct AudioDec *dec,
s32 buffer_size,

s32 globals_address) {
enum {
AUDIO_DEC_STATE_INITIAL = 0
};
s32 movie_handle;
s32 three;
s32 four;
Expand All @@ -24,7 +27,7 @@ s32 audio_dec_create(struct AudioDec *dec,
dec->size = buffer_size;
three = 3;
dec->strType = three;
dec->state = 0;
dec->state = AUDIO_DEC_STATE_INITIAL;
dec->hdrCount = 0;
dec->put = 0;
dec->count = 0;
Expand Down
10 changes: 7 additions & 3 deletions src/audio/decoder/audio_dec_end_put.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
void audio_dec_end_put(struct AudioDec *ad, s32 n) __asm__("FUN_0023ae28");

void audio_dec_end_put(struct AudioDec *ad, s32 byte_count) {
enum {
AUDIO_DEC_STATE_HEADER_PENDING = 0,
AUDIO_DEC_STATE_HEADER_HANDLED = 1
};
s32 k;
s32 room;

if (ad->state == 0) {
if (ad->state == AUDIO_DEC_STATE_HEADER_PENDING) {
if (ad->strType != 4) {
room = 40 - ad->hdrCount;
k = room < byte_count ? room : byte_count;
ad->hdrCount += k;
if (ad->hdrCount >= 40) {
ad->state = 1;
ad->state = AUDIO_DEC_STATE_HEADER_HANDLED;
}
byte_count -= k;
} else {
ad->state = 1;
ad->state = AUDIO_DEC_STATE_HEADER_HANDLED;
}
}
ad->size = ad->size / 1024 * 1024;
Expand Down
5 changes: 4 additions & 1 deletion src/audio/decoder/audio_dec_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ extern s32 snd_reset_movie_sound() __asm__("func_0012F0A8");
void audio_dec_reset(struct AudioDec *dec) __asm__("FUN_0023ad10");

void audio_dec_reset(struct AudioDec *dec) {
enum {
AUDIO_DEC_STATE_RESET = 0
};
snd_reset_movie_sound();
dec->state = 0;
dec->state = AUDIO_DEC_STATE_RESET;
dec->hdrCount = 0;
dec->put = 0;
dec->count = 0;
Expand Down
5 changes: 4 additions & 1 deletion src/audio/decoder/audio_dec_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ extern s32 send_adpcm() __asm__("FUN_0023afc0");
void audio_dec_send(struct AudioDec *dec) __asm__("FUN_0023aef0");

void audio_dec_send(struct AudioDec *dec) {
if (dec->state != 0) {
enum {
AUDIO_DEC_SEND_DISABLED = 0
};
if (dec->state != AUDIO_DEC_SEND_DISABLED) {
send_adpcm();
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/audio/decoder/audio_dec_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ extern s32 snd_start_movie_sound() __asm__("func_0012F108");
void audio_dec_start(struct AudioDec *dec) __asm__("FUN_0023acb8");

void audio_dec_start(struct AudioDec *dec) {
enum {
AUDIO_DEC_STATE_STARTED = 2
};
s32 buff_size;
s32 channel_count;
s32 four;
Expand All @@ -18,7 +21,7 @@ void audio_dec_start(struct AudioDec *dec) {
dec->iopZero,
dec->hdr.rate,
channel_count);
dec->state = 2;
dec->state = AUDIO_DEC_STATE_STARTED;
/* Fakematch: GCC removes both stores, but the read-modify-write
sequence gives hdr.ch retail's register. */
dec->hdr.ch++;
Expand Down
5 changes: 4 additions & 1 deletion src/audio/music/music_stop.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ extern s32 snd_stream_safe_check_cd_idle() __asm__("func_0012ED30");
void music_stop(void) __asm__("FUN_00215ee8");

void music_stop(void) {
enum {
MUSIC_CROSSFADE_IDLE = 0
};
s32 requested_track;

if (music_stream_state.primary.handle == 0xFFFFFFFF) {
Expand Down Expand Up @@ -42,7 +45,7 @@ void music_stop(void) {
music_stream_state.transition.state = 0;
music_stream_state.transition.flags = 0;
music_stream_state.transition.handle = 0;
music_stream_state.crossfade_state = 0;
music_stream_state.crossfade_state = MUSIC_CROSSFADE_IDLE;
music_stream_state.requested_track = -1;
music_stream_state.requested_transition_track = -1;
}
Expand Down
23 changes: 14 additions & 9 deletions src/audio/music/music_update.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ void music_update(void) {
CROSSFADE_WAIT_TO_CONTINUE_PRIMARY = 4,
CROSSFADE_WAIT_TO_RESET = 5
};
enum {
CROSSFADE_IDLE = 0,
CD_READ_STATE_IDLE = 0,
CD_READ_STATE_PENDING_RETRY = 2
};
s8 requested_track;
s32 fade_volume;
s32 handle;
Expand Down Expand Up @@ -55,7 +60,7 @@ void music_update(void) {
}
if (fast_dec_timer(&music_stream_state.retry_timer) != 0) {
requested_track = music_stream_state.requested_track;
if (requested_track != -1 && music_stream_state.crossfade_state == 0) {
if (requested_track != -1 && music_stream_state.crossfade_state == CROSSFADE_IDLE) {
if (music_stream_state.primary.track != requested_track) {
if (music_stream_state.requested_transition_track == -1 ||
music_transition(requested_track,
Expand Down Expand Up @@ -97,7 +102,7 @@ void music_update(void) {
music_stream_state.transition.crossfade_enabled == 0) &&
music_stream_state.transition.handle == 0) ||
(handle = music_stream_state.primary.handle) == 0) {
music_stream_state.crossfade_state = 3;
music_stream_state.crossfade_state = CROSSFADE_WAIT_TO_PRESEEK_PRIMARY;
music_stream_state.primary.state = 5;
} else if (music_stream_state.primary.state != 9) {
/* The callback receives the old handle; mark its slot pending before submission. */
Expand All @@ -120,7 +125,7 @@ void music_update(void) {
music_stream_state.primary.flags,
music_stream_state.primary.volume);
music_stream_state.requested_track = -1;
music_stream_state.crossfade_state = 4;
music_stream_state.crossfade_state = CROSSFADE_WAIT_TO_CONTINUE_PRIMARY;
}
break;
case CROSSFADE_WAIT_TO_CONTINUE_PRIMARY:
Expand All @@ -132,14 +137,14 @@ void music_update(void) {
music_stream_state.transition.handle == 0)) {
snd_continue_vag_stream(music_stream_state.primary.handle);
music_stream_state.primary.state = 8;
music_stream_state.crossfade_state = 5;
music_stream_state.crossfade_state = CROSSFADE_WAIT_TO_RESET;
}
}
break;
case CROSSFADE_WAIT_TO_RESET:
if (music_stream_state.transition.state != 4 ||
music_stream_state.transition.crossfade_enabled == 0) {
music_stream_state.crossfade_state = 0;
music_stream_state.crossfade_state = CROSSFADE_IDLE;
}
break;
}
Expand All @@ -149,17 +154,17 @@ void music_update(void) {
music_update_stream(&music_stream_state.secondary.handle);
if (music_stream_state.break_requested != 0) {
if (snd_stream_safe_cd_sync(1) == 0) {
music_stream_state.read_state = 0;
music_stream_state.read_state = CD_READ_STATE_IDLE;
music_stream_state.break_requested = 0;
}
} else {
pending_state = music_stream_state.read_state;
if (pending_state == 2) {
music_stream_state.read_state = 0;
if (pending_state == CD_READ_STATE_PENDING_RETRY) {
music_stream_state.read_state = CD_READ_STATE_IDLE;
start_audio_stream_read(music_stream_state.read_dst,
music_stream_state.read_sector,
music_stream_state.read_sector_count);
if (music_stream_state.read_state == 0) {
if (music_stream_state.read_state == CD_READ_STATE_IDLE) {
music_stream_state.read_state = pending_state;
}
}
Expand Down
24 changes: 16 additions & 8 deletions src/audio/music/music_update_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,26 @@ extern void set_sound_handle_id(int, long) __asm__("func_00216B68");
void music_update_stream(MusicPlaying *p) __asm__("FUN_002160a8");

void music_update_stream(MusicPlaying *music_stream) {
enum {
MUSIC_STREAM_STATE_INACTIVE = 0,
MUSIC_STREAM_STATE_WAITING_FOR_BUFFER = 2,
MUSIC_STREAM_STATE_STOP_REQUESTED = 5,
MUSIC_STREAM_STATE_STOPPING = 6
};
int sound_handle;

if (music_stream->state != 9 && music_stream->handle != 0 &&
music_stream->handle != 0xFFFFFFFF) {
if (music_stream->state == 5) {
if (music_stream->state == MUSIC_STREAM_STATE_STOP_REQUESTED) {
if (music_stream->handle != 0) {
snd_stop_sound(music_stream->handle);
music_stream->state = 6;
music_stream->state = MUSIC_STREAM_STATE_STOPPING;
} else {
music_stream->state = 0;
music_stream->state = MUSIC_STREAM_STATE_INACTIVE;
}
} else if (music_stream->state == 6) {
} else if (music_stream->state == MUSIC_STREAM_STATE_STOPPING) {
if (music_stream->handle == 0) {
music_stream->state = 0;
music_stream->state = MUSIC_STREAM_STATE_INACTIVE;
}
}
if (music_stream->handle == 0) {
Expand All @@ -73,7 +79,8 @@ void music_update_stream(MusicPlaying *music_stream) {
if (music_stream->state == 1 || music_stream->state == 8 || music_stream->state == 9) {
return;
}
if (music_stream->state != 2 && music_stream->state != 3) {
if (music_stream->state != MUSIC_STREAM_STATE_WAITING_FOR_BUFFER &&
music_stream->state != 3) {
sound_handle = music_stream->handle;
music_stream->handle = 0xFFFFFFFF;
snd_get_vag_stream_time_remaining_cb(
Expand All @@ -82,13 +89,14 @@ void music_update_stream(MusicPlaying *music_stream) {
sound_handle, set_sound_handle_id, (long)(unsigned int)music_stream);
return;
}
if (music_stream->handle != 0xFFFFFFFF && music_stream->state == 2) {
if (music_stream->handle != 0xFFFFFFFF &&
music_stream->state == MUSIC_STREAM_STATE_WAITING_FOR_BUFFER) {
snd_is_vag_stream_buffered_cb(music_stream->handle,
music_channel_ready_callback,
(long)(unsigned int)music_stream);
}
} else if (music_stream->state == 7 || music_stream->handle == 0) {
music_stream->state = 0;
music_stream->state = MUSIC_STREAM_STATE_INACTIVE;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/audio/sound/voice_start_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void voice_start_callback(int handle, long voice_record_address) {
} else {
voice->owner = 0;
voice->owner_context = 0;
voice->state = 0;
voice->state = VOICE_SLOT_FREE;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/audio/sound/voice_update_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void voice_update_callback(int handle, long voice_state_address) {
if (handle == 0) {
voice->owner = 0;
voice->owner_context = 0;
voice->state = 0;
voice->state = VOICE_SLOT_FREE;
}
}
}
Expand Down
11 changes: 7 additions & 4 deletions src/audio/streaming/advance_audio_stream_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ s32 advance_audio_stream_state(struct AudioStream *stream) {
AUDIO_STREAM_START_SECOND_READ = 2,
AUDIO_STREAM_WAIT_SECOND_READ = 3
};
enum {
CD_READ_STATE_IDLE = 0
};

switch (stream->unk44) {
case AUDIO_STREAM_START_FIRST_READ:
if (stream->unk48 == 0 || music_stream_state.read_state != 0) {
if (stream->unk48 == 0 || music_stream_state.read_state != CD_READ_STATE_IDLE) {
break;
}
if (disc_table.unk2C8[game_language].size == 0) {
Expand All @@ -52,12 +55,12 @@ s32 advance_audio_stream_state(struct AudioStream *stream) {
}
break;
case AUDIO_STREAM_WAIT_FIRST_READ:
if (music_stream_state.read_state == 0) {
if (music_stream_state.read_state == CD_READ_STATE_IDLE) {
stream->unk44 = 2;
}
break;
case AUDIO_STREAM_START_SECOND_READ:
if (stream->unk4C == 0 || music_stream_state.read_state != 0) {
if (stream->unk4C == 0 || music_stream_state.read_state != CD_READ_STATE_IDLE) {
break;
}
if (disc_table.unk2F8[game_language].size == 0) {
Expand All @@ -72,7 +75,7 @@ s32 advance_audio_stream_state(struct AudioStream *stream) {
}
break;
case AUDIO_STREAM_WAIT_SECOND_READ:
if (music_stream_state.read_state == 0) {
if (music_stream_state.read_state == CD_READ_STATE_IDLE) {
stream->unk44 = 4;
}
break;
Expand Down
Loading
Loading