diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index 3bae7722a..057aa9d2f 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -14,1679 +14,2097 @@ function area_get_warp_node_from_params(o) -- ... end ---- @param a0 Vec3f ---- @param a1 Vec3f +--- @param goal Vec3f +--- @param pos Vec3f --- @param yVel number --- @param gravity number --- @return integer -function arc_to_goal_pos(a0, a1, yVel, gravity) +--- Calculates the time it takes for the current object to follow an arc from `pos` to `goal` +function arc_to_goal_pos(goal, pos, yVel, gravity) -- ... end +--- Behavior init function for common 1-Up function bhv_1up_common_init() -- ... end +--- Behavior loop function for hidden 1-Up in pole (Green Demon) function bhv_1up_hidden_in_pole_loop() -- ... end +--- Behavior loop function for 1-Up hidden in pole spawner function bhv_1up_hidden_in_pole_spawner_loop() -- ... end +--- Behavior loop function for 1-Up hidden in pole trigger function bhv_1up_hidden_in_pole_trigger_loop() -- ... end +--- Behavior loop function for hidden 1-Up function bhv_1up_hidden_loop() -- ... end +--- Behavior loop function for hidden 1-Up trigger function bhv_1up_hidden_trigger_loop() -- ... end +--- Behavior init function for 1-Up function bhv_1up_init() -- ... end +--- Behavior loop function for jump on approach 1-Up function bhv_1up_jump_on_approach_loop() -- ... end +--- Behavior loop function for 1-Up function bhv_1up_loop() -- ... end +--- Behavior loop function for running away 1-Up function bhv_1up_running_away_loop() -- ... end +--- Behavior loop function for sliding 1-Up function bhv_1up_sliding_loop() -- ... end +--- Behavior init function for 1-Up trigger function bhv_1up_trigger_init() -- ... end +--- Behavior loop function for walking 1-Up function bhv_1up_walking_loop() -- ... end +--- Behavior init function for Act Selector function bhv_act_selector_init() -- ... end +--- Behavior loop function for Act Selector function bhv_act_selector_loop() -- ... end +--- Behavior loop function for Act Selector star type function bhv_act_selector_star_type_loop() -- ... end +--- Behavior init function for activated back and forth platform in Bowser courses function bhv_activated_back_and_forth_platform_init() -- ... end +--- Behavior loop function for activated back and forth platform in Bowser courses function bhv_activated_back_and_forth_platform_update() -- ... end +--- Behavior loop function for alpha boo key function bhv_alpha_boo_key_loop() -- ... end +--- Behavior init function for ambient sounds function bhv_ambient_sounds_init() -- ... end +--- Behavior loop function for animated texture function bhv_animated_texture_loop() -- ... end +--- Behavior init function for animates on floor switch press in Rainbow Ride and Bowser courses function bhv_animates_on_floor_switch_press_init() -- ... end +--- Behavior loop function for animates on floor switch press in Rainbow Ride and Bowser courses function bhv_animates_on_floor_switch_press_loop() -- ... end +--- Behavior loop function for Wet Dry World arrow lift function bhv_arrow_lift_loop() -- ... end +--- Behavior loop function for Big Boo's Haunt tilting trap platform function bhv_bbh_tilting_trap_platform_loop() -- ... end +--- Behavior loop function for beta boo key function bhv_beta_boo_key_loop() -- ... end +--- Behavior loop function for beta Bowser anchor function bhv_beta_bowser_anchor_loop() -- ... end +--- Behavior init function for beta chest bottom function bhv_beta_chest_bottom_init() -- ... end +--- Behavior loop function for beta chest bottom function bhv_beta_chest_bottom_loop() -- ... end +--- Behavior loop function for beta chest lid function bhv_beta_chest_lid_loop() -- ... end +--- Behavior loop function for beta fish splash spawner function bhv_beta_fish_splash_spawner_loop() -- ... end +--- Behavior init function for beta holdable object function bhv_beta_holdable_object_init() -- ... end +--- Behavior loop function for beta holdable object function bhv_beta_holdable_object_loop() -- ... end +--- Behavior loop function for beta moving flames function bhv_beta_moving_flames_loop() -- ... end +--- Behavior loop function for beta moving flames spawn function bhv_beta_moving_flames_spawn_loop() -- ... end +--- Behavior loop function for beta trampoline spring function bhv_beta_trampoline_spring_loop() -- ... end +--- Behavior loop function for beta trampoline top function bhv_beta_trampoline_top_loop() -- ... end +--- Behavior loop function for Big Boo function bhv_big_boo_loop() -- ... end +--- Behavior loop function for big boulder generator function bhv_big_boulder_generator_loop() -- ... end +--- Behavior init function for big boulder function bhv_big_boulder_init() -- ... end +--- Behavior loop function for big boulder function bhv_big_boulder_loop() -- ... end +--- Behavior init function for Big Bully function bhv_big_bully_init() -- ... end +--- Behavior init function for Big Bully with minions function bhv_big_bully_with_minions_init() -- ... end +--- Behavior loop function for Big Bully with minions function bhv_big_bully_with_minions_loop() -- ... end +--- Behavior loop function for bird function bhv_bird_update() -- ... end +--- Behavior loop function for birds sound function bhv_birds_sound_loop() -- ... end +--- Behavior loop function for Bowser in the Fire Sea sinking cage platform function bhv_bitfs_sinking_cage_platform_loop() -- ... end +--- Behavior loop function for Bowser in the Fire Sea sinking platform function bhv_bitfs_sinking_platform_loop() -- ... end +--- Behavior loop function for black smoke Bowser function bhv_black_smoke_bowser_loop() -- ... end +--- Behavior loop function for black smoke Mario function bhv_black_smoke_mario_loop() -- ... end +--- Behavior loop function for black smoke upward function bhv_black_smoke_upward_loop() -- ... end +--- Behavior init function for Blue Bowser flame function bhv_blue_bowser_flame_init() -- ... end +--- Behavior loop function for Blue Bowser flame function bhv_blue_bowser_flame_loop() -- ... end +--- Behavior loop function for Blue Coin jumping function bhv_blue_coin_jumping_loop() -- ... end +--- Behavior loop function for Blue Coin number function bhv_blue_coin_number_loop() -- ... end +--- Behavior init function for Blue Coin sliding jumping function bhv_blue_coin_sliding_jumping_init() -- ... end +--- Behavior loop function for Blue Coin sliding function bhv_blue_coin_sliding_loop() -- ... end +--- Behavior init function for Blue Coin switch function bhv_blue_coin_switch_init() -- ... end +--- Behavior loop function for Blue Coin switch function bhv_blue_coin_switch_loop() -- ... end +--- Behavior loop function for blue fish movement function bhv_blue_fish_movement_loop() -- ... end +--- Behavior loop function for blue flames group function bhv_blue_flames_group_loop() -- ... end +--- Behavior init function for Bob-omb Battlefield pit bowling ball function bhv_bob_pit_bowling_ball_init() -- ... end +--- Behavior loop function for Bob-omb Battlefield pit bowling ball function bhv_bob_pit_bowling_ball_loop() -- ... end +--- Behavior loop function for Bob-omb anchor mario function bhv_bobomb_anchor_mario_loop() -- ... end +--- Behavior init function for Bob-omb buddy function bhv_bobomb_buddy_init() -- ... end +--- Behavior loop function for Bob-omb buddy function bhv_bobomb_buddy_loop() -- ... end +--- Behavior init function for Bob-omb and Bully death smoke function bhv_bobomb_bully_death_smoke_init() -- ... end +--- Behavior init function for Bob-omb explosion bubble function bhv_bobomb_explosion_bubble_init() -- ... end +--- Behavior loop function for Bob-omb explosion bubble function bhv_bobomb_explosion_bubble_loop() -- ... end +--- Behavior init function for Bob-omb fuse smoke function bhv_bobomb_fuse_smoke_init() -- ... end +--- Behavior init function for Bob-omb function bhv_bobomb_init() -- ... end +--- Behavior loop function for Bob-omb function bhv_bobomb_loop() -- ... end +--- Behavior loop function for Boo boss spawned bridge function bhv_boo_boss_spawned_bridge_loop() -- ... end +--- Behavior init function for Boo cage function bhv_boo_cage_init() -- ... end +--- Behavior loop function for Boo cage function bhv_boo_cage_loop() -- ... end +--- Behavior loop function for the Boo inside the Castle function bhv_boo_in_castle_loop() -- ... end +--- Behavior init function for Boo function bhv_boo_init() -- ... end +--- Behavior loop function for Boo function bhv_boo_loop() -- ... end +--- Behavior init function for Boo with cage function bhv_boo_with_cage_init() -- ... end +--- Behavior loop function for Boo with cage function bhv_boo_with_cage_loop() -- ... end +--- Behavior loop function for Book switch function bhv_book_switch_loop() -- ... end +--- Behavior loop function for Bookend spawn function bhv_bookend_spawn_loop() -- ... end +--- Behavior loop function for bouncing fireball flame function bhv_bouncing_fireball_flame_loop() -- ... end +--- Behavior loop function for bouncing fireball function bhv_bouncing_fireball_loop() -- ... end +--- Behavior init function for bowling ball function bhv_bowling_ball_init() -- ... end +--- Behavior loop function for bowling ball function bhv_bowling_ball_loop() -- ... end +--- Behavior init function for Bowser body anchor function bhv_bowser_body_anchor_init() -- ... end +--- Behavior loop function for Bowser body anchor function bhv_bowser_body_anchor_loop() -- ... end +--- Behavior loop function for Bowser bomb explosion function bhv_bowser_bomb_explosion_loop() -- ... end +--- Behavior loop function for Bowser bomb function bhv_bowser_bomb_loop() -- ... end +--- Behavior loop function for Bowser bomb smoke function bhv_bowser_bomb_smoke_loop() -- ... end +--- Behavior loop function for Bowser course Red Coin Star function bhv_bowser_course_red_coin_star_loop() -- ... end +--- Behavior loop function for Bowser flame spawn function bhv_bowser_flame_spawn_loop() -- ... end +--- Behavior init function for Bowser function bhv_bowser_init() -- ... end +--- Behavior loop function for Bowser key course exit function bhv_bowser_key_course_exit_loop() -- ... end +--- Behavior init function for Bowser key function bhv_bowser_key_init() -- ... end +--- Behavior loop function for Bowser key function bhv_bowser_key_loop() -- ... end +--- Behavior loop function for Bowser key unlock door function bhv_bowser_key_unlock_door_loop() -- ... end +--- Behavior loop function for Bowser function bhv_bowser_loop() -- ... end +--- Behavior loop function for Bowser shock wave function bhv_bowser_shock_wave_loop() -- ... end +--- Behavior init function for Bowser tail anchor function bhv_bowser_tail_anchor_init() -- ... end +--- Behavior loop function for Bowser tail anchor function bhv_bowser_tail_anchor_loop() -- ... end +--- Behavior loop function for Bowser's submarine function bhv_bowsers_sub_loop() -- ... end +--- Behavior loop function for breakable box function bhv_breakable_box_loop() -- ... end +--- Behavior init function for small breakable box function bhv_breakable_box_small_init() -- ... end +--- Behavior loop function for small breakable box function bhv_breakable_box_small_loop() -- ... end +--- Behavior loop function for Bub function bhv_bub_loop() -- ... end +--- Behavior loop function for Bub spawner function bhv_bub_spawner_loop() -- ... end +--- Behavior loop function for Bubba function bhv_bubba_loop() -- ... end +--- Behavior loop function for bubble cannon barrel function bhv_bubble_cannon_barrel_loop() -- ... end +--- Behavior loop function for bubble maybe function bhv_bubble_maybe_loop() -- ... end +--- Behavior loop function for bubble player function bhv_bubble_player_loop() -- ... end +--- Behavior init function for bubble splash function bhv_bubble_splash_init() -- ... end +--- Behavior init function for bubble wave function bhv_bubble_wave_init() -- ... end +--- Behavior init function for Bullet Bill function bhv_bullet_bill_init() -- ... end +--- Behavior loop function for Bullet Bill function bhv_bullet_bill_loop() -- ... end +--- Behavior loop function for Bully function bhv_bully_loop() -- ... end +--- Behavior init function for Butterfly function bhv_butterfly_init() -- ... end +--- Behavior loop function for Butterfly function bhv_butterfly_loop() -- ... end +--- Behavior init function for Camera Lakitu function bhv_camera_lakitu_init() -- ... end +--- Behavior loop function for Camera Lakitu function bhv_camera_lakitu_update() -- ... end +--- Behavior loop function for cannon barrel function bhv_cannon_barrel_loop() -- ... end +--- Behavior loop function for cannon base function bhv_cannon_base_loop() -- ... end +--- Behavior loop function for cannon base unused function bhv_cannon_base_unused_loop() -- ... end +--- Behavior init function for cannon closed function bhv_cannon_closed_init() -- ... end +--- Behavior loop function for cannon closed function bhv_cannon_closed_loop() -- ... end +--- Behavior loop function for Cap Switch function bhv_cap_switch_loop() -- ... end +--- Behavior init function for Castle cannon grate function bhv_castle_cannon_grate_init() -- ... end +--- Behavior init function for castle flag function bhv_castle_flag_init() -- ... end +--- Behavior init function for Bowser in the Dark World floor trap manager function bhv_castle_floor_trap_init() -- ... end +--- Behavior loop function for Bowser in the Dark World floor trap manager function bhv_castle_floor_trap_loop() -- ... end +--- Behavior loop function for Cool, Cool Mountain touched Star spawn function bhv_ccm_touched_star_spawn_loop() -- ... end +--- Behavior init function for Celebration Star function bhv_celebration_star_init() -- ... end +--- Behavior loop function for Celebration Star function bhv_celebration_star_loop() -- ... end +--- Behavior loop function for Celebration Star sparkle function bhv_celebration_star_sparkle_loop() -- ... end +--- Behavior loop function for Chain Chomp chain part function bhv_chain_chomp_chain_part_update() -- ... end +--- Behavior init function for Chain Chomp gate function bhv_chain_chomp_gate_init() -- ... end +--- Behavior loop function for Chain Chomp gate function bhv_chain_chomp_gate_update() -- ... end +--- Behavior loop function for Chain Chomp function bhv_chain_chomp_update() -- ... end +--- Behavior init function for checkerboard elevator group function bhv_checkerboard_elevator_group_init() -- ... end +--- Behavior loop function for checkerboard elevator group function bhv_checkerboard_elevator_group_loop() -- ... end +--- Behavior init function for checkerboard platform function bhv_checkerboard_platform_init() -- ... end +--- Behavior loop function for checkerboard platform function bhv_checkerboard_platform_loop() -- ... end +--- Behavior loop function for Chuckya mario anchor function bhv_chuckya_anchor_mario_loop() -- ... end +--- Behavior loop function for Chuckya function bhv_chuckya_loop() -- ... end +--- Behavior init function for Circling Amp function bhv_circling_amp_init() -- ... end +--- Behavior loop function for Circling Amp function bhv_circling_amp_loop() -- ... end +--- Behavior loop function for Clam function bhv_clam_loop() -- ... end +--- Behavior loop function for cloud part function bhv_cloud_part_update() -- ... end +--- Behavior loop function for cloud function bhv_cloud_update() -- ... end +--- Behavior loop function for coffin function bhv_coffin_loop() -- ... end +--- Behavior loop function for coffin spawner function bhv_coffin_spawner_loop() -- ... end +--- Behavior init function for Coin formation function bhv_coin_formation_init() -- ... end +--- Behavior loop function for Coin formation function bhv_coin_formation_loop() -- ... end +--- Behavior loop function for Coin formation spawn function bhv_coin_formation_spawn_loop() -- ... end +--- Behavior init function for Coin function bhv_coin_init() -- ... end +--- Behavior loop function for Coin inside Boo function bhv_coin_inside_boo_loop() -- ... end +--- Behavior loop function for Coin function bhv_coin_loop() -- ... end +--- Behavior loop function for Coin sparkles function bhv_coin_sparkles_loop() -- ... end +--- Behavior init function for collectable Star function bhv_collect_star_init() -- ... end +--- Behavior loop function for collectable Star function bhv_collect_star_loop() -- ... end +--- Behavior init function for controllable platform function bhv_controllable_platform_init() -- ... end +--- Behavior loop function for controllable platform function bhv_controllable_platform_loop() -- ... end +--- Behavior loop function for controllable sub platform function bhv_controllable_platform_sub_loop() -- ... end +--- Behavior init function for Courtyard Boo triplet function bhv_courtyard_boo_triplet_init() -- ... end +--- Behavior loop function for Dire Dire Docks moving pole function bhv_ddd_moving_pole_loop() -- ... end +--- Behavior init function for Dire Dire Docks pole function bhv_ddd_pole_init() -- ... end +--- Behavior loop function for Dire Dire Docks pole function bhv_ddd_pole_update() -- ... end +--- Behavior loop function for Castle Basement Dire Dire Docks warp collision function bhv_ddd_warp_loop() -- ... end +--- Behavior init function for decorative pendulum function bhv_decorative_pendulum_init() -- ... end +--- Behavior loop function for decorative pendulum function bhv_decorative_pendulum_loop() -- ... end +--- Behavior loop function for donut platform spawner function bhv_donut_platform_spawner_update() -- ... end +--- Behavior loop function for donut platform function bhv_donut_platform_update() -- ... end +--- Behavior init function for door function bhv_door_init() -- ... end +--- Behavior loop function for door function bhv_door_loop() -- ... end +--- Behavior loop function for Dorrie function bhv_dorrie_update() -- ... end +--- Behavior init function for elevator function bhv_elevator_init() -- ... end +--- Behavior loop function for elevator function bhv_elevator_loop() -- ... end +--- Behavior loop function for first end birds function bhv_end_birds_1_loop() -- ... end +--- Behavior loop function for second end birds function bhv_end_birds_2_loop() -- ... end +--- Behavior loop function for Enemy Lakitu function bhv_enemy_lakitu_update() -- ... end +--- Behavior init function for Exclamation Box function bhv_exclamation_box_init() -- ... end +--- Behavior loop function for Exclamation Box function bhv_exclamation_box_loop() -- ... end +--- Behavior init function for explosion function bhv_explosion_init() -- ... end +--- Behavior loop function for explosion function bhv_explosion_loop() -- ... end +--- Behavior init function for Eyerok boss function bhv_eyerok_boss_init() -- ... end +--- Behavior loop function for Eyerok boss function bhv_eyerok_boss_loop() -- ... end +--- Behavior loop function for Eyerok hand function bhv_eyerok_hand_loop() -- ... end +--- Behavior loop function for fading warp function bhv_fading_warp_loop() -- ... end +--- Behavior loop function for falling Bowser in the Sky arena platform function bhv_falling_bowser_platform_loop() -- ... end +--- Behavior loop function for Jolly Roger Bay falling pillar hitbox function bhv_falling_pillar_hitbox_loop() -- ... end +--- Behavior init function for Jolly Roger Bay falling pillar function bhv_falling_pillar_init() -- ... end +--- Behavior loop function for Jolly Roger Bay falling pillar function bhv_falling_pillar_loop() -- ... end +--- Behavior init function for ferris wheel axle function bhv_ferris_wheel_axle_init() -- ... end +--- Behavior init function for ferris wheel platform function bhv_ferris_wheel_platform_init() -- ... end +--- Behavior loop function for ferris wheel platform function bhv_ferris_wheel_platform_update() -- ... end +--- Behavior init function for Fire Piranha Plant function bhv_fire_piranha_plant_init() -- ... end +--- Behavior loop function for Fire Piranha Plant function bhv_fire_piranha_plant_update() -- ... end +--- Behavior loop function for Fire spitter function bhv_fire_spitter_update() -- ... end +--- Behavior loop function for fish group function bhv_fish_group_loop() -- ... end +--- Behavior loop function for fish function bhv_fish_loop() -- ... end +--- Behavior loop function for fish spawner function bhv_fish_spawner_loop() -- ... end +--- Behavior init function for flame bouncing function bhv_flame_bouncing_init() -- ... end +--- Behavior loop function for flame bouncing function bhv_flame_bouncing_loop() -- ... end +--- Behavior init function for Bowser flame function bhv_flame_bowser_init() -- ... end +--- Behavior loop function for Bowser flame function bhv_flame_bowser_loop() -- ... end +--- Behavior init function for flame floating landing function bhv_flame_floating_landing_init() -- ... end +--- Behavior loop function for flame floating landing function bhv_flame_floating_landing_loop() -- ... end +--- Behavior init function for large flame burning out function bhv_flame_large_burning_out_init() -- ... end +--- Behavior loop function for flame Mario function bhv_flame_mario_loop() -- ... end +--- Behavior init function for flame moving forward growing function bhv_flame_moving_forward_growing_init() -- ... end +--- Behavior loop function for flame moving forward growing function bhv_flame_moving_forward_growing_loop() -- ... end +--- Behavior loop function for flamethrower flame function bhv_flamethrower_flame_loop() -- ... end +--- Behavior loop function for flamethrower function bhv_flamethrower_loop() -- ... end +--- Behavior loop function for floating platform function bhv_floating_platform_loop() -- ... end +--- Behavior loop function for Bowser in the Dark World floor trap function bhv_floor_trap_in_castle_loop() -- ... end +--- Behavior loop function for Fly Guy flame function bhv_fly_guy_flame_loop() -- ... end +--- Behavior loop function for Fly Guy function bhv_fly_guy_update() -- ... end +--- Behavior loop function for flying bookend function bhv_flying_bookend_loop() -- ... end +--- Behavior init function for free bowling ball function bhv_free_bowling_ball_init() -- ... end +--- Behavior loop function for free bowling ball function bhv_free_bowling_ball_loop() -- ... end +--- Behavior init function for generic bowling ball spawner function bhv_generic_bowling_ball_spawner_init() -- ... end +--- Behavior loop function for generic bowling ball spawner function bhv_generic_bowling_ball_spawner_loop() -- ... end +--- Behavior loop function for giant pole function bhv_giant_pole_loop() -- ... end +--- Behavior loop function for golden Coin sparkles function bhv_golden_coin_sparkles_loop() -- ... end +--- Behavior init function for Goomba function bhv_goomba_init() -- ... end +--- Behavior loop function for Goomba triplet spawner function bhv_goomba_triplet_spawner_update() -- ... end +--- Behavior loop function for Goomba function bhv_goomba_update() -- ... end +--- Behavior init function for Grand Star function bhv_grand_star_init() -- ... end +--- Behavior loop function for Grand Star function bhv_grand_star_loop() -- ... end +--- Behavior loop function for Grindel and Thwomp function bhv_grindel_thwomp_loop() -- ... end +--- Behavior init function for ground sand function bhv_ground_sand_init() -- ... end +--- Behavior init function for ground snow function bhv_ground_snow_init() -- ... end +--- Behavior loop function for Big Boo's Haunt haunted bookshelf function bhv_haunted_bookshelf_loop() -- ... end +--- Behavior loop function for haunted bookshelf manager function bhv_haunted_bookshelf_manager_loop() -- ... end +--- Behavior init function for Haunted Chair function bhv_haunted_chair_init() -- ... end +--- Behavior loop function for Haunted Chair function bhv_haunted_chair_loop() -- ... end +--- Behavior loop function for Heave ho function bhv_heave_ho_loop() -- ... end +--- Behavior loop function for Heave ho throwing Mario function bhv_heave_ho_throw_mario_loop() -- ... end +--- Behavior loop function for hidden Blue Coin function bhv_hidden_blue_coin_loop() -- ... end +--- Behavior loop function for Wet Dry World hidden breakable box function bhv_hidden_object_loop() -- ... end +--- Behavior init function for Hidden Red Coin Star function bhv_hidden_red_coin_star_init() -- ... end +--- Behavior loop function for Hidden Red Coin Star function bhv_hidden_red_coin_star_loop() -- ... end +--- Behavior init function for Secret Star function bhv_hidden_star_init() -- ... end +--- Behavior loop function for Secret Star function bhv_hidden_star_loop() -- ... end +--- Behavior loop function for Secrets function bhv_hidden_star_trigger_loop() -- ... end +--- Behavior init function for Homing Amp function bhv_homing_amp_init() -- ... end +--- Behavior loop function for Homing Amp function bhv_homing_amp_loop() -- ... end +--- Behavior init function for Hoot function bhv_hoot_init() -- ... end +--- Behavior loop function for Hoot function bhv_hoot_loop() -- ... end +--- Behavior init function for horizontal Grindel function bhv_horizontal_grindel_init() -- ... end +--- Behavior loop function for horizontal Grindel function bhv_horizontal_grindel_update() -- ... end +--- Behavior loop function for idle water wave function bhv_idle_water_wave_loop() -- ... end +--- Behavior init function for changing water level, called when Wet Dry World is loaded function bhv_init_changing_water_level_loop() -- ... end +--- Behavior loop function for intro Lakitu function bhv_intro_lakitu_loop() -- ... end +--- Behavior loop function for intro Peach function bhv_intro_peach_loop() -- ... end +--- Behavior loop function for intro scene function bhv_intro_scene_loop() -- ... end +--- Behavior init function for invisible objects under the Castle bridge function bhv_invisible_objects_under_bridge_init() -- ... end +--- Behavior loop function for Invisible objects under the Castle bridge function bhv_invisible_objects_under_bridge_loop() -- ... end +--- Behavior loop function for jet stream function bhv_jet_stream_loop() -- ... end +--- Behavior loop function for jet stream ring spawner function bhv_jet_stream_ring_spawner_loop() -- ... end +--- Behavior init function for jet stream water ring function bhv_jet_stream_water_ring_init() -- ... end +--- Behavior loop function for jet stream water ring function bhv_jet_stream_water_ring_loop() -- ... end +--- Behavior loop function for Jolly Roger Bay floating box function bhv_jrb_floating_box_loop() -- ... end +--- Behavior loop function for Jolly Roger Bay sliding box function bhv_jrb_sliding_box_loop() -- ... end +--- Behavior loop function for jumping box function bhv_jumping_box_loop() -- ... end +--- Behavior loop function for Whomp's Fortress kickable board function bhv_kickable_board_loop() -- ... end +--- Behavior loop function for King Bob-omb function bhv_king_bobomb_loop() -- ... end +--- Behavior init function for Klepto function bhv_klepto_init() -- ... end +--- Behavior loop function for Klepto function bhv_klepto_update() -- ... end +--- Behavior init function for Koopa function bhv_koopa_init() -- ... end +--- Behavior loop function for Koopa race endpoint function bhv_koopa_race_endpoint_update() -- ... end +--- Behavior loop function for Koopa Shell flame function bhv_koopa_shell_flame_loop() -- ... end +--- Behavior loop function for Koopa Shell function bhv_koopa_shell_loop() -- ... end +--- Behavior loop function for Koopa Shell underwater function bhv_koopa_shell_underwater_loop() -- ... end +--- Behavior loop function for Koopa function bhv_koopa_update() -- ... end +--- Behavior init function for Large Bomp (Whomp's Fortress moving wall with eyes) function bhv_large_bomp_init() -- ... end +--- Behavior loop function for Large Bomp (Whomp's Fortress moving wall with eyes) function bhv_large_bomp_loop() -- ... end +--- Behavior loop function for Lethal Lava Land bowser puzzle function bhv_lll_bowser_puzzle_loop() -- ... end +--- Behavior loop function for Lethal Lava Land bowser puzzle piece function bhv_lll_bowser_puzzle_piece_loop() -- ... end +--- Behavior loop function for Lethal Lava Land drawbridge function bhv_lll_drawbridge_loop() -- ... end +--- Behavior init function for Lethal Lava Land drawbridge spawner function bhv_lll_drawbridge_spawner_init() -- ... end +--- Behavior loop function for Lethal Lava Land drawbridge spawner function bhv_lll_drawbridge_spawner_loop() -- ... end +--- Behavior loop function for Lethal Lava Land floating wood bridge function bhv_lll_floating_wood_bridge_loop() -- ... end +--- Behavior loop function for Lethal Lava Land moving octagonal mesh platform function bhv_lll_moving_octagonal_mesh_platform_loop() -- ... end +--- Behavior init function for Lethal Lava Land rolling log function bhv_lll_rolling_log_init() -- ... end +--- Behavior loop function for Lethal Lava Land rotating block fire bars function bhv_lll_rotating_block_fire_bars_loop() -- ... end +--- Behavior loop function for Lethal Lava Land rotating hex flame function bhv_lll_rotating_hex_flame_loop() -- ... end +--- Behavior loop function for Lethal Lava Land rotating hexagonal ring function bhv_lll_rotating_hexagonal_ring_loop() -- ... end +--- Behavior loop function for Lethal Lava Land sinking rectangular platform function bhv_lll_sinking_rectangular_platform_loop() -- ... end +--- Behavior loop function for Lethal Lava Land sinking rock block function bhv_lll_sinking_rock_block_loop() -- ... end +--- Behavior loop function for Lethal Lava Land sinking square platforms function bhv_lll_sinking_square_platforms_loop() -- ... end +--- Behavior loop function for Lethal Lava Land wood piece function bhv_lll_wood_piece_loop() -- ... end +--- Behavior loop function for Mad Piano function bhv_mad_piano_update() -- ... end +--- Behavior init function for Manta Ray function bhv_manta_ray_init() -- ... end +--- Behavior loop function for Manta Ray function bhv_manta_ray_loop() -- ... end +--- Behavior init function for Manta Ray water ring function bhv_manta_ray_water_ring_init() -- ... end +--- Behavior loop function for Manta Ray water ring function bhv_manta_ray_water_ring_loop() -- ... end +--- Behavior init function for File Select button function bhv_menu_button_init() -- ... end +--- Behavior loop function for File Select button function bhv_menu_button_loop() -- ... end +--- Behavior init function for File Select button manager function bhv_menu_button_manager_init() -- ... end +--- Behavior loop function for File Select button manager function bhv_menu_button_manager_loop() -- ... end +--- Behavior loop function for Merry Go Round Boo manager function bhv_merry_go_round_boo_manager_loop() -- ... end +--- Behavior loop function for Big Boo's Haunt Merry Go Round function bhv_merry_go_round_loop() -- ... end +--- Behavior init function for Metal Cap function bhv_metal_cap_init() -- ... end +--- Behavior loop function for Metal Cap function bhv_metal_cap_loop() -- ... end +--- Behavior init function for Mips function bhv_mips_init() -- ... end +--- Behavior loop function for Mips function bhv_mips_loop() -- ... end +--- Behavior loop function for moat grills function bhv_moat_grills_loop() -- ... end +--- Behavior loop function for Moneybag hidden function bhv_moneybag_hidden_loop() -- ... end +--- Behavior init function for Moneybag function bhv_moneybag_init() -- ... end +--- Behavior loop function for Moneybag function bhv_moneybag_loop() -- ... end +--- Behavior loop function for Monty Mole hole function bhv_monty_mole_hole_update() -- ... end +--- Behavior init function for Monty Mole function bhv_monty_mole_init() -- ... end +--- Behavior loop function for Monty Mole rock function bhv_monty_mole_rock_update() -- ... end +--- Behavior loop function for Monty Mole function bhv_monty_mole_update() -- ... end +--- Behavior init function for moving Blue Coin function bhv_moving_blue_coin_init() -- ... end +--- Behavior loop function for moving Blue Coin function bhv_moving_blue_coin_loop() -- ... end +--- Behavior init function for moving Yellow Coin function bhv_moving_yellow_coin_init() -- ... end +--- Behavior loop function for moving Yellow Coin function bhv_moving_yellow_coin_loop() -- ... end +--- Behavior init function for Mr. Blizzard function bhv_mr_blizzard_init() -- ... end +--- Behavior loop function for Mr. Blizzard's snowball function bhv_mr_blizzard_snowball() -- ... end +--- Behavior loop function for Mr. Blizzard function bhv_mr_blizzard_update() -- ... end +--- Behavior loop function for Mr. I body function bhv_mr_i_body_loop() -- ... end +--- Behavior loop function for Mr. I function bhv_mr_i_loop() -- ... end +--- Behavior loop function for Mr. I particle function bhv_mr_i_particle_loop() -- ... end +--- Behavior init function for Normal Cap function bhv_normal_cap_init() -- ... end +--- Behavior loop function for Normal Cap function bhv_normal_cap_loop() -- ... end +--- Behavior init function for bubble object function bhv_object_bubble_init() -- ... end +--- Behavior loop function for bubble object function bhv_object_bubble_loop() -- ... end +--- Behavior init function for water wave object function bhv_object_water_wave_init() -- ... end +--- Behavior loop function for water wave object function bhv_object_water_wave_loop() -- ... end +--- Behavior loop function for openable cage door function bhv_openable_cage_door_loop() -- ... end +--- Behavior loop function for openable grill function bhv_openable_grill_loop() -- ... end +--- Behavior init function for orange number function bhv_orange_number_init() -- ... end +--- Behavior loop function for orange number function bhv_orange_number_loop() -- ... end +--- Behavior init function for particle function bhv_particle_init() -- ... end +--- Behavior loop function for particle function bhv_particle_loop() -- ... end +--- Behavior loop function for Penguin race finish line function bhv_penguin_race_finish_line_update() -- ... end +--- Behavior loop function for Penguin race shortcut check function bhv_penguin_race_shortcut_check_update() -- ... end +--- Behavior loop function for Piranha particle function bhv_piranha_particle_loop() -- ... end +--- Behavior loop function for Piranha Plant bubble function bhv_piranha_plant_bubble_loop() -- ... end +--- Behavior loop function for Piranha Plant function bhv_piranha_plant_loop() -- ... end +--- Behavior loop function for Piranha Plant waking bubbles function bhv_piranha_plant_waking_bubbles_loop() -- ... end +--- Behavior init function for Bowser in the Dark World, Lethal Lava Land, and Bowser in the Fire Sea platform normals function bhv_platform_normals_init() -- ... end +--- Behavior init function for platform on track function bhv_platform_on_track_init() -- ... end +--- Behavior loop function for platform on track function bhv_platform_on_track_update() -- ... end +--- Behavior loop function for playing a jingle when in a 200 unit radius function bhv_play_music_track_when_touched_loop() -- ... end +--- Behavior loop function for Pokey body part function bhv_pokey_body_part_update() -- ... end +--- Behavior loop function for Pokey function bhv_pokey_update() -- ... end +--- Behavior loop function for pole base function bhv_pole_base_loop() -- ... end +--- Behavior init function for pole function bhv_pole_init() -- ... end +--- Behavior init function for tiny pound star particle function bhv_pound_tiny_star_particle_init() -- ... end +--- Behavior loop function for tiny pound star particle function bhv_pound_tiny_star_particle_loop() -- ... end +--- Behavior init function for pound white puffs function bhv_pound_white_puffs_init() -- ... end +--- Behavior init function for tiny punch triangle function bhv_punch_tiny_triangle_init() -- ... end +--- Behavior loop function for tiny punch triangle function bhv_punch_tiny_triangle_loop() -- ... end +--- Behavior loop function for Purple Switch function bhv_purple_switch_loop() -- ... end +--- Behavior loop function for pushable metal box function bhv_pushable_loop() -- ... end +--- Behavior init function for Pyramid elevator function bhv_pyramid_elevator_init() -- ... end +--- Behavior loop function for Pyramid elevator function bhv_pyramid_elevator_loop() -- ... end +--- Behavior loop function for Pyramid elevator trajectory marker ball function bhv_pyramid_elevator_trajectory_marker_ball_loop() -- ... end +--- Behavior loop function for Pyramid pillar touch detector function bhv_pyramid_pillar_touch_detector_loop() -- ... end +--- Behavior init function for Pyramid top fragment function bhv_pyramid_top_fragment_init() -- ... end +--- Behavior loop function for Pyramid top fragment function bhv_pyramid_top_fragment_loop() -- ... end +--- Behavior init function for Pyramid top function bhv_pyramid_top_init() -- ... end +--- Behavior loop function for Pyramid top function bhv_pyramid_top_loop() -- ... end +--- Behavior init function for Racing Penguin function bhv_racing_penguin_init() -- ... end +--- Behavior loop function for Racing Penguin function bhv_racing_penguin_update() -- ... end +--- Behavior loop function for Recovery Heart function bhv_recovery_heart_loop() -- ... end +--- Behavior init function for Red Coin function bhv_red_coin_init() -- ... end +--- Behavior loop function for Red Coin function bhv_red_coin_loop() -- ... end +--- Behavior init function for Red Coin Star marker function bhv_red_coin_star_marker_init() -- ... end +--- Behavior loop function for respawner function bhv_respawner_loop() -- ... end +--- Behavior loop function for rolling log function bhv_rolling_log_loop() -- ... end +--- Behavior loop function for rotating clock arm function bhv_rotating_clock_arm_loop() -- ... end +--- Behavior loop function for rotating exclamation mark function bhv_rotating_exclamation_box_loop() -- ... end +--- Behavior init function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky function bhv_rotating_octagonal_plat_init() -- ... end +--- Behavior loop function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky function bhv_rotating_octagonal_plat_loop() -- ... end +--- Behavior loop function for rotating platform function bhv_rotating_platform_loop() -- ... end +--- Behavior init function for Rainbow Ride cruiser wing function bhv_rr_cruiser_wing_init() -- ... end +--- Behavior loop function for Rainbow Ride cruiser wing function bhv_rr_cruiser_wing_loop() -- ... end +--- Behavior loop function for Rainbow Ride rotating bridge platform function bhv_rr_rotating_bridge_platform_loop() -- ... end +--- Behavior loop function for sand sound function bhv_sand_sound_loop() -- ... end +--- Behavior loop function for Scuttlebug function bhv_scuttlebug_loop() -- ... end +--- Behavior loop function for Scuttlebug spawner function bhv_scuttlebug_spawn_loop() -- ... end +--- Behavior init function for seaweed bundle function bhv_seaweed_bundle_init() -- ... end +--- Behavior init function for seaweed function bhv_seaweed_init() -- ... end +--- Behavior init function for seesaw platform function bhv_seesaw_platform_init() -- ... end +--- Behavior loop function for seesaw platform function bhv_seesaw_platform_update() -- ... end +--- Behavior init function for shallow water splash function bhv_shallow_water_splash_init() -- ... end +--- Behavior loop function for Jolly Roger Bay ship part 3 function bhv_ship_part_3_loop() -- ... end +--- Behavior loop function for Skeeter function bhv_skeeter_update() -- ... end +--- Behavior loop function for Skeeter wave function bhv_skeeter_wave_update() -- ... end +--- Behavior loop function for Snowman's Land snowman wind function bhv_sl_snowman_wind_loop() -- ... end +--- Behavior loop function for Snowman's Land walking penguin function bhv_sl_walking_penguin_loop() -- ... end +--- Behavior init function for sliding platform 2 in Rainbow Ride and Bowser courses function bhv_sliding_plat_2_init() -- ... end +--- Behavior loop function for sliding platform 2 in Rainbow Ride and Bowser courses function bhv_sliding_plat_2_loop() -- ... end +--- Behavior loop function for sliding snow mound function bhv_sliding_snow_mound_loop() -- ... end +--- Behavior init function for Small Bomp (Whomp's Fortress moving wall with eyes) function bhv_small_bomp_init() -- ... end +--- Behavior loop function for Small Bomp (Whomp's Fortress moving wall with eyes) function bhv_small_bomp_loop() -- ... end +--- Behavior loop function for small bubbles function bhv_small_bubbles_loop() -- ... end +--- Behavior init function for Small Bully function bhv_small_bully_init() -- ... end +--- Behavior loop function for small penguin function bhv_small_penguin_loop() -- ... end +--- Behavior loop function for Small Piranha flame function bhv_small_piranha_flame_loop() -- ... end +--- Behavior loop function for small water wave function bhv_small_water_wave_loop() -- ... end +--- Behavior init function for snow leaf particle spawn function bhv_snow_leaf_particle_spawn_init() -- ... end +--- Behavior loop function for snow mound spawn function bhv_snow_mound_spawn_loop() -- ... end +--- Behavior loop function for Snowman's body checkpoint function bhv_snowmans_body_checkpoint_loop() -- ... end +--- Behavior init function for Snowman's bottom function bhv_snowmans_bottom_init() -- ... end +--- Behavior loop function for Snowman's bottom function bhv_snowmans_bottom_loop() -- ... end +--- Behavior init function for Snowman's head function bhv_snowmans_head_init() -- ... end +--- Behavior loop function for Snowman's head function bhv_snowmans_head_loop() -- ... end +--- Behavior loop function for Snufit balls function bhv_snufit_balls_loop() -- ... end +--- Behavior loop function for Snufit function bhv_snufit_loop() -- ... end +--- Behavior init function for sound spawner function bhv_sound_spawner_init() -- ... end +--- Behavior loop function for sparkle spawner function bhv_sparkle_spawn_loop() -- ... end @@ -1694,534 +2112,667 @@ end --- @param object Object --- @param params integer --- @param networkSendEvent integer +--- Spawns a Star parented to `object` that won't make Mario exit the level with an ID corresponding to `params`' first byte function bhv_spawn_star_no_level_exit(object, params, networkSendEvent) -- ... end +--- Behavior init function for spawned star function bhv_spawned_star_init() -- ... end +--- Behavior loop function for Spawned star function bhv_spawned_star_loop() -- ... end +--- Behavior init function for Spindel function bhv_spindel_init() -- ... end +--- Behavior loop function for Spindel function bhv_spindel_loop() -- ... end +--- Behavior loop function for Spindrift function bhv_spindrift_loop() -- ... end +--- Behavior loop function for Spiny function bhv_spiny_update() -- ... end +--- Behavior loop function for Bowser in the Dark World squarish path moving function bhv_squarish_path_moving_loop() -- ... end +--- Behavior init function for Bowser in the Dark World squarish path parent function bhv_squarish_path_parent_init() -- ... end +--- Behavior loop function for Bowser in the Dark World Ssuarish path parent function bhv_squarish_path_parent_loop() -- ... end +--- Behavior loop function for squishable platform function bhv_squishable_platform_loop() -- ... end +--- Behavior init function for Ssl moving pyramid wall function bhv_ssl_moving_pyramid_wall_init() -- ... end +--- Behavior loop function for Ssl moving pyramid wall function bhv_ssl_moving_pyramid_wall_loop() -- ... end +--- Behavior loop function for Star Door function bhv_star_door_loop() -- ... end +--- Behavior loop function for Star Door function bhv_star_door_loop_2() -- ... end +--- Behavior loop function for Star and key collection puff spawner function bhv_star_key_collection_puff_spawner_loop() -- ... end +--- Behavior loop function for Star number function bhv_star_number_loop() -- ... end +--- Behavior init function for Star spawn function bhv_star_spawn_init() -- ... end +--- Behavior loop function for Star spawn function bhv_star_spawn_loop() -- ... end +--- Behavior loop function for static checkered platform function bhv_static_checkered_platform_loop() -- ... end +--- Behavior loop function for strong wind particle function bhv_strong_wind_particle_loop() -- ... end +--- Behavior loop function for Jolly Roger Bay sunken ship part function bhv_sunken_ship_part_loop() -- ... end +--- Behavior loop function for Sushi Shark collision function bhv_sushi_shark_collision_loop() -- ... end +--- Behavior loop function for Sushi Shark function bhv_sushi_shark_loop() -- ... end +--- Behavior init function for swing platform function bhv_swing_platform_init() -- ... end +--- Behavior loop function for swing platform function bhv_swing_platform_update() -- ... end +--- Behavior loop function for Swoop function bhv_swoop_update() -- ... end +--- Behavior loop function for tank fish group function bhv_tank_fish_group_loop() -- ... end +--- Behavior loop function for despawning Coin function bhv_temp_coin_loop() -- ... end +--- Behavior loop function for Tiny Huge Island bowling ball spawner function bhv_thi_bowling_ball_spawner_loop() -- ... end +--- Behavior loop function for Tiny Huge Island huge island top function bhv_thi_huge_island_top_loop() -- ... end +--- Behavior loop function for Tiny Huge Island tiny island top function bhv_thi_tiny_island_top_loop() -- ... end +--- Behavior init function for tilting Bowser in the Fire Sea arena platform function bhv_tilting_bowser_lava_platform_init() -- ... end +--- Behavior loop function for Lethal Lava Land and Bowser in the Fire Sea tilting inverted pyramid function bhv_tilting_inverted_pyramid_loop() -- ... end +--- Behavior init function for tiny Star particles function bhv_tiny_star_particles_init() -- ... end +--- Behavior loop function for Whomp's Fortress tower door function bhv_tower_door_loop() -- ... end +--- Behavior init function for Whomp's Fortress tower platform group function bhv_tower_platform_group_init() -- ... end +--- Behavior loop function for Whomp's Fortress tower platform group function bhv_tower_platform_group_loop() -- ... end +--- Behavior loop function for Tox Box function bhv_tox_box_loop() -- ... end +--- Behavior loop function for track ball function bhv_track_ball_update() -- ... end +--- Behavior init function for treasure chest bottom function bhv_treasure_chest_bottom_init() -- ... end +--- Behavior loop function for treasure chest bottom function bhv_treasure_chest_bottom_loop() -- ... end +--- Behavior init function for treasure chest function bhv_treasure_chest_init() -- ... end +--- Behavior init function for treasure chest jrb function bhv_treasure_chest_jrb_init() -- ... end +--- Behavior loop function for treasure chest jrb function bhv_treasure_chest_jrb_loop() -- ... end +--- Behavior loop function for treasure chest function bhv_treasure_chest_loop() -- ... end +--- Behavior init function for treasure chest ship function bhv_treasure_chest_ship_init() -- ... end +--- Behavior loop function for treasure chest ship function bhv_treasure_chest_ship_loop() -- ... end +--- Behavior loop function for treasure chest top function bhv_treasure_chest_top_loop() -- ... end +--- Behavior loop function for tree snow or leaf particle function bhv_tree_snow_or_leaf_loop() -- ... end +--- Behavior loop function for a triplet of butterflies function bhv_triplet_butterfly_update() -- ... end +--- Behavior init function for Tick Tock Clock 2D rotator function bhv_ttc_2d_rotator_init() -- ... end +--- Behavior loop function for Tick Tock Clock 2D rotator function bhv_ttc_2d_rotator_update() -- ... end +--- Behavior init function for Tick Tock Clock cog function bhv_ttc_cog_init() -- ... end +--- Behavior loop function for Tick Tock Clock cog function bhv_ttc_cog_update() -- ... end +--- Behavior init function for Tick Tock Clock elevator function bhv_ttc_elevator_init() -- ... end +--- Behavior loop function for Tick Tock Clock elevator function bhv_ttc_elevator_update() -- ... end +--- Behavior init function for Tick Tock Clock moving bar function bhv_ttc_moving_bar_init() -- ... end +--- Behavior loop function for Tick Tock Clock moving bar function bhv_ttc_moving_bar_update() -- ... end +--- Behavior init function for Tick Tock Clock pendulum function bhv_ttc_pendulum_init() -- ... end +--- Behavior loop function for Tick Tock Clock pendulum function bhv_ttc_pendulum_update() -- ... end +--- Behavior init function for Tick Tock Clock pit block function bhv_ttc_pit_block_init() -- ... end +--- Behavior loop function for Tick Tock Clock pit block function bhv_ttc_pit_block_update() -- ... end +--- Behavior init function for Tick Tock Clock rotating solid function bhv_ttc_rotating_solid_init() -- ... end +--- Behavior loop function for Tick Tock Clock rotating solid function bhv_ttc_rotating_solid_update() -- ... end +--- Behavior loop function for Tick Tock Clock spinner function bhv_ttc_spinner_update() -- ... end +--- Behavior init function for Tick Tock Clock treadmill function bhv_ttc_treadmill_init() -- ... end +--- Behavior loop function for Tick Tock Clock treadmill function bhv_ttc_treadmill_update() -- ... end +--- Behavior init function for Tall, Tall Mountain rolling log function bhv_ttm_rolling_log_init() -- ... end +--- Behavior loop function for tumbling bridge function bhv_tumbling_bridge_loop() -- ... end +--- Behavior loop function for tumbling bridge platform function bhv_tumbling_bridge_platform_loop() -- ... end +--- Behavior loop function for Tuxie's mother function bhv_tuxies_mother_loop() -- ... end +--- Behavior loop function for Tweester function bhv_tweester_loop() -- ... end +--- Behavior loop function for Tweester sand particle function bhv_tweester_sand_particle_loop() -- ... end +--- Behavior loop function for Ukiki cage function bhv_ukiki_cage_loop() -- ... end +--- Behavior loop function for Ukiki cage Star function bhv_ukiki_cage_star_loop() -- ... end +--- Behavior init function for Ukiki function bhv_ukiki_init() -- ... end +--- Behavior loop function for Ukiki function bhv_ukiki_loop() -- ... end +--- Behavior init function for Unagi function bhv_unagi_init() -- ... end +--- Behavior loop function for Unagi function bhv_unagi_loop() -- ... end +--- Behavior loop function for Unagi subobject function bhv_unagi_subobject_loop() -- ... end +--- Behavior loop function for unused particle spawn function bhv_unused_particle_spawn_loop() -- ... end +--- Behavior loop function for unused poundable platform function bhv_unused_poundable_platform() -- ... end +--- Behavior init function for Vanish Cap function bhv_vanish_cap_init() -- ... end +--- Behavior loop function for Volcano flames function bhv_volcano_flames_loop() -- ... end +--- Behavior loop function for volcano sound function bhv_volcano_sound_loop() -- ... end +--- Behavior loop function for volcano trap function bhv_volcano_trap_loop() -- ... end +--- Behavior loop function for tiny wall star particle function bhv_wall_tiny_star_particle_loop() -- ... end +--- Behavior loop function for warp function bhv_warp_loop() -- ... end +--- Behavior init function for water air bubble function bhv_water_air_bubble_init() -- ... end +--- Behavior loop function for water air bubble function bhv_water_air_bubble_loop() -- ... end +--- Behavior loop function for water bomb cannon function bhv_water_bomb_cannon_loop() -- ... end +--- Behavior loop function for water bomb shadow function bhv_water_bomb_shadow_update() -- ... end +--- Behavior loop function for water bomb spawner function bhv_water_bomb_spawner_update() -- ... end +--- Behavior loop function for water bomb function bhv_water_bomb_update() -- ... end +--- Behavior loop function for water droplet function bhv_water_droplet_loop() -- ... end +--- Behavior init function for water droplet splash function bhv_water_droplet_splash_init() -- ... end +--- Behavior loop function for Wet Dry World water level diamond function bhv_water_level_diamond_loop() -- ... end +--- Behavior init function for Castle Basement water level pillar function bhv_water_level_pillar_init() -- ... end +--- Behavior loop function for Castle Basement water level pillar function bhv_water_level_pillar_loop() -- ... end +--- Behavior loop function for water mist 2 function bhv_water_mist_2_loop() -- ... end +--- Behavior loop function for water mist function bhv_water_mist_loop() -- ... end +--- Behavior loop function for water mist spawn function bhv_water_mist_spawn_loop() -- ... end +--- Behavior init function for spawning water splash droplets function bhv_water_splash_spawn_droplets() -- ... end +--- Behavior init function for water waves function bhv_water_waves_init() -- ... end +--- Behavior loop function for waterfall sound function bhv_waterfall_sound_loop() -- ... end +--- Behavior loop function for shrinking water trail function bhv_wave_trail_shrink() -- ... end +--- Behavior loop function for Wet Dry World express elevator function bhv_wdw_express_elevator_loop() -- ... end +--- Behavior loop function for Whomp's Fortress breakable wall function bhv_wf_breakable_wall_loop() -- ... end +--- Behavior loop function for Whomp's Fortress elevator tower platform function bhv_wf_elevator_tower_platform_loop() -- ... end +--- Behavior init function for Whomp's Fortress rotating wooden platform function bhv_wf_rotating_wooden_platform_init() -- ... end +--- Behavior loop function for Whomp's Fortress rotating wooden platform function bhv_wf_rotating_wooden_platform_loop() -- ... end +--- Behavior init function for Whomp's Fortress sliding platform function bhv_wf_sliding_platform_init() -- ... end +--- Behavior loop function for Whomp's Fortress sliding platform function bhv_wf_sliding_platform_loop() -- ... end +--- Behavior loop function for Whomp's Fortress sliding tower platform function bhv_wf_sliding_tower_platform_loop() -- ... end +--- Behavior loop function for Whomp's Fortress solid tower platform function bhv_wf_solid_tower_platform_loop() -- ... end +--- Behavior init function for whirlpool function bhv_whirlpool_init() -- ... end +--- Behavior loop function for whirlpool function bhv_whirlpool_loop() -- ... end +--- Behavior loop function for white puff 1 function bhv_white_puff_1_loop() -- ... end +--- Behavior loop function for white puff 2 function bhv_white_puff_2_loop() -- ... end +--- Behavior loop function for white puff exploding function bhv_white_puff_exploding_loop() -- ... end +--- Behavior init function for White puff smoke function bhv_white_puff_smoke_init() -- ... end +--- Behavior loop function for Whomp function bhv_whomp_loop() -- ... end +--- Behavior loop function for Wiggler body part function bhv_wiggler_body_part_update() -- ... end +--- Behavior loop function for Wiggler function bhv_wiggler_update() -- ... end +--- Behavior loop function for wind function bhv_wind_loop() -- ... end +--- Behavior init function for Wing Cap function bhv_wing_cap_init() -- ... end +--- Behavior loop function for Wing and Vanish caps function bhv_wing_vanish_cap_loop() -- ... end +--- Behavior loop function for ground poundable wooden post function bhv_wooden_post_update() -- ... end +--- Behavior init function for Yellow Coin function bhv_yellow_coin_init() -- ... end +--- Behavior loop function for Yellow Coin function bhv_yellow_coin_loop() -- ... end +--- Behavior init function for Yoshi function bhv_yoshi_init() -- ... end +--- Behavior loop function for Yoshi function bhv_yoshi_loop() -- ... end @@ -2229,11 +2780,13 @@ end --- @param a0 number --- @param a1 number --- @return integer +--- Checks if the current object is moving `a1` units over a floor and within a threshold of `a0` function check_if_moving_over_floor(a0, a1) -- ... end --- @param flags integer +--- Clears the particle flags of the current object function clear_particle_flags(flags) -- ... end @@ -2241,6 +2794,7 @@ end --- @param sp28 number --- @param sp2C number --- @param sp30 integer +--- Common behavior for when Mario's anchoring when grabbed function common_anchor_mario_behavior(sp28, sp2C, sp30) -- ... end @@ -2250,20 +2804,24 @@ end --- @param relPosX number --- @param relPosY number --- @param relPosZ number +--- Spawns strong wind particles relative to the current object function cur_obj_spawn_strong_wind_particles(windSpread, scale, relPosX, relPosY, relPosZ) -- ... end --- @return integer +--- Checks if Mario is moving fast enough to make Piranha Plant bite. This one is a mouthful function mario_moving_fast_enough_to_make_piranha_plant_bite() -- ... end +--- Sets the secondary camera focus function obj_set_secondary_camera_focus() -- ... end --- @param walk integer +--- Plays the penguin walking sound function play_penguin_walking_sound(walk) -- ... end @@ -2272,10 +2830,12 @@ end --- @param y number --- @param z number --- @return Object +--- Spawns a Star with an ID corresponding to the current object's first behavior parameter byte function spawn_default_star(x, y, z) -- ... end +--- Spawns mist particles around the current object function spawn_mist_from_global() -- ... end @@ -2283,6 +2843,7 @@ end --- @param count integer --- @param offsetY integer --- @param size number +--- Spawns mist particles around the current object function spawn_mist_particles_variable(count, offsetY, size) -- ... end @@ -2291,6 +2852,7 @@ end --- @param y number --- @param z number --- @return Object +--- Spawns a Star that won't make Mario exit the level with an ID corresponding to the current object's first behavior parameter byte function spawn_no_exit_star(x, y, z) -- ... end @@ -2299,10 +2861,12 @@ end --- @param y number --- @param z number --- @return Object +--- Spawns a Red Coin cutscene star with an ID corresponding to the current object's first behavior parameter byte function spawn_red_coin_cutscene_star(x, y, z) -- ... end +--- Spawns a star number function spawn_star_number() -- ... end @@ -2311,12 +2875,14 @@ end --- @param triModel integer --- @param triSize number --- @param triAnimState integer +--- Spawns triangle break particles around the current object function spawn_triangle_break_particles(numTris, triModel, triSize, triAnimState) -- ... end --- @param pitch integer --- @param yaw integer +--- Spawns wind particles around the current object function spawn_wind_particles(pitch, yaw) -- ... end @@ -2325,22 +2891,26 @@ end --- @param a1 number --- @param deltaPitch integer --- @param deltaRoll integer +--- Moves Tox Box function tox_box_move(forwardVel, a1, deltaPitch, deltaRoll) -- ... end --- @param angle Pointer_integer --- @return integer +--- Updates the current object's angle from its move flags function update_angle_from_move_flags(angle) -- ... end +--- Behavior loop function for UV texture scrolling function uv_update_scroll() -- ... end --- @param dest Vec3f --- @param src Vec3f +--- Duplicate of vec3f_copy except without bad return function vec3f_copy_2(dest, src) -- ... end diff --git a/docs/lua/functions-2.md b/docs/lua/functions-2.md index fad7d1aa8..9c6ad3bd7 100644 --- a/docs/lua/functions-2.md +++ b/docs/lua/functions-2.md @@ -13,14 +13,17 @@ ## [arc_to_goal_pos](#arc_to_goal_pos) +### Description +Calculates the time it takes for the current object to follow an arc from `pos` to `goal` + ### Lua Example -`local integerValue = arc_to_goal_pos(a0, a1, yVel, gravity)` +`local integerValue = arc_to_goal_pos(goal, pos, yVel, gravity)` ### Parameters | Field | Type | | ----- | ---- | -| a0 | [Vec3f](structs.md#Vec3f) | -| a1 | [Vec3f](structs.md#Vec3f) | +| goal | [Vec3f](structs.md#Vec3f) | +| pos | [Vec3f](structs.md#Vec3f) | | yVel | `number` | | gravity | `number` | @@ -28,7 +31,7 @@ - `integer` ### C Prototype -`s32 arc_to_goal_pos(Vec3f a0, Vec3f a1, f32 yVel, f32 gravity);` +`s32 arc_to_goal_pos(Vec3f goal, Vec3f pos, f32 yVel, f32 gravity);` [:arrow_up_small:](#) @@ -36,6 +39,9 @@ ## [bhv_1up_common_init](#bhv_1up_common_init) +### Description +Behavior init function for common 1-Up + ### Lua Example `bhv_1up_common_init()` @@ -54,6 +60,9 @@ ## [bhv_1up_hidden_in_pole_loop](#bhv_1up_hidden_in_pole_loop) +### Description +Behavior loop function for hidden 1-Up in pole (Green Demon) + ### Lua Example `bhv_1up_hidden_in_pole_loop()` @@ -72,6 +81,9 @@ ## [bhv_1up_hidden_in_pole_spawner_loop](#bhv_1up_hidden_in_pole_spawner_loop) +### Description +Behavior loop function for 1-Up hidden in pole spawner + ### Lua Example `bhv_1up_hidden_in_pole_spawner_loop()` @@ -90,6 +102,9 @@ ## [bhv_1up_hidden_in_pole_trigger_loop](#bhv_1up_hidden_in_pole_trigger_loop) +### Description +Behavior loop function for 1-Up hidden in pole trigger + ### Lua Example `bhv_1up_hidden_in_pole_trigger_loop()` @@ -108,6 +123,9 @@ ## [bhv_1up_hidden_loop](#bhv_1up_hidden_loop) +### Description +Behavior loop function for hidden 1-Up + ### Lua Example `bhv_1up_hidden_loop()` @@ -126,6 +144,9 @@ ## [bhv_1up_hidden_trigger_loop](#bhv_1up_hidden_trigger_loop) +### Description +Behavior loop function for hidden 1-Up trigger + ### Lua Example `bhv_1up_hidden_trigger_loop()` @@ -144,6 +165,9 @@ ## [bhv_1up_init](#bhv_1up_init) +### Description +Behavior init function for 1-Up + ### Lua Example `bhv_1up_init()` @@ -162,6 +186,9 @@ ## [bhv_1up_jump_on_approach_loop](#bhv_1up_jump_on_approach_loop) +### Description +Behavior loop function for jump on approach 1-Up + ### Lua Example `bhv_1up_jump_on_approach_loop()` @@ -180,6 +207,9 @@ ## [bhv_1up_loop](#bhv_1up_loop) +### Description +Behavior loop function for 1-Up + ### Lua Example `bhv_1up_loop()` @@ -198,6 +228,9 @@ ## [bhv_1up_running_away_loop](#bhv_1up_running_away_loop) +### Description +Behavior loop function for running away 1-Up + ### Lua Example `bhv_1up_running_away_loop()` @@ -216,6 +249,9 @@ ## [bhv_1up_sliding_loop](#bhv_1up_sliding_loop) +### Description +Behavior loop function for sliding 1-Up + ### Lua Example `bhv_1up_sliding_loop()` @@ -234,6 +270,9 @@ ## [bhv_1up_trigger_init](#bhv_1up_trigger_init) +### Description +Behavior init function for 1-Up trigger + ### Lua Example `bhv_1up_trigger_init()` @@ -252,6 +291,9 @@ ## [bhv_1up_walking_loop](#bhv_1up_walking_loop) +### Description +Behavior loop function for walking 1-Up + ### Lua Example `bhv_1up_walking_loop()` @@ -270,6 +312,9 @@ ## [bhv_act_selector_init](#bhv_act_selector_init) +### Description +Behavior init function for Act Selector + ### Lua Example `bhv_act_selector_init()` @@ -288,6 +333,9 @@ ## [bhv_act_selector_loop](#bhv_act_selector_loop) +### Description +Behavior loop function for Act Selector + ### Lua Example `bhv_act_selector_loop()` @@ -306,6 +354,9 @@ ## [bhv_act_selector_star_type_loop](#bhv_act_selector_star_type_loop) +### Description +Behavior loop function for Act Selector star type + ### Lua Example `bhv_act_selector_star_type_loop()` @@ -324,6 +375,9 @@ ## [bhv_activated_back_and_forth_platform_init](#bhv_activated_back_and_forth_platform_init) +### Description +Behavior init function for activated back and forth platform in Bowser courses + ### Lua Example `bhv_activated_back_and_forth_platform_init()` @@ -342,6 +396,9 @@ ## [bhv_activated_back_and_forth_platform_update](#bhv_activated_back_and_forth_platform_update) +### Description +Behavior loop function for activated back and forth platform in Bowser courses + ### Lua Example `bhv_activated_back_and_forth_platform_update()` @@ -360,6 +417,9 @@ ## [bhv_alpha_boo_key_loop](#bhv_alpha_boo_key_loop) +### Description +Behavior loop function for alpha boo key + ### Lua Example `bhv_alpha_boo_key_loop()` @@ -378,6 +438,9 @@ ## [bhv_ambient_sounds_init](#bhv_ambient_sounds_init) +### Description +Behavior init function for ambient sounds + ### Lua Example `bhv_ambient_sounds_init()` @@ -396,6 +459,9 @@ ## [bhv_animated_texture_loop](#bhv_animated_texture_loop) +### Description +Behavior loop function for animated texture + ### Lua Example `bhv_animated_texture_loop()` @@ -414,6 +480,9 @@ ## [bhv_animates_on_floor_switch_press_init](#bhv_animates_on_floor_switch_press_init) +### Description +Behavior init function for animates on floor switch press in Rainbow Ride and Bowser courses + ### Lua Example `bhv_animates_on_floor_switch_press_init()` @@ -432,6 +501,9 @@ ## [bhv_animates_on_floor_switch_press_loop](#bhv_animates_on_floor_switch_press_loop) +### Description +Behavior loop function for animates on floor switch press in Rainbow Ride and Bowser courses + ### Lua Example `bhv_animates_on_floor_switch_press_loop()` @@ -450,6 +522,9 @@ ## [bhv_arrow_lift_loop](#bhv_arrow_lift_loop) +### Description +Behavior loop function for Wet Dry World arrow lift + ### Lua Example `bhv_arrow_lift_loop()` @@ -468,6 +543,9 @@ ## [bhv_bbh_tilting_trap_platform_loop](#bhv_bbh_tilting_trap_platform_loop) +### Description +Behavior loop function for Big Boo's Haunt tilting trap platform + ### Lua Example `bhv_bbh_tilting_trap_platform_loop()` @@ -486,6 +564,9 @@ ## [bhv_beta_boo_key_loop](#bhv_beta_boo_key_loop) +### Description +Behavior loop function for beta boo key + ### Lua Example `bhv_beta_boo_key_loop()` @@ -504,6 +585,9 @@ ## [bhv_beta_bowser_anchor_loop](#bhv_beta_bowser_anchor_loop) +### Description +Behavior loop function for beta Bowser anchor + ### Lua Example `bhv_beta_bowser_anchor_loop()` @@ -522,6 +606,9 @@ ## [bhv_beta_chest_bottom_init](#bhv_beta_chest_bottom_init) +### Description +Behavior init function for beta chest bottom + ### Lua Example `bhv_beta_chest_bottom_init()` @@ -540,6 +627,9 @@ ## [bhv_beta_chest_bottom_loop](#bhv_beta_chest_bottom_loop) +### Description +Behavior loop function for beta chest bottom + ### Lua Example `bhv_beta_chest_bottom_loop()` @@ -558,6 +648,9 @@ ## [bhv_beta_chest_lid_loop](#bhv_beta_chest_lid_loop) +### Description +Behavior loop function for beta chest lid + ### Lua Example `bhv_beta_chest_lid_loop()` @@ -576,6 +669,9 @@ ## [bhv_beta_fish_splash_spawner_loop](#bhv_beta_fish_splash_spawner_loop) +### Description +Behavior loop function for beta fish splash spawner + ### Lua Example `bhv_beta_fish_splash_spawner_loop()` @@ -594,6 +690,9 @@ ## [bhv_beta_holdable_object_init](#bhv_beta_holdable_object_init) +### Description +Behavior init function for beta holdable object + ### Lua Example `bhv_beta_holdable_object_init()` @@ -612,6 +711,9 @@ ## [bhv_beta_holdable_object_loop](#bhv_beta_holdable_object_loop) +### Description +Behavior loop function for beta holdable object + ### Lua Example `bhv_beta_holdable_object_loop()` @@ -630,6 +732,9 @@ ## [bhv_beta_moving_flames_loop](#bhv_beta_moving_flames_loop) +### Description +Behavior loop function for beta moving flames + ### Lua Example `bhv_beta_moving_flames_loop()` @@ -648,6 +753,9 @@ ## [bhv_beta_moving_flames_spawn_loop](#bhv_beta_moving_flames_spawn_loop) +### Description +Behavior loop function for beta moving flames spawn + ### Lua Example `bhv_beta_moving_flames_spawn_loop()` @@ -666,6 +774,9 @@ ## [bhv_beta_trampoline_spring_loop](#bhv_beta_trampoline_spring_loop) +### Description +Behavior loop function for beta trampoline spring + ### Lua Example `bhv_beta_trampoline_spring_loop()` @@ -684,6 +795,9 @@ ## [bhv_beta_trampoline_top_loop](#bhv_beta_trampoline_top_loop) +### Description +Behavior loop function for beta trampoline top + ### Lua Example `bhv_beta_trampoline_top_loop()` @@ -702,6 +816,9 @@ ## [bhv_big_boo_loop](#bhv_big_boo_loop) +### Description +Behavior loop function for Big Boo + ### Lua Example `bhv_big_boo_loop()` @@ -720,6 +837,9 @@ ## [bhv_big_boulder_generator_loop](#bhv_big_boulder_generator_loop) +### Description +Behavior loop function for big boulder generator + ### Lua Example `bhv_big_boulder_generator_loop()` @@ -738,6 +858,9 @@ ## [bhv_big_boulder_init](#bhv_big_boulder_init) +### Description +Behavior init function for big boulder + ### Lua Example `bhv_big_boulder_init()` @@ -756,6 +879,9 @@ ## [bhv_big_boulder_loop](#bhv_big_boulder_loop) +### Description +Behavior loop function for big boulder + ### Lua Example `bhv_big_boulder_loop()` @@ -774,6 +900,9 @@ ## [bhv_big_bully_init](#bhv_big_bully_init) +### Description +Behavior init function for Big Bully + ### Lua Example `bhv_big_bully_init()` @@ -792,6 +921,9 @@ ## [bhv_big_bully_with_minions_init](#bhv_big_bully_with_minions_init) +### Description +Behavior init function for Big Bully with minions + ### Lua Example `bhv_big_bully_with_minions_init()` @@ -810,6 +942,9 @@ ## [bhv_big_bully_with_minions_loop](#bhv_big_bully_with_minions_loop) +### Description +Behavior loop function for Big Bully with minions + ### Lua Example `bhv_big_bully_with_minions_loop()` @@ -828,6 +963,9 @@ ## [bhv_bird_update](#bhv_bird_update) +### Description +Behavior loop function for bird + ### Lua Example `bhv_bird_update()` @@ -846,6 +984,9 @@ ## [bhv_birds_sound_loop](#bhv_birds_sound_loop) +### Description +Behavior loop function for birds sound + ### Lua Example `bhv_birds_sound_loop()` @@ -864,6 +1005,9 @@ ## [bhv_bitfs_sinking_cage_platform_loop](#bhv_bitfs_sinking_cage_platform_loop) +### Description +Behavior loop function for Bowser in the Fire Sea sinking cage platform + ### Lua Example `bhv_bitfs_sinking_cage_platform_loop()` @@ -882,6 +1026,9 @@ ## [bhv_bitfs_sinking_platform_loop](#bhv_bitfs_sinking_platform_loop) +### Description +Behavior loop function for Bowser in the Fire Sea sinking platform + ### Lua Example `bhv_bitfs_sinking_platform_loop()` @@ -900,6 +1047,9 @@ ## [bhv_black_smoke_bowser_loop](#bhv_black_smoke_bowser_loop) +### Description +Behavior loop function for black smoke Bowser + ### Lua Example `bhv_black_smoke_bowser_loop()` @@ -918,6 +1068,9 @@ ## [bhv_black_smoke_mario_loop](#bhv_black_smoke_mario_loop) +### Description +Behavior loop function for black smoke Mario + ### Lua Example `bhv_black_smoke_mario_loop()` @@ -936,6 +1089,9 @@ ## [bhv_black_smoke_upward_loop](#bhv_black_smoke_upward_loop) +### Description +Behavior loop function for black smoke upward + ### Lua Example `bhv_black_smoke_upward_loop()` @@ -954,6 +1110,9 @@ ## [bhv_blue_bowser_flame_init](#bhv_blue_bowser_flame_init) +### Description +Behavior init function for Blue Bowser flame + ### Lua Example `bhv_blue_bowser_flame_init()` @@ -972,6 +1131,9 @@ ## [bhv_blue_bowser_flame_loop](#bhv_blue_bowser_flame_loop) +### Description +Behavior loop function for Blue Bowser flame + ### Lua Example `bhv_blue_bowser_flame_loop()` @@ -990,6 +1152,9 @@ ## [bhv_blue_coin_jumping_loop](#bhv_blue_coin_jumping_loop) +### Description +Behavior loop function for Blue Coin jumping + ### Lua Example `bhv_blue_coin_jumping_loop()` @@ -1008,6 +1173,9 @@ ## [bhv_blue_coin_number_loop](#bhv_blue_coin_number_loop) +### Description +Behavior loop function for Blue Coin number + ### Lua Example `bhv_blue_coin_number_loop()` @@ -1026,6 +1194,9 @@ ## [bhv_blue_coin_sliding_jumping_init](#bhv_blue_coin_sliding_jumping_init) +### Description +Behavior init function for Blue Coin sliding jumping + ### Lua Example `bhv_blue_coin_sliding_jumping_init()` @@ -1044,6 +1215,9 @@ ## [bhv_blue_coin_sliding_loop](#bhv_blue_coin_sliding_loop) +### Description +Behavior loop function for Blue Coin sliding + ### Lua Example `bhv_blue_coin_sliding_loop()` @@ -1062,6 +1236,9 @@ ## [bhv_blue_coin_switch_init](#bhv_blue_coin_switch_init) +### Description +Behavior init function for Blue Coin switch + ### Lua Example `bhv_blue_coin_switch_init()` @@ -1080,6 +1257,9 @@ ## [bhv_blue_coin_switch_loop](#bhv_blue_coin_switch_loop) +### Description +Behavior loop function for Blue Coin switch + ### Lua Example `bhv_blue_coin_switch_loop()` @@ -1098,6 +1278,9 @@ ## [bhv_blue_fish_movement_loop](#bhv_blue_fish_movement_loop) +### Description +Behavior loop function for blue fish movement + ### Lua Example `bhv_blue_fish_movement_loop()` @@ -1116,6 +1299,9 @@ ## [bhv_blue_flames_group_loop](#bhv_blue_flames_group_loop) +### Description +Behavior loop function for blue flames group + ### Lua Example `bhv_blue_flames_group_loop()` @@ -1134,6 +1320,9 @@ ## [bhv_bob_pit_bowling_ball_init](#bhv_bob_pit_bowling_ball_init) +### Description +Behavior init function for Bob-omb Battlefield pit bowling ball + ### Lua Example `bhv_bob_pit_bowling_ball_init()` @@ -1152,6 +1341,9 @@ ## [bhv_bob_pit_bowling_ball_loop](#bhv_bob_pit_bowling_ball_loop) +### Description +Behavior loop function for Bob-omb Battlefield pit bowling ball + ### Lua Example `bhv_bob_pit_bowling_ball_loop()` @@ -1170,6 +1362,9 @@ ## [bhv_bobomb_anchor_mario_loop](#bhv_bobomb_anchor_mario_loop) +### Description +Behavior loop function for Bob-omb anchor mario + ### Lua Example `bhv_bobomb_anchor_mario_loop()` @@ -1188,6 +1383,9 @@ ## [bhv_bobomb_buddy_init](#bhv_bobomb_buddy_init) +### Description +Behavior init function for Bob-omb buddy + ### Lua Example `bhv_bobomb_buddy_init()` @@ -1206,6 +1404,9 @@ ## [bhv_bobomb_buddy_loop](#bhv_bobomb_buddy_loop) +### Description +Behavior loop function for Bob-omb buddy + ### Lua Example `bhv_bobomb_buddy_loop()` @@ -1224,6 +1425,9 @@ ## [bhv_bobomb_bully_death_smoke_init](#bhv_bobomb_bully_death_smoke_init) +### Description +Behavior init function for Bob-omb and Bully death smoke + ### Lua Example `bhv_bobomb_bully_death_smoke_init()` @@ -1242,6 +1446,9 @@ ## [bhv_bobomb_explosion_bubble_init](#bhv_bobomb_explosion_bubble_init) +### Description +Behavior init function for Bob-omb explosion bubble + ### Lua Example `bhv_bobomb_explosion_bubble_init()` @@ -1260,6 +1467,9 @@ ## [bhv_bobomb_explosion_bubble_loop](#bhv_bobomb_explosion_bubble_loop) +### Description +Behavior loop function for Bob-omb explosion bubble + ### Lua Example `bhv_bobomb_explosion_bubble_loop()` @@ -1278,6 +1488,9 @@ ## [bhv_bobomb_fuse_smoke_init](#bhv_bobomb_fuse_smoke_init) +### Description +Behavior init function for Bob-omb fuse smoke + ### Lua Example `bhv_bobomb_fuse_smoke_init()` @@ -1296,6 +1509,9 @@ ## [bhv_bobomb_init](#bhv_bobomb_init) +### Description +Behavior init function for Bob-omb + ### Lua Example `bhv_bobomb_init()` @@ -1314,6 +1530,9 @@ ## [bhv_bobomb_loop](#bhv_bobomb_loop) +### Description +Behavior loop function for Bob-omb + ### Lua Example `bhv_bobomb_loop()` @@ -1332,6 +1551,9 @@ ## [bhv_boo_boss_spawned_bridge_loop](#bhv_boo_boss_spawned_bridge_loop) +### Description +Behavior loop function for Boo boss spawned bridge + ### Lua Example `bhv_boo_boss_spawned_bridge_loop()` @@ -1350,6 +1572,9 @@ ## [bhv_boo_cage_init](#bhv_boo_cage_init) +### Description +Behavior init function for Boo cage + ### Lua Example `bhv_boo_cage_init()` @@ -1368,6 +1593,9 @@ ## [bhv_boo_cage_loop](#bhv_boo_cage_loop) +### Description +Behavior loop function for Boo cage + ### Lua Example `bhv_boo_cage_loop()` @@ -1386,6 +1614,9 @@ ## [bhv_boo_in_castle_loop](#bhv_boo_in_castle_loop) +### Description +Behavior loop function for the Boo inside the Castle + ### Lua Example `bhv_boo_in_castle_loop()` @@ -1404,6 +1635,9 @@ ## [bhv_boo_init](#bhv_boo_init) +### Description +Behavior init function for Boo + ### Lua Example `bhv_boo_init()` @@ -1422,6 +1656,9 @@ ## [bhv_boo_loop](#bhv_boo_loop) +### Description +Behavior loop function for Boo + ### Lua Example `bhv_boo_loop()` @@ -1440,6 +1677,9 @@ ## [bhv_boo_with_cage_init](#bhv_boo_with_cage_init) +### Description +Behavior init function for Boo with cage + ### Lua Example `bhv_boo_with_cage_init()` @@ -1458,6 +1698,9 @@ ## [bhv_boo_with_cage_loop](#bhv_boo_with_cage_loop) +### Description +Behavior loop function for Boo with cage + ### Lua Example `bhv_boo_with_cage_loop()` @@ -1476,6 +1719,9 @@ ## [bhv_book_switch_loop](#bhv_book_switch_loop) +### Description +Behavior loop function for Book switch + ### Lua Example `bhv_book_switch_loop()` @@ -1494,6 +1740,9 @@ ## [bhv_bookend_spawn_loop](#bhv_bookend_spawn_loop) +### Description +Behavior loop function for Bookend spawn + ### Lua Example `bhv_bookend_spawn_loop()` @@ -1512,6 +1761,9 @@ ## [bhv_bouncing_fireball_flame_loop](#bhv_bouncing_fireball_flame_loop) +### Description +Behavior loop function for bouncing fireball flame + ### Lua Example `bhv_bouncing_fireball_flame_loop()` @@ -1530,6 +1782,9 @@ ## [bhv_bouncing_fireball_loop](#bhv_bouncing_fireball_loop) +### Description +Behavior loop function for bouncing fireball + ### Lua Example `bhv_bouncing_fireball_loop()` @@ -1548,6 +1803,9 @@ ## [bhv_bowling_ball_init](#bhv_bowling_ball_init) +### Description +Behavior init function for bowling ball + ### Lua Example `bhv_bowling_ball_init()` @@ -1566,6 +1824,9 @@ ## [bhv_bowling_ball_loop](#bhv_bowling_ball_loop) +### Description +Behavior loop function for bowling ball + ### Lua Example `bhv_bowling_ball_loop()` @@ -1584,6 +1845,9 @@ ## [bhv_bowser_body_anchor_init](#bhv_bowser_body_anchor_init) +### Description +Behavior init function for Bowser body anchor + ### Lua Example `bhv_bowser_body_anchor_init()` @@ -1602,6 +1866,9 @@ ## [bhv_bowser_body_anchor_loop](#bhv_bowser_body_anchor_loop) +### Description +Behavior loop function for Bowser body anchor + ### Lua Example `bhv_bowser_body_anchor_loop()` @@ -1620,6 +1887,9 @@ ## [bhv_bowser_bomb_explosion_loop](#bhv_bowser_bomb_explosion_loop) +### Description +Behavior loop function for Bowser bomb explosion + ### Lua Example `bhv_bowser_bomb_explosion_loop()` @@ -1638,6 +1908,9 @@ ## [bhv_bowser_bomb_loop](#bhv_bowser_bomb_loop) +### Description +Behavior loop function for Bowser bomb + ### Lua Example `bhv_bowser_bomb_loop()` @@ -1656,6 +1929,9 @@ ## [bhv_bowser_bomb_smoke_loop](#bhv_bowser_bomb_smoke_loop) +### Description +Behavior loop function for Bowser bomb smoke + ### Lua Example `bhv_bowser_bomb_smoke_loop()` @@ -1674,6 +1950,9 @@ ## [bhv_bowser_course_red_coin_star_loop](#bhv_bowser_course_red_coin_star_loop) +### Description +Behavior loop function for Bowser course Red Coin Star + ### Lua Example `bhv_bowser_course_red_coin_star_loop()` @@ -1692,6 +1971,9 @@ ## [bhv_bowser_flame_spawn_loop](#bhv_bowser_flame_spawn_loop) +### Description +Behavior loop function for Bowser flame spawn + ### Lua Example `bhv_bowser_flame_spawn_loop()` @@ -1710,6 +1992,9 @@ ## [bhv_bowser_init](#bhv_bowser_init) +### Description +Behavior init function for Bowser + ### Lua Example `bhv_bowser_init()` @@ -1728,6 +2013,9 @@ ## [bhv_bowser_key_course_exit_loop](#bhv_bowser_key_course_exit_loop) +### Description +Behavior loop function for Bowser key course exit + ### Lua Example `bhv_bowser_key_course_exit_loop()` @@ -1746,6 +2034,9 @@ ## [bhv_bowser_key_init](#bhv_bowser_key_init) +### Description +Behavior init function for Bowser key + ### Lua Example `bhv_bowser_key_init()` @@ -1764,6 +2055,9 @@ ## [bhv_bowser_key_loop](#bhv_bowser_key_loop) +### Description +Behavior loop function for Bowser key + ### Lua Example `bhv_bowser_key_loop()` @@ -1782,6 +2076,9 @@ ## [bhv_bowser_key_unlock_door_loop](#bhv_bowser_key_unlock_door_loop) +### Description +Behavior loop function for Bowser key unlock door + ### Lua Example `bhv_bowser_key_unlock_door_loop()` @@ -1800,6 +2097,9 @@ ## [bhv_bowser_loop](#bhv_bowser_loop) +### Description +Behavior loop function for Bowser + ### Lua Example `bhv_bowser_loop()` @@ -1818,6 +2118,9 @@ ## [bhv_bowser_shock_wave_loop](#bhv_bowser_shock_wave_loop) +### Description +Behavior loop function for Bowser shock wave + ### Lua Example `bhv_bowser_shock_wave_loop()` @@ -1836,6 +2139,9 @@ ## [bhv_bowser_tail_anchor_init](#bhv_bowser_tail_anchor_init) +### Description +Behavior init function for Bowser tail anchor + ### Lua Example `bhv_bowser_tail_anchor_init()` @@ -1854,6 +2160,9 @@ ## [bhv_bowser_tail_anchor_loop](#bhv_bowser_tail_anchor_loop) +### Description +Behavior loop function for Bowser tail anchor + ### Lua Example `bhv_bowser_tail_anchor_loop()` @@ -1872,6 +2181,9 @@ ## [bhv_bowsers_sub_loop](#bhv_bowsers_sub_loop) +### Description +Behavior loop function for Bowser's submarine + ### Lua Example `bhv_bowsers_sub_loop()` @@ -1890,6 +2202,9 @@ ## [bhv_breakable_box_loop](#bhv_breakable_box_loop) +### Description +Behavior loop function for breakable box + ### Lua Example `bhv_breakable_box_loop()` @@ -1908,6 +2223,9 @@ ## [bhv_breakable_box_small_init](#bhv_breakable_box_small_init) +### Description +Behavior init function for small breakable box + ### Lua Example `bhv_breakable_box_small_init()` @@ -1926,6 +2244,9 @@ ## [bhv_breakable_box_small_loop](#bhv_breakable_box_small_loop) +### Description +Behavior loop function for small breakable box + ### Lua Example `bhv_breakable_box_small_loop()` @@ -1944,6 +2265,9 @@ ## [bhv_bub_loop](#bhv_bub_loop) +### Description +Behavior loop function for Bub + ### Lua Example `bhv_bub_loop()` @@ -1962,6 +2286,9 @@ ## [bhv_bub_spawner_loop](#bhv_bub_spawner_loop) +### Description +Behavior loop function for Bub spawner + ### Lua Example `bhv_bub_spawner_loop()` @@ -1980,6 +2307,9 @@ ## [bhv_bubba_loop](#bhv_bubba_loop) +### Description +Behavior loop function for Bubba + ### Lua Example `bhv_bubba_loop()` @@ -1998,6 +2328,9 @@ ## [bhv_bubble_cannon_barrel_loop](#bhv_bubble_cannon_barrel_loop) +### Description +Behavior loop function for bubble cannon barrel + ### Lua Example `bhv_bubble_cannon_barrel_loop()` @@ -2016,6 +2349,9 @@ ## [bhv_bubble_maybe_loop](#bhv_bubble_maybe_loop) +### Description +Behavior loop function for bubble maybe + ### Lua Example `bhv_bubble_maybe_loop()` @@ -2034,6 +2370,9 @@ ## [bhv_bubble_player_loop](#bhv_bubble_player_loop) +### Description +Behavior loop function for bubble player + ### Lua Example `bhv_bubble_player_loop()` @@ -2052,6 +2391,9 @@ ## [bhv_bubble_splash_init](#bhv_bubble_splash_init) +### Description +Behavior init function for bubble splash + ### Lua Example `bhv_bubble_splash_init()` @@ -2070,6 +2412,9 @@ ## [bhv_bubble_wave_init](#bhv_bubble_wave_init) +### Description +Behavior init function for bubble wave + ### Lua Example `bhv_bubble_wave_init()` @@ -2088,6 +2433,9 @@ ## [bhv_bullet_bill_init](#bhv_bullet_bill_init) +### Description +Behavior init function for Bullet Bill + ### Lua Example `bhv_bullet_bill_init()` @@ -2106,6 +2454,9 @@ ## [bhv_bullet_bill_loop](#bhv_bullet_bill_loop) +### Description +Behavior loop function for Bullet Bill + ### Lua Example `bhv_bullet_bill_loop()` @@ -2124,6 +2475,9 @@ ## [bhv_bully_loop](#bhv_bully_loop) +### Description +Behavior loop function for Bully + ### Lua Example `bhv_bully_loop()` @@ -2142,6 +2496,9 @@ ## [bhv_butterfly_init](#bhv_butterfly_init) +### Description +Behavior init function for Butterfly + ### Lua Example `bhv_butterfly_init()` @@ -2160,6 +2517,9 @@ ## [bhv_butterfly_loop](#bhv_butterfly_loop) +### Description +Behavior loop function for Butterfly + ### Lua Example `bhv_butterfly_loop()` @@ -2178,6 +2538,9 @@ ## [bhv_camera_lakitu_init](#bhv_camera_lakitu_init) +### Description +Behavior init function for Camera Lakitu + ### Lua Example `bhv_camera_lakitu_init()` @@ -2196,6 +2559,9 @@ ## [bhv_camera_lakitu_update](#bhv_camera_lakitu_update) +### Description +Behavior loop function for Camera Lakitu + ### Lua Example `bhv_camera_lakitu_update()` @@ -2214,6 +2580,9 @@ ## [bhv_cannon_barrel_loop](#bhv_cannon_barrel_loop) +### Description +Behavior loop function for cannon barrel + ### Lua Example `bhv_cannon_barrel_loop()` @@ -2232,6 +2601,9 @@ ## [bhv_cannon_base_loop](#bhv_cannon_base_loop) +### Description +Behavior loop function for cannon base + ### Lua Example `bhv_cannon_base_loop()` @@ -2250,6 +2622,9 @@ ## [bhv_cannon_base_unused_loop](#bhv_cannon_base_unused_loop) +### Description +Behavior loop function for cannon base unused + ### Lua Example `bhv_cannon_base_unused_loop()` @@ -2268,6 +2643,9 @@ ## [bhv_cannon_closed_init](#bhv_cannon_closed_init) +### Description +Behavior init function for cannon closed + ### Lua Example `bhv_cannon_closed_init()` @@ -2286,6 +2664,9 @@ ## [bhv_cannon_closed_loop](#bhv_cannon_closed_loop) +### Description +Behavior loop function for cannon closed + ### Lua Example `bhv_cannon_closed_loop()` @@ -2304,6 +2685,9 @@ ## [bhv_cap_switch_loop](#bhv_cap_switch_loop) +### Description +Behavior loop function for Cap Switch + ### Lua Example `bhv_cap_switch_loop()` @@ -2322,6 +2706,9 @@ ## [bhv_castle_cannon_grate_init](#bhv_castle_cannon_grate_init) +### Description +Behavior init function for Castle cannon grate + ### Lua Example `bhv_castle_cannon_grate_init()` @@ -2340,6 +2727,9 @@ ## [bhv_castle_flag_init](#bhv_castle_flag_init) +### Description +Behavior init function for castle flag + ### Lua Example `bhv_castle_flag_init()` @@ -2358,6 +2748,9 @@ ## [bhv_castle_floor_trap_init](#bhv_castle_floor_trap_init) +### Description +Behavior init function for Bowser in the Dark World floor trap manager + ### Lua Example `bhv_castle_floor_trap_init()` @@ -2376,6 +2769,9 @@ ## [bhv_castle_floor_trap_loop](#bhv_castle_floor_trap_loop) +### Description +Behavior loop function for Bowser in the Dark World floor trap manager + ### Lua Example `bhv_castle_floor_trap_loop()` @@ -2394,6 +2790,9 @@ ## [bhv_ccm_touched_star_spawn_loop](#bhv_ccm_touched_star_spawn_loop) +### Description +Behavior loop function for Cool, Cool Mountain touched Star spawn + ### Lua Example `bhv_ccm_touched_star_spawn_loop()` @@ -2412,6 +2811,9 @@ ## [bhv_celebration_star_init](#bhv_celebration_star_init) +### Description +Behavior init function for Celebration Star + ### Lua Example `bhv_celebration_star_init()` @@ -2430,6 +2832,9 @@ ## [bhv_celebration_star_loop](#bhv_celebration_star_loop) +### Description +Behavior loop function for Celebration Star + ### Lua Example `bhv_celebration_star_loop()` @@ -2448,6 +2853,9 @@ ## [bhv_celebration_star_sparkle_loop](#bhv_celebration_star_sparkle_loop) +### Description +Behavior loop function for Celebration Star sparkle + ### Lua Example `bhv_celebration_star_sparkle_loop()` @@ -2466,6 +2874,9 @@ ## [bhv_chain_chomp_chain_part_update](#bhv_chain_chomp_chain_part_update) +### Description +Behavior loop function for Chain Chomp chain part + ### Lua Example `bhv_chain_chomp_chain_part_update()` @@ -2484,6 +2895,9 @@ ## [bhv_chain_chomp_gate_init](#bhv_chain_chomp_gate_init) +### Description +Behavior init function for Chain Chomp gate + ### Lua Example `bhv_chain_chomp_gate_init()` @@ -2502,6 +2916,9 @@ ## [bhv_chain_chomp_gate_update](#bhv_chain_chomp_gate_update) +### Description +Behavior loop function for Chain Chomp gate + ### Lua Example `bhv_chain_chomp_gate_update()` @@ -2520,6 +2937,9 @@ ## [bhv_chain_chomp_update](#bhv_chain_chomp_update) +### Description +Behavior loop function for Chain Chomp + ### Lua Example `bhv_chain_chomp_update()` @@ -2538,6 +2958,9 @@ ## [bhv_checkerboard_elevator_group_init](#bhv_checkerboard_elevator_group_init) +### Description +Behavior init function for checkerboard elevator group + ### Lua Example `bhv_checkerboard_elevator_group_init()` @@ -2556,6 +2979,9 @@ ## [bhv_checkerboard_elevator_group_loop](#bhv_checkerboard_elevator_group_loop) +### Description +Behavior loop function for checkerboard elevator group + ### Lua Example `bhv_checkerboard_elevator_group_loop()` @@ -2574,6 +3000,9 @@ ## [bhv_checkerboard_platform_init](#bhv_checkerboard_platform_init) +### Description +Behavior init function for checkerboard platform + ### Lua Example `bhv_checkerboard_platform_init()` @@ -2592,6 +3021,9 @@ ## [bhv_checkerboard_platform_loop](#bhv_checkerboard_platform_loop) +### Description +Behavior loop function for checkerboard platform + ### Lua Example `bhv_checkerboard_platform_loop()` @@ -2610,6 +3042,9 @@ ## [bhv_chuckya_anchor_mario_loop](#bhv_chuckya_anchor_mario_loop) +### Description +Behavior loop function for Chuckya mario anchor + ### Lua Example `bhv_chuckya_anchor_mario_loop()` @@ -2628,6 +3063,9 @@ ## [bhv_chuckya_loop](#bhv_chuckya_loop) +### Description +Behavior loop function for Chuckya + ### Lua Example `bhv_chuckya_loop()` @@ -2646,6 +3084,9 @@ ## [bhv_circling_amp_init](#bhv_circling_amp_init) +### Description +Behavior init function for Circling Amp + ### Lua Example `bhv_circling_amp_init()` @@ -2664,6 +3105,9 @@ ## [bhv_circling_amp_loop](#bhv_circling_amp_loop) +### Description +Behavior loop function for Circling Amp + ### Lua Example `bhv_circling_amp_loop()` @@ -2682,6 +3126,9 @@ ## [bhv_clam_loop](#bhv_clam_loop) +### Description +Behavior loop function for Clam + ### Lua Example `bhv_clam_loop()` @@ -2700,6 +3147,9 @@ ## [bhv_cloud_part_update](#bhv_cloud_part_update) +### Description +Behavior loop function for cloud part + ### Lua Example `bhv_cloud_part_update()` @@ -2718,6 +3168,9 @@ ## [bhv_cloud_update](#bhv_cloud_update) +### Description +Behavior loop function for cloud + ### Lua Example `bhv_cloud_update()` @@ -2736,6 +3189,9 @@ ## [bhv_coffin_loop](#bhv_coffin_loop) +### Description +Behavior loop function for coffin + ### Lua Example `bhv_coffin_loop()` @@ -2754,6 +3210,9 @@ ## [bhv_coffin_spawner_loop](#bhv_coffin_spawner_loop) +### Description +Behavior loop function for coffin spawner + ### Lua Example `bhv_coffin_spawner_loop()` @@ -2772,6 +3231,9 @@ ## [bhv_coin_formation_init](#bhv_coin_formation_init) +### Description +Behavior init function for Coin formation + ### Lua Example `bhv_coin_formation_init()` @@ -2790,6 +3252,9 @@ ## [bhv_coin_formation_loop](#bhv_coin_formation_loop) +### Description +Behavior loop function for Coin formation + ### Lua Example `bhv_coin_formation_loop()` @@ -2808,6 +3273,9 @@ ## [bhv_coin_formation_spawn_loop](#bhv_coin_formation_spawn_loop) +### Description +Behavior loop function for Coin formation spawn + ### Lua Example `bhv_coin_formation_spawn_loop()` @@ -2826,6 +3294,9 @@ ## [bhv_coin_init](#bhv_coin_init) +### Description +Behavior init function for Coin + ### Lua Example `bhv_coin_init()` @@ -2844,6 +3315,9 @@ ## [bhv_coin_inside_boo_loop](#bhv_coin_inside_boo_loop) +### Description +Behavior loop function for Coin inside Boo + ### Lua Example `bhv_coin_inside_boo_loop()` @@ -2862,6 +3336,9 @@ ## [bhv_coin_loop](#bhv_coin_loop) +### Description +Behavior loop function for Coin + ### Lua Example `bhv_coin_loop()` @@ -2880,6 +3357,9 @@ ## [bhv_coin_sparkles_loop](#bhv_coin_sparkles_loop) +### Description +Behavior loop function for Coin sparkles + ### Lua Example `bhv_coin_sparkles_loop()` @@ -2898,6 +3378,9 @@ ## [bhv_collect_star_init](#bhv_collect_star_init) +### Description +Behavior init function for collectable Star + ### Lua Example `bhv_collect_star_init()` @@ -2916,6 +3399,9 @@ ## [bhv_collect_star_loop](#bhv_collect_star_loop) +### Description +Behavior loop function for collectable Star + ### Lua Example `bhv_collect_star_loop()` @@ -2934,6 +3420,9 @@ ## [bhv_controllable_platform_init](#bhv_controllable_platform_init) +### Description +Behavior init function for controllable platform + ### Lua Example `bhv_controllable_platform_init()` @@ -2952,6 +3441,9 @@ ## [bhv_controllable_platform_loop](#bhv_controllable_platform_loop) +### Description +Behavior loop function for controllable platform + ### Lua Example `bhv_controllable_platform_loop()` @@ -2970,6 +3462,9 @@ ## [bhv_controllable_platform_sub_loop](#bhv_controllable_platform_sub_loop) +### Description +Behavior loop function for controllable sub platform + ### Lua Example `bhv_controllable_platform_sub_loop()` @@ -2988,6 +3483,9 @@ ## [bhv_courtyard_boo_triplet_init](#bhv_courtyard_boo_triplet_init) +### Description +Behavior init function for Courtyard Boo triplet + ### Lua Example `bhv_courtyard_boo_triplet_init()` @@ -3006,6 +3504,9 @@ ## [bhv_ddd_moving_pole_loop](#bhv_ddd_moving_pole_loop) +### Description +Behavior loop function for Dire Dire Docks moving pole + ### Lua Example `bhv_ddd_moving_pole_loop()` @@ -3024,6 +3525,9 @@ ## [bhv_ddd_pole_init](#bhv_ddd_pole_init) +### Description +Behavior init function for Dire Dire Docks pole + ### Lua Example `bhv_ddd_pole_init()` @@ -3042,6 +3546,9 @@ ## [bhv_ddd_pole_update](#bhv_ddd_pole_update) +### Description +Behavior loop function for Dire Dire Docks pole + ### Lua Example `bhv_ddd_pole_update()` @@ -3060,6 +3567,9 @@ ## [bhv_ddd_warp_loop](#bhv_ddd_warp_loop) +### Description +Behavior loop function for Castle Basement Dire Dire Docks warp collision + ### Lua Example `bhv_ddd_warp_loop()` @@ -3078,6 +3588,9 @@ ## [bhv_decorative_pendulum_init](#bhv_decorative_pendulum_init) +### Description +Behavior init function for decorative pendulum + ### Lua Example `bhv_decorative_pendulum_init()` @@ -3096,6 +3609,9 @@ ## [bhv_decorative_pendulum_loop](#bhv_decorative_pendulum_loop) +### Description +Behavior loop function for decorative pendulum + ### Lua Example `bhv_decorative_pendulum_loop()` @@ -3114,6 +3630,9 @@ ## [bhv_donut_platform_spawner_update](#bhv_donut_platform_spawner_update) +### Description +Behavior loop function for donut platform spawner + ### Lua Example `bhv_donut_platform_spawner_update()` @@ -3132,6 +3651,9 @@ ## [bhv_donut_platform_update](#bhv_donut_platform_update) +### Description +Behavior loop function for donut platform + ### Lua Example `bhv_donut_platform_update()` @@ -3150,6 +3672,9 @@ ## [bhv_door_init](#bhv_door_init) +### Description +Behavior init function for door + ### Lua Example `bhv_door_init()` @@ -3168,6 +3693,9 @@ ## [bhv_door_loop](#bhv_door_loop) +### Description +Behavior loop function for door + ### Lua Example `bhv_door_loop()` @@ -3186,6 +3714,9 @@ ## [bhv_dorrie_update](#bhv_dorrie_update) +### Description +Behavior loop function for Dorrie + ### Lua Example `bhv_dorrie_update()` @@ -3204,6 +3735,9 @@ ## [bhv_elevator_init](#bhv_elevator_init) +### Description +Behavior init function for elevator + ### Lua Example `bhv_elevator_init()` @@ -3222,6 +3756,9 @@ ## [bhv_elevator_loop](#bhv_elevator_loop) +### Description +Behavior loop function for elevator + ### Lua Example `bhv_elevator_loop()` @@ -3240,6 +3777,9 @@ ## [bhv_end_birds_1_loop](#bhv_end_birds_1_loop) +### Description +Behavior loop function for first end birds + ### Lua Example `bhv_end_birds_1_loop()` @@ -3258,6 +3798,9 @@ ## [bhv_end_birds_2_loop](#bhv_end_birds_2_loop) +### Description +Behavior loop function for second end birds + ### Lua Example `bhv_end_birds_2_loop()` @@ -3276,6 +3819,9 @@ ## [bhv_enemy_lakitu_update](#bhv_enemy_lakitu_update) +### Description +Behavior loop function for Enemy Lakitu + ### Lua Example `bhv_enemy_lakitu_update()` @@ -3294,6 +3840,9 @@ ## [bhv_exclamation_box_init](#bhv_exclamation_box_init) +### Description +Behavior init function for Exclamation Box + ### Lua Example `bhv_exclamation_box_init()` @@ -3312,6 +3861,9 @@ ## [bhv_exclamation_box_loop](#bhv_exclamation_box_loop) +### Description +Behavior loop function for Exclamation Box + ### Lua Example `bhv_exclamation_box_loop()` @@ -3330,6 +3882,9 @@ ## [bhv_explosion_init](#bhv_explosion_init) +### Description +Behavior init function for explosion + ### Lua Example `bhv_explosion_init()` @@ -3348,6 +3903,9 @@ ## [bhv_explosion_loop](#bhv_explosion_loop) +### Description +Behavior loop function for explosion + ### Lua Example `bhv_explosion_loop()` @@ -3366,6 +3924,9 @@ ## [bhv_eyerok_boss_init](#bhv_eyerok_boss_init) +### Description +Behavior init function for Eyerok boss + ### Lua Example `bhv_eyerok_boss_init()` @@ -3384,6 +3945,9 @@ ## [bhv_eyerok_boss_loop](#bhv_eyerok_boss_loop) +### Description +Behavior loop function for Eyerok boss + ### Lua Example `bhv_eyerok_boss_loop()` @@ -3402,6 +3966,9 @@ ## [bhv_eyerok_hand_loop](#bhv_eyerok_hand_loop) +### Description +Behavior loop function for Eyerok hand + ### Lua Example `bhv_eyerok_hand_loop()` @@ -3420,6 +3987,9 @@ ## [bhv_fading_warp_loop](#bhv_fading_warp_loop) +### Description +Behavior loop function for fading warp + ### Lua Example `bhv_fading_warp_loop()` @@ -3438,6 +4008,9 @@ ## [bhv_falling_bowser_platform_loop](#bhv_falling_bowser_platform_loop) +### Description +Behavior loop function for falling Bowser in the Sky arena platform + ### Lua Example `bhv_falling_bowser_platform_loop()` @@ -3456,6 +4029,9 @@ ## [bhv_falling_pillar_hitbox_loop](#bhv_falling_pillar_hitbox_loop) +### Description +Behavior loop function for Jolly Roger Bay falling pillar hitbox + ### Lua Example `bhv_falling_pillar_hitbox_loop()` @@ -3474,6 +4050,9 @@ ## [bhv_falling_pillar_init](#bhv_falling_pillar_init) +### Description +Behavior init function for Jolly Roger Bay falling pillar + ### Lua Example `bhv_falling_pillar_init()` @@ -3492,6 +4071,9 @@ ## [bhv_falling_pillar_loop](#bhv_falling_pillar_loop) +### Description +Behavior loop function for Jolly Roger Bay falling pillar + ### Lua Example `bhv_falling_pillar_loop()` @@ -3510,6 +4092,9 @@ ## [bhv_ferris_wheel_axle_init](#bhv_ferris_wheel_axle_init) +### Description +Behavior init function for ferris wheel axle + ### Lua Example `bhv_ferris_wheel_axle_init()` @@ -3528,6 +4113,9 @@ ## [bhv_ferris_wheel_platform_init](#bhv_ferris_wheel_platform_init) +### Description +Behavior init function for ferris wheel platform + ### Lua Example `bhv_ferris_wheel_platform_init()` @@ -3546,6 +4134,9 @@ ## [bhv_ferris_wheel_platform_update](#bhv_ferris_wheel_platform_update) +### Description +Behavior loop function for ferris wheel platform + ### Lua Example `bhv_ferris_wheel_platform_update()` @@ -3564,6 +4155,9 @@ ## [bhv_fire_piranha_plant_init](#bhv_fire_piranha_plant_init) +### Description +Behavior init function for Fire Piranha Plant + ### Lua Example `bhv_fire_piranha_plant_init()` @@ -3582,6 +4176,9 @@ ## [bhv_fire_piranha_plant_update](#bhv_fire_piranha_plant_update) +### Description +Behavior loop function for Fire Piranha Plant + ### Lua Example `bhv_fire_piranha_plant_update()` @@ -3600,6 +4197,9 @@ ## [bhv_fire_spitter_update](#bhv_fire_spitter_update) +### Description +Behavior loop function for Fire spitter + ### Lua Example `bhv_fire_spitter_update()` @@ -3618,6 +4218,9 @@ ## [bhv_fish_group_loop](#bhv_fish_group_loop) +### Description +Behavior loop function for fish group + ### Lua Example `bhv_fish_group_loop()` @@ -3636,6 +4239,9 @@ ## [bhv_fish_loop](#bhv_fish_loop) +### Description +Behavior loop function for fish + ### Lua Example `bhv_fish_loop()` @@ -3654,6 +4260,9 @@ ## [bhv_fish_spawner_loop](#bhv_fish_spawner_loop) +### Description +Behavior loop function for fish spawner + ### Lua Example `bhv_fish_spawner_loop()` @@ -3672,6 +4281,9 @@ ## [bhv_flame_bouncing_init](#bhv_flame_bouncing_init) +### Description +Behavior init function for flame bouncing + ### Lua Example `bhv_flame_bouncing_init()` @@ -3690,6 +4302,9 @@ ## [bhv_flame_bouncing_loop](#bhv_flame_bouncing_loop) +### Description +Behavior loop function for flame bouncing + ### Lua Example `bhv_flame_bouncing_loop()` @@ -3708,6 +4323,9 @@ ## [bhv_flame_bowser_init](#bhv_flame_bowser_init) +### Description +Behavior init function for Bowser flame + ### Lua Example `bhv_flame_bowser_init()` @@ -3726,6 +4344,9 @@ ## [bhv_flame_bowser_loop](#bhv_flame_bowser_loop) +### Description +Behavior loop function for Bowser flame + ### Lua Example `bhv_flame_bowser_loop()` @@ -3744,6 +4365,9 @@ ## [bhv_flame_floating_landing_init](#bhv_flame_floating_landing_init) +### Description +Behavior init function for flame floating landing + ### Lua Example `bhv_flame_floating_landing_init()` @@ -3762,6 +4386,9 @@ ## [bhv_flame_floating_landing_loop](#bhv_flame_floating_landing_loop) +### Description +Behavior loop function for flame floating landing + ### Lua Example `bhv_flame_floating_landing_loop()` @@ -3780,6 +4407,9 @@ ## [bhv_flame_large_burning_out_init](#bhv_flame_large_burning_out_init) +### Description +Behavior init function for large flame burning out + ### Lua Example `bhv_flame_large_burning_out_init()` @@ -3798,6 +4428,9 @@ ## [bhv_flame_mario_loop](#bhv_flame_mario_loop) +### Description +Behavior loop function for flame Mario + ### Lua Example `bhv_flame_mario_loop()` @@ -3816,6 +4449,9 @@ ## [bhv_flame_moving_forward_growing_init](#bhv_flame_moving_forward_growing_init) +### Description +Behavior init function for flame moving forward growing + ### Lua Example `bhv_flame_moving_forward_growing_init()` @@ -3834,6 +4470,9 @@ ## [bhv_flame_moving_forward_growing_loop](#bhv_flame_moving_forward_growing_loop) +### Description +Behavior loop function for flame moving forward growing + ### Lua Example `bhv_flame_moving_forward_growing_loop()` @@ -3852,6 +4491,9 @@ ## [bhv_flamethrower_flame_loop](#bhv_flamethrower_flame_loop) +### Description +Behavior loop function for flamethrower flame + ### Lua Example `bhv_flamethrower_flame_loop()` @@ -3870,6 +4512,9 @@ ## [bhv_flamethrower_loop](#bhv_flamethrower_loop) +### Description +Behavior loop function for flamethrower + ### Lua Example `bhv_flamethrower_loop()` @@ -3888,6 +4533,9 @@ ## [bhv_floating_platform_loop](#bhv_floating_platform_loop) +### Description +Behavior loop function for floating platform + ### Lua Example `bhv_floating_platform_loop()` @@ -3906,6 +4554,9 @@ ## [bhv_floor_trap_in_castle_loop](#bhv_floor_trap_in_castle_loop) +### Description +Behavior loop function for Bowser in the Dark World floor trap + ### Lua Example `bhv_floor_trap_in_castle_loop()` @@ -3924,6 +4575,9 @@ ## [bhv_fly_guy_flame_loop](#bhv_fly_guy_flame_loop) +### Description +Behavior loop function for Fly Guy flame + ### Lua Example `bhv_fly_guy_flame_loop()` @@ -3942,6 +4596,9 @@ ## [bhv_fly_guy_update](#bhv_fly_guy_update) +### Description +Behavior loop function for Fly Guy + ### Lua Example `bhv_fly_guy_update()` @@ -3960,6 +4617,9 @@ ## [bhv_flying_bookend_loop](#bhv_flying_bookend_loop) +### Description +Behavior loop function for flying bookend + ### Lua Example `bhv_flying_bookend_loop()` @@ -3978,6 +4638,9 @@ ## [bhv_free_bowling_ball_init](#bhv_free_bowling_ball_init) +### Description +Behavior init function for free bowling ball + ### Lua Example `bhv_free_bowling_ball_init()` @@ -3996,6 +4659,9 @@ ## [bhv_free_bowling_ball_loop](#bhv_free_bowling_ball_loop) +### Description +Behavior loop function for free bowling ball + ### Lua Example `bhv_free_bowling_ball_loop()` @@ -4014,6 +4680,9 @@ ## [bhv_generic_bowling_ball_spawner_init](#bhv_generic_bowling_ball_spawner_init) +### Description +Behavior init function for generic bowling ball spawner + ### Lua Example `bhv_generic_bowling_ball_spawner_init()` @@ -4032,6 +4701,9 @@ ## [bhv_generic_bowling_ball_spawner_loop](#bhv_generic_bowling_ball_spawner_loop) +### Description +Behavior loop function for generic bowling ball spawner + ### Lua Example `bhv_generic_bowling_ball_spawner_loop()` @@ -4050,6 +4722,9 @@ ## [bhv_giant_pole_loop](#bhv_giant_pole_loop) +### Description +Behavior loop function for giant pole + ### Lua Example `bhv_giant_pole_loop()` @@ -4068,6 +4743,9 @@ ## [bhv_golden_coin_sparkles_loop](#bhv_golden_coin_sparkles_loop) +### Description +Behavior loop function for golden Coin sparkles + ### Lua Example `bhv_golden_coin_sparkles_loop()` @@ -4086,6 +4764,9 @@ ## [bhv_goomba_init](#bhv_goomba_init) +### Description +Behavior init function for Goomba + ### Lua Example `bhv_goomba_init()` @@ -4104,6 +4785,9 @@ ## [bhv_goomba_triplet_spawner_update](#bhv_goomba_triplet_spawner_update) +### Description +Behavior loop function for Goomba triplet spawner + ### Lua Example `bhv_goomba_triplet_spawner_update()` @@ -4122,6 +4806,9 @@ ## [bhv_goomba_update](#bhv_goomba_update) +### Description +Behavior loop function for Goomba + ### Lua Example `bhv_goomba_update()` @@ -4140,6 +4827,9 @@ ## [bhv_grand_star_init](#bhv_grand_star_init) +### Description +Behavior init function for Grand Star + ### Lua Example `bhv_grand_star_init()` @@ -4158,6 +4848,9 @@ ## [bhv_grand_star_loop](#bhv_grand_star_loop) +### Description +Behavior loop function for Grand Star + ### Lua Example `bhv_grand_star_loop()` @@ -4176,6 +4869,9 @@ ## [bhv_grindel_thwomp_loop](#bhv_grindel_thwomp_loop) +### Description +Behavior loop function for Grindel and Thwomp + ### Lua Example `bhv_grindel_thwomp_loop()` @@ -4194,6 +4890,9 @@ ## [bhv_ground_sand_init](#bhv_ground_sand_init) +### Description +Behavior init function for ground sand + ### Lua Example `bhv_ground_sand_init()` @@ -4212,6 +4911,9 @@ ## [bhv_ground_snow_init](#bhv_ground_snow_init) +### Description +Behavior init function for ground snow + ### Lua Example `bhv_ground_snow_init()` @@ -4230,6 +4932,9 @@ ## [bhv_haunted_bookshelf_loop](#bhv_haunted_bookshelf_loop) +### Description +Behavior loop function for Big Boo's Haunt haunted bookshelf + ### Lua Example `bhv_haunted_bookshelf_loop()` @@ -4248,6 +4953,9 @@ ## [bhv_haunted_bookshelf_manager_loop](#bhv_haunted_bookshelf_manager_loop) +### Description +Behavior loop function for haunted bookshelf manager + ### Lua Example `bhv_haunted_bookshelf_manager_loop()` @@ -4266,6 +4974,9 @@ ## [bhv_haunted_chair_init](#bhv_haunted_chair_init) +### Description +Behavior init function for Haunted Chair + ### Lua Example `bhv_haunted_chair_init()` @@ -4284,6 +4995,9 @@ ## [bhv_haunted_chair_loop](#bhv_haunted_chair_loop) +### Description +Behavior loop function for Haunted Chair + ### Lua Example `bhv_haunted_chair_loop()` @@ -4302,6 +5016,9 @@ ## [bhv_heave_ho_loop](#bhv_heave_ho_loop) +### Description +Behavior loop function for Heave ho + ### Lua Example `bhv_heave_ho_loop()` @@ -4320,6 +5037,9 @@ ## [bhv_heave_ho_throw_mario_loop](#bhv_heave_ho_throw_mario_loop) +### Description +Behavior loop function for Heave ho throwing Mario + ### Lua Example `bhv_heave_ho_throw_mario_loop()` @@ -4338,6 +5058,9 @@ ## [bhv_hidden_blue_coin_loop](#bhv_hidden_blue_coin_loop) +### Description +Behavior loop function for hidden Blue Coin + ### Lua Example `bhv_hidden_blue_coin_loop()` @@ -4356,6 +5079,9 @@ ## [bhv_hidden_object_loop](#bhv_hidden_object_loop) +### Description +Behavior loop function for Wet Dry World hidden breakable box + ### Lua Example `bhv_hidden_object_loop()` @@ -4374,6 +5100,9 @@ ## [bhv_hidden_red_coin_star_init](#bhv_hidden_red_coin_star_init) +### Description +Behavior init function for Hidden Red Coin Star + ### Lua Example `bhv_hidden_red_coin_star_init()` @@ -4392,6 +5121,9 @@ ## [bhv_hidden_red_coin_star_loop](#bhv_hidden_red_coin_star_loop) +### Description +Behavior loop function for Hidden Red Coin Star + ### Lua Example `bhv_hidden_red_coin_star_loop()` @@ -4410,6 +5142,9 @@ ## [bhv_hidden_star_init](#bhv_hidden_star_init) +### Description +Behavior init function for Secret Star + ### Lua Example `bhv_hidden_star_init()` @@ -4428,6 +5163,9 @@ ## [bhv_hidden_star_loop](#bhv_hidden_star_loop) +### Description +Behavior loop function for Secret Star + ### Lua Example `bhv_hidden_star_loop()` @@ -4446,6 +5184,9 @@ ## [bhv_hidden_star_trigger_loop](#bhv_hidden_star_trigger_loop) +### Description +Behavior loop function for Secrets + ### Lua Example `bhv_hidden_star_trigger_loop()` @@ -4464,6 +5205,9 @@ ## [bhv_homing_amp_init](#bhv_homing_amp_init) +### Description +Behavior init function for Homing Amp + ### Lua Example `bhv_homing_amp_init()` @@ -4482,6 +5226,9 @@ ## [bhv_homing_amp_loop](#bhv_homing_amp_loop) +### Description +Behavior loop function for Homing Amp + ### Lua Example `bhv_homing_amp_loop()` @@ -4500,6 +5247,9 @@ ## [bhv_hoot_init](#bhv_hoot_init) +### Description +Behavior init function for Hoot + ### Lua Example `bhv_hoot_init()` @@ -4518,6 +5268,9 @@ ## [bhv_hoot_loop](#bhv_hoot_loop) +### Description +Behavior loop function for Hoot + ### Lua Example `bhv_hoot_loop()` @@ -4536,6 +5289,9 @@ ## [bhv_horizontal_grindel_init](#bhv_horizontal_grindel_init) +### Description +Behavior init function for horizontal Grindel + ### Lua Example `bhv_horizontal_grindel_init()` @@ -4554,6 +5310,9 @@ ## [bhv_horizontal_grindel_update](#bhv_horizontal_grindel_update) +### Description +Behavior loop function for horizontal Grindel + ### Lua Example `bhv_horizontal_grindel_update()` @@ -4572,6 +5331,9 @@ ## [bhv_idle_water_wave_loop](#bhv_idle_water_wave_loop) +### Description +Behavior loop function for idle water wave + ### Lua Example `bhv_idle_water_wave_loop()` @@ -4590,6 +5352,9 @@ ## [bhv_init_changing_water_level_loop](#bhv_init_changing_water_level_loop) +### Description +Behavior init function for changing water level, called when Wet Dry World is loaded + ### Lua Example `bhv_init_changing_water_level_loop()` @@ -4608,6 +5373,9 @@ ## [bhv_intro_lakitu_loop](#bhv_intro_lakitu_loop) +### Description +Behavior loop function for intro Lakitu + ### Lua Example `bhv_intro_lakitu_loop()` @@ -4626,6 +5394,9 @@ ## [bhv_intro_peach_loop](#bhv_intro_peach_loop) +### Description +Behavior loop function for intro Peach + ### Lua Example `bhv_intro_peach_loop()` @@ -4644,6 +5415,9 @@ ## [bhv_intro_scene_loop](#bhv_intro_scene_loop) +### Description +Behavior loop function for intro scene + ### Lua Example `bhv_intro_scene_loop()` @@ -4662,6 +5436,9 @@ ## [bhv_invisible_objects_under_bridge_init](#bhv_invisible_objects_under_bridge_init) +### Description +Behavior init function for invisible objects under the Castle bridge + ### Lua Example `bhv_invisible_objects_under_bridge_init()` @@ -4680,6 +5457,9 @@ ## [bhv_invisible_objects_under_bridge_loop](#bhv_invisible_objects_under_bridge_loop) +### Description +Behavior loop function for Invisible objects under the Castle bridge + ### Lua Example `bhv_invisible_objects_under_bridge_loop()` @@ -4698,6 +5478,9 @@ ## [bhv_jet_stream_loop](#bhv_jet_stream_loop) +### Description +Behavior loop function for jet stream + ### Lua Example `bhv_jet_stream_loop()` @@ -4716,6 +5499,9 @@ ## [bhv_jet_stream_ring_spawner_loop](#bhv_jet_stream_ring_spawner_loop) +### Description +Behavior loop function for jet stream ring spawner + ### Lua Example `bhv_jet_stream_ring_spawner_loop()` @@ -4734,6 +5520,9 @@ ## [bhv_jet_stream_water_ring_init](#bhv_jet_stream_water_ring_init) +### Description +Behavior init function for jet stream water ring + ### Lua Example `bhv_jet_stream_water_ring_init()` @@ -4752,6 +5541,9 @@ ## [bhv_jet_stream_water_ring_loop](#bhv_jet_stream_water_ring_loop) +### Description +Behavior loop function for jet stream water ring + ### Lua Example `bhv_jet_stream_water_ring_loop()` @@ -4770,6 +5562,9 @@ ## [bhv_jrb_floating_box_loop](#bhv_jrb_floating_box_loop) +### Description +Behavior loop function for Jolly Roger Bay floating box + ### Lua Example `bhv_jrb_floating_box_loop()` @@ -4788,6 +5583,9 @@ ## [bhv_jrb_sliding_box_loop](#bhv_jrb_sliding_box_loop) +### Description +Behavior loop function for Jolly Roger Bay sliding box + ### Lua Example `bhv_jrb_sliding_box_loop()` @@ -4806,6 +5604,9 @@ ## [bhv_jumping_box_loop](#bhv_jumping_box_loop) +### Description +Behavior loop function for jumping box + ### Lua Example `bhv_jumping_box_loop()` @@ -4824,6 +5625,9 @@ ## [bhv_kickable_board_loop](#bhv_kickable_board_loop) +### Description +Behavior loop function for Whomp's Fortress kickable board + ### Lua Example `bhv_kickable_board_loop()` @@ -4842,6 +5646,9 @@ ## [bhv_king_bobomb_loop](#bhv_king_bobomb_loop) +### Description +Behavior loop function for King Bob-omb + ### Lua Example `bhv_king_bobomb_loop()` @@ -4860,6 +5667,9 @@ ## [bhv_klepto_init](#bhv_klepto_init) +### Description +Behavior init function for Klepto + ### Lua Example `bhv_klepto_init()` @@ -4878,6 +5688,9 @@ ## [bhv_klepto_update](#bhv_klepto_update) +### Description +Behavior loop function for Klepto + ### Lua Example `bhv_klepto_update()` @@ -4896,6 +5709,9 @@ ## [bhv_koopa_init](#bhv_koopa_init) +### Description +Behavior init function for Koopa + ### Lua Example `bhv_koopa_init()` @@ -4914,6 +5730,9 @@ ## [bhv_koopa_race_endpoint_update](#bhv_koopa_race_endpoint_update) +### Description +Behavior loop function for Koopa race endpoint + ### Lua Example `bhv_koopa_race_endpoint_update()` @@ -4932,6 +5751,9 @@ ## [bhv_koopa_shell_flame_loop](#bhv_koopa_shell_flame_loop) +### Description +Behavior loop function for Koopa Shell flame + ### Lua Example `bhv_koopa_shell_flame_loop()` @@ -4950,6 +5772,9 @@ ## [bhv_koopa_shell_loop](#bhv_koopa_shell_loop) +### Description +Behavior loop function for Koopa Shell + ### Lua Example `bhv_koopa_shell_loop()` @@ -4968,6 +5793,9 @@ ## [bhv_koopa_shell_underwater_loop](#bhv_koopa_shell_underwater_loop) +### Description +Behavior loop function for Koopa Shell underwater + ### Lua Example `bhv_koopa_shell_underwater_loop()` @@ -4986,6 +5814,9 @@ ## [bhv_koopa_update](#bhv_koopa_update) +### Description +Behavior loop function for Koopa + ### Lua Example `bhv_koopa_update()` @@ -5004,6 +5835,9 @@ ## [bhv_large_bomp_init](#bhv_large_bomp_init) +### Description +Behavior init function for Large Bomp (Whomp's Fortress moving wall with eyes) + ### Lua Example `bhv_large_bomp_init()` @@ -5022,6 +5856,9 @@ ## [bhv_large_bomp_loop](#bhv_large_bomp_loop) +### Description +Behavior loop function for Large Bomp (Whomp's Fortress moving wall with eyes) + ### Lua Example `bhv_large_bomp_loop()` @@ -5040,6 +5877,9 @@ ## [bhv_lll_bowser_puzzle_loop](#bhv_lll_bowser_puzzle_loop) +### Description +Behavior loop function for Lethal Lava Land bowser puzzle + ### Lua Example `bhv_lll_bowser_puzzle_loop()` @@ -5058,6 +5898,9 @@ ## [bhv_lll_bowser_puzzle_piece_loop](#bhv_lll_bowser_puzzle_piece_loop) +### Description +Behavior loop function for Lethal Lava Land bowser puzzle piece + ### Lua Example `bhv_lll_bowser_puzzle_piece_loop()` @@ -5076,6 +5919,9 @@ ## [bhv_lll_drawbridge_loop](#bhv_lll_drawbridge_loop) +### Description +Behavior loop function for Lethal Lava Land drawbridge + ### Lua Example `bhv_lll_drawbridge_loop()` @@ -5094,6 +5940,9 @@ ## [bhv_lll_drawbridge_spawner_init](#bhv_lll_drawbridge_spawner_init) +### Description +Behavior init function for Lethal Lava Land drawbridge spawner + ### Lua Example `bhv_lll_drawbridge_spawner_init()` @@ -5112,6 +5961,9 @@ ## [bhv_lll_drawbridge_spawner_loop](#bhv_lll_drawbridge_spawner_loop) +### Description +Behavior loop function for Lethal Lava Land drawbridge spawner + ### Lua Example `bhv_lll_drawbridge_spawner_loop()` @@ -5130,6 +5982,9 @@ ## [bhv_lll_floating_wood_bridge_loop](#bhv_lll_floating_wood_bridge_loop) +### Description +Behavior loop function for Lethal Lava Land floating wood bridge + ### Lua Example `bhv_lll_floating_wood_bridge_loop()` @@ -5148,6 +6003,9 @@ ## [bhv_lll_moving_octagonal_mesh_platform_loop](#bhv_lll_moving_octagonal_mesh_platform_loop) +### Description +Behavior loop function for Lethal Lava Land moving octagonal mesh platform + ### Lua Example `bhv_lll_moving_octagonal_mesh_platform_loop()` @@ -5166,6 +6024,9 @@ ## [bhv_lll_rolling_log_init](#bhv_lll_rolling_log_init) +### Description +Behavior init function for Lethal Lava Land rolling log + ### Lua Example `bhv_lll_rolling_log_init()` @@ -5184,6 +6045,9 @@ ## [bhv_lll_rotating_block_fire_bars_loop](#bhv_lll_rotating_block_fire_bars_loop) +### Description +Behavior loop function for Lethal Lava Land rotating block fire bars + ### Lua Example `bhv_lll_rotating_block_fire_bars_loop()` @@ -5202,6 +6066,9 @@ ## [bhv_lll_rotating_hex_flame_loop](#bhv_lll_rotating_hex_flame_loop) +### Description +Behavior loop function for Lethal Lava Land rotating hex flame + ### Lua Example `bhv_lll_rotating_hex_flame_loop()` @@ -5220,6 +6087,9 @@ ## [bhv_lll_rotating_hexagonal_ring_loop](#bhv_lll_rotating_hexagonal_ring_loop) +### Description +Behavior loop function for Lethal Lava Land rotating hexagonal ring + ### Lua Example `bhv_lll_rotating_hexagonal_ring_loop()` @@ -5238,6 +6108,9 @@ ## [bhv_lll_sinking_rectangular_platform_loop](#bhv_lll_sinking_rectangular_platform_loop) +### Description +Behavior loop function for Lethal Lava Land sinking rectangular platform + ### Lua Example `bhv_lll_sinking_rectangular_platform_loop()` @@ -5256,6 +6129,9 @@ ## [bhv_lll_sinking_rock_block_loop](#bhv_lll_sinking_rock_block_loop) +### Description +Behavior loop function for Lethal Lava Land sinking rock block + ### Lua Example `bhv_lll_sinking_rock_block_loop()` @@ -5274,6 +6150,9 @@ ## [bhv_lll_sinking_square_platforms_loop](#bhv_lll_sinking_square_platforms_loop) +### Description +Behavior loop function for Lethal Lava Land sinking square platforms + ### Lua Example `bhv_lll_sinking_square_platforms_loop()` @@ -5292,6 +6171,9 @@ ## [bhv_lll_wood_piece_loop](#bhv_lll_wood_piece_loop) +### Description +Behavior loop function for Lethal Lava Land wood piece + ### Lua Example `bhv_lll_wood_piece_loop()` @@ -5310,6 +6192,9 @@ ## [bhv_mad_piano_update](#bhv_mad_piano_update) +### Description +Behavior loop function for Mad Piano + ### Lua Example `bhv_mad_piano_update()` @@ -5328,6 +6213,9 @@ ## [bhv_manta_ray_init](#bhv_manta_ray_init) +### Description +Behavior init function for Manta Ray + ### Lua Example `bhv_manta_ray_init()` @@ -5346,6 +6234,9 @@ ## [bhv_manta_ray_loop](#bhv_manta_ray_loop) +### Description +Behavior loop function for Manta Ray + ### Lua Example `bhv_manta_ray_loop()` @@ -5364,6 +6255,9 @@ ## [bhv_manta_ray_water_ring_init](#bhv_manta_ray_water_ring_init) +### Description +Behavior init function for Manta Ray water ring + ### Lua Example `bhv_manta_ray_water_ring_init()` @@ -5382,6 +6276,9 @@ ## [bhv_manta_ray_water_ring_loop](#bhv_manta_ray_water_ring_loop) +### Description +Behavior loop function for Manta Ray water ring + ### Lua Example `bhv_manta_ray_water_ring_loop()` @@ -5400,6 +6297,9 @@ ## [bhv_menu_button_init](#bhv_menu_button_init) +### Description +Behavior init function for File Select button + ### Lua Example `bhv_menu_button_init()` @@ -5418,6 +6318,9 @@ ## [bhv_menu_button_loop](#bhv_menu_button_loop) +### Description +Behavior loop function for File Select button + ### Lua Example `bhv_menu_button_loop()` @@ -5436,6 +6339,9 @@ ## [bhv_menu_button_manager_init](#bhv_menu_button_manager_init) +### Description +Behavior init function for File Select button manager + ### Lua Example `bhv_menu_button_manager_init()` @@ -5454,6 +6360,9 @@ ## [bhv_menu_button_manager_loop](#bhv_menu_button_manager_loop) +### Description +Behavior loop function for File Select button manager + ### Lua Example `bhv_menu_button_manager_loop()` @@ -5472,6 +6381,9 @@ ## [bhv_merry_go_round_boo_manager_loop](#bhv_merry_go_round_boo_manager_loop) +### Description +Behavior loop function for Merry Go Round Boo manager + ### Lua Example `bhv_merry_go_round_boo_manager_loop()` @@ -5490,6 +6402,9 @@ ## [bhv_merry_go_round_loop](#bhv_merry_go_round_loop) +### Description +Behavior loop function for Big Boo's Haunt Merry Go Round + ### Lua Example `bhv_merry_go_round_loop()` @@ -5508,6 +6423,9 @@ ## [bhv_metal_cap_init](#bhv_metal_cap_init) +### Description +Behavior init function for Metal Cap + ### Lua Example `bhv_metal_cap_init()` @@ -5526,6 +6444,9 @@ ## [bhv_metal_cap_loop](#bhv_metal_cap_loop) +### Description +Behavior loop function for Metal Cap + ### Lua Example `bhv_metal_cap_loop()` @@ -5544,6 +6465,9 @@ ## [bhv_mips_init](#bhv_mips_init) +### Description +Behavior init function for Mips + ### Lua Example `bhv_mips_init()` @@ -5562,6 +6486,9 @@ ## [bhv_mips_loop](#bhv_mips_loop) +### Description +Behavior loop function for Mips + ### Lua Example `bhv_mips_loop()` @@ -5580,6 +6507,9 @@ ## [bhv_moat_grills_loop](#bhv_moat_grills_loop) +### Description +Behavior loop function for moat grills + ### Lua Example `bhv_moat_grills_loop()` @@ -5598,6 +6528,9 @@ ## [bhv_moneybag_hidden_loop](#bhv_moneybag_hidden_loop) +### Description +Behavior loop function for Moneybag hidden + ### Lua Example `bhv_moneybag_hidden_loop()` @@ -5616,6 +6549,9 @@ ## [bhv_moneybag_init](#bhv_moneybag_init) +### Description +Behavior init function for Moneybag + ### Lua Example `bhv_moneybag_init()` @@ -5634,6 +6570,9 @@ ## [bhv_moneybag_loop](#bhv_moneybag_loop) +### Description +Behavior loop function for Moneybag + ### Lua Example `bhv_moneybag_loop()` @@ -5652,6 +6591,9 @@ ## [bhv_monty_mole_hole_update](#bhv_monty_mole_hole_update) +### Description +Behavior loop function for Monty Mole hole + ### Lua Example `bhv_monty_mole_hole_update()` @@ -5670,6 +6612,9 @@ ## [bhv_monty_mole_init](#bhv_monty_mole_init) +### Description +Behavior init function for Monty Mole + ### Lua Example `bhv_monty_mole_init()` @@ -5688,6 +6633,9 @@ ## [bhv_monty_mole_rock_update](#bhv_monty_mole_rock_update) +### Description +Behavior loop function for Monty Mole rock + ### Lua Example `bhv_monty_mole_rock_update()` @@ -5706,6 +6654,9 @@ ## [bhv_monty_mole_update](#bhv_monty_mole_update) +### Description +Behavior loop function for Monty Mole + ### Lua Example `bhv_monty_mole_update()` @@ -5724,6 +6675,9 @@ ## [bhv_moving_blue_coin_init](#bhv_moving_blue_coin_init) +### Description +Behavior init function for moving Blue Coin + ### Lua Example `bhv_moving_blue_coin_init()` @@ -5742,6 +6696,9 @@ ## [bhv_moving_blue_coin_loop](#bhv_moving_blue_coin_loop) +### Description +Behavior loop function for moving Blue Coin + ### Lua Example `bhv_moving_blue_coin_loop()` @@ -5760,6 +6717,9 @@ ## [bhv_moving_yellow_coin_init](#bhv_moving_yellow_coin_init) +### Description +Behavior init function for moving Yellow Coin + ### Lua Example `bhv_moving_yellow_coin_init()` @@ -5778,6 +6738,9 @@ ## [bhv_moving_yellow_coin_loop](#bhv_moving_yellow_coin_loop) +### Description +Behavior loop function for moving Yellow Coin + ### Lua Example `bhv_moving_yellow_coin_loop()` @@ -5796,6 +6759,9 @@ ## [bhv_mr_blizzard_init](#bhv_mr_blizzard_init) +### Description +Behavior init function for Mr. Blizzard + ### Lua Example `bhv_mr_blizzard_init()` @@ -5814,6 +6780,9 @@ ## [bhv_mr_blizzard_snowball](#bhv_mr_blizzard_snowball) +### Description +Behavior loop function for Mr. Blizzard's snowball + ### Lua Example `bhv_mr_blizzard_snowball()` @@ -5832,6 +6801,9 @@ ## [bhv_mr_blizzard_update](#bhv_mr_blizzard_update) +### Description +Behavior loop function for Mr. Blizzard + ### Lua Example `bhv_mr_blizzard_update()` @@ -5850,6 +6822,9 @@ ## [bhv_mr_i_body_loop](#bhv_mr_i_body_loop) +### Description +Behavior loop function for Mr. I body + ### Lua Example `bhv_mr_i_body_loop()` @@ -5868,6 +6843,9 @@ ## [bhv_mr_i_loop](#bhv_mr_i_loop) +### Description +Behavior loop function for Mr. I + ### Lua Example `bhv_mr_i_loop()` @@ -5886,6 +6864,9 @@ ## [bhv_mr_i_particle_loop](#bhv_mr_i_particle_loop) +### Description +Behavior loop function for Mr. I particle + ### Lua Example `bhv_mr_i_particle_loop()` @@ -5904,6 +6885,9 @@ ## [bhv_normal_cap_init](#bhv_normal_cap_init) +### Description +Behavior init function for Normal Cap + ### Lua Example `bhv_normal_cap_init()` @@ -5922,6 +6906,9 @@ ## [bhv_normal_cap_loop](#bhv_normal_cap_loop) +### Description +Behavior loop function for Normal Cap + ### Lua Example `bhv_normal_cap_loop()` @@ -5940,6 +6927,9 @@ ## [bhv_object_bubble_init](#bhv_object_bubble_init) +### Description +Behavior init function for bubble object + ### Lua Example `bhv_object_bubble_init()` @@ -5958,6 +6948,9 @@ ## [bhv_object_bubble_loop](#bhv_object_bubble_loop) +### Description +Behavior loop function for bubble object + ### Lua Example `bhv_object_bubble_loop()` @@ -5976,6 +6969,9 @@ ## [bhv_object_water_wave_init](#bhv_object_water_wave_init) +### Description +Behavior init function for water wave object + ### Lua Example `bhv_object_water_wave_init()` @@ -5994,6 +6990,9 @@ ## [bhv_object_water_wave_loop](#bhv_object_water_wave_loop) +### Description +Behavior loop function for water wave object + ### Lua Example `bhv_object_water_wave_loop()` @@ -6012,6 +7011,9 @@ ## [bhv_openable_cage_door_loop](#bhv_openable_cage_door_loop) +### Description +Behavior loop function for openable cage door + ### Lua Example `bhv_openable_cage_door_loop()` @@ -6030,6 +7032,9 @@ ## [bhv_openable_grill_loop](#bhv_openable_grill_loop) +### Description +Behavior loop function for openable grill + ### Lua Example `bhv_openable_grill_loop()` @@ -6048,6 +7053,9 @@ ## [bhv_orange_number_init](#bhv_orange_number_init) +### Description +Behavior init function for orange number + ### Lua Example `bhv_orange_number_init()` @@ -6066,6 +7074,9 @@ ## [bhv_orange_number_loop](#bhv_orange_number_loop) +### Description +Behavior loop function for orange number + ### Lua Example `bhv_orange_number_loop()` @@ -6084,6 +7095,9 @@ ## [bhv_particle_init](#bhv_particle_init) +### Description +Behavior init function for particle + ### Lua Example `bhv_particle_init()` @@ -6102,6 +7116,9 @@ ## [bhv_particle_loop](#bhv_particle_loop) +### Description +Behavior loop function for particle + ### Lua Example `bhv_particle_loop()` @@ -6120,6 +7137,9 @@ ## [bhv_penguin_race_finish_line_update](#bhv_penguin_race_finish_line_update) +### Description +Behavior loop function for Penguin race finish line + ### Lua Example `bhv_penguin_race_finish_line_update()` @@ -6138,6 +7158,9 @@ ## [bhv_penguin_race_shortcut_check_update](#bhv_penguin_race_shortcut_check_update) +### Description +Behavior loop function for Penguin race shortcut check + ### Lua Example `bhv_penguin_race_shortcut_check_update()` @@ -6156,6 +7179,9 @@ ## [bhv_piranha_particle_loop](#bhv_piranha_particle_loop) +### Description +Behavior loop function for Piranha particle + ### Lua Example `bhv_piranha_particle_loop()` @@ -6174,6 +7200,9 @@ ## [bhv_piranha_plant_bubble_loop](#bhv_piranha_plant_bubble_loop) +### Description +Behavior loop function for Piranha Plant bubble + ### Lua Example `bhv_piranha_plant_bubble_loop()` @@ -6192,6 +7221,9 @@ ## [bhv_piranha_plant_loop](#bhv_piranha_plant_loop) +### Description +Behavior loop function for Piranha Plant + ### Lua Example `bhv_piranha_plant_loop()` @@ -6210,6 +7242,9 @@ ## [bhv_piranha_plant_waking_bubbles_loop](#bhv_piranha_plant_waking_bubbles_loop) +### Description +Behavior loop function for Piranha Plant waking bubbles + ### Lua Example `bhv_piranha_plant_waking_bubbles_loop()` @@ -6228,6 +7263,9 @@ ## [bhv_platform_normals_init](#bhv_platform_normals_init) +### Description +Behavior init function for Bowser in the Dark World, Lethal Lava Land, and Bowser in the Fire Sea platform normals + ### Lua Example `bhv_platform_normals_init()` @@ -6246,6 +7284,9 @@ ## [bhv_platform_on_track_init](#bhv_platform_on_track_init) +### Description +Behavior init function for platform on track + ### Lua Example `bhv_platform_on_track_init()` @@ -6264,6 +7305,9 @@ ## [bhv_platform_on_track_update](#bhv_platform_on_track_update) +### Description +Behavior loop function for platform on track + ### Lua Example `bhv_platform_on_track_update()` @@ -6282,6 +7326,9 @@ ## [bhv_play_music_track_when_touched_loop](#bhv_play_music_track_when_touched_loop) +### Description +Behavior loop function for playing a jingle when in a 200 unit radius + ### Lua Example `bhv_play_music_track_when_touched_loop()` @@ -6300,6 +7347,9 @@ ## [bhv_pokey_body_part_update](#bhv_pokey_body_part_update) +### Description +Behavior loop function for Pokey body part + ### Lua Example `bhv_pokey_body_part_update()` @@ -6318,6 +7368,9 @@ ## [bhv_pokey_update](#bhv_pokey_update) +### Description +Behavior loop function for Pokey + ### Lua Example `bhv_pokey_update()` @@ -6336,6 +7389,9 @@ ## [bhv_pole_base_loop](#bhv_pole_base_loop) +### Description +Behavior loop function for pole base + ### Lua Example `bhv_pole_base_loop()` @@ -6354,6 +7410,9 @@ ## [bhv_pole_init](#bhv_pole_init) +### Description +Behavior init function for pole + ### Lua Example `bhv_pole_init()` @@ -6372,6 +7431,9 @@ ## [bhv_pound_tiny_star_particle_init](#bhv_pound_tiny_star_particle_init) +### Description +Behavior init function for tiny pound star particle + ### Lua Example `bhv_pound_tiny_star_particle_init()` @@ -6390,6 +7452,9 @@ ## [bhv_pound_tiny_star_particle_loop](#bhv_pound_tiny_star_particle_loop) +### Description +Behavior loop function for tiny pound star particle + ### Lua Example `bhv_pound_tiny_star_particle_loop()` @@ -6408,6 +7473,9 @@ ## [bhv_pound_white_puffs_init](#bhv_pound_white_puffs_init) +### Description +Behavior init function for pound white puffs + ### Lua Example `bhv_pound_white_puffs_init()` @@ -6426,6 +7494,9 @@ ## [bhv_punch_tiny_triangle_init](#bhv_punch_tiny_triangle_init) +### Description +Behavior init function for tiny punch triangle + ### Lua Example `bhv_punch_tiny_triangle_init()` @@ -6444,6 +7515,9 @@ ## [bhv_punch_tiny_triangle_loop](#bhv_punch_tiny_triangle_loop) +### Description +Behavior loop function for tiny punch triangle + ### Lua Example `bhv_punch_tiny_triangle_loop()` @@ -6462,6 +7536,9 @@ ## [bhv_purple_switch_loop](#bhv_purple_switch_loop) +### Description +Behavior loop function for Purple Switch + ### Lua Example `bhv_purple_switch_loop()` @@ -6480,6 +7557,9 @@ ## [bhv_pushable_loop](#bhv_pushable_loop) +### Description +Behavior loop function for pushable metal box + ### Lua Example `bhv_pushable_loop()` @@ -6498,6 +7578,9 @@ ## [bhv_pyramid_elevator_init](#bhv_pyramid_elevator_init) +### Description +Behavior init function for Pyramid elevator + ### Lua Example `bhv_pyramid_elevator_init()` @@ -6516,6 +7599,9 @@ ## [bhv_pyramid_elevator_loop](#bhv_pyramid_elevator_loop) +### Description +Behavior loop function for Pyramid elevator + ### Lua Example `bhv_pyramid_elevator_loop()` @@ -6534,6 +7620,9 @@ ## [bhv_pyramid_elevator_trajectory_marker_ball_loop](#bhv_pyramid_elevator_trajectory_marker_ball_loop) +### Description +Behavior loop function for Pyramid elevator trajectory marker ball + ### Lua Example `bhv_pyramid_elevator_trajectory_marker_ball_loop()` @@ -6552,6 +7641,9 @@ ## [bhv_pyramid_pillar_touch_detector_loop](#bhv_pyramid_pillar_touch_detector_loop) +### Description +Behavior loop function for Pyramid pillar touch detector + ### Lua Example `bhv_pyramid_pillar_touch_detector_loop()` @@ -6570,6 +7662,9 @@ ## [bhv_pyramid_top_fragment_init](#bhv_pyramid_top_fragment_init) +### Description +Behavior init function for Pyramid top fragment + ### Lua Example `bhv_pyramid_top_fragment_init()` @@ -6588,6 +7683,9 @@ ## [bhv_pyramid_top_fragment_loop](#bhv_pyramid_top_fragment_loop) +### Description +Behavior loop function for Pyramid top fragment + ### Lua Example `bhv_pyramid_top_fragment_loop()` @@ -6606,6 +7704,9 @@ ## [bhv_pyramid_top_init](#bhv_pyramid_top_init) +### Description +Behavior init function for Pyramid top + ### Lua Example `bhv_pyramid_top_init()` @@ -6624,6 +7725,9 @@ ## [bhv_pyramid_top_loop](#bhv_pyramid_top_loop) +### Description +Behavior loop function for Pyramid top + ### Lua Example `bhv_pyramid_top_loop()` @@ -6642,6 +7746,9 @@ ## [bhv_racing_penguin_init](#bhv_racing_penguin_init) +### Description +Behavior init function for Racing Penguin + ### Lua Example `bhv_racing_penguin_init()` @@ -6660,6 +7767,9 @@ ## [bhv_racing_penguin_update](#bhv_racing_penguin_update) +### Description +Behavior loop function for Racing Penguin + ### Lua Example `bhv_racing_penguin_update()` @@ -6678,6 +7788,9 @@ ## [bhv_recovery_heart_loop](#bhv_recovery_heart_loop) +### Description +Behavior loop function for Recovery Heart + ### Lua Example `bhv_recovery_heart_loop()` @@ -6696,6 +7809,9 @@ ## [bhv_red_coin_init](#bhv_red_coin_init) +### Description +Behavior init function for Red Coin + ### Lua Example `bhv_red_coin_init()` @@ -6714,6 +7830,9 @@ ## [bhv_red_coin_loop](#bhv_red_coin_loop) +### Description +Behavior loop function for Red Coin + ### Lua Example `bhv_red_coin_loop()` @@ -6732,6 +7851,9 @@ ## [bhv_red_coin_star_marker_init](#bhv_red_coin_star_marker_init) +### Description +Behavior init function for Red Coin Star marker + ### Lua Example `bhv_red_coin_star_marker_init()` @@ -6750,6 +7872,9 @@ ## [bhv_respawner_loop](#bhv_respawner_loop) +### Description +Behavior loop function for respawner + ### Lua Example `bhv_respawner_loop()` @@ -6768,6 +7893,9 @@ ## [bhv_rolling_log_loop](#bhv_rolling_log_loop) +### Description +Behavior loop function for rolling log + ### Lua Example `bhv_rolling_log_loop()` @@ -6786,6 +7914,9 @@ ## [bhv_rotating_clock_arm_loop](#bhv_rotating_clock_arm_loop) +### Description +Behavior loop function for rotating clock arm + ### Lua Example `bhv_rotating_clock_arm_loop()` @@ -6804,6 +7935,9 @@ ## [bhv_rotating_exclamation_box_loop](#bhv_rotating_exclamation_box_loop) +### Description +Behavior loop function for rotating exclamation mark + ### Lua Example `bhv_rotating_exclamation_box_loop()` @@ -6822,6 +7956,9 @@ ## [bhv_rotating_octagonal_plat_init](#bhv_rotating_octagonal_plat_init) +### Description +Behavior init function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky + ### Lua Example `bhv_rotating_octagonal_plat_init()` @@ -6840,6 +7977,9 @@ ## [bhv_rotating_octagonal_plat_loop](#bhv_rotating_octagonal_plat_loop) +### Description +Behavior loop function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky + ### Lua Example `bhv_rotating_octagonal_plat_loop()` @@ -6858,6 +7998,9 @@ ## [bhv_rotating_platform_loop](#bhv_rotating_platform_loop) +### Description +Behavior loop function for rotating platform + ### Lua Example `bhv_rotating_platform_loop()` @@ -6876,6 +8019,9 @@ ## [bhv_rr_cruiser_wing_init](#bhv_rr_cruiser_wing_init) +### Description +Behavior init function for Rainbow Ride cruiser wing + ### Lua Example `bhv_rr_cruiser_wing_init()` @@ -6894,6 +8040,9 @@ ## [bhv_rr_cruiser_wing_loop](#bhv_rr_cruiser_wing_loop) +### Description +Behavior loop function for Rainbow Ride cruiser wing + ### Lua Example `bhv_rr_cruiser_wing_loop()` @@ -6912,6 +8061,9 @@ ## [bhv_rr_rotating_bridge_platform_loop](#bhv_rr_rotating_bridge_platform_loop) +### Description +Behavior loop function for Rainbow Ride rotating bridge platform + ### Lua Example `bhv_rr_rotating_bridge_platform_loop()` @@ -6930,6 +8082,9 @@ ## [bhv_sand_sound_loop](#bhv_sand_sound_loop) +### Description +Behavior loop function for sand sound + ### Lua Example `bhv_sand_sound_loop()` @@ -6948,6 +8103,9 @@ ## [bhv_scuttlebug_loop](#bhv_scuttlebug_loop) +### Description +Behavior loop function for Scuttlebug + ### Lua Example `bhv_scuttlebug_loop()` @@ -6966,6 +8124,9 @@ ## [bhv_scuttlebug_spawn_loop](#bhv_scuttlebug_spawn_loop) +### Description +Behavior loop function for Scuttlebug spawner + ### Lua Example `bhv_scuttlebug_spawn_loop()` @@ -6984,6 +8145,9 @@ ## [bhv_seaweed_bundle_init](#bhv_seaweed_bundle_init) +### Description +Behavior init function for seaweed bundle + ### Lua Example `bhv_seaweed_bundle_init()` @@ -7002,6 +8166,9 @@ ## [bhv_seaweed_init](#bhv_seaweed_init) +### Description +Behavior init function for seaweed + ### Lua Example `bhv_seaweed_init()` @@ -7020,6 +8187,9 @@ ## [bhv_seesaw_platform_init](#bhv_seesaw_platform_init) +### Description +Behavior init function for seesaw platform + ### Lua Example `bhv_seesaw_platform_init()` @@ -7038,6 +8208,9 @@ ## [bhv_seesaw_platform_update](#bhv_seesaw_platform_update) +### Description +Behavior loop function for seesaw platform + ### Lua Example `bhv_seesaw_platform_update()` @@ -7056,6 +8229,9 @@ ## [bhv_shallow_water_splash_init](#bhv_shallow_water_splash_init) +### Description +Behavior init function for shallow water splash + ### Lua Example `bhv_shallow_water_splash_init()` @@ -7074,6 +8250,9 @@ ## [bhv_ship_part_3_loop](#bhv_ship_part_3_loop) +### Description +Behavior loop function for Jolly Roger Bay ship part 3 + ### Lua Example `bhv_ship_part_3_loop()` @@ -7092,6 +8271,9 @@ ## [bhv_skeeter_update](#bhv_skeeter_update) +### Description +Behavior loop function for Skeeter + ### Lua Example `bhv_skeeter_update()` @@ -7110,6 +8292,9 @@ ## [bhv_skeeter_wave_update](#bhv_skeeter_wave_update) +### Description +Behavior loop function for Skeeter wave + ### Lua Example `bhv_skeeter_wave_update()` @@ -7128,6 +8313,9 @@ ## [bhv_sl_snowman_wind_loop](#bhv_sl_snowman_wind_loop) +### Description +Behavior loop function for Snowman's Land snowman wind + ### Lua Example `bhv_sl_snowman_wind_loop()` @@ -7146,6 +8334,9 @@ ## [bhv_sl_walking_penguin_loop](#bhv_sl_walking_penguin_loop) +### Description +Behavior loop function for Snowman's Land walking penguin + ### Lua Example `bhv_sl_walking_penguin_loop()` @@ -7164,6 +8355,9 @@ ## [bhv_sliding_plat_2_init](#bhv_sliding_plat_2_init) +### Description +Behavior init function for sliding platform 2 in Rainbow Ride and Bowser courses + ### Lua Example `bhv_sliding_plat_2_init()` @@ -7182,6 +8376,9 @@ ## [bhv_sliding_plat_2_loop](#bhv_sliding_plat_2_loop) +### Description +Behavior loop function for sliding platform 2 in Rainbow Ride and Bowser courses + ### Lua Example `bhv_sliding_plat_2_loop()` @@ -7200,6 +8397,9 @@ ## [bhv_sliding_snow_mound_loop](#bhv_sliding_snow_mound_loop) +### Description +Behavior loop function for sliding snow mound + ### Lua Example `bhv_sliding_snow_mound_loop()` @@ -7218,6 +8418,9 @@ ## [bhv_small_bomp_init](#bhv_small_bomp_init) +### Description +Behavior init function for Small Bomp (Whomp's Fortress moving wall with eyes) + ### Lua Example `bhv_small_bomp_init()` @@ -7236,6 +8439,9 @@ ## [bhv_small_bomp_loop](#bhv_small_bomp_loop) +### Description +Behavior loop function for Small Bomp (Whomp's Fortress moving wall with eyes) + ### Lua Example `bhv_small_bomp_loop()` @@ -7254,6 +8460,9 @@ ## [bhv_small_bubbles_loop](#bhv_small_bubbles_loop) +### Description +Behavior loop function for small bubbles + ### Lua Example `bhv_small_bubbles_loop()` @@ -7272,6 +8481,9 @@ ## [bhv_small_bully_init](#bhv_small_bully_init) +### Description +Behavior init function for Small Bully + ### Lua Example `bhv_small_bully_init()` @@ -7290,6 +8502,9 @@ ## [bhv_small_penguin_loop](#bhv_small_penguin_loop) +### Description +Behavior loop function for small penguin + ### Lua Example `bhv_small_penguin_loop()` @@ -7308,6 +8523,9 @@ ## [bhv_small_piranha_flame_loop](#bhv_small_piranha_flame_loop) +### Description +Behavior loop function for Small Piranha flame + ### Lua Example `bhv_small_piranha_flame_loop()` @@ -7326,6 +8544,9 @@ ## [bhv_small_water_wave_loop](#bhv_small_water_wave_loop) +### Description +Behavior loop function for small water wave + ### Lua Example `bhv_small_water_wave_loop()` @@ -7344,6 +8565,9 @@ ## [bhv_snow_leaf_particle_spawn_init](#bhv_snow_leaf_particle_spawn_init) +### Description +Behavior init function for snow leaf particle spawn + ### Lua Example `bhv_snow_leaf_particle_spawn_init()` @@ -7362,6 +8586,9 @@ ## [bhv_snow_mound_spawn_loop](#bhv_snow_mound_spawn_loop) +### Description +Behavior loop function for snow mound spawn + ### Lua Example `bhv_snow_mound_spawn_loop()` @@ -7380,6 +8607,9 @@ ## [bhv_snowmans_body_checkpoint_loop](#bhv_snowmans_body_checkpoint_loop) +### Description +Behavior loop function for Snowman's body checkpoint + ### Lua Example `bhv_snowmans_body_checkpoint_loop()` @@ -7398,6 +8628,9 @@ ## [bhv_snowmans_bottom_init](#bhv_snowmans_bottom_init) +### Description +Behavior init function for Snowman's bottom + ### Lua Example `bhv_snowmans_bottom_init()` @@ -7416,6 +8649,9 @@ ## [bhv_snowmans_bottom_loop](#bhv_snowmans_bottom_loop) +### Description +Behavior loop function for Snowman's bottom + ### Lua Example `bhv_snowmans_bottom_loop()` @@ -7434,6 +8670,9 @@ ## [bhv_snowmans_head_init](#bhv_snowmans_head_init) +### Description +Behavior init function for Snowman's head + ### Lua Example `bhv_snowmans_head_init()` @@ -7452,6 +8691,9 @@ ## [bhv_snowmans_head_loop](#bhv_snowmans_head_loop) +### Description +Behavior loop function for Snowman's head + ### Lua Example `bhv_snowmans_head_loop()` @@ -7470,6 +8712,9 @@ ## [bhv_snufit_balls_loop](#bhv_snufit_balls_loop) +### Description +Behavior loop function for Snufit balls + ### Lua Example `bhv_snufit_balls_loop()` @@ -7488,6 +8733,9 @@ ## [bhv_snufit_loop](#bhv_snufit_loop) +### Description +Behavior loop function for Snufit + ### Lua Example `bhv_snufit_loop()` @@ -7506,6 +8754,9 @@ ## [bhv_sound_spawner_init](#bhv_sound_spawner_init) +### Description +Behavior init function for sound spawner + ### Lua Example `bhv_sound_spawner_init()` @@ -7524,6 +8775,9 @@ ## [bhv_sparkle_spawn_loop](#bhv_sparkle_spawn_loop) +### Description +Behavior loop function for sparkle spawner + ### Lua Example `bhv_sparkle_spawn_loop()` @@ -7542,6 +8796,9 @@ ## [bhv_spawn_star_no_level_exit](#bhv_spawn_star_no_level_exit) +### Description +Spawns a Star parented to `object` that won't make Mario exit the level with an ID corresponding to `params`' first byte + ### Lua Example `bhv_spawn_star_no_level_exit(object, params, networkSendEvent)` @@ -7564,6 +8821,9 @@ ## [bhv_spawned_star_init](#bhv_spawned_star_init) +### Description +Behavior init function for spawned star + ### Lua Example `bhv_spawned_star_init()` @@ -7582,6 +8842,9 @@ ## [bhv_spawned_star_loop](#bhv_spawned_star_loop) +### Description +Behavior loop function for Spawned star + ### Lua Example `bhv_spawned_star_loop()` @@ -7600,6 +8863,9 @@ ## [bhv_spindel_init](#bhv_spindel_init) +### Description +Behavior init function for Spindel + ### Lua Example `bhv_spindel_init()` @@ -7618,6 +8884,9 @@ ## [bhv_spindel_loop](#bhv_spindel_loop) +### Description +Behavior loop function for Spindel + ### Lua Example `bhv_spindel_loop()` @@ -7636,6 +8905,9 @@ ## [bhv_spindrift_loop](#bhv_spindrift_loop) +### Description +Behavior loop function for Spindrift + ### Lua Example `bhv_spindrift_loop()` @@ -7654,6 +8926,9 @@ ## [bhv_spiny_update](#bhv_spiny_update) +### Description +Behavior loop function for Spiny + ### Lua Example `bhv_spiny_update()` @@ -7672,6 +8947,9 @@ ## [bhv_squarish_path_moving_loop](#bhv_squarish_path_moving_loop) +### Description +Behavior loop function for Bowser in the Dark World squarish path moving + ### Lua Example `bhv_squarish_path_moving_loop()` @@ -7690,6 +8968,9 @@ ## [bhv_squarish_path_parent_init](#bhv_squarish_path_parent_init) +### Description +Behavior init function for Bowser in the Dark World squarish path parent + ### Lua Example `bhv_squarish_path_parent_init()` @@ -7708,6 +8989,9 @@ ## [bhv_squarish_path_parent_loop](#bhv_squarish_path_parent_loop) +### Description +Behavior loop function for Bowser in the Dark World Ssuarish path parent + ### Lua Example `bhv_squarish_path_parent_loop()` @@ -7726,6 +9010,9 @@ ## [bhv_squishable_platform_loop](#bhv_squishable_platform_loop) +### Description +Behavior loop function for squishable platform + ### Lua Example `bhv_squishable_platform_loop()` @@ -7744,6 +9031,9 @@ ## [bhv_ssl_moving_pyramid_wall_init](#bhv_ssl_moving_pyramid_wall_init) +### Description +Behavior init function for Ssl moving pyramid wall + ### Lua Example `bhv_ssl_moving_pyramid_wall_init()` @@ -7762,6 +9052,9 @@ ## [bhv_ssl_moving_pyramid_wall_loop](#bhv_ssl_moving_pyramid_wall_loop) +### Description +Behavior loop function for Ssl moving pyramid wall + ### Lua Example `bhv_ssl_moving_pyramid_wall_loop()` @@ -7780,6 +9073,9 @@ ## [bhv_star_door_loop](#bhv_star_door_loop) +### Description +Behavior loop function for Star Door + ### Lua Example `bhv_star_door_loop()` @@ -7798,6 +9094,9 @@ ## [bhv_star_door_loop_2](#bhv_star_door_loop_2) +### Description +Behavior loop function for Star Door + ### Lua Example `bhv_star_door_loop_2()` @@ -7816,6 +9115,9 @@ ## [bhv_star_key_collection_puff_spawner_loop](#bhv_star_key_collection_puff_spawner_loop) +### Description +Behavior loop function for Star and key collection puff spawner + ### Lua Example `bhv_star_key_collection_puff_spawner_loop()` @@ -7834,6 +9136,9 @@ ## [bhv_star_number_loop](#bhv_star_number_loop) +### Description +Behavior loop function for Star number + ### Lua Example `bhv_star_number_loop()` @@ -7852,6 +9157,9 @@ ## [bhv_star_spawn_init](#bhv_star_spawn_init) +### Description +Behavior init function for Star spawn + ### Lua Example `bhv_star_spawn_init()` @@ -7870,6 +9178,9 @@ ## [bhv_star_spawn_loop](#bhv_star_spawn_loop) +### Description +Behavior loop function for Star spawn + ### Lua Example `bhv_star_spawn_loop()` @@ -7888,6 +9199,9 @@ ## [bhv_static_checkered_platform_loop](#bhv_static_checkered_platform_loop) +### Description +Behavior loop function for static checkered platform + ### Lua Example `bhv_static_checkered_platform_loop()` @@ -7906,6 +9220,9 @@ ## [bhv_strong_wind_particle_loop](#bhv_strong_wind_particle_loop) +### Description +Behavior loop function for strong wind particle + ### Lua Example `bhv_strong_wind_particle_loop()` @@ -7924,6 +9241,9 @@ ## [bhv_sunken_ship_part_loop](#bhv_sunken_ship_part_loop) +### Description +Behavior loop function for Jolly Roger Bay sunken ship part + ### Lua Example `bhv_sunken_ship_part_loop()` @@ -7942,6 +9262,9 @@ ## [bhv_sushi_shark_collision_loop](#bhv_sushi_shark_collision_loop) +### Description +Behavior loop function for Sushi Shark collision + ### Lua Example `bhv_sushi_shark_collision_loop()` @@ -7960,6 +9283,9 @@ ## [bhv_sushi_shark_loop](#bhv_sushi_shark_loop) +### Description +Behavior loop function for Sushi Shark + ### Lua Example `bhv_sushi_shark_loop()` @@ -7978,6 +9304,9 @@ ## [bhv_swing_platform_init](#bhv_swing_platform_init) +### Description +Behavior init function for swing platform + ### Lua Example `bhv_swing_platform_init()` @@ -7996,6 +9325,9 @@ ## [bhv_swing_platform_update](#bhv_swing_platform_update) +### Description +Behavior loop function for swing platform + ### Lua Example `bhv_swing_platform_update()` @@ -8014,6 +9346,9 @@ ## [bhv_swoop_update](#bhv_swoop_update) +### Description +Behavior loop function for Swoop + ### Lua Example `bhv_swoop_update()` @@ -8032,6 +9367,9 @@ ## [bhv_tank_fish_group_loop](#bhv_tank_fish_group_loop) +### Description +Behavior loop function for tank fish group + ### Lua Example `bhv_tank_fish_group_loop()` @@ -8050,6 +9388,9 @@ ## [bhv_temp_coin_loop](#bhv_temp_coin_loop) +### Description +Behavior loop function for despawning Coin + ### Lua Example `bhv_temp_coin_loop()` @@ -8068,6 +9409,9 @@ ## [bhv_thi_bowling_ball_spawner_loop](#bhv_thi_bowling_ball_spawner_loop) +### Description +Behavior loop function for Tiny Huge Island bowling ball spawner + ### Lua Example `bhv_thi_bowling_ball_spawner_loop()` @@ -8086,6 +9430,9 @@ ## [bhv_thi_huge_island_top_loop](#bhv_thi_huge_island_top_loop) +### Description +Behavior loop function for Tiny Huge Island huge island top + ### Lua Example `bhv_thi_huge_island_top_loop()` @@ -8104,6 +9451,9 @@ ## [bhv_thi_tiny_island_top_loop](#bhv_thi_tiny_island_top_loop) +### Description +Behavior loop function for Tiny Huge Island tiny island top + ### Lua Example `bhv_thi_tiny_island_top_loop()` @@ -8122,6 +9472,9 @@ ## [bhv_tilting_bowser_lava_platform_init](#bhv_tilting_bowser_lava_platform_init) +### Description +Behavior init function for tilting Bowser in the Fire Sea arena platform + ### Lua Example `bhv_tilting_bowser_lava_platform_init()` @@ -8140,6 +9493,9 @@ ## [bhv_tilting_inverted_pyramid_loop](#bhv_tilting_inverted_pyramid_loop) +### Description +Behavior loop function for Lethal Lava Land and Bowser in the Fire Sea tilting inverted pyramid + ### Lua Example `bhv_tilting_inverted_pyramid_loop()` @@ -8158,6 +9514,9 @@ ## [bhv_tiny_star_particles_init](#bhv_tiny_star_particles_init) +### Description +Behavior init function for tiny Star particles + ### Lua Example `bhv_tiny_star_particles_init()` @@ -8176,6 +9535,9 @@ ## [bhv_tower_door_loop](#bhv_tower_door_loop) +### Description +Behavior loop function for Whomp's Fortress tower door + ### Lua Example `bhv_tower_door_loop()` @@ -8194,6 +9556,9 @@ ## [bhv_tower_platform_group_init](#bhv_tower_platform_group_init) +### Description +Behavior init function for Whomp's Fortress tower platform group + ### Lua Example `bhv_tower_platform_group_init()` @@ -8212,6 +9577,9 @@ ## [bhv_tower_platform_group_loop](#bhv_tower_platform_group_loop) +### Description +Behavior loop function for Whomp's Fortress tower platform group + ### Lua Example `bhv_tower_platform_group_loop()` @@ -8230,6 +9598,9 @@ ## [bhv_tox_box_loop](#bhv_tox_box_loop) +### Description +Behavior loop function for Tox Box + ### Lua Example `bhv_tox_box_loop()` @@ -8248,6 +9619,9 @@ ## [bhv_track_ball_update](#bhv_track_ball_update) +### Description +Behavior loop function for track ball + ### Lua Example `bhv_track_ball_update()` @@ -8266,6 +9640,9 @@ ## [bhv_treasure_chest_bottom_init](#bhv_treasure_chest_bottom_init) +### Description +Behavior init function for treasure chest bottom + ### Lua Example `bhv_treasure_chest_bottom_init()` @@ -8284,6 +9661,9 @@ ## [bhv_treasure_chest_bottom_loop](#bhv_treasure_chest_bottom_loop) +### Description +Behavior loop function for treasure chest bottom + ### Lua Example `bhv_treasure_chest_bottom_loop()` @@ -8302,6 +9682,9 @@ ## [bhv_treasure_chest_init](#bhv_treasure_chest_init) +### Description +Behavior init function for treasure chest + ### Lua Example `bhv_treasure_chest_init()` @@ -8320,6 +9703,9 @@ ## [bhv_treasure_chest_jrb_init](#bhv_treasure_chest_jrb_init) +### Description +Behavior init function for treasure chest jrb + ### Lua Example `bhv_treasure_chest_jrb_init()` @@ -8338,6 +9724,9 @@ ## [bhv_treasure_chest_jrb_loop](#bhv_treasure_chest_jrb_loop) +### Description +Behavior loop function for treasure chest jrb + ### Lua Example `bhv_treasure_chest_jrb_loop()` @@ -8356,6 +9745,9 @@ ## [bhv_treasure_chest_loop](#bhv_treasure_chest_loop) +### Description +Behavior loop function for treasure chest + ### Lua Example `bhv_treasure_chest_loop()` @@ -8374,6 +9766,9 @@ ## [bhv_treasure_chest_ship_init](#bhv_treasure_chest_ship_init) +### Description +Behavior init function for treasure chest ship + ### Lua Example `bhv_treasure_chest_ship_init()` @@ -8392,6 +9787,9 @@ ## [bhv_treasure_chest_ship_loop](#bhv_treasure_chest_ship_loop) +### Description +Behavior loop function for treasure chest ship + ### Lua Example `bhv_treasure_chest_ship_loop()` @@ -8410,6 +9808,9 @@ ## [bhv_treasure_chest_top_loop](#bhv_treasure_chest_top_loop) +### Description +Behavior loop function for treasure chest top + ### Lua Example `bhv_treasure_chest_top_loop()` @@ -8428,6 +9829,9 @@ ## [bhv_tree_snow_or_leaf_loop](#bhv_tree_snow_or_leaf_loop) +### Description +Behavior loop function for tree snow or leaf particle + ### Lua Example `bhv_tree_snow_or_leaf_loop()` @@ -8446,6 +9850,9 @@ ## [bhv_triplet_butterfly_update](#bhv_triplet_butterfly_update) +### Description +Behavior loop function for a triplet of butterflies + ### Lua Example `bhv_triplet_butterfly_update()` @@ -8464,6 +9871,9 @@ ## [bhv_ttc_2d_rotator_init](#bhv_ttc_2d_rotator_init) +### Description +Behavior init function for Tick Tock Clock 2D rotator + ### Lua Example `bhv_ttc_2d_rotator_init()` @@ -8482,6 +9892,9 @@ ## [bhv_ttc_2d_rotator_update](#bhv_ttc_2d_rotator_update) +### Description +Behavior loop function for Tick Tock Clock 2D rotator + ### Lua Example `bhv_ttc_2d_rotator_update()` @@ -8500,6 +9913,9 @@ ## [bhv_ttc_cog_init](#bhv_ttc_cog_init) +### Description +Behavior init function for Tick Tock Clock cog + ### Lua Example `bhv_ttc_cog_init()` @@ -8518,6 +9934,9 @@ ## [bhv_ttc_cog_update](#bhv_ttc_cog_update) +### Description +Behavior loop function for Tick Tock Clock cog + ### Lua Example `bhv_ttc_cog_update()` @@ -8536,6 +9955,9 @@ ## [bhv_ttc_elevator_init](#bhv_ttc_elevator_init) +### Description +Behavior init function for Tick Tock Clock elevator + ### Lua Example `bhv_ttc_elevator_init()` @@ -8554,6 +9976,9 @@ ## [bhv_ttc_elevator_update](#bhv_ttc_elevator_update) +### Description +Behavior loop function for Tick Tock Clock elevator + ### Lua Example `bhv_ttc_elevator_update()` @@ -8572,6 +9997,9 @@ ## [bhv_ttc_moving_bar_init](#bhv_ttc_moving_bar_init) +### Description +Behavior init function for Tick Tock Clock moving bar + ### Lua Example `bhv_ttc_moving_bar_init()` @@ -8590,6 +10018,9 @@ ## [bhv_ttc_moving_bar_update](#bhv_ttc_moving_bar_update) +### Description +Behavior loop function for Tick Tock Clock moving bar + ### Lua Example `bhv_ttc_moving_bar_update()` @@ -8608,6 +10039,9 @@ ## [bhv_ttc_pendulum_init](#bhv_ttc_pendulum_init) +### Description +Behavior init function for Tick Tock Clock pendulum + ### Lua Example `bhv_ttc_pendulum_init()` @@ -8626,6 +10060,9 @@ ## [bhv_ttc_pendulum_update](#bhv_ttc_pendulum_update) +### Description +Behavior loop function for Tick Tock Clock pendulum + ### Lua Example `bhv_ttc_pendulum_update()` @@ -8644,6 +10081,9 @@ ## [bhv_ttc_pit_block_init](#bhv_ttc_pit_block_init) +### Description +Behavior init function for Tick Tock Clock pit block + ### Lua Example `bhv_ttc_pit_block_init()` @@ -8662,6 +10102,9 @@ ## [bhv_ttc_pit_block_update](#bhv_ttc_pit_block_update) +### Description +Behavior loop function for Tick Tock Clock pit block + ### Lua Example `bhv_ttc_pit_block_update()` @@ -8680,6 +10123,9 @@ ## [bhv_ttc_rotating_solid_init](#bhv_ttc_rotating_solid_init) +### Description +Behavior init function for Tick Tock Clock rotating solid + ### Lua Example `bhv_ttc_rotating_solid_init()` @@ -8698,6 +10144,9 @@ ## [bhv_ttc_rotating_solid_update](#bhv_ttc_rotating_solid_update) +### Description +Behavior loop function for Tick Tock Clock rotating solid + ### Lua Example `bhv_ttc_rotating_solid_update()` @@ -8716,6 +10165,9 @@ ## [bhv_ttc_spinner_update](#bhv_ttc_spinner_update) +### Description +Behavior loop function for Tick Tock Clock spinner + ### Lua Example `bhv_ttc_spinner_update()` @@ -8734,6 +10186,9 @@ ## [bhv_ttc_treadmill_init](#bhv_ttc_treadmill_init) +### Description +Behavior init function for Tick Tock Clock treadmill + ### Lua Example `bhv_ttc_treadmill_init()` @@ -8752,6 +10207,9 @@ ## [bhv_ttc_treadmill_update](#bhv_ttc_treadmill_update) +### Description +Behavior loop function for Tick Tock Clock treadmill + ### Lua Example `bhv_ttc_treadmill_update()` @@ -8770,6 +10228,9 @@ ## [bhv_ttm_rolling_log_init](#bhv_ttm_rolling_log_init) +### Description +Behavior init function for Tall, Tall Mountain rolling log + ### Lua Example `bhv_ttm_rolling_log_init()` @@ -8788,6 +10249,9 @@ ## [bhv_tumbling_bridge_loop](#bhv_tumbling_bridge_loop) +### Description +Behavior loop function for tumbling bridge + ### Lua Example `bhv_tumbling_bridge_loop()` @@ -8806,6 +10270,9 @@ ## [bhv_tumbling_bridge_platform_loop](#bhv_tumbling_bridge_platform_loop) +### Description +Behavior loop function for tumbling bridge platform + ### Lua Example `bhv_tumbling_bridge_platform_loop()` @@ -8824,6 +10291,9 @@ ## [bhv_tuxies_mother_loop](#bhv_tuxies_mother_loop) +### Description +Behavior loop function for Tuxie's mother + ### Lua Example `bhv_tuxies_mother_loop()` @@ -8842,6 +10312,9 @@ ## [bhv_tweester_loop](#bhv_tweester_loop) +### Description +Behavior loop function for Tweester + ### Lua Example `bhv_tweester_loop()` @@ -8860,6 +10333,9 @@ ## [bhv_tweester_sand_particle_loop](#bhv_tweester_sand_particle_loop) +### Description +Behavior loop function for Tweester sand particle + ### Lua Example `bhv_tweester_sand_particle_loop()` @@ -8878,6 +10354,9 @@ ## [bhv_ukiki_cage_loop](#bhv_ukiki_cage_loop) +### Description +Behavior loop function for Ukiki cage + ### Lua Example `bhv_ukiki_cage_loop()` @@ -8896,6 +10375,9 @@ ## [bhv_ukiki_cage_star_loop](#bhv_ukiki_cage_star_loop) +### Description +Behavior loop function for Ukiki cage Star + ### Lua Example `bhv_ukiki_cage_star_loop()` @@ -8914,6 +10396,9 @@ ## [bhv_ukiki_init](#bhv_ukiki_init) +### Description +Behavior init function for Ukiki + ### Lua Example `bhv_ukiki_init()` @@ -8932,6 +10417,9 @@ ## [bhv_ukiki_loop](#bhv_ukiki_loop) +### Description +Behavior loop function for Ukiki + ### Lua Example `bhv_ukiki_loop()` @@ -8950,6 +10438,9 @@ ## [bhv_unagi_init](#bhv_unagi_init) +### Description +Behavior init function for Unagi + ### Lua Example `bhv_unagi_init()` @@ -8968,6 +10459,9 @@ ## [bhv_unagi_loop](#bhv_unagi_loop) +### Description +Behavior loop function for Unagi + ### Lua Example `bhv_unagi_loop()` @@ -8986,6 +10480,9 @@ ## [bhv_unagi_subobject_loop](#bhv_unagi_subobject_loop) +### Description +Behavior loop function for Unagi subobject + ### Lua Example `bhv_unagi_subobject_loop()` @@ -9004,6 +10501,9 @@ ## [bhv_unused_particle_spawn_loop](#bhv_unused_particle_spawn_loop) +### Description +Behavior loop function for unused particle spawn + ### Lua Example `bhv_unused_particle_spawn_loop()` @@ -9022,6 +10522,9 @@ ## [bhv_unused_poundable_platform](#bhv_unused_poundable_platform) +### Description +Behavior loop function for unused poundable platform + ### Lua Example `bhv_unused_poundable_platform()` @@ -9040,6 +10543,9 @@ ## [bhv_vanish_cap_init](#bhv_vanish_cap_init) +### Description +Behavior init function for Vanish Cap + ### Lua Example `bhv_vanish_cap_init()` @@ -9058,6 +10564,9 @@ ## [bhv_volcano_flames_loop](#bhv_volcano_flames_loop) +### Description +Behavior loop function for Volcano flames + ### Lua Example `bhv_volcano_flames_loop()` @@ -9076,6 +10585,9 @@ ## [bhv_volcano_sound_loop](#bhv_volcano_sound_loop) +### Description +Behavior loop function for volcano sound + ### Lua Example `bhv_volcano_sound_loop()` @@ -9094,6 +10606,9 @@ ## [bhv_volcano_trap_loop](#bhv_volcano_trap_loop) +### Description +Behavior loop function for volcano trap + ### Lua Example `bhv_volcano_trap_loop()` @@ -9112,6 +10627,9 @@ ## [bhv_wall_tiny_star_particle_loop](#bhv_wall_tiny_star_particle_loop) +### Description +Behavior loop function for tiny wall star particle + ### Lua Example `bhv_wall_tiny_star_particle_loop()` @@ -9130,6 +10648,9 @@ ## [bhv_warp_loop](#bhv_warp_loop) +### Description +Behavior loop function for warp + ### Lua Example `bhv_warp_loop()` @@ -9148,6 +10669,9 @@ ## [bhv_water_air_bubble_init](#bhv_water_air_bubble_init) +### Description +Behavior init function for water air bubble + ### Lua Example `bhv_water_air_bubble_init()` @@ -9166,6 +10690,9 @@ ## [bhv_water_air_bubble_loop](#bhv_water_air_bubble_loop) +### Description +Behavior loop function for water air bubble + ### Lua Example `bhv_water_air_bubble_loop()` @@ -9184,6 +10711,9 @@ ## [bhv_water_bomb_cannon_loop](#bhv_water_bomb_cannon_loop) +### Description +Behavior loop function for water bomb cannon + ### Lua Example `bhv_water_bomb_cannon_loop()` @@ -9202,6 +10732,9 @@ ## [bhv_water_bomb_shadow_update](#bhv_water_bomb_shadow_update) +### Description +Behavior loop function for water bomb shadow + ### Lua Example `bhv_water_bomb_shadow_update()` @@ -9220,6 +10753,9 @@ ## [bhv_water_bomb_spawner_update](#bhv_water_bomb_spawner_update) +### Description +Behavior loop function for water bomb spawner + ### Lua Example `bhv_water_bomb_spawner_update()` @@ -9238,6 +10774,9 @@ ## [bhv_water_bomb_update](#bhv_water_bomb_update) +### Description +Behavior loop function for water bomb + ### Lua Example `bhv_water_bomb_update()` @@ -9256,6 +10795,9 @@ ## [bhv_water_droplet_loop](#bhv_water_droplet_loop) +### Description +Behavior loop function for water droplet + ### Lua Example `bhv_water_droplet_loop()` @@ -9274,6 +10816,9 @@ ## [bhv_water_droplet_splash_init](#bhv_water_droplet_splash_init) +### Description +Behavior init function for water droplet splash + ### Lua Example `bhv_water_droplet_splash_init()` @@ -9292,6 +10837,9 @@ ## [bhv_water_level_diamond_loop](#bhv_water_level_diamond_loop) +### Description +Behavior loop function for Wet Dry World water level diamond + ### Lua Example `bhv_water_level_diamond_loop()` @@ -9310,6 +10858,9 @@ ## [bhv_water_level_pillar_init](#bhv_water_level_pillar_init) +### Description +Behavior init function for Castle Basement water level pillar + ### Lua Example `bhv_water_level_pillar_init()` @@ -9328,6 +10879,9 @@ ## [bhv_water_level_pillar_loop](#bhv_water_level_pillar_loop) +### Description +Behavior loop function for Castle Basement water level pillar + ### Lua Example `bhv_water_level_pillar_loop()` @@ -9346,6 +10900,9 @@ ## [bhv_water_mist_2_loop](#bhv_water_mist_2_loop) +### Description +Behavior loop function for water mist 2 + ### Lua Example `bhv_water_mist_2_loop()` @@ -9364,6 +10921,9 @@ ## [bhv_water_mist_loop](#bhv_water_mist_loop) +### Description +Behavior loop function for water mist + ### Lua Example `bhv_water_mist_loop()` @@ -9382,6 +10942,9 @@ ## [bhv_water_mist_spawn_loop](#bhv_water_mist_spawn_loop) +### Description +Behavior loop function for water mist spawn + ### Lua Example `bhv_water_mist_spawn_loop()` @@ -9400,6 +10963,9 @@ ## [bhv_water_splash_spawn_droplets](#bhv_water_splash_spawn_droplets) +### Description +Behavior init function for spawning water splash droplets + ### Lua Example `bhv_water_splash_spawn_droplets()` @@ -9418,6 +10984,9 @@ ## [bhv_water_waves_init](#bhv_water_waves_init) +### Description +Behavior init function for water waves + ### Lua Example `bhv_water_waves_init()` @@ -9436,6 +11005,9 @@ ## [bhv_waterfall_sound_loop](#bhv_waterfall_sound_loop) +### Description +Behavior loop function for waterfall sound + ### Lua Example `bhv_waterfall_sound_loop()` @@ -9454,6 +11026,9 @@ ## [bhv_wave_trail_shrink](#bhv_wave_trail_shrink) +### Description +Behavior loop function for shrinking water trail + ### Lua Example `bhv_wave_trail_shrink()` @@ -9472,6 +11047,9 @@ ## [bhv_wdw_express_elevator_loop](#bhv_wdw_express_elevator_loop) +### Description +Behavior loop function for Wet Dry World express elevator + ### Lua Example `bhv_wdw_express_elevator_loop()` @@ -9490,6 +11068,9 @@ ## [bhv_wf_breakable_wall_loop](#bhv_wf_breakable_wall_loop) +### Description +Behavior loop function for Whomp's Fortress breakable wall + ### Lua Example `bhv_wf_breakable_wall_loop()` @@ -9508,6 +11089,9 @@ ## [bhv_wf_elevator_tower_platform_loop](#bhv_wf_elevator_tower_platform_loop) +### Description +Behavior loop function for Whomp's Fortress elevator tower platform + ### Lua Example `bhv_wf_elevator_tower_platform_loop()` @@ -9526,6 +11110,9 @@ ## [bhv_wf_rotating_wooden_platform_init](#bhv_wf_rotating_wooden_platform_init) +### Description +Behavior init function for Whomp's Fortress rotating wooden platform + ### Lua Example `bhv_wf_rotating_wooden_platform_init()` @@ -9544,6 +11131,9 @@ ## [bhv_wf_rotating_wooden_platform_loop](#bhv_wf_rotating_wooden_platform_loop) +### Description +Behavior loop function for Whomp's Fortress rotating wooden platform + ### Lua Example `bhv_wf_rotating_wooden_platform_loop()` @@ -9562,6 +11152,9 @@ ## [bhv_wf_sliding_platform_init](#bhv_wf_sliding_platform_init) +### Description +Behavior init function for Whomp's Fortress sliding platform + ### Lua Example `bhv_wf_sliding_platform_init()` @@ -9580,6 +11173,9 @@ ## [bhv_wf_sliding_platform_loop](#bhv_wf_sliding_platform_loop) +### Description +Behavior loop function for Whomp's Fortress sliding platform + ### Lua Example `bhv_wf_sliding_platform_loop()` @@ -9598,6 +11194,9 @@ ## [bhv_wf_sliding_tower_platform_loop](#bhv_wf_sliding_tower_platform_loop) +### Description +Behavior loop function for Whomp's Fortress sliding tower platform + ### Lua Example `bhv_wf_sliding_tower_platform_loop()` @@ -9616,6 +11215,9 @@ ## [bhv_wf_solid_tower_platform_loop](#bhv_wf_solid_tower_platform_loop) +### Description +Behavior loop function for Whomp's Fortress solid tower platform + ### Lua Example `bhv_wf_solid_tower_platform_loop()` @@ -9634,6 +11236,9 @@ ## [bhv_whirlpool_init](#bhv_whirlpool_init) +### Description +Behavior init function for whirlpool + ### Lua Example `bhv_whirlpool_init()` @@ -9652,6 +11257,9 @@ ## [bhv_whirlpool_loop](#bhv_whirlpool_loop) +### Description +Behavior loop function for whirlpool + ### Lua Example `bhv_whirlpool_loop()` @@ -9670,6 +11278,9 @@ ## [bhv_white_puff_1_loop](#bhv_white_puff_1_loop) +### Description +Behavior loop function for white puff 1 + ### Lua Example `bhv_white_puff_1_loop()` @@ -9688,6 +11299,9 @@ ## [bhv_white_puff_2_loop](#bhv_white_puff_2_loop) +### Description +Behavior loop function for white puff 2 + ### Lua Example `bhv_white_puff_2_loop()` @@ -9706,6 +11320,9 @@ ## [bhv_white_puff_exploding_loop](#bhv_white_puff_exploding_loop) +### Description +Behavior loop function for white puff exploding + ### Lua Example `bhv_white_puff_exploding_loop()` @@ -9724,6 +11341,9 @@ ## [bhv_white_puff_smoke_init](#bhv_white_puff_smoke_init) +### Description +Behavior init function for White puff smoke + ### Lua Example `bhv_white_puff_smoke_init()` @@ -9742,6 +11362,9 @@ ## [bhv_whomp_loop](#bhv_whomp_loop) +### Description +Behavior loop function for Whomp + ### Lua Example `bhv_whomp_loop()` @@ -9760,6 +11383,9 @@ ## [bhv_wiggler_body_part_update](#bhv_wiggler_body_part_update) +### Description +Behavior loop function for Wiggler body part + ### Lua Example `bhv_wiggler_body_part_update()` @@ -9778,6 +11404,9 @@ ## [bhv_wiggler_update](#bhv_wiggler_update) +### Description +Behavior loop function for Wiggler + ### Lua Example `bhv_wiggler_update()` @@ -9796,6 +11425,9 @@ ## [bhv_wind_loop](#bhv_wind_loop) +### Description +Behavior loop function for wind + ### Lua Example `bhv_wind_loop()` @@ -9814,6 +11446,9 @@ ## [bhv_wing_cap_init](#bhv_wing_cap_init) +### Description +Behavior init function for Wing Cap + ### Lua Example `bhv_wing_cap_init()` @@ -9832,6 +11467,9 @@ ## [bhv_wing_vanish_cap_loop](#bhv_wing_vanish_cap_loop) +### Description +Behavior loop function for Wing and Vanish caps + ### Lua Example `bhv_wing_vanish_cap_loop()` @@ -9850,6 +11488,9 @@ ## [bhv_wooden_post_update](#bhv_wooden_post_update) +### Description +Behavior loop function for ground poundable wooden post + ### Lua Example `bhv_wooden_post_update()` @@ -9868,6 +11509,9 @@ ## [bhv_yellow_coin_init](#bhv_yellow_coin_init) +### Description +Behavior init function for Yellow Coin + ### Lua Example `bhv_yellow_coin_init()` @@ -9886,6 +11530,9 @@ ## [bhv_yellow_coin_loop](#bhv_yellow_coin_loop) +### Description +Behavior loop function for Yellow Coin + ### Lua Example `bhv_yellow_coin_loop()` @@ -9904,6 +11551,9 @@ ## [bhv_yoshi_init](#bhv_yoshi_init) +### Description +Behavior init function for Yoshi + ### Lua Example `bhv_yoshi_init()` @@ -9922,6 +11572,9 @@ ## [bhv_yoshi_loop](#bhv_yoshi_loop) +### Description +Behavior loop function for Yoshi + ### Lua Example `bhv_yoshi_loop()` @@ -9940,6 +11593,9 @@ ## [check_if_moving_over_floor](#check_if_moving_over_floor) +### Description +Checks if the current object is moving `a1` units over a floor and within a threshold of `a0` + ### Lua Example `local integerValue = check_if_moving_over_floor(a0, a1)` @@ -9961,6 +11617,9 @@ ## [clear_particle_flags](#clear_particle_flags) +### Description +Clears the particle flags of the current object + ### Lua Example `clear_particle_flags(flags)` @@ -9981,6 +11640,9 @@ ## [common_anchor_mario_behavior](#common_anchor_mario_behavior) +### Description +Common behavior for when Mario's anchoring when grabbed + ### Lua Example `common_anchor_mario_behavior(sp28, sp2C, sp30)` @@ -10003,6 +11665,9 @@ ## [cur_obj_spawn_strong_wind_particles](#cur_obj_spawn_strong_wind_particles) +### Description +Spawns strong wind particles relative to the current object + ### Lua Example `cur_obj_spawn_strong_wind_particles(windSpread, scale, relPosX, relPosY, relPosZ)` @@ -10027,6 +11692,9 @@ ## [mario_moving_fast_enough_to_make_piranha_plant_bite](#mario_moving_fast_enough_to_make_piranha_plant_bite) +### Description +Checks if Mario is moving fast enough to make Piranha Plant bite. This one is a mouthful + ### Lua Example `local integerValue = mario_moving_fast_enough_to_make_piranha_plant_bite()` @@ -10045,6 +11713,9 @@ ## [obj_set_secondary_camera_focus](#obj_set_secondary_camera_focus) +### Description +Sets the secondary camera focus + ### Lua Example `obj_set_secondary_camera_focus()` @@ -10063,6 +11734,9 @@ ## [play_penguin_walking_sound](#play_penguin_walking_sound) +### Description +Plays the penguin walking sound + ### Lua Example `play_penguin_walking_sound(walk)` @@ -10083,6 +11757,9 @@ ## [spawn_default_star](#spawn_default_star) +### Description +Spawns a Star with an ID corresponding to the current object's first behavior parameter byte + ### Lua Example `local ObjectValue = spawn_default_star(x, y, z)` @@ -10105,6 +11782,9 @@ ## [spawn_mist_from_global](#spawn_mist_from_global) +### Description +Spawns mist particles around the current object + ### Lua Example `spawn_mist_from_global()` @@ -10123,6 +11803,9 @@ ## [spawn_mist_particles_variable](#spawn_mist_particles_variable) +### Description +Spawns mist particles around the current object + ### Lua Example `spawn_mist_particles_variable(count, offsetY, size)` @@ -10145,6 +11828,9 @@ ## [spawn_no_exit_star](#spawn_no_exit_star) +### Description +Spawns a Star that won't make Mario exit the level with an ID corresponding to the current object's first behavior parameter byte + ### Lua Example `local ObjectValue = spawn_no_exit_star(x, y, z)` @@ -10167,6 +11853,9 @@ ## [spawn_red_coin_cutscene_star](#spawn_red_coin_cutscene_star) +### Description +Spawns a Red Coin cutscene star with an ID corresponding to the current object's first behavior parameter byte + ### Lua Example `local ObjectValue = spawn_red_coin_cutscene_star(x, y, z)` @@ -10189,6 +11878,9 @@ ## [spawn_star_number](#spawn_star_number) +### Description +Spawns a star number + ### Lua Example `spawn_star_number()` @@ -10207,6 +11899,9 @@ ## [spawn_triangle_break_particles](#spawn_triangle_break_particles) +### Description +Spawns triangle break particles around the current object + ### Lua Example `spawn_triangle_break_particles(numTris, triModel, triSize, triAnimState)` @@ -10230,6 +11925,9 @@ ## [spawn_wind_particles](#spawn_wind_particles) +### Description +Spawns wind particles around the current object + ### Lua Example `spawn_wind_particles(pitch, yaw)` @@ -10251,6 +11949,9 @@ ## [tox_box_move](#tox_box_move) +### Description +Moves Tox Box + ### Lua Example `tox_box_move(forwardVel, a1, deltaPitch, deltaRoll)` @@ -10274,6 +11975,9 @@ ## [update_angle_from_move_flags](#update_angle_from_move_flags) +### Description +Updates the current object's angle from its move flags + ### Lua Example `local integerValue = update_angle_from_move_flags(angle)` @@ -10294,6 +11998,9 @@ ## [uv_update_scroll](#uv_update_scroll) +### Description +Behavior loop function for UV texture scrolling + ### Lua Example `uv_update_scroll()` @@ -10312,6 +12019,9 @@ ## [vec3f_copy_2](#vec3f_copy_2) +### Description +Duplicate of vec3f_copy except without bad return + ### Lua Example `vec3f_copy_2(dest, src)` @@ -10329,246 +12039,6 @@ [:arrow_up_small:](#) -
- ---- -# functions from behavior_script.h - -
- - -## [draw_distance_scalar](#draw_distance_scalar) - -### Lua Example -`local numberValue = draw_distance_scalar()` - -### Parameters -- None - -### Returns -- `number` - -### C Prototype -`f32 draw_distance_scalar(void);` - -[:arrow_up_small:](#) - -
- -## [obj_update_gfx_pos_and_angle](#obj_update_gfx_pos_and_angle) - -### Lua Example -`obj_update_gfx_pos_and_angle(obj)` - -### Parameters -| Field | Type | -| ----- | ---- | -| obj | [Object](structs.md#Object) | - -### Returns -- None - -### C Prototype -`void obj_update_gfx_pos_and_angle(struct Object *obj);` - -[:arrow_up_small:](#) - -
- -## [position_based_random_float_position](#position_based_random_float_position) - -### Lua Example -`local numberValue = position_based_random_float_position()` - -### Parameters -- None - -### Returns -- `number` - -### C Prototype -`f32 position_based_random_float_position(void);` - -[:arrow_up_small:](#) - -
- -## [position_based_random_u16](#position_based_random_u16) - -### Lua Example -`local integerValue = position_based_random_u16()` - -### Parameters -- None - -### Returns -- `integer` - -### C Prototype -`u16 position_based_random_u16(void);` - -[:arrow_up_small:](#) - -
- -## [random_float](#random_float) - -### Lua Example -`local numberValue = random_float()` - -### Parameters -- None - -### Returns -- `number` - -### C Prototype -`float random_float(void);` - -[:arrow_up_small:](#) - -
- -## [random_sign](#random_sign) - -### Lua Example -`local integerValue = random_sign()` - -### Parameters -- None - -### Returns -- `integer` - -### C Prototype -`s32 random_sign(void);` - -[:arrow_up_small:](#) - -
- -## [random_u16](#random_u16) - -### Lua Example -`local integerValue = random_u16()` - -### Parameters -- None - -### Returns -- `integer` - -### C Prototype -`u16 random_u16(void);` - -[:arrow_up_small:](#) - -
- ---- -# functions from behavior_table.h - -
- - -## [get_behavior_from_id](#get_behavior_from_id) - -### Lua Example -`local PointerValue = get_behavior_from_id(id)` - -### Parameters -| Field | Type | -| ----- | ---- | -| id | [enum BehaviorId](constants.md#enum-BehaviorId) | - -### Returns -- `Pointer` <`BehaviorScript`> - -### C Prototype -`const BehaviorScript* get_behavior_from_id(enum BehaviorId id);` - -[:arrow_up_small:](#) - -
- -## [get_behavior_name_from_id](#get_behavior_name_from_id) - -### Lua Example -`local stringValue = get_behavior_name_from_id(id)` - -### Parameters -| Field | Type | -| ----- | ---- | -| id | [enum BehaviorId](constants.md#enum-BehaviorId) | - -### Returns -- `string` - -### C Prototype -`const char* get_behavior_name_from_id(enum BehaviorId id);` - -[:arrow_up_small:](#) - -
- -## [get_id_from_behavior](#get_id_from_behavior) - -### Lua Example -`local enumValue = get_id_from_behavior(behavior)` - -### Parameters -| Field | Type | -| ----- | ---- | -| behavior | `Pointer` <`BehaviorScript`> | - -### Returns -[enum BehaviorId](constants.md#enum-BehaviorId) - -### C Prototype -`enum BehaviorId get_id_from_behavior(const BehaviorScript* behavior);` - -[:arrow_up_small:](#) - -
- -## [get_id_from_behavior_name](#get_id_from_behavior_name) - -### Lua Example -`local enumValue = get_id_from_behavior_name(name)` - -### Parameters -| Field | Type | -| ----- | ---- | -| name | `string` | - -### Returns -[enum BehaviorId](constants.md#enum-BehaviorId) - -### C Prototype -`enum BehaviorId get_id_from_behavior_name(const char* name);` - -[:arrow_up_small:](#) - -
- -## [get_id_from_vanilla_behavior](#get_id_from_vanilla_behavior) - -### Lua Example -`local enumValue = get_id_from_vanilla_behavior(behavior)` - -### Parameters -| Field | Type | -| ----- | ---- | -| behavior | `Pointer` <`BehaviorScript`> | - -### Returns -[enum BehaviorId](constants.md#enum-BehaviorId) - -### C Prototype -`enum BehaviorId get_id_from_vanilla_behavior(const BehaviorScript* behavior);` - -[:arrow_up_small:](#) -
--- diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index 3b2b98382..6a35813bb 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -5,6 +5,246 @@ [< prev](functions-2.md) | [1](functions.md) | [2](functions-2.md) | 3 | [4](functions-4.md) | [5](functions-5.md) | [6](functions-6.md) | [next >](functions-4.md)] +--- +# functions from behavior_script.h + +
+ + +## [draw_distance_scalar](#draw_distance_scalar) + +### Lua Example +`local numberValue = draw_distance_scalar()` + +### Parameters +- None + +### Returns +- `number` + +### C Prototype +`f32 draw_distance_scalar(void);` + +[:arrow_up_small:](#) + +
+ +## [obj_update_gfx_pos_and_angle](#obj_update_gfx_pos_and_angle) + +### Lua Example +`obj_update_gfx_pos_and_angle(obj)` + +### Parameters +| Field | Type | +| ----- | ---- | +| obj | [Object](structs.md#Object) | + +### Returns +- None + +### C Prototype +`void obj_update_gfx_pos_and_angle(struct Object *obj);` + +[:arrow_up_small:](#) + +
+ +## [position_based_random_float_position](#position_based_random_float_position) + +### Lua Example +`local numberValue = position_based_random_float_position()` + +### Parameters +- None + +### Returns +- `number` + +### C Prototype +`f32 position_based_random_float_position(void);` + +[:arrow_up_small:](#) + +
+ +## [position_based_random_u16](#position_based_random_u16) + +### Lua Example +`local integerValue = position_based_random_u16()` + +### Parameters +- None + +### Returns +- `integer` + +### C Prototype +`u16 position_based_random_u16(void);` + +[:arrow_up_small:](#) + +
+ +## [random_float](#random_float) + +### Lua Example +`local numberValue = random_float()` + +### Parameters +- None + +### Returns +- `number` + +### C Prototype +`float random_float(void);` + +[:arrow_up_small:](#) + +
+ +## [random_sign](#random_sign) + +### Lua Example +`local integerValue = random_sign()` + +### Parameters +- None + +### Returns +- `integer` + +### C Prototype +`s32 random_sign(void);` + +[:arrow_up_small:](#) + +
+ +## [random_u16](#random_u16) + +### Lua Example +`local integerValue = random_u16()` + +### Parameters +- None + +### Returns +- `integer` + +### C Prototype +`u16 random_u16(void);` + +[:arrow_up_small:](#) + +
+ +--- +# functions from behavior_table.h + +
+ + +## [get_behavior_from_id](#get_behavior_from_id) + +### Lua Example +`local PointerValue = get_behavior_from_id(id)` + +### Parameters +| Field | Type | +| ----- | ---- | +| id | [enum BehaviorId](constants.md#enum-BehaviorId) | + +### Returns +- `Pointer` <`BehaviorScript`> + +### C Prototype +`const BehaviorScript* get_behavior_from_id(enum BehaviorId id);` + +[:arrow_up_small:](#) + +
+ +## [get_behavior_name_from_id](#get_behavior_name_from_id) + +### Lua Example +`local stringValue = get_behavior_name_from_id(id)` + +### Parameters +| Field | Type | +| ----- | ---- | +| id | [enum BehaviorId](constants.md#enum-BehaviorId) | + +### Returns +- `string` + +### C Prototype +`const char* get_behavior_name_from_id(enum BehaviorId id);` + +[:arrow_up_small:](#) + +
+ +## [get_id_from_behavior](#get_id_from_behavior) + +### Lua Example +`local enumValue = get_id_from_behavior(behavior)` + +### Parameters +| Field | Type | +| ----- | ---- | +| behavior | `Pointer` <`BehaviorScript`> | + +### Returns +[enum BehaviorId](constants.md#enum-BehaviorId) + +### C Prototype +`enum BehaviorId get_id_from_behavior(const BehaviorScript* behavior);` + +[:arrow_up_small:](#) + +
+ +## [get_id_from_behavior_name](#get_id_from_behavior_name) + +### Lua Example +`local enumValue = get_id_from_behavior_name(name)` + +### Parameters +| Field | Type | +| ----- | ---- | +| name | `string` | + +### Returns +[enum BehaviorId](constants.md#enum-BehaviorId) + +### C Prototype +`enum BehaviorId get_id_from_behavior_name(const char* name);` + +[:arrow_up_small:](#) + +
+ +## [get_id_from_vanilla_behavior](#get_id_from_vanilla_behavior) + +### Lua Example +`local enumValue = get_id_from_vanilla_behavior(behavior)` + +### Parameters +| Field | Type | +| ----- | ---- | +| behavior | `Pointer` <`BehaviorScript`> | + +### Returns +[enum BehaviorId](constants.md#enum-BehaviorId) + +### C Prototype +`enum BehaviorId get_id_from_vanilla_behavior(const BehaviorScript* behavior);` + +[:arrow_up_small:](#) + +
+ --- # functions from camera.h @@ -8139,387 +8379,6 @@ Creates a warp node in the current level and area with id `id` that goes to the [:arrow_up_small:](#) -
- ---- -# functions from mario_actions_stationary.c - -
- - -## [check_common_hold_idle_cancels](#check_common_hold_idle_cancels) - -### Lua Example -`local integerValue = check_common_hold_idle_cancels(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`s32 check_common_hold_idle_cancels(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [check_common_idle_cancels](#check_common_idle_cancels) - -### Lua Example -`local integerValue = check_common_idle_cancels(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`s32 check_common_idle_cancels(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [check_common_landing_cancels](#check_common_landing_cancels) - -### Lua Example -`local integerValue = check_common_landing_cancels(m, action)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| action | `integer` | - -### Returns -- `integer` - -### C Prototype -`s32 check_common_landing_cancels(struct MarioState *m, u32 action);` - -[:arrow_up_small:](#) - -
- -## [check_common_stationary_cancels](#check_common_stationary_cancels) - -### Lua Example -`local integerValue = check_common_stationary_cancels(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`s32 check_common_stationary_cancels(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [landing_step](#landing_step) - -### Lua Example -`local integerValue = landing_step(m, arg1, action)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| arg1 | `integer` | -| action | `integer` | - -### Returns -- `integer` - -### C Prototype -`s32 landing_step(struct MarioState *m, s32 arg1, u32 action);` - -[:arrow_up_small:](#) - -
- -## [mario_execute_stationary_action](#mario_execute_stationary_action) - -### Lua Example -`local integerValue = mario_execute_stationary_action(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`s32 mario_execute_stationary_action(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [play_anim_sound](#play_anim_sound) - -### Lua Example -`play_anim_sound(m, actionState, animFrame, sound)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| actionState | `integer` | -| animFrame | `integer` | -| sound | `integer` | - -### Returns -- None - -### C Prototype -`void play_anim_sound(struct MarioState *m, u32 actionState, s32 animFrame, u32 sound);` - -[:arrow_up_small:](#) - -
- -## [stopping_step](#stopping_step) - -### Lua Example -`stopping_step(m, animID, action)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| animID | `integer` | -| action | `integer` | - -### Returns -- None - -### C Prototype -`void stopping_step(struct MarioState *m, s32 animID, u32 action);` - -[:arrow_up_small:](#) - -
- ---- -# functions from mario_actions_submerged.c - -
- - -## [apply_water_current](#apply_water_current) - -### Lua Example -`apply_water_current(m, step)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| step | [Vec3f](structs.md#Vec3f) | - -### Returns -- None - -### C Prototype -`void apply_water_current(struct MarioState *m, Vec3f step);` - -[:arrow_up_small:](#) - -
- -## [float_surface_gfx](#float_surface_gfx) - -### Lua Example -`float_surface_gfx(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- None - -### C Prototype -`void float_surface_gfx(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [mario_execute_submerged_action](#mario_execute_submerged_action) - -### Lua Example -`local integerValue = mario_execute_submerged_action(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`s32 mario_execute_submerged_action(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [perform_water_full_step](#perform_water_full_step) - -### Lua Example -`local integerValue = perform_water_full_step(m, nextPos)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| nextPos | [Vec3f](structs.md#Vec3f) | - -### Returns -- `integer` - -### C Prototype -`u32 perform_water_full_step(struct MarioState *m, Vec3f nextPos);` - -[:arrow_up_small:](#) - -
- -## [perform_water_step](#perform_water_step) - -### Lua Example -`local integerValue = perform_water_step(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- `integer` - -### C Prototype -`u32 perform_water_step(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [set_swimming_at_surface_particles](#set_swimming_at_surface_particles) - -### Lua Example -`set_swimming_at_surface_particles(m, particleFlag)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | -| particleFlag | `integer` | - -### Returns -- None - -### C Prototype -`void set_swimming_at_surface_particles(struct MarioState *m, u32 particleFlag);` - -[:arrow_up_small:](#) - -
- ---- -# functions from mario_misc.h - -
- - -## [bhv_toad_message_init](#bhv_toad_message_init) - -### Lua Example -`bhv_toad_message_init()` - -### Parameters -- None - -### Returns -- None - -### C Prototype -`void bhv_toad_message_init(void);` - -[:arrow_up_small:](#) - -
- -## [bhv_toad_message_loop](#bhv_toad_message_loop) - -### Lua Example -`bhv_toad_message_loop()` - -### Parameters -- None - -### Returns -- None - -### C Prototype -`void bhv_toad_message_loop(void);` - -[:arrow_up_small:](#) - -
- -## [bhv_unlock_door_star_init](#bhv_unlock_door_star_init) - -### Lua Example -`bhv_unlock_door_star_init()` - -### Parameters -- None - -### Returns -- None - -### C Prototype -`void bhv_unlock_door_star_init(void);` - -[:arrow_up_small:](#) - -
- -## [bhv_unlock_door_star_loop](#bhv_unlock_door_star_loop) - -### Lua Example -`bhv_unlock_door_star_loop()` - -### Parameters -- None - -### Returns -- None - -### C Prototype -`void bhv_unlock_door_star_loop(void);` - -[:arrow_up_small:](#) -
--- diff --git a/docs/lua/functions-4.md b/docs/lua/functions-4.md index 876ad6c66..cea75fe83 100644 --- a/docs/lua/functions-4.md +++ b/docs/lua/functions-4.md @@ -5,6 +5,387 @@ [< prev](functions-3.md) | [1](functions.md) | [2](functions-2.md) | [3](functions-3.md) | 4 | [5](functions-5.md) | [6](functions-6.md) | [next >](functions-5.md)] +--- +# functions from mario_actions_stationary.c + +
+ + +## [check_common_hold_idle_cancels](#check_common_hold_idle_cancels) + +### Lua Example +`local integerValue = check_common_hold_idle_cancels(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`s32 check_common_hold_idle_cancels(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [check_common_idle_cancels](#check_common_idle_cancels) + +### Lua Example +`local integerValue = check_common_idle_cancels(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`s32 check_common_idle_cancels(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [check_common_landing_cancels](#check_common_landing_cancels) + +### Lua Example +`local integerValue = check_common_landing_cancels(m, action)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| action | `integer` | + +### Returns +- `integer` + +### C Prototype +`s32 check_common_landing_cancels(struct MarioState *m, u32 action);` + +[:arrow_up_small:](#) + +
+ +## [check_common_stationary_cancels](#check_common_stationary_cancels) + +### Lua Example +`local integerValue = check_common_stationary_cancels(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`s32 check_common_stationary_cancels(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [landing_step](#landing_step) + +### Lua Example +`local integerValue = landing_step(m, arg1, action)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| arg1 | `integer` | +| action | `integer` | + +### Returns +- `integer` + +### C Prototype +`s32 landing_step(struct MarioState *m, s32 arg1, u32 action);` + +[:arrow_up_small:](#) + +
+ +## [mario_execute_stationary_action](#mario_execute_stationary_action) + +### Lua Example +`local integerValue = mario_execute_stationary_action(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`s32 mario_execute_stationary_action(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [play_anim_sound](#play_anim_sound) + +### Lua Example +`play_anim_sound(m, actionState, animFrame, sound)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| actionState | `integer` | +| animFrame | `integer` | +| sound | `integer` | + +### Returns +- None + +### C Prototype +`void play_anim_sound(struct MarioState *m, u32 actionState, s32 animFrame, u32 sound);` + +[:arrow_up_small:](#) + +
+ +## [stopping_step](#stopping_step) + +### Lua Example +`stopping_step(m, animID, action)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| animID | `integer` | +| action | `integer` | + +### Returns +- None + +### C Prototype +`void stopping_step(struct MarioState *m, s32 animID, u32 action);` + +[:arrow_up_small:](#) + +
+ +--- +# functions from mario_actions_submerged.c + +
+ + +## [apply_water_current](#apply_water_current) + +### Lua Example +`apply_water_current(m, step)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| step | [Vec3f](structs.md#Vec3f) | + +### Returns +- None + +### C Prototype +`void apply_water_current(struct MarioState *m, Vec3f step);` + +[:arrow_up_small:](#) + +
+ +## [float_surface_gfx](#float_surface_gfx) + +### Lua Example +`float_surface_gfx(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- None + +### C Prototype +`void float_surface_gfx(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [mario_execute_submerged_action](#mario_execute_submerged_action) + +### Lua Example +`local integerValue = mario_execute_submerged_action(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`s32 mario_execute_submerged_action(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [perform_water_full_step](#perform_water_full_step) + +### Lua Example +`local integerValue = perform_water_full_step(m, nextPos)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| nextPos | [Vec3f](structs.md#Vec3f) | + +### Returns +- `integer` + +### C Prototype +`u32 perform_water_full_step(struct MarioState *m, Vec3f nextPos);` + +[:arrow_up_small:](#) + +
+ +## [perform_water_step](#perform_water_step) + +### Lua Example +`local integerValue = perform_water_step(m)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | + +### Returns +- `integer` + +### C Prototype +`u32 perform_water_step(struct MarioState *m);` + +[:arrow_up_small:](#) + +
+ +## [set_swimming_at_surface_particles](#set_swimming_at_surface_particles) + +### Lua Example +`set_swimming_at_surface_particles(m, particleFlag)` + +### Parameters +| Field | Type | +| ----- | ---- | +| m | [MarioState](structs.md#MarioState) | +| particleFlag | `integer` | + +### Returns +- None + +### C Prototype +`void set_swimming_at_surface_particles(struct MarioState *m, u32 particleFlag);` + +[:arrow_up_small:](#) + +
+ +--- +# functions from mario_misc.h + +
+ + +## [bhv_toad_message_init](#bhv_toad_message_init) + +### Lua Example +`bhv_toad_message_init()` + +### Parameters +- None + +### Returns +- None + +### C Prototype +`void bhv_toad_message_init(void);` + +[:arrow_up_small:](#) + +
+ +## [bhv_toad_message_loop](#bhv_toad_message_loop) + +### Lua Example +`bhv_toad_message_loop()` + +### Parameters +- None + +### Returns +- None + +### C Prototype +`void bhv_toad_message_loop(void);` + +[:arrow_up_small:](#) + +
+ +## [bhv_unlock_door_star_init](#bhv_unlock_door_star_init) + +### Lua Example +`bhv_unlock_door_star_init()` + +### Parameters +- None + +### Returns +- None + +### C Prototype +`void bhv_unlock_door_star_init(void);` + +[:arrow_up_small:](#) + +
+ +## [bhv_unlock_door_star_loop](#bhv_unlock_door_star_loop) + +### Lua Example +`bhv_unlock_door_star_loop()` + +### Parameters +- None + +### Returns +- None + +### C Prototype +`void bhv_unlock_door_star_loop(void);` + +[:arrow_up_small:](#) + +
+ --- # functions from mario_step.h diff --git a/docs/lua/functions.md b/docs/lua/functions.md index b57b36d3e..fd6e9f6f8 100644 --- a/docs/lua/functions.md +++ b/docs/lua/functions.md @@ -610,22 +610,22 @@
- behavior_script.h - - [draw_distance_scalar](functions-2.md#draw_distance_scalar) - - [obj_update_gfx_pos_and_angle](functions-2.md#obj_update_gfx_pos_and_angle) - - [position_based_random_float_position](functions-2.md#position_based_random_float_position) - - [position_based_random_u16](functions-2.md#position_based_random_u16) - - [random_float](functions-2.md#random_float) - - [random_sign](functions-2.md#random_sign) - - [random_u16](functions-2.md#random_u16) + - [draw_distance_scalar](functions-3.md#draw_distance_scalar) + - [obj_update_gfx_pos_and_angle](functions-3.md#obj_update_gfx_pos_and_angle) + - [position_based_random_float_position](functions-3.md#position_based_random_float_position) + - [position_based_random_u16](functions-3.md#position_based_random_u16) + - [random_float](functions-3.md#random_float) + - [random_sign](functions-3.md#random_sign) + - [random_u16](functions-3.md#random_u16)
- behavior_table.h - - [get_behavior_from_id](functions-2.md#get_behavior_from_id) - - [get_behavior_name_from_id](functions-2.md#get_behavior_name_from_id) - - [get_id_from_behavior](functions-2.md#get_id_from_behavior) - - [get_id_from_behavior_name](functions-2.md#get_id_from_behavior_name) - - [get_id_from_vanilla_behavior](functions-2.md#get_id_from_vanilla_behavior) + - [get_behavior_from_id](functions-3.md#get_behavior_from_id) + - [get_behavior_name_from_id](functions-3.md#get_behavior_name_from_id) + - [get_id_from_behavior](functions-3.md#get_id_from_behavior) + - [get_id_from_behavior_name](functions-3.md#get_id_from_behavior_name) + - [get_id_from_vanilla_behavior](functions-3.md#get_id_from_vanilla_behavior)
@@ -1093,32 +1093,32 @@
- mario_actions_stationary.c - - [check_common_hold_idle_cancels](functions-3.md#check_common_hold_idle_cancels) - - [check_common_idle_cancels](functions-3.md#check_common_idle_cancels) - - [check_common_landing_cancels](functions-3.md#check_common_landing_cancels) - - [check_common_stationary_cancels](functions-3.md#check_common_stationary_cancels) - - [landing_step](functions-3.md#landing_step) - - [mario_execute_stationary_action](functions-3.md#mario_execute_stationary_action) - - [play_anim_sound](functions-3.md#play_anim_sound) - - [stopping_step](functions-3.md#stopping_step) + - [check_common_hold_idle_cancels](functions-4.md#check_common_hold_idle_cancels) + - [check_common_idle_cancels](functions-4.md#check_common_idle_cancels) + - [check_common_landing_cancels](functions-4.md#check_common_landing_cancels) + - [check_common_stationary_cancels](functions-4.md#check_common_stationary_cancels) + - [landing_step](functions-4.md#landing_step) + - [mario_execute_stationary_action](functions-4.md#mario_execute_stationary_action) + - [play_anim_sound](functions-4.md#play_anim_sound) + - [stopping_step](functions-4.md#stopping_step)
- mario_actions_submerged.c - - [apply_water_current](functions-3.md#apply_water_current) - - [float_surface_gfx](functions-3.md#float_surface_gfx) - - [mario_execute_submerged_action](functions-3.md#mario_execute_submerged_action) - - [perform_water_full_step](functions-3.md#perform_water_full_step) - - [perform_water_step](functions-3.md#perform_water_step) - - [set_swimming_at_surface_particles](functions-3.md#set_swimming_at_surface_particles) + - [apply_water_current](functions-4.md#apply_water_current) + - [float_surface_gfx](functions-4.md#float_surface_gfx) + - [mario_execute_submerged_action](functions-4.md#mario_execute_submerged_action) + - [perform_water_full_step](functions-4.md#perform_water_full_step) + - [perform_water_step](functions-4.md#perform_water_step) + - [set_swimming_at_surface_particles](functions-4.md#set_swimming_at_surface_particles)
- mario_misc.h - - [bhv_toad_message_init](functions-3.md#bhv_toad_message_init) - - [bhv_toad_message_loop](functions-3.md#bhv_toad_message_loop) - - [bhv_unlock_door_star_init](functions-3.md#bhv_unlock_door_star_init) - - [bhv_unlock_door_star_loop](functions-3.md#bhv_unlock_door_star_loop) + - [bhv_toad_message_init](functions-4.md#bhv_toad_message_init) + - [bhv_toad_message_loop](functions-4.md#bhv_toad_message_loop) + - [bhv_unlock_door_star_init](functions-4.md#bhv_unlock_door_star_init) + - [bhv_unlock_door_star_loop](functions-4.md#bhv_unlock_door_star_loop)
diff --git a/src/game/area.c b/src/game/area.c index 9b0793d60..6f020bc3e 100644 --- a/src/game/area.c +++ b/src/game/area.c @@ -180,7 +180,7 @@ struct ObjectWarpNode *area_get_any_warp_node(void) { struct ObjectWarpNode *pick = NULL; for (node = gCurrentArea->warpNodes; node != NULL; node = node->next) { - if (node->node.destLevel & 0x7F != gCurrLevelNum) { continue; } + if ((node->node.destLevel & 0x7F) != gCurrLevelNum) { continue; } if (!pick) { pick = node; continue; } if (node->node.destArea < pick->node.destArea) { pick = node; } } diff --git a/src/game/behavior_actions.h b/src/game/behavior_actions.h index 05adef9eb..939479362 100644 --- a/src/game/behavior_actions.h +++ b/src/game/behavior_actions.h @@ -4,576 +4,1148 @@ #define BHV_ARR_CHECK(_arr, _idx, _arritem) (((size_t)_idx) < (sizeof(_arr) / sizeof(_arritem))) #define BHV_ARR(_arr, _idx, _arritem) (BHV_ARR_CHECK(_arr, _idx, _arritem) ? _arr[_idx] : 0) +/* |description|Spawns mist particles around the current object|descriptionEnd| */ void spawn_mist_particles_variable(s32 count, s32 offsetY, f32 size); +/* |description|Spawns a Star parented to `object` that won't make Mario exit the level with an ID corresponding to `params`' first byte|descriptionEnd| */ void bhv_spawn_star_no_level_exit(struct Object* object, u32 params, u8 networkSendEvent); -void bhv_star_door_loop_2(void); +/* |description|Spawns triangle break particles around the current object|descriptionEnd| */ void spawn_triangle_break_particles(s16 numTris, s16 triModel, f32 triSize, s16 triAnimState); +/* |description|Spawns mist particles around the current object|descriptionEnd| */ void spawn_mist_from_global(void); +/* |description|Clears the particle flags of the current object|descriptionEnd| */ void clear_particle_flags(u32 flags); +/* |description|Spawns wind particles around the current object|descriptionEnd| */ void spawn_wind_particles(s16 pitch, s16 yaw); +/* |description|Checks if the current object is moving `a1` units over a floor and within a threshold of `a0`|descriptionEnd| */ s32 check_if_moving_over_floor(f32 a0, f32 a1); -s32 arc_to_goal_pos(Vec3f a0, Vec3f a1, f32 yVel, f32 gravity); +/* |description|Calculates the time it takes for the current object to follow an arc from `pos` to `goal`|descriptionEnd| */ +s32 arc_to_goal_pos(Vec3f goal, Vec3f pos, f32 yVel, f32 gravity); +/* |description|Duplicate of vec3f_copy except without bad return|descriptionEnd| */ void vec3f_copy_2(Vec3f dest, Vec3f src); +/* |description|Moves Tox Box|descriptionEnd| */ void tox_box_move(f32 forwardVel, f32 a1, s16 deltaPitch, s16 deltaRoll); +/* |description|Plays the penguin walking sound|descriptionEnd| */ void play_penguin_walking_sound(s32 walk); +/* |description|Updates the current object's angle from its move flags|descriptionEnd| */ s32 update_angle_from_move_flags(s32 *angle); +/* |description|Spawns strong wind particles relative to the current object|descriptionEnd| */ void cur_obj_spawn_strong_wind_particles(s32 windSpread, f32 scale, f32 relPosX, f32 relPosY, f32 relPosZ); +/* |description|Behavior loop function for Star Door|descriptionEnd| */ +void bhv_star_door_loop_2(void); +/* |description|Behavior loop function for Cap Switch|descriptionEnd| */ void bhv_cap_switch_loop(void); +/* |description|Behavior init function for tiny Star particles|descriptionEnd| */ void bhv_tiny_star_particles_init(void); +/* |description|Behavior loop function for Grindel and Thwomp|descriptionEnd| */ void bhv_grindel_thwomp_loop(void); +/* |description|Behavior loop function for Koopa Shell underwater|descriptionEnd| */ void bhv_koopa_shell_underwater_loop(void); +/* |description|Behavior init function for door|descriptionEnd| */ void bhv_door_init(void); +/* |description|Behavior loop function for door|descriptionEnd| */ void bhv_door_loop(void); +/* |description|Behavior loop function for Star Door|descriptionEnd| */ void bhv_star_door_loop(void); +/* |description|Behavior loop function for Mr. I|descriptionEnd| */ void bhv_mr_i_loop(void); +/* |description|Behavior loop function for Mr. I body|descriptionEnd| */ void bhv_mr_i_body_loop(void); +/* |description|Behavior loop function for Mr. I particle|descriptionEnd| */ void bhv_mr_i_particle_loop(void); +/* |description|Behavior loop function for Piranha particle|descriptionEnd| */ void bhv_piranha_particle_loop(void); +/* |description|Behavior loop function for giant pole|descriptionEnd| */ void bhv_giant_pole_loop(void); +/* |description|Behavior init function for pole|descriptionEnd| */ void bhv_pole_init(void); +/* |description|Behavior loop function for pole base|descriptionEnd| */ void bhv_pole_base_loop(void); +/* |description|Behavior loop function for Tiny Huge Island huge island top|descriptionEnd| */ void bhv_thi_huge_island_top_loop(void); +/* |description|Behavior loop function for Tiny Huge Island tiny island top|descriptionEnd| */ void bhv_thi_tiny_island_top_loop(void); +/* |description|Behavior loop function for King Bob-omb|descriptionEnd| */ void bhv_king_bobomb_loop(void); +/* |description|Behavior loop function for Bob-omb anchor mario|descriptionEnd| */ void bhv_bobomb_anchor_mario_loop(void); +/* |description|Behavior init function for beta chest bottom|descriptionEnd| */ void bhv_beta_chest_bottom_init(void); +/* |description|Behavior loop function for beta chest bottom|descriptionEnd| */ void bhv_beta_chest_bottom_loop(void); +/* |description|Behavior loop function for beta chest lid|descriptionEnd| */ void bhv_beta_chest_lid_loop(void); +/* |description|Behavior init function for bubble wave|descriptionEnd| */ void bhv_bubble_wave_init(void); +/* |description|Behavior loop function for bubble maybe|descriptionEnd| */ void bhv_bubble_maybe_loop(void); +/* |description|Behavior loop function for bubble player|descriptionEnd| */ void bhv_bubble_player_loop(void); +/* |description|Behavior init function for water air bubble|descriptionEnd| */ void bhv_water_air_bubble_init(void); +/* |description|Behavior loop function for water air bubble|descriptionEnd| */ void bhv_water_air_bubble_loop(void); +/* |description|Behavior init function for particle|descriptionEnd| */ void bhv_particle_init(void); +/* |description|Behavior loop function for particle|descriptionEnd| */ void bhv_particle_loop(void); +/* |description|Behavior init function for water waves|descriptionEnd| */ void bhv_water_waves_init(void); +/* |description|Behavior loop function for small bubbles|descriptionEnd| */ void bhv_small_bubbles_loop(void); +/* |description|Behavior loop function for fish group|descriptionEnd| */ void bhv_fish_group_loop(void); +/* |description|Behavior loop function for cannon base|descriptionEnd| */ void bhv_cannon_base_loop(void); +/* |description|Behavior loop function for cannon barrel|descriptionEnd| */ void bhv_cannon_barrel_loop(void); +/* |description|Behavior loop function for cannon base unused|descriptionEnd| */ void bhv_cannon_base_unused_loop(void); +/* |description|Common behavior for when Mario's anchoring when grabbed|descriptionEnd| */ void common_anchor_mario_behavior(f32 sp28, f32 sp2C, s32 sp30); +/* |description|Behavior loop function for Chuckya|descriptionEnd| */ void bhv_chuckya_loop(void); +/* |description|Behavior loop function for Chuckya mario anchor|descriptionEnd| */ void bhv_chuckya_anchor_mario_loop(void); +/* |description|Behavior loop function for rotating platform|descriptionEnd| */ void bhv_rotating_platform_loop(void); +/* |description|Behavior loop function for Whomp's Fortress breakable wall|descriptionEnd| */ void bhv_wf_breakable_wall_loop(void); +/* |description|Behavior loop function for Whomp's Fortress kickable board|descriptionEnd| */ void bhv_kickable_board_loop(void); +/* |description|Behavior loop function for Whomp's Fortress tower door|descriptionEnd| */ void bhv_tower_door_loop(void); +/* |description|Behavior init function for Whomp's Fortress rotating wooden platform|descriptionEnd| */ void bhv_wf_rotating_wooden_platform_init(void); +/* |description|Behavior loop function for Whomp's Fortress rotating wooden platform|descriptionEnd| */ void bhv_wf_rotating_wooden_platform_loop(void); +/* |description|Behavior loop function for fading warp|descriptionEnd| */ void bhv_fading_warp_loop(void); +/* |description|Behavior loop function for warp|descriptionEnd| */ void bhv_warp_loop(void); +/* |description|Behavior loop function for white puff exploding|descriptionEnd| */ void bhv_white_puff_exploding_loop(void); +/* |description|Behavior init function for spawned star|descriptionEnd| */ void bhv_spawned_star_init(void); +/* |description|Behavior loop function for Spawned star|descriptionEnd| */ void bhv_spawned_star_loop(void); +/* |description|Behavior init function for Coin|descriptionEnd| */ void bhv_coin_init(void); +/* |description|Behavior loop function for Coin|descriptionEnd| */ void bhv_coin_loop(void); +/* |description|Behavior loop function for Coin inside Boo|descriptionEnd| */ void bhv_coin_inside_boo_loop(void); +/* |description|Behavior init function for Coin formation|descriptionEnd| */ void bhv_coin_formation_init(void); +/* |description|Behavior loop function for Coin formation spawn|descriptionEnd| */ void bhv_coin_formation_spawn_loop(void); +/* |description|Behavior loop function for Coin formation|descriptionEnd| */ void bhv_coin_formation_loop(void); +/* |description|Behavior loop function for despawning Coin|descriptionEnd| */ void bhv_temp_coin_loop(void); +/* |description|Behavior loop function for Coin sparkles|descriptionEnd| */ void bhv_coin_sparkles_loop(void); +/* |description|Behavior loop function for golden Coin sparkles|descriptionEnd| */ void bhv_golden_coin_sparkles_loop(void); +/* |description|Behavior loop function for tiny wall star particle|descriptionEnd| */ void bhv_wall_tiny_star_particle_loop(void); +/* |description|Behavior loop function for tiny pound star particle|descriptionEnd| */ void bhv_pound_tiny_star_particle_loop(void); +/* |description|Behavior init function for tiny pound star particle|descriptionEnd| */ void bhv_pound_tiny_star_particle_init(void); +/* |description|Behavior loop function for tiny punch triangle|descriptionEnd| */ void bhv_punch_tiny_triangle_loop(void); +/* |description|Behavior init function for tiny punch triangle|descriptionEnd| */ void bhv_punch_tiny_triangle_init(void); +/* |description|Behavior loop function for tumbling bridge platform|descriptionEnd| */ void bhv_tumbling_bridge_platform_loop(void); +/* |description|Behavior loop function for tumbling bridge|descriptionEnd| */ void bhv_tumbling_bridge_loop(void); +/* |description|Behavior init function for elevator|descriptionEnd| */ void bhv_elevator_init(void); +/* |description|Behavior loop function for elevator|descriptionEnd| */ void bhv_elevator_loop(void); +/* |description|Behavior loop function for water mist|descriptionEnd| */ void bhv_water_mist_loop(void); +/* |description|Behavior loop function for water mist spawn|descriptionEnd| */ void bhv_water_mist_spawn_loop(void); +/* |description|Behavior loop function for water mist 2|descriptionEnd| */ void bhv_water_mist_2_loop(void); +/* |description|Behavior init function for pound white puffs|descriptionEnd| */ void bhv_pound_white_puffs_init(void); +/* |description|Behavior init function for ground sand|descriptionEnd| */ void bhv_ground_sand_init(void); +/* |description|Behavior init function for ground snow|descriptionEnd| */ void bhv_ground_snow_init(void); +/* |description|Behavior loop function for wind|descriptionEnd| */ void bhv_wind_loop(void); +/* |description|Behavior loop function for unused particle spawn|descriptionEnd| */ void bhv_unused_particle_spawn_loop(void); +/* |description|Behavior loop function for Ukiki cage Star|descriptionEnd| */ void bhv_ukiki_cage_star_loop(void); +/* |description|Behavior loop function for Ukiki cage|descriptionEnd| */ void bhv_ukiki_cage_loop(void); +/* |description|Behavior loop function for Bowser in the Fire Sea sinking platform|descriptionEnd| */ void bhv_bitfs_sinking_platform_loop(void); +/* |description|Behavior loop function for Bowser in the Fire Sea sinking cage platform|descriptionEnd| */ void bhv_bitfs_sinking_cage_platform_loop(void); +/* |description|Behavior loop function for Dire Dire Docks moving pole|descriptionEnd| */ void bhv_ddd_moving_pole_loop(void); +/* |description|Behavior init function for Bowser in the Dark World, Lethal Lava Land, and Bowser in the Fire Sea platform normals|descriptionEnd| */ void bhv_platform_normals_init(void); +/* |description|Behavior loop function for Lethal Lava Land and Bowser in the Fire Sea tilting inverted pyramid|descriptionEnd| */ void bhv_tilting_inverted_pyramid_loop(void); +/* |description|Behavior loop function for squishable platform|descriptionEnd| */ void bhv_squishable_platform_loop(void); +/* |description|Behavior loop function for beta moving flames spawn|descriptionEnd| */ void bhv_beta_moving_flames_spawn_loop(void); +/* |description|Behavior loop function for beta moving flames|descriptionEnd| */ void bhv_beta_moving_flames_loop(void); +/* |description|Behavior loop function for Rainbow Ride rotating bridge platform|descriptionEnd| */ void bhv_rr_rotating_bridge_platform_loop(void); +/* |description|Behavior loop function for flamethrower|descriptionEnd| */ void bhv_flamethrower_loop(void); +/* |description|Behavior loop function for flamethrower flame|descriptionEnd| */ void bhv_flamethrower_flame_loop(void); +/* |description|Behavior loop function for bouncing fireball|descriptionEnd| */ void bhv_bouncing_fireball_loop(void); +/* |description|Behavior loop function for bouncing fireball flame|descriptionEnd| */ void bhv_bouncing_fireball_flame_loop(void); +/* |description|Behavior loop function for Bowser shock wave|descriptionEnd| */ void bhv_bowser_shock_wave_loop(void); +/* |description|Behavior loop function for flame Mario|descriptionEnd| */ void bhv_flame_mario_loop(void); +/* |description|Behavior loop function for black smoke Mario|descriptionEnd| */ void bhv_black_smoke_mario_loop(void); +/* |description|Behavior loop function for black smoke Bowser|descriptionEnd| */ void bhv_black_smoke_bowser_loop(void); +/* |description|Behavior loop function for black smoke upward|descriptionEnd| */ void bhv_black_smoke_upward_loop(void); +/* |description|Behavior loop function for beta fish splash spawner|descriptionEnd| */ void bhv_beta_fish_splash_spawner_loop(void); +/* |description|Behavior loop function for Spindrift|descriptionEnd| */ void bhv_spindrift_loop(void); +/* |description|Behavior init function for Whomp's Fortress tower platform group|descriptionEnd| */ void bhv_tower_platform_group_init(void); +/* |description|Behavior loop function for Whomp's Fortress tower platform group|descriptionEnd| */ void bhv_tower_platform_group_loop(void); +/* |description|Behavior loop function for Whomp's Fortress sliding tower platform|descriptionEnd| */ void bhv_wf_sliding_tower_platform_loop(void); +/* |description|Behavior loop function for Whomp's Fortress elevator tower platform|descriptionEnd| */ void bhv_wf_elevator_tower_platform_loop(void); +/* |description|Behavior loop function for Whomp's Fortress solid tower platform|descriptionEnd| */ void bhv_wf_solid_tower_platform_loop(void); +/* |description|Behavior init function for snow leaf particle spawn|descriptionEnd| */ void bhv_snow_leaf_particle_spawn_init(void); +/* |description|Behavior loop function for tree snow or leaf particle|descriptionEnd| */ void bhv_tree_snow_or_leaf_loop(void); +/* |description|Behavior loop function for Piranha Plant bubble|descriptionEnd| */ void bhv_piranha_plant_bubble_loop(void); +/* |description|Behavior loop function for Piranha Plant waking bubbles|descriptionEnd| */ void bhv_piranha_plant_waking_bubbles_loop(void); +/* |description|Behavior loop function for Purple Switch|descriptionEnd| */ void bhv_purple_switch_loop(void); +/* |description|Behavior loop function for Wet Dry World hidden breakable box|descriptionEnd| */ void bhv_hidden_object_loop(void); +/* |description|Behavior loop function for breakable box|descriptionEnd| */ void bhv_breakable_box_loop(void); +/* |description|Behavior loop function for pushable metal box|descriptionEnd| */ void bhv_pushable_loop(void); +/* |description|Behavior init function for marking what room an object is in|descriptionEnd| */ void bhv_init_room(void); +/* |description|Behavior loop function for small water wave|descriptionEnd| */ void bhv_small_water_wave_loop(void); +/* |description|Behavior init function for Yellow Coin|descriptionEnd| */ void bhv_yellow_coin_init(void); +/* |description|Behavior loop function for Yellow Coin|descriptionEnd| */ void bhv_yellow_coin_loop(void); +/* |description|Behavior loop function for Bowser in the Dark World squarish path moving|descriptionEnd| */ void bhv_squarish_path_moving_loop(void); +/* |description|Behavior init function for Bowser in the Dark World squarish path parent|descriptionEnd| */ void bhv_squarish_path_parent_init(void); +/* |description|Behavior loop function for Bowser in the Dark World Ssuarish path parent|descriptionEnd| */ void bhv_squarish_path_parent_loop(void); +/* |description|Behavior loop function for Heave ho|descriptionEnd| */ void bhv_heave_ho_loop(void); +/* |description|Behavior loop function for Heave ho throwing Mario|descriptionEnd| */ void bhv_heave_ho_throw_mario_loop(void); +/* |description|Behavior loop function for Cool, Cool Mountain touched Star spawn|descriptionEnd| */ void bhv_ccm_touched_star_spawn_loop(void); +/* |description|Behavior loop function for unused poundable platform|descriptionEnd| */ void bhv_unused_poundable_platform(void); +/* |description|Behavior loop function for beta trampoline top|descriptionEnd| */ void bhv_beta_trampoline_top_loop(void); +/* |description|Behavior loop function for beta trampoline spring|descriptionEnd| */ void bhv_beta_trampoline_spring_loop(void); +/* |description|Behavior loop function for jumping box|descriptionEnd| */ void bhv_jumping_box_loop(void); +/* |description|Behavior init function for Boo cage|descriptionEnd| */ void bhv_boo_cage_init(void); +/* |description|Behavior loop function for Boo cage|descriptionEnd| */ void bhv_boo_cage_loop(void); +/* |description|Behavior init function for Bowser key|descriptionEnd| */ void bhv_bowser_key_init(void); +/* |description|Behavior loop function for Bowser key|descriptionEnd| */ void bhv_bowser_key_loop(void); +/* |description|Behavior init function for Grand Star|descriptionEnd| */ void bhv_grand_star_init(void); +/* |description|Behavior loop function for Grand Star|descriptionEnd| */ void bhv_grand_star_loop(void); +/* |description|Behavior loop function for beta boo key|descriptionEnd| */ void bhv_beta_boo_key_loop(void); +/* |description|Behavior loop function for alpha boo key|descriptionEnd| */ void bhv_alpha_boo_key_loop(void); +/* |description|Behavior init function for Bullet Bill|descriptionEnd| */ void bhv_bullet_bill_init(void); +/* |description|Behavior loop function for Bullet Bill|descriptionEnd| */ void bhv_bullet_bill_loop(void); +/* |description|Behavior init function for White puff smoke|descriptionEnd| */ void bhv_white_puff_smoke_init(void); +/* |description|Behavior init function for Bowser tail anchor|descriptionEnd| */ void bhv_bowser_tail_anchor_init(void); +/* |description|Behavior loop function for Bowser tail anchor|descriptionEnd| */ void bhv_bowser_tail_anchor_loop(void); +/* |description|Behavior init function for Bowser|descriptionEnd| */ void bhv_bowser_init(void); +/* |description|Behavior loop function for Bowser|descriptionEnd| */ void bhv_bowser_loop(void); +/* |description|Behavior init function for Bowser body anchor|descriptionEnd| */ void bhv_bowser_body_anchor_init(void); +/* |description|Behavior loop function for Bowser body anchor|descriptionEnd| */ void bhv_bowser_body_anchor_loop(void); +/* |description|Behavior loop function for Bowser flame spawn|descriptionEnd| */ void bhv_bowser_flame_spawn_loop(void); +/* |description|Behavior init function for tilting Bowser in the Fire Sea arena platform|descriptionEnd| */ void bhv_tilting_bowser_lava_platform_init(void); +/* |description|Behavior loop function for falling Bowser in the Sky arena platform|descriptionEnd| */ void bhv_falling_bowser_platform_loop(void); +/* |description|Behavior init function for Blue Bowser flame|descriptionEnd| */ void bhv_blue_bowser_flame_init(void); +/* |description|Behavior loop function for Blue Bowser flame|descriptionEnd| */ void bhv_blue_bowser_flame_loop(void); +/* |description|Behavior init function for flame floating landing|descriptionEnd| */ void bhv_flame_floating_landing_init(void); +/* |description|Behavior loop function for flame floating landing|descriptionEnd| */ void bhv_flame_floating_landing_loop(void); +/* |description|Behavior loop function for blue flames group|descriptionEnd| */ void bhv_blue_flames_group_loop(void); +/* |description|Behavior init function for flame bouncing|descriptionEnd| */ void bhv_flame_bouncing_init(void); +/* |description|Behavior loop function for flame bouncing|descriptionEnd| */ void bhv_flame_bouncing_loop(void); +/* |description|Behavior init function for flame moving forward growing|descriptionEnd| */ void bhv_flame_moving_forward_growing_init(void); +/* |description|Behavior loop function for flame moving forward growing|descriptionEnd| */ void bhv_flame_moving_forward_growing_loop(void); +/* |description|Behavior init function for Bowser flame|descriptionEnd| */ void bhv_flame_bowser_init(void); +/* |description|Behavior loop function for Bowser flame|descriptionEnd| */ void bhv_flame_bowser_loop(void); +/* |description|Behavior init function for large flame burning out|descriptionEnd| */ void bhv_flame_large_burning_out_init(void); +/* |description|Behavior loop function for blue fish movement|descriptionEnd| */ void bhv_blue_fish_movement_loop(void); +/* |description|Behavior loop function for tank fish group|descriptionEnd| */ void bhv_tank_fish_group_loop(void); +/* |description|Behavior init function for checkerboard elevator group|descriptionEnd| */ void bhv_checkerboard_elevator_group_init(void); +/* |description|Behavior loop function for checkerboard elevator group|descriptionEnd| */ void bhv_checkerboard_elevator_group_loop(void); +/* |description|Behavior init function for checkerboard platform|descriptionEnd| */ void bhv_checkerboard_platform_init(void); +/* |description|Behavior loop function for checkerboard platform|descriptionEnd| */ void bhv_checkerboard_platform_loop(void); +/* |description|Behavior loop function for Bowser key unlock door|descriptionEnd| */ void bhv_bowser_key_unlock_door_loop(void); +/* |description|Behavior loop function for Bowser key course exit|descriptionEnd| */ void bhv_bowser_key_course_exit_loop(void); +/* |description|Behavior init function for invisible objects under the Castle bridge|descriptionEnd| */ void bhv_invisible_objects_under_bridge_init(void); +/* |description|Behavior loop function for Invisible objects under the Castle bridge|descriptionEnd| */ void bhv_invisible_objects_under_bridge_loop(void); +/* |description|Behavior init function for Castle Basement water level pillar|descriptionEnd| */ void bhv_water_level_pillar_init(void); +/* |description|Behavior loop function for Castle Basement water level pillar|descriptionEnd| */ void bhv_water_level_pillar_loop(void); +/* |description|Behavior loop function for Castle Basement Dire Dire Docks warp collision|descriptionEnd| */ void bhv_ddd_warp_loop(void); +/* |description|Behavior loop function for moat grills|descriptionEnd| */ void bhv_moat_grills_loop(void); +/* |description|Behavior loop function for rotating clock arm|descriptionEnd| */ void bhv_rotating_clock_arm_loop(void); +/* |description|Behavior init function for Ukiki|descriptionEnd| */ void bhv_ukiki_init(void); +/* |description|Behavior loop function for Ukiki|descriptionEnd| */ void bhv_ukiki_loop(void); +/* |description|Behavior loop function for Lethal Lava Land sinking rock block|descriptionEnd| */ void bhv_lll_sinking_rock_block_loop(void); +/* |description|Behavior loop function for Lethal Lava Land moving octagonal mesh platform|descriptionEnd| */ void bhv_lll_moving_octagonal_mesh_platform_loop(void); +/* |description|Behavior loop function for Lethal Lava Land rotating block fire bars|descriptionEnd| */ void bhv_lll_rotating_block_fire_bars_loop(void); +/* |description|Behavior loop function for Lethal Lava Land rotating hex flame|descriptionEnd| */ void bhv_lll_rotating_hex_flame_loop(void); +/* |description|Behavior loop function for Lethal Lava Land wood piece|descriptionEnd| */ void bhv_lll_wood_piece_loop(void); +/* |description|Behavior loop function for Lethal Lava Land floating wood bridge|descriptionEnd| */ void bhv_lll_floating_wood_bridge_loop(void); +/* |description|Behavior loop function for Volcano flames|descriptionEnd| */ void bhv_volcano_flames_loop(void); +/* |description|Behavior loop function for Lethal Lava Land rotating hexagonal ring|descriptionEnd| */ void bhv_lll_rotating_hexagonal_ring_loop(void); +/* |description|Behavior loop function for Lethal Lava Land sinking rectangular platform|descriptionEnd| */ void bhv_lll_sinking_rectangular_platform_loop(void); +/* |description|Behavior loop function for Lethal Lava Land sinking square platforms|descriptionEnd| */ void bhv_lll_sinking_square_platforms_loop(void); +/* |description|Behavior loop function for Koopa Shell|descriptionEnd| */ void bhv_koopa_shell_loop(void); +/* |description|Behavior loop function for Koopa Shell flame|descriptionEnd| */ void bhv_koopa_shell_flame_loop(void); +/* |description|Behavior loop function for Tox Box|descriptionEnd| */ void bhv_tox_box_loop(void); +/* |description| +Checks if Mario is moving fast enough to make Piranha Plant bite. +This one is a mouthful +|descriptionEnd| */ s32 mario_moving_fast_enough_to_make_piranha_plant_bite(void); +/* |description|Behavior loop function for Piranha Plant|descriptionEnd| */ void bhv_piranha_plant_loop(void); +/* |description|Behavior loop function for Lethal Lava Land bowser puzzle piece|descriptionEnd| */ void bhv_lll_bowser_puzzle_piece_loop(void); +/* |description|Behavior loop function for Lethal Lava Land bowser puzzle|descriptionEnd| */ void bhv_lll_bowser_puzzle_loop(void); +/* |description|Behavior loop function for Tuxie's mother|descriptionEnd| */ void bhv_tuxies_mother_loop(void); +/* |description|Behavior loop function for small penguin|descriptionEnd| */ void bhv_small_penguin_loop(void); +/* |description|Behavior loop function for fish spawner|descriptionEnd| */ void bhv_fish_spawner_loop(void); +/* |description|Behavior loop function for fish|descriptionEnd| */ void bhv_fish_loop(void); +/* |description|Behavior loop function for Wet Dry World express elevator|descriptionEnd| */ void bhv_wdw_express_elevator_loop(void); +/* |description|Behavior loop function for Bub spawner|descriptionEnd| */ void bhv_bub_spawner_loop(void); +/* |description|Behavior loop function for Bub|descriptionEnd| */ void bhv_bub_loop(void); +/* |description|Behavior init function for Exclamation Box|descriptionEnd| */ void bhv_exclamation_box_init(void); +/* |description|Behavior loop function for Exclamation Box|descriptionEnd| */ void bhv_exclamation_box_loop(void); +/* |description|Behavior loop function for rotating exclamation mark|descriptionEnd| */ void bhv_rotating_exclamation_box_loop(void); +/* |description|Behavior init function for sound spawner|descriptionEnd| */ void bhv_sound_spawner_init(void); +/* |description|Behavior loop function for Bowser's submarine|descriptionEnd| */ void bhv_bowsers_sub_loop(void); +/* |description|Behavior loop function for Sushi Shark|descriptionEnd| */ void bhv_sushi_shark_loop(void); +/* |description|Behavior loop function for Sushi Shark collision|descriptionEnd| */ void bhv_sushi_shark_collision_loop(void); +/* |description|Behavior loop function for Jolly Roger Bay sliding box|descriptionEnd| */ void bhv_jrb_sliding_box_loop(void); +/* |description|Behavior loop function for Jolly Roger Bay ship part 3|descriptionEnd| */ void bhv_ship_part_3_loop(void); +/* |description|Behavior loop function for Jolly Roger Bay sunken ship part|descriptionEnd| */ void bhv_sunken_ship_part_loop(void); +/* |description|Behavior loop function for white puff 1|descriptionEnd| */ void bhv_white_puff_1_loop(void); +/* |description|Behavior loop function for white puff 2|descriptionEnd| */ void bhv_white_puff_2_loop(void); +/* |description|Behavior loop function for Blue Coin number|descriptionEnd| */ void bhv_blue_coin_number_loop(void); +/* |description|Behavior init function for Blue Coin switch|descriptionEnd| */ void bhv_blue_coin_switch_init(void); +/* |description|Behavior loop function for Blue Coin switch|descriptionEnd| */ void bhv_blue_coin_switch_loop(void); +/* |description|Behavior loop function for hidden Blue Coin|descriptionEnd| */ void bhv_hidden_blue_coin_loop(void); +/* |description|Behavior loop function for openable cage door|descriptionEnd| */ void bhv_openable_cage_door_loop(void); +/* |description|Behavior loop function for openable grill|descriptionEnd| */ void bhv_openable_grill_loop(void); +/* |description|Behavior loop function for Wet Dry World water level diamond|descriptionEnd| */ void bhv_water_level_diamond_loop(void); +/* |description|Behavior init function for changing water level, called when Wet Dry World is loaded|descriptionEnd| */ void bhv_init_changing_water_level_loop(void); +/* |description|Behavior loop function for Tweester sand particle|descriptionEnd| */ void bhv_tweester_sand_particle_loop(void); +/* |description|Behavior loop function for Tweester|descriptionEnd| */ void bhv_tweester_loop(void); +/* |description|Behavior loop function for Merry Go Round Boo manager|descriptionEnd| */ void bhv_merry_go_round_boo_manager_loop(void); +/* |description|Behavior loop function for animated texture|descriptionEnd| */ void bhv_animated_texture_loop(void); +/* |description|Behavior loop function for the Boo inside the Castle|descriptionEnd| */ void bhv_boo_in_castle_loop(void); +/* |description|Behavior init function for Boo with cage|descriptionEnd| */ void bhv_boo_with_cage_init(void); +/* |description|Behavior loop function for Boo with cage|descriptionEnd| */ void bhv_boo_with_cage_loop(void); +/* |description|Behavior init function for Boo|descriptionEnd| */ void bhv_boo_init(void); +/* |description|Behavior loop function for Big Boo|descriptionEnd| */ void bhv_big_boo_loop(void); +/* |description|Behavior init function for Courtyard Boo triplet|descriptionEnd| */ void bhv_courtyard_boo_triplet_init(void); +/* |description|Sets the secondary camera focus|descriptionEnd| */ void obj_set_secondary_camera_focus(void); +/* |description|Behavior loop function for Boo|descriptionEnd| */ void bhv_boo_loop(void); +/* |description|Behavior loop function for Boo boss spawned bridge|descriptionEnd| */ void bhv_boo_boss_spawned_bridge_loop(void); +/* |description|Behavior loop function for Big Boo's Haunt tilting trap platform|descriptionEnd| */ void bhv_bbh_tilting_trap_platform_loop(void); +/* |description|Behavior loop function for Big Boo's Haunt haunted bookshelf|descriptionEnd| */ void bhv_haunted_bookshelf_loop(void); +/* |description|Behavior loop function for Big Boo's Haunt Merry Go Round|descriptionEnd| */ void bhv_merry_go_round_loop(void); +/* |description|Behavior loop function for playing a jingle when in a 200 unit radius|descriptionEnd| */ void bhv_play_music_track_when_touched_loop(void); +/* |description|Behavior loop function for beta Bowser anchor|descriptionEnd| */ void bhv_beta_bowser_anchor_loop(void); +/* |description|Behavior loop function for static checkered platform|descriptionEnd| */ void bhv_static_checkered_platform_loop(void); +/* |description|Behavior init function for Bowser in the Dark World floor trap manager|descriptionEnd| */ void bhv_castle_floor_trap_init(void); +/* |description|Behavior loop function for Bowser in the Dark World floor trap manager|descriptionEnd| */ void bhv_castle_floor_trap_loop(void); +/* |description|Behavior loop function for Bowser in the Dark World floor trap|descriptionEnd| */ void bhv_floor_trap_in_castle_loop(void); +/* |description|Behavior loop function for sparkle spawner|descriptionEnd| */ void bhv_sparkle_spawn_loop(void); +/* |description|Behavior loop function for Scuttlebug|descriptionEnd| */ void bhv_scuttlebug_loop(void); +/* |description|Behavior loop function for Scuttlebug spawner|descriptionEnd| */ void bhv_scuttlebug_spawn_loop(void); +/* |description|Behavior loop function for Whomp|descriptionEnd| */ void bhv_whomp_loop(void); +/* |description|Behavior init function for spawning water splash droplets|descriptionEnd| */ void bhv_water_splash_spawn_droplets(void); +/* |description|Behavior loop function for water droplet|descriptionEnd| */ void bhv_water_droplet_loop(void); +/* |description|Behavior init function for water droplet splash|descriptionEnd| */ void bhv_water_droplet_splash_init(void); +/* |description|Behavior init function for bubble splash|descriptionEnd| */ void bhv_bubble_splash_init(void); +/* |description|Behavior loop function for idle water wave|descriptionEnd| */ void bhv_idle_water_wave_loop(void); +/* |description|Behavior init function for shallow water splash|descriptionEnd| */ void bhv_shallow_water_splash_init(void); +/* |description|Behavior loop function for shrinking water trail|descriptionEnd| */ void bhv_wave_trail_shrink(void); +/* |description|Behavior loop function for strong wind particle|descriptionEnd| */ void bhv_strong_wind_particle_loop(void); +/* |description|Behavior loop function for Snowman's Land snowman wind|descriptionEnd| */ void bhv_sl_snowman_wind_loop(void); +/* |description|Behavior loop function for Snowman's Land walking penguin|descriptionEnd| */ void bhv_sl_walking_penguin_loop(void); +/* |description|Behavior init function for File Select button|descriptionEnd| */ void bhv_menu_button_init(void); +/* |description|Behavior loop function for File Select button|descriptionEnd| */ void bhv_menu_button_loop(void); +/* |description|Behavior init function for File Select button manager|descriptionEnd| */ void bhv_menu_button_manager_init(void); +/* |description|Behavior loop function for File Select button manager|descriptionEnd| */ void bhv_menu_button_manager_loop(void); +/* |description|Behavior loop function for Act Selector star type|descriptionEnd| */ void bhv_act_selector_star_type_loop(void); +/* |description|Behavior init function for Act Selector|descriptionEnd| */ void bhv_act_selector_init(void); +/* |description|Behavior loop function for Act Selector|descriptionEnd| */ void bhv_act_selector_loop(void); +/* |description|Behavior init function for moving Yellow Coin|descriptionEnd| */ void bhv_moving_yellow_coin_init(void); +/* |description|Behavior loop function for moving Yellow Coin|descriptionEnd| */ void bhv_moving_yellow_coin_loop(void); +/* |description|Behavior init function for moving Blue Coin|descriptionEnd| */ void bhv_moving_blue_coin_init(void); +/* |description|Behavior loop function for moving Blue Coin|descriptionEnd| */ void bhv_moving_blue_coin_loop(void); +/* |description|Behavior init function for Blue Coin sliding jumping|descriptionEnd| */ void bhv_blue_coin_sliding_jumping_init(void); +/* |description|Behavior loop function for Blue Coin sliding|descriptionEnd| */ void bhv_blue_coin_sliding_loop(void); +/* |description|Behavior loop function for Blue Coin jumping|descriptionEnd| */ void bhv_blue_coin_jumping_loop(void); +/* |description|Behavior init function for seaweed|descriptionEnd| */ void bhv_seaweed_init(void); +/* |description|Behavior init function for seaweed bundle|descriptionEnd| */ void bhv_seaweed_bundle_init(void); +/* |description|Behavior init function for Bob-omb|descriptionEnd| */ void bhv_bobomb_init(void); +/* |description|Behavior loop function for Bob-omb|descriptionEnd| */ void bhv_bobomb_loop(void); +/* |description|Behavior init function for Bob-omb fuse smoke|descriptionEnd| */ void bhv_bobomb_fuse_smoke_init(void); +/* |description|Behavior init function for Bob-omb buddy|descriptionEnd| */ void bhv_bobomb_buddy_init(void); +/* |description|Behavior loop function for Bob-omb buddy|descriptionEnd| */ void bhv_bobomb_buddy_loop(void); +/* |description|Behavior init function for cannon closed|descriptionEnd| */ void bhv_cannon_closed_init(void); +/* |description|Behavior loop function for cannon closed|descriptionEnd| */ void bhv_cannon_closed_loop(void); +/* |description|Behavior init function for whirlpool|descriptionEnd| */ void bhv_whirlpool_init(void); +/* |description|Behavior loop function for whirlpool|descriptionEnd| */ void bhv_whirlpool_loop(void); +/* |description|Behavior loop function for jet stream|descriptionEnd| */ void bhv_jet_stream_loop(void); +/* |description|Behavior init function for Homing Amp|descriptionEnd| */ void bhv_homing_amp_init(void); +/* |description|Behavior loop function for Homing Amp|descriptionEnd| */ void bhv_homing_amp_loop(void); +/* |description|Behavior init function for Circling Amp|descriptionEnd| */ void bhv_circling_amp_init(void); +/* |description|Behavior loop function for Circling Amp|descriptionEnd| */ void bhv_circling_amp_loop(void); +/* |description|Behavior init function for Butterfly|descriptionEnd| */ void bhv_butterfly_init(void); +/* |description|Behavior loop function for Butterfly|descriptionEnd| */ void bhv_butterfly_loop(void); +/* |description|Behavior init function for Hoot|descriptionEnd| */ void bhv_hoot_init(void); +/* |description|Behavior loop function for Hoot|descriptionEnd| */ void bhv_hoot_loop(void); +/* |description|Behavior init function for beta holdable object|descriptionEnd| */ void bhv_beta_holdable_object_init(void); +/* |description|Behavior loop function for beta holdable object|descriptionEnd| */ void bhv_beta_holdable_object_loop(void); +/* |description|Behavior init function for bubble object|descriptionEnd| */ void bhv_object_bubble_init(void); +/* |description|Behavior loop function for bubble object|descriptionEnd| */ void bhv_object_bubble_loop(void); +/* |description|Behavior init function for water wave object|descriptionEnd| */ void bhv_object_water_wave_init(void); +/* |description|Behavior loop function for water wave object|descriptionEnd| */ void bhv_object_water_wave_loop(void); +/* |description|Behavior init function for explosion|descriptionEnd| */ void bhv_explosion_init(void); +/* |description|Behavior loop function for explosion|descriptionEnd| */ void bhv_explosion_loop(void); +/* |description|Behavior init function for Bob-omb and Bully death smoke|descriptionEnd| */ void bhv_bobomb_bully_death_smoke_init(void); +/* |description|Behavior init function for Bob-omb explosion bubble|descriptionEnd| */ void bhv_bobomb_explosion_bubble_init(void); +/* |description|Behavior loop function for Bob-omb explosion bubble|descriptionEnd| */ void bhv_bobomb_explosion_bubble_loop(void); +/* |description|Behavior loop function for respawner|descriptionEnd| */ void bhv_respawner_loop(void); +/* |description|Behavior init function for Small Bully|descriptionEnd| */ void bhv_small_bully_init(void); +/* |description|Behavior loop function for Bully|descriptionEnd| */ void bhv_bully_loop(void); +/* |description|Behavior init function for Big Bully|descriptionEnd| */ void bhv_big_bully_init(void); +/* |description|Behavior init function for Big Bully with minions|descriptionEnd| */ void bhv_big_bully_with_minions_init(void); +/* |description|Behavior loop function for Big Bully with minions|descriptionEnd| */ void bhv_big_bully_with_minions_loop(void); +/* |description|Behavior loop function for jet stream ring spawner|descriptionEnd| */ void bhv_jet_stream_ring_spawner_loop(void); +/* |description|Behavior init function for jet stream water ring|descriptionEnd| */ void bhv_jet_stream_water_ring_init(void); +/* |description|Behavior loop function for jet stream water ring|descriptionEnd| */ void bhv_jet_stream_water_ring_loop(void); +/* |description|Behavior init function for Manta Ray water ring|descriptionEnd| */ void bhv_manta_ray_water_ring_init(void); +/* |description|Behavior loop function for Manta Ray water ring|descriptionEnd| */ void bhv_manta_ray_water_ring_loop(void); +/* |description|Behavior loop function for Bowser bomb|descriptionEnd| */ void bhv_bowser_bomb_loop(void); +/* |description|Behavior loop function for Bowser bomb explosion|descriptionEnd| */ void bhv_bowser_bomb_explosion_loop(void); +/* |description|Behavior loop function for Bowser bomb smoke|descriptionEnd| */ void bhv_bowser_bomb_smoke_loop(void); +/* |description|Behavior init function for Celebration Star|descriptionEnd| */ void bhv_celebration_star_init(void); +/* |description|Behavior loop function for Celebration Star|descriptionEnd| */ void bhv_celebration_star_loop(void); +/* |description|Behavior loop function for Celebration Star sparkle|descriptionEnd| */ void bhv_celebration_star_sparkle_loop(void); +/* |description|Behavior loop function for Star and key collection puff spawner|descriptionEnd| */ void bhv_star_key_collection_puff_spawner_loop(void); +/* |description|Behavior init function for Lethal Lava Land drawbridge spawner|descriptionEnd| */ void bhv_lll_drawbridge_spawner_init(void); +/* |description|Behavior loop function for Lethal Lava Land drawbridge spawner|descriptionEnd| */ void bhv_lll_drawbridge_spawner_loop(void); +/* |description|Behavior loop function for Lethal Lava Land drawbridge|descriptionEnd| */ void bhv_lll_drawbridge_loop(void); +/* |description|Behavior init function for Small Bomp (Whomp's Fortress moving wall with eyes)|descriptionEnd| */ void bhv_small_bomp_init(void); +/* |description|Behavior loop function for Small Bomp (Whomp's Fortress moving wall with eyes)|descriptionEnd| */ void bhv_small_bomp_loop(void); +/* |description|Behavior init function for Large Bomp (Whomp's Fortress moving wall with eyes)|descriptionEnd| */ void bhv_large_bomp_init(void); +/* |description|Behavior loop function for Large Bomp (Whomp's Fortress moving wall with eyes)|descriptionEnd| */ void bhv_large_bomp_loop(void); +/* |description|Behavior init function for Whomp's Fortress sliding platform|descriptionEnd| */ void bhv_wf_sliding_platform_init(void); +/* |description|Behavior loop function for Whomp's Fortress sliding platform|descriptionEnd| */ void bhv_wf_sliding_platform_loop(void); +/* |description|Behavior init function for Moneybag|descriptionEnd| */ void bhv_moneybag_init(void); +/* |description|Behavior loop function for Moneybag|descriptionEnd| */ void bhv_moneybag_loop(void); +/* |description|Behavior loop function for Moneybag hidden|descriptionEnd| */ void bhv_moneybag_hidden_loop(void); +/* |description|Behavior init function for Bob-omb Battlefield pit bowling ball|descriptionEnd| */ void bhv_bob_pit_bowling_ball_init(void); +/* |description|Behavior loop function for Bob-omb Battlefield pit bowling ball|descriptionEnd| */ void bhv_bob_pit_bowling_ball_loop(void); +/* |description|Behavior init function for free bowling ball|descriptionEnd| */ void bhv_free_bowling_ball_init(void); +/* |description|Behavior loop function for free bowling ball|descriptionEnd| */ void bhv_free_bowling_ball_loop(void); +/* |description|Behavior init function for bowling ball|descriptionEnd| */ void bhv_bowling_ball_init(void); +/* |description|Behavior loop function for bowling ball|descriptionEnd| */ void bhv_bowling_ball_loop(void); +/* |description|Behavior init function for generic bowling ball spawner|descriptionEnd| */ void bhv_generic_bowling_ball_spawner_init(void); +/* |description|Behavior loop function for generic bowling ball spawner|descriptionEnd| */ void bhv_generic_bowling_ball_spawner_loop(void); +/* |description|Behavior loop function for Tiny Huge Island bowling ball spawner|descriptionEnd| */ void bhv_thi_bowling_ball_spawner_loop(void); +/* |description|Behavior init function for Rainbow Ride cruiser wing|descriptionEnd| */ void bhv_rr_cruiser_wing_init(void); +/* |description|Behavior loop function for Rainbow Ride cruiser wing|descriptionEnd| */ void bhv_rr_cruiser_wing_loop(void); +/* |description|Behavior init function for Spindel|descriptionEnd| */ void bhv_spindel_init(void); +/* |description|Behavior loop function for Spindel|descriptionEnd| */ void bhv_spindel_loop(void); +/* |description|Behavior init function for Ssl moving pyramid wall|descriptionEnd| */ void bhv_ssl_moving_pyramid_wall_init(void); +/* |description|Behavior loop function for Ssl moving pyramid wall|descriptionEnd| */ void bhv_ssl_moving_pyramid_wall_loop(void); +/* |description|Behavior init function for Pyramid elevator|descriptionEnd| */ void bhv_pyramid_elevator_init(void); +/* |description|Behavior loop function for Pyramid elevator|descriptionEnd| */ void bhv_pyramid_elevator_loop(void); +/* |description|Behavior loop function for Pyramid elevator trajectory marker ball|descriptionEnd| */ void bhv_pyramid_elevator_trajectory_marker_ball_loop(void); +/* |description|Behavior init function for Pyramid top|descriptionEnd| */ void bhv_pyramid_top_init(void); +/* |description|Behavior loop function for Pyramid top|descriptionEnd| */ void bhv_pyramid_top_loop(void); +/* |description|Behavior init function for Pyramid top fragment|descriptionEnd| */ void bhv_pyramid_top_fragment_init(void); +/* |description|Behavior loop function for Pyramid top fragment|descriptionEnd| */ void bhv_pyramid_top_fragment_loop(void); +/* |description|Behavior loop function for Pyramid pillar touch detector|descriptionEnd| */ void bhv_pyramid_pillar_touch_detector_loop(void); +/* |description|Behavior loop function for waterfall sound|descriptionEnd| */ void bhv_waterfall_sound_loop(void); +/* |description|Behavior loop function for volcano sound|descriptionEnd| */ void bhv_volcano_sound_loop(void); +/* |description|Behavior init function for castle flag|descriptionEnd| */ void bhv_castle_flag_init(void); +/* |description|Behavior loop function for birds sound|descriptionEnd| */ void bhv_birds_sound_loop(void); +/* |description|Behavior init function for ambient sounds|descriptionEnd| */ void bhv_ambient_sounds_init(void); +/* |description|Behavior loop function for sand sound|descriptionEnd| */ void bhv_sand_sound_loop(void); +/* |description|Behavior init function for Castle cannon grate|descriptionEnd| */ void bhv_castle_cannon_grate_init(void); +/* |description|Behavior init function for Snowman's bottom|descriptionEnd| */ void bhv_snowmans_bottom_init(void); +/* |description|Behavior loop function for Snowman's bottom|descriptionEnd| */ void bhv_snowmans_bottom_loop(void); +/* |description|Behavior init function for Snowman's head|descriptionEnd| */ void bhv_snowmans_head_init(void); +/* |description|Behavior loop function for Snowman's head|descriptionEnd| */ void bhv_snowmans_head_loop(void); +/* |description|Behavior loop function for Snowman's body checkpoint|descriptionEnd| */ void bhv_snowmans_body_checkpoint_loop(void); +/* |description|Behavior init function for big boulder|descriptionEnd| */ void bhv_big_boulder_init(void); +/* |description|Behavior loop function for big boulder|descriptionEnd| */ void bhv_big_boulder_loop(void); +/* |description|Behavior loop function for big boulder generator|descriptionEnd| */ void bhv_big_boulder_generator_loop(void); +/* |description|Behavior init function for Wing Cap|descriptionEnd| */ void bhv_wing_cap_init(void); +/* |description|Behavior loop function for Wing and Vanish caps|descriptionEnd| */ void bhv_wing_vanish_cap_loop(void); +/* |description|Behavior init function for Metal Cap|descriptionEnd| */ void bhv_metal_cap_init(void); +/* |description|Behavior loop function for Metal Cap|descriptionEnd| */ void bhv_metal_cap_loop(void); +/* |description|Behavior init function for Normal Cap|descriptionEnd| */ void bhv_normal_cap_init(void); +/* |description|Behavior loop function for Normal Cap|descriptionEnd| */ void bhv_normal_cap_loop(void); +/* |description|Behavior init function for Vanish Cap|descriptionEnd| */ void bhv_vanish_cap_init(void); +/* |description|Behavior loop function for Star number|descriptionEnd| */ void bhv_star_number_loop(void); +/* |description|Spawns a star number|descriptionEnd| */ void spawn_star_number(void); +/* |description|Behavior init function for collectable Star|descriptionEnd| */ void bhv_collect_star_init(void); +/* |description|Behavior loop function for collectable Star|descriptionEnd| */ void bhv_collect_star_loop(void); +/* |description|Behavior init function for Star spawn|descriptionEnd| */ void bhv_star_spawn_init(void); +/* |description|Behavior loop function for Star spawn|descriptionEnd| */ void bhv_star_spawn_loop(void); +/* |description|Behavior init function for Hidden Red Coin Star|descriptionEnd| */ void bhv_hidden_red_coin_star_init(void); +/* |description|Behavior loop function for Hidden Red Coin Star|descriptionEnd| */ void bhv_hidden_red_coin_star_loop(void); +/* |description|Behavior init function for Red Coin|descriptionEnd| */ void bhv_red_coin_init(void); +/* |description|Behavior loop function for Red Coin|descriptionEnd| */ void bhv_red_coin_loop(void); +/* |description|Behavior loop function for Bowser course Red Coin Star|descriptionEnd| */ void bhv_bowser_course_red_coin_star_loop(void); +/* |description|Behavior init function for Secret Star|descriptionEnd| */ void bhv_hidden_star_init(void); +/* |description|Behavior loop function for Secret Star|descriptionEnd| */ void bhv_hidden_star_loop(void); +/* |description|Behavior loop function for Secrets|descriptionEnd| */ void bhv_hidden_star_trigger_loop(void); +/* |description|Behavior init function for Tall, Tall Mountain rolling log|descriptionEnd| */ void bhv_ttm_rolling_log_init(void); +/* |description|Behavior loop function for rolling log|descriptionEnd| */ void bhv_rolling_log_loop(void); +/* |description|Behavior init function for Lethal Lava Land rolling log|descriptionEnd| */ void bhv_lll_rolling_log_init(void); +/* |description|Behavior init function for 1-Up trigger|descriptionEnd| */ void bhv_1up_trigger_init(void); +/* |description|Behavior init function for common 1-Up|descriptionEnd| */ void bhv_1up_common_init(void); +/* |description|Behavior loop function for walking 1-Up|descriptionEnd| */ void bhv_1up_walking_loop(void); +/* |description|Behavior loop function for running away 1-Up|descriptionEnd| */ void bhv_1up_running_away_loop(void); +/* |description|Behavior loop function for sliding 1-Up|descriptionEnd| */ void bhv_1up_sliding_loop(void); +/* |description|Behavior init function for 1-Up|descriptionEnd| */ void bhv_1up_init(void); +/* |description|Behavior loop function for 1-Up|descriptionEnd| */ void bhv_1up_loop(void); +/* |description|Behavior loop function for jump on approach 1-Up|descriptionEnd| */ void bhv_1up_jump_on_approach_loop(void); +/* |description|Behavior loop function for hidden 1-Up|descriptionEnd| */ void bhv_1up_hidden_loop(void); +/* |description|Behavior loop function for hidden 1-Up trigger|descriptionEnd| */ void bhv_1up_hidden_trigger_loop(void); +/* |description|Behavior loop function for hidden 1-Up in pole (Green Demon)|descriptionEnd| */ void bhv_1up_hidden_in_pole_loop(void); +/* |description|Behavior loop function for 1-Up hidden in pole trigger|descriptionEnd| */ void bhv_1up_hidden_in_pole_trigger_loop(void); +/* |description|Behavior loop function for 1-Up hidden in pole spawner|descriptionEnd| */ void bhv_1up_hidden_in_pole_spawner_loop(void); +/* |description|Behavior init function for controllable platform|descriptionEnd| */ void bhv_controllable_platform_init(void); +/* |description|Behavior loop function for controllable platform|descriptionEnd| */ void bhv_controllable_platform_loop(void); +/* |description|Behavior loop function for controllable sub platform|descriptionEnd| */ void bhv_controllable_platform_sub_loop(void); +/* |description|Behavior init function for small breakable box|descriptionEnd| */ void bhv_breakable_box_small_init(void); +/* |description|Behavior loop function for small breakable box|descriptionEnd| */ void bhv_breakable_box_small_loop(void); +/* |description|Behavior loop function for sliding snow mound|descriptionEnd| */ void bhv_sliding_snow_mound_loop(void); +/* |description|Behavior loop function for snow mound spawn|descriptionEnd| */ void bhv_snow_mound_spawn_loop(void); +/* |description|Behavior loop function for floating platform|descriptionEnd| */ void bhv_floating_platform_loop(void); +/* |description|Behavior loop function for Wet Dry World arrow lift|descriptionEnd| */ void bhv_arrow_lift_loop(void); +/* |description|Behavior init function for orange number|descriptionEnd| */ void bhv_orange_number_init(void); +/* |description|Behavior loop function for orange number|descriptionEnd| */ void bhv_orange_number_loop(void); +/* |description|Behavior init function for Manta Ray|descriptionEnd| */ void bhv_manta_ray_init(void); +/* |description|Behavior loop function for Manta Ray|descriptionEnd| */ void bhv_manta_ray_loop(void); +/* |description|Behavior init function for Jolly Roger Bay falling pillar|descriptionEnd| */ void bhv_falling_pillar_init(void); +/* |description|Behavior loop function for Jolly Roger Bay falling pillar|descriptionEnd| */ void bhv_falling_pillar_loop(void); +/* |description|Behavior loop function for Jolly Roger Bay falling pillar hitbox|descriptionEnd| */ void bhv_falling_pillar_hitbox_loop(void); +/* |description|Behavior loop function for Jolly Roger Bay floating box|descriptionEnd| */ void bhv_jrb_floating_box_loop(void); +/* |description|Behavior init function for decorative pendulum|descriptionEnd| */ void bhv_decorative_pendulum_init(void); +/* |description|Behavior loop function for decorative pendulum|descriptionEnd| */ void bhv_decorative_pendulum_loop(void); +/* |description|Behavior init function for treasure chest ship|descriptionEnd| */ void bhv_treasure_chest_ship_init(void); +/* |description|Behavior loop function for treasure chest ship|descriptionEnd| */ void bhv_treasure_chest_ship_loop(void); +/* |description|Behavior init function for treasure chest jrb|descriptionEnd| */ void bhv_treasure_chest_jrb_init(void); +/* |description|Behavior loop function for treasure chest jrb|descriptionEnd| */ void bhv_treasure_chest_jrb_loop(void); +/* |description|Behavior init function for treasure chest|descriptionEnd| */ void bhv_treasure_chest_init(void); +/* |description|Behavior loop function for treasure chest|descriptionEnd| */ void bhv_treasure_chest_loop(void); +/* |description|Behavior init function for treasure chest bottom|descriptionEnd| */ void bhv_treasure_chest_bottom_init(void); +/* |description|Behavior loop function for treasure chest bottom|descriptionEnd| */ void bhv_treasure_chest_bottom_loop(void); +/* |description|Behavior loop function for treasure chest top|descriptionEnd| */ void bhv_treasure_chest_top_loop(void); +/* |description|Behavior init function for Mips|descriptionEnd| */ void bhv_mips_init(void); +/* |description|Behavior loop function for Mips|descriptionEnd| */ void bhv_mips_loop(void); +/* |description|Behavior init function for Yoshi|descriptionEnd| */ void bhv_yoshi_init(void); +/* |description|Behavior init function for Koopa|descriptionEnd| */ void bhv_koopa_init(void); +/* |description|Behavior loop function for Koopa|descriptionEnd| */ void bhv_koopa_update(void); +/* |description|Behavior loop function for Koopa race endpoint|descriptionEnd| */ void bhv_koopa_race_endpoint_update(void); +/* |description|Behavior loop function for Pokey|descriptionEnd| */ void bhv_pokey_update(void); +/* |description|Behavior loop function for Pokey body part|descriptionEnd| */ void bhv_pokey_body_part_update(void); +/* |description|Behavior loop function for Swoop|descriptionEnd| */ void bhv_swoop_update(void); +/* |description|Behavior loop function for Fly Guy|descriptionEnd| */ void bhv_fly_guy_update(void); +/* |description|Behavior init function for Goomba|descriptionEnd| */ void bhv_goomba_init(void); +/* |description|Behavior loop function for Goomba|descriptionEnd| */ void bhv_goomba_update(void); +/* |description|Behavior loop function for Goomba triplet spawner|descriptionEnd| */ void bhv_goomba_triplet_spawner_update(void); +/* |description|Behavior loop function for Chain Chomp|descriptionEnd| */ void bhv_chain_chomp_update(void); +/* |description|Behavior loop function for Chain Chomp chain part|descriptionEnd| */ void bhv_chain_chomp_chain_part_update(void); +/* |description|Behavior loop function for ground poundable wooden post|descriptionEnd| */ void bhv_wooden_post_update(void); +/* |description|Behavior init function for Chain Chomp gate|descriptionEnd| */ void bhv_chain_chomp_gate_init(void); +/* |description|Behavior loop function for Chain Chomp gate|descriptionEnd| */ void bhv_chain_chomp_gate_update(void); +/* |description|Behavior loop function for Wiggler|descriptionEnd| */ void bhv_wiggler_update(void); +/* |description|Behavior loop function for Wiggler body part|descriptionEnd| */ void bhv_wiggler_body_part_update(void); +/* |description|Behavior loop function for Enemy Lakitu|descriptionEnd| */ void bhv_enemy_lakitu_update(void); +/* |description|Behavior init function for Camera Lakitu|descriptionEnd| */ void bhv_camera_lakitu_init(void); +/* |description|Behavior loop function for Camera Lakitu|descriptionEnd| */ void bhv_camera_lakitu_update(void); +/* |description|Behavior loop function for cloud|descriptionEnd| */ void bhv_cloud_update(void); +/* |description|Behavior loop function for cloud part|descriptionEnd| */ void bhv_cloud_part_update(void); +/* |description|Behavior loop function for Spiny|descriptionEnd| */ void bhv_spiny_update(void); +/* |description|Behavior init function for Monty Mole|descriptionEnd| */ void bhv_monty_mole_init(void); +/* |description|Behavior loop function for Monty Mole|descriptionEnd| */ void bhv_monty_mole_update(void); +/* |description|Behavior loop function for Monty Mole hole|descriptionEnd| */ void bhv_monty_mole_hole_update(void); +/* |description|Behavior loop function for Monty Mole rock|descriptionEnd| */ void bhv_monty_mole_rock_update(void); +/* |description|Behavior init function for platform on track|descriptionEnd| */ void bhv_platform_on_track_init(void); +/* |description|Behavior loop function for platform on track|descriptionEnd| */ void bhv_platform_on_track_update(void); +/* |description|Behavior loop function for track ball|descriptionEnd| */ void bhv_track_ball_update(void); +/* |description|Behavior init function for seesaw platform|descriptionEnd| */ void bhv_seesaw_platform_init(void); +/* |description|Behavior loop function for seesaw platform|descriptionEnd| */ void bhv_seesaw_platform_update(void); +/* |description|Behavior init function for ferris wheel axle|descriptionEnd| */ void bhv_ferris_wheel_axle_init(void); +/* |description|Behavior init function for ferris wheel platform|descriptionEnd| */ void bhv_ferris_wheel_platform_init(void); +/* |description|Behavior loop function for ferris wheel platform|descriptionEnd| */ void bhv_ferris_wheel_platform_update(void); +/* |description|Behavior loop function for water bomb spawner|descriptionEnd| */ void bhv_water_bomb_spawner_update(void); +/* |description|Behavior loop function for water bomb|descriptionEnd| */ void bhv_water_bomb_update(void); +/* |description|Behavior loop function for water bomb shadow|descriptionEnd| */ void bhv_water_bomb_shadow_update(void); +/* |description|Behavior init function for Tick Tock Clock rotating solid|descriptionEnd| */ void bhv_ttc_rotating_solid_init(void); +/* |description|Behavior loop function for Tick Tock Clock rotating solid|descriptionEnd| */ void bhv_ttc_rotating_solid_update(void); +/* |description|Behavior init function for Tick Tock Clock pendulum|descriptionEnd| */ void bhv_ttc_pendulum_init(void); +/* |description|Behavior loop function for Tick Tock Clock pendulum|descriptionEnd| */ void bhv_ttc_pendulum_update(void); +/* |description|Behavior init function for Tick Tock Clock treadmill|descriptionEnd| */ void bhv_ttc_treadmill_init(void); +/* |description|Behavior loop function for Tick Tock Clock treadmill|descriptionEnd| */ void bhv_ttc_treadmill_update(void); +/* |description|Behavior init function for Tick Tock Clock moving bar|descriptionEnd| */ void bhv_ttc_moving_bar_init(void); +/* |description|Behavior loop function for Tick Tock Clock moving bar|descriptionEnd| */ void bhv_ttc_moving_bar_update(void); +/* |description|Behavior init function for Tick Tock Clock cog|descriptionEnd| */ void bhv_ttc_cog_init(void); +/* |description|Behavior loop function for Tick Tock Clock cog|descriptionEnd| */ void bhv_ttc_cog_update(void); +/* |description|Behavior init function for Tick Tock Clock pit block|descriptionEnd| */ void bhv_ttc_pit_block_init(void); +/* |description|Behavior loop function for Tick Tock Clock pit block|descriptionEnd| */ void bhv_ttc_pit_block_update(void); +/* |description|Behavior init function for Tick Tock Clock elevator|descriptionEnd| */ void bhv_ttc_elevator_init(void); +/* |description|Behavior loop function for Tick Tock Clock elevator|descriptionEnd| */ void bhv_ttc_elevator_update(void); +/* |description|Behavior init function for Tick Tock Clock 2D rotator|descriptionEnd| */ void bhv_ttc_2d_rotator_init(void); +/* |description|Behavior loop function for Tick Tock Clock 2D rotator|descriptionEnd| */ void bhv_ttc_2d_rotator_update(void); +/* |description|Behavior loop function for Tick Tock Clock spinner|descriptionEnd| */ void bhv_ttc_spinner_update(void); +/* |description|Behavior init function for Mr. Blizzard|descriptionEnd| */ void bhv_mr_blizzard_init(void); +/* |description|Behavior loop function for Mr. Blizzard|descriptionEnd| */ void bhv_mr_blizzard_update(void); +/* |description|Behavior loop function for Mr. Blizzard's snowball|descriptionEnd| */ void bhv_mr_blizzard_snowball(void); +/* |description|Behavior init function for sliding platform 2 in Rainbow Ride and Bowser courses|descriptionEnd| */ void bhv_sliding_plat_2_init(void); +/* |description|Behavior loop function for sliding platform 2 in Rainbow Ride and Bowser courses|descriptionEnd| */ void bhv_sliding_plat_2_loop(void); +/* |description|Behavior init function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky|descriptionEnd| */ void bhv_rotating_octagonal_plat_init(void); +/* |description|Behavior loop function for Rotating octagonal platform in Rainbow Ride and Bowser in the Sky|descriptionEnd| */ void bhv_rotating_octagonal_plat_loop(void); +/* |description|Behavior init function for animates on floor switch press in Rainbow Ride and Bowser courses|descriptionEnd| */ void bhv_animates_on_floor_switch_press_init(void); +/* |description|Behavior loop function for animates on floor switch press in Rainbow Ride and Bowser courses|descriptionEnd| */ void bhv_animates_on_floor_switch_press_loop(void); +/* |description|Behavior init function for activated back and forth platform in Bowser courses|descriptionEnd| */ void bhv_activated_back_and_forth_platform_init(void); +/* |description|Behavior loop function for activated back and forth platform in Bowser courses|descriptionEnd| */ void bhv_activated_back_and_forth_platform_update(void); +/* |description|Behavior loop function for Recovery Heart|descriptionEnd| */ void bhv_recovery_heart_loop(void); +/* |description|Behavior loop function for water bomb cannon|descriptionEnd| */ void bhv_water_bomb_cannon_loop(void); +/* |description|Behavior loop function for bubble cannon barrel|descriptionEnd| */ void bhv_bubble_cannon_barrel_loop(void); +/* |description|Behavior init function for Unagi|descriptionEnd| */ void bhv_unagi_init(void); +/* |description|Behavior loop function for Unagi|descriptionEnd| */ void bhv_unagi_loop(void); +/* |description|Behavior loop function for Unagi subobject|descriptionEnd| */ void bhv_unagi_subobject_loop(void); +/* |description|Behavior loop function for Dorrie|descriptionEnd| */ void bhv_dorrie_update(void); +/* |description|Behavior init function for Haunted Chair|descriptionEnd| */ void bhv_haunted_chair_init(void); +/* |description|Behavior loop function for Haunted Chair|descriptionEnd| */ void bhv_haunted_chair_loop(void); +/* |description|Behavior loop function for Mad Piano|descriptionEnd| */ void bhv_mad_piano_update(void); +/* |description|Behavior loop function for flying bookend|descriptionEnd| */ void bhv_flying_bookend_loop(void); +/* |description|Behavior loop function for Bookend spawn|descriptionEnd| */ void bhv_bookend_spawn_loop(void); +/* |description|Behavior loop function for haunted bookshelf manager|descriptionEnd| */ void bhv_haunted_bookshelf_manager_loop(void); +/* |description|Behavior loop function for Book switch|descriptionEnd| */ void bhv_book_switch_loop(void); +/* |description|Behavior init function for Fire Piranha Plant|descriptionEnd| */ void bhv_fire_piranha_plant_init(void); +/* |description|Behavior loop function for Fire Piranha Plant|descriptionEnd| */ void bhv_fire_piranha_plant_update(void); +/* |description|Behavior loop function for Small Piranha flame|descriptionEnd| */ void bhv_small_piranha_flame_loop(void); +/* |description|Behavior loop function for Fire spitter|descriptionEnd| */ void bhv_fire_spitter_update(void); +/* |description|Behavior loop function for Fly Guy flame|descriptionEnd| */ void bhv_fly_guy_flame_loop(void); +/* |description|Behavior loop function for Snufit|descriptionEnd| */ void bhv_snufit_loop(void); +/* |description|Behavior loop function for Snufit balls|descriptionEnd| */ void bhv_snufit_balls_loop(void); +/* |description|Behavior init function for horizontal Grindel|descriptionEnd| */ void bhv_horizontal_grindel_init(void); +/* |description|Behavior loop function for horizontal Grindel|descriptionEnd| */ void bhv_horizontal_grindel_update(void); +/* |description|Behavior init function for Eyerok boss|descriptionEnd| */ void bhv_eyerok_boss_init(void); +/* |description|Behavior loop function for Eyerok boss|descriptionEnd| */ void bhv_eyerok_boss_loop(void); +/* |description|Behavior loop function for Eyerok hand|descriptionEnd| */ void bhv_eyerok_hand_loop(void); +/* |description|Behavior init function for Klepto|descriptionEnd| */ void bhv_klepto_init(void); +/* |description|Behavior loop function for Klepto|descriptionEnd| */ void bhv_klepto_update(void); +/* |description|Behavior loop function for bird|descriptionEnd| */ void bhv_bird_update(void); +/* |description|Behavior init function for Racing Penguin|descriptionEnd| */ void bhv_racing_penguin_init(void); +/* |description|Behavior loop function for Racing Penguin|descriptionEnd| */ void bhv_racing_penguin_update(void); +/* |description|Behavior loop function for Penguin race finish line|descriptionEnd| */ void bhv_penguin_race_finish_line_update(void); +/* |description|Behavior loop function for Penguin race shortcut check|descriptionEnd| */ void bhv_penguin_race_shortcut_check_update(void); +/* |description|Behavior loop function for coffin spawner|descriptionEnd| */ void bhv_coffin_spawner_loop(void); +/* |description|Behavior loop function for coffin|descriptionEnd| */ void bhv_coffin_loop(void); +/* |description|Behavior loop function for Clam|descriptionEnd| */ void bhv_clam_loop(void); +/* |description|Behavior loop function for Skeeter|descriptionEnd| */ void bhv_skeeter_update(void); +/* |description|Behavior loop function for Skeeter wave|descriptionEnd| */ void bhv_skeeter_wave_update(void); +/* |description|Behavior init function for swing platform|descriptionEnd| */ void bhv_swing_platform_init(void); +/* |description|Behavior loop function for swing platform|descriptionEnd| */ void bhv_swing_platform_update(void); +/* |description|Behavior loop function for donut platform spawner|descriptionEnd| */ void bhv_donut_platform_spawner_update(void); +/* |description|Behavior loop function for donut platform|descriptionEnd| */ void bhv_donut_platform_update(void); +/* |description|Behavior init function for Dire Dire Docks pole|descriptionEnd| */ void bhv_ddd_pole_init(void); +/* |description|Behavior loop function for Dire Dire Docks pole|descriptionEnd| */ void bhv_ddd_pole_update(void); +/* |description|Behavior init function for Red Coin Star marker|descriptionEnd| */ void bhv_red_coin_star_marker_init(void); +/* |description|Behavior loop function for a triplet of butterflies|descriptionEnd| */ void bhv_triplet_butterfly_update(void); +/* |description|Behavior loop function for Bubba|descriptionEnd| */ void bhv_bubba_loop(void); +/* |description|Behavior loop function for intro Lakitu|descriptionEnd| */ void bhv_intro_lakitu_loop(void); +/* |description|Behavior loop function for intro Peach|descriptionEnd| */ void bhv_intro_peach_loop(void); +/* |description|Behavior loop function for first end birds|descriptionEnd| */ void bhv_end_birds_1_loop(void); +/* |description|Behavior loop function for second end birds|descriptionEnd| */ void bhv_end_birds_2_loop(void); +/* |description|Behavior loop function for intro scene|descriptionEnd| */ void bhv_intro_scene_loop(void); +/* |description|Behavior loop function for Dust smoke|descriptionEnd| */ void bhv_dust_smoke_loop(void); +/* |description|Behavior loop function for Yoshi|descriptionEnd| */ void bhv_yoshi_loop(void); +/* |description|Behavior loop function for volcano trap|descriptionEnd| */ void bhv_volcano_trap_loop(void); +/* |description|Behavior loop function for UV texture scrolling|descriptionEnd| */ void uv_update_scroll(void); Gfx *geo_move_mario_part_from_parent(s32 run, UNUSED struct GraphNode *node, Mat4 mtx); @@ -600,8 +1172,11 @@ Gfx *geo_scale_bowser_key(s32 run, struct GraphNode *node, UNUSED f32 mtx[4][4]) extern struct WaterDropletParams gShallowWaterSplashDropletParams; extern struct WaterDropletParams gShallowWaterWaveDropletParams; +/* |description|Spawns a Star with an ID corresponding to the current object's first behavior parameter byte|descriptionEnd| */ struct Object* spawn_default_star(f32 x, f32 y, f32 z); +/* |description|Spawns a Red Coin cutscene star with an ID corresponding to the current object's first behavior parameter byte|descriptionEnd| */ struct Object* spawn_red_coin_cutscene_star(f32 x, f32 y, f32 z); +/* |description|Spawns a Star that won't make Mario exit the level with an ID corresponding to the current object's first behavior parameter byte|descriptionEnd| */ struct Object* spawn_no_exit_star(f32 x, f32 y, f32 z); #endif // BEHAVIOR_ACTIONS_H diff --git a/src/game/behaviors/exclamation_box.inc.c b/src/game/behaviors/exclamation_box.inc.c index e206eeb0e..b07fbc78f 100644 --- a/src/game/behaviors/exclamation_box.inc.c +++ b/src/game/behaviors/exclamation_box.inc.c @@ -132,7 +132,7 @@ void exclamation_box_spawn_contents(struct ExclamationBoxContent *content, u8 it o->oFlags |= OBJ_FLAG_PERSISTENT_RESPAWN; // send non-star spawn events - // stars cant be sent here to due jankiness in oBehParams + // stars cant be sent here due to jankiness in oBehParams if (content->behavior != get_id_from_behavior(smlua_override_behavior(bhvSpawnedStar)) && spawnedObject != NULL) { // hack: if any other sync objects get spawned here we have to check for them if (content->behavior == get_id_from_behavior(smlua_override_behavior(bhvKoopaShell))) { diff --git a/src/game/behaviors/grand_star.inc.c b/src/game/behaviors/grand_star.inc.c index 8473bc9f2..28ffe18a4 100644 --- a/src/game/behaviors/grand_star.inc.c +++ b/src/game/behaviors/grand_star.inc.c @@ -1,9 +1,9 @@ // grand_star.c.inc -s32 arc_to_goal_pos(Vec3f empty, Vec3f pos, f32 yVel, f32 gravity) { +s32 arc_to_goal_pos(Vec3f goal, Vec3f pos, f32 yVel, f32 gravity) { if (!o) { return 0; } - f32 dx = empty[0] - pos[0]; - f32 dz = empty[2] - pos[2]; + f32 dx = goal[0] - pos[0]; + f32 dz = goal[2] - pos[2]; f32 planarDist = sqrtf(dx * dx + dz * dz); o->oMoveAngleYaw = atan2s(dz, dx); o->oVelY = yVel; diff --git a/src/game/behaviors/warp.inc.c b/src/game/behaviors/warp.inc.c index 107af849d..399bfc794 100644 --- a/src/game/behaviors/warp.inc.c +++ b/src/game/behaviors/warp.inc.c @@ -15,8 +15,7 @@ void bhv_warp_loop(void) { o->oInteractStatus = 0; } -void bhv_fading_warp_loop() // identical to the above function except for o->hitboxRadius -{ +void bhv_fading_warp_loop(void) { // identical to the above function except for o->hitboxRadius u16 sp6; if (o->oTimer == 0) { sp6 = (o->oBehParams >> 24) & 0xFF; diff --git a/src/pc/lua/smlua_functions_autogen.c b/src/pc/lua/smlua_functions_autogen.c index f4bac0ed2..516da63d8 100644 --- a/src/pc/lua/smlua_functions_autogen.c +++ b/src/pc/lua/smlua_functions_autogen.c @@ -102,31 +102,31 @@ int smlua_func_arc_to_goal_pos(lua_State* L) { } - f32* a0 = smlua_get_vec3f_from_buffer(); - a0[0] = smlua_get_number_field(1, "x"); - a0[1] = smlua_get_number_field(1, "y"); - a0[2] = smlua_get_number_field(1, "z"); + f32* goal = smlua_get_vec3f_from_buffer(); + goal[0] = smlua_get_number_field(1, "x"); + goal[1] = smlua_get_number_field(1, "y"); + goal[2] = smlua_get_number_field(1, "z"); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 1, "arc_to_goal_pos"); return 0; } - f32* a1 = smlua_get_vec3f_from_buffer(); - a1[0] = smlua_get_number_field(2, "x"); - a1[1] = smlua_get_number_field(2, "y"); - a1[2] = smlua_get_number_field(2, "z"); + f32* pos = smlua_get_vec3f_from_buffer(); + pos[0] = smlua_get_number_field(2, "x"); + pos[1] = smlua_get_number_field(2, "y"); + pos[2] = smlua_get_number_field(2, "z"); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 2, "arc_to_goal_pos"); return 0; } f32 yVel = smlua_to_number(L, 3); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 3, "arc_to_goal_pos"); return 0; } f32 gravity = smlua_to_number(L, 4); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 4, "arc_to_goal_pos"); return 0; } - lua_pushinteger(L, arc_to_goal_pos(a0, a1, yVel, gravity)); + lua_pushinteger(L, arc_to_goal_pos(goal, pos, yVel, gravity)); - smlua_push_number_field(1, "x", a0[0]); - smlua_push_number_field(1, "y", a0[1]); - smlua_push_number_field(1, "z", a0[2]); + smlua_push_number_field(1, "x", goal[0]); + smlua_push_number_field(1, "y", goal[1]); + smlua_push_number_field(1, "z", goal[2]); - smlua_push_number_field(2, "x", a1[0]); - smlua_push_number_field(2, "y", a1[1]); - smlua_push_number_field(2, "z", a1[2]); + smlua_push_number_field(2, "x", pos[0]); + smlua_push_number_field(2, "y", pos[1]); + smlua_push_number_field(2, "z", pos[2]); return 1; }