mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	Removed ACT_(MARIO_ACTION) Lua functions from API (useless)
This commit is contained in:
		
							parent
							
								
									4daa658567
								
							
						
					
					
						commit
						d5aeec5490
					
				
					 6 changed files with 3 additions and 2138 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
void set_camera_shake_from_hit(s16 shake);
 | 
			
		||||
void set_environmental_camera_shake(s16 shake);
 | 
			
		||||
void set_camera_shake_from_point(s16 shake, f32 posX, f32 posY, f32 posZ);
 | 
			
		||||
void set_camera_shake_from_point(s16 shake, f32 posX, f32 posY, f32 posZ);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,51 +14,7 @@ void update_flying_yaw(struct MarioState *m);
 | 
			
		|||
void update_flying_pitch(struct MarioState *m);
 | 
			
		||||
void update_flying(struct MarioState *m);
 | 
			
		||||
u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation, u32 stepArg);
 | 
			
		||||
s32 act_jump(struct MarioState *m);
 | 
			
		||||
s32 act_double_jump(struct MarioState *m);
 | 
			
		||||
s32 act_triple_jump(struct MarioState *m);
 | 
			
		||||
s32 act_backflip(struct MarioState *m);
 | 
			
		||||
s32 act_freefall(struct MarioState *m);
 | 
			
		||||
s32 act_hold_jump(struct MarioState *m);
 | 
			
		||||
s32 act_hold_freefall(struct MarioState *m);
 | 
			
		||||
s32 act_side_flip(struct MarioState *m);
 | 
			
		||||
s32 act_wall_kick_air(struct MarioState *m);
 | 
			
		||||
s32 act_long_jump(struct MarioState *m);
 | 
			
		||||
s32 act_riding_shell_air(struct MarioState *m);
 | 
			
		||||
s32 act_twirling(struct MarioState *m);
 | 
			
		||||
s32 act_dive(struct MarioState *m);
 | 
			
		||||
s32 act_air_throw(struct MarioState *m);
 | 
			
		||||
s32 act_water_jump(struct MarioState *m);
 | 
			
		||||
s32 act_hold_water_jump(struct MarioState *m);
 | 
			
		||||
s32 act_steep_jump(struct MarioState *m);
 | 
			
		||||
s32 act_ground_pound(struct MarioState *m);
 | 
			
		||||
s32 act_burning_jump(struct MarioState *m);
 | 
			
		||||
s32 act_burning_fall(struct MarioState *m);
 | 
			
		||||
s32 act_crazy_box_bounce(struct MarioState *m);
 | 
			
		||||
u32 common_air_knockback_step(struct MarioState *m, u32 landAction, u32 hardFallAction, s32 animation, f32 speed);
 | 
			
		||||
s32 check_wall_kick(struct MarioState *m);
 | 
			
		||||
s32 act_backward_air_kb(struct MarioState *m);
 | 
			
		||||
s32 act_forward_air_kb(struct MarioState *m);
 | 
			
		||||
s32 act_hard_backward_air_kb(struct MarioState *m);
 | 
			
		||||
s32 act_hard_forward_air_kb(struct MarioState *m);
 | 
			
		||||
s32 act_thrown_backward(struct MarioState *m);
 | 
			
		||||
s32 act_thrown_forward(struct MarioState *m);
 | 
			
		||||
s32 act_soft_bonk(struct MarioState *m);
 | 
			
		||||
s32 act_getting_blown(struct MarioState *m);
 | 
			
		||||
s32 act_air_hit_wall(struct MarioState *m);
 | 
			
		||||
s32 act_forward_rollout(struct MarioState *m);
 | 
			
		||||
s32 act_backward_rollout(struct MarioState *m);
 | 
			
		||||
s32 act_butt_slide_air(struct MarioState *m);
 | 
			
		||||
s32 act_hold_butt_slide_air(struct MarioState *m);
 | 
			
		||||
s32 act_lava_boost(struct MarioState *m);
 | 
			
		||||
s32 act_slide_kick(struct MarioState *m);
 | 
			
		||||
s32 act_jump_kick(struct MarioState *m);
 | 
			
		||||
s32 act_shot_from_cannon(struct MarioState *m);
 | 
			
		||||
s32 act_flying(struct MarioState *m);
 | 
			
		||||
s32 act_riding_hoot(struct MarioState *m);
 | 
			
		||||
s32 act_flying_triple_jump(struct MarioState *m);
 | 
			
		||||
s32 act_top_of_pole_jump(struct MarioState *m);
 | 
			
		||||
s32 act_vertical_wind(struct MarioState *m);
 | 
			
		||||
s32 act_special_triple_jump(struct MarioState *m);
 | 
			
		||||
s32 check_common_airborne_cancels(struct MarioState *m);
 | 
			
		||||
s32 mario_execute_airborne_action(struct MarioState *m);
 | 
			
		||||
s32 mario_execute_airborne_action(struct MarioState *m);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,29 +1,12 @@
 | 
			
		|||
void add_tree_leaf_particles(struct MarioState *m);
 | 
			
		||||
void play_climbing_sounds(struct MarioState *m, s32 b);
 | 
			
		||||
s32 set_pole_position(struct MarioState *m, f32 offsetY);
 | 
			
		||||
s32 act_holding_pole(struct MarioState *m);
 | 
			
		||||
s32 act_climbing_pole(struct MarioState *m);
 | 
			
		||||
s32 act_grab_pole_slow(struct MarioState *m);
 | 
			
		||||
s32 act_grab_pole_fast(struct MarioState *m);
 | 
			
		||||
s32 act_top_of_pole_transition(struct MarioState *m);
 | 
			
		||||
s32 act_top_of_pole(struct MarioState *m);
 | 
			
		||||
s32 perform_hanging_step(struct MarioState *m, Vec3f nextPos);
 | 
			
		||||
s32 update_hang_moving(struct MarioState *m);
 | 
			
		||||
void update_hang_stationary(struct MarioState *m);
 | 
			
		||||
s32 act_start_hanging(struct MarioState *m);
 | 
			
		||||
s32 act_hanging(struct MarioState *m);
 | 
			
		||||
s32 act_hang_moving(struct MarioState *m);
 | 
			
		||||
s32 let_go_of_ledge(struct MarioState *m);
 | 
			
		||||
void climb_up_ledge(struct MarioState *m);
 | 
			
		||||
void update_ledge_climb_camera(struct MarioState *m);
 | 
			
		||||
void update_ledge_climb(struct MarioState *m, s32 animation, u32 endAction);
 | 
			
		||||
s32 act_ledge_grab(struct MarioState *m);
 | 
			
		||||
s32 act_ledge_climb_slow(struct MarioState *m);
 | 
			
		||||
s32 act_ledge_climb_down(struct MarioState *m);
 | 
			
		||||
s32 act_ledge_climb_fast(struct MarioState *m);
 | 
			
		||||
s32 act_grabbed(struct MarioState *m);
 | 
			
		||||
s32 act_in_cannon(struct MarioState *m);
 | 
			
		||||
s32 act_tornado_twirling(struct MarioState *m);
 | 
			
		||||
s32 act_bubbled(struct MarioState* m);
 | 
			
		||||
s32 check_common_automatic_cancels(struct MarioState *m);
 | 
			
		||||
s32 mario_execute_automatic_action(struct MarioState *m);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,4 +8,4 @@ void cutscene_put_cap_on(struct MarioState *m);
 | 
			
		|||
u8 should_start_or_continue_dialog(struct MarioState* m, struct Object* object);
 | 
			
		||||
void general_star_dance_handler(struct MarioState *m, s32 isInWater);
 | 
			
		||||
void stuck_in_ground_handler(struct MarioState *m, s32 animation, s32 unstuckFrame, s32 target2, s32 target3, s32 endAction);
 | 
			
		||||
void generate_yellow_sparkles(s16 x, s16 y, s16 z, f32 radius);
 | 
			
		||||
void generate_yellow_sparkles(s16 x, s16 y, s16 z, f32 radius);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
				
			
			@ -765,534 +765,6 @@ int smlua_func_vec3f_find_ceil(lua_State* L) {
 | 
			
		|||
 // mario_actions_airborne.c //
 | 
			
		||||
//////////////////////////////
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_air_hit_wall(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_air_hit_wall(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_air_hit_wall(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_air_throw(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_air_throw(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_air_throw(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_backflip(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_backflip(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_backflip(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_backward_air_kb(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_backward_air_kb(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_backward_air_kb(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_backward_rollout(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_backward_rollout(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_backward_rollout(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_burning_fall(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_burning_fall(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_burning_fall(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_burning_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_burning_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_burning_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_butt_slide_air(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_butt_slide_air(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_butt_slide_air(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_crazy_box_bounce(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_crazy_box_bounce(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_crazy_box_bounce(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_dive(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_dive(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_dive(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_double_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_double_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_double_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_flying(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_flying(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_flying(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_flying_triple_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_flying_triple_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_flying_triple_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_forward_air_kb(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_forward_air_kb(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_forward_air_kb(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_forward_rollout(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_forward_rollout(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_forward_rollout(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_freefall(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_freefall(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_freefall(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_getting_blown(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_getting_blown(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_getting_blown(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_ground_pound(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_ground_pound(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_ground_pound(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hard_backward_air_kb(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hard_backward_air_kb(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hard_backward_air_kb(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hard_forward_air_kb(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hard_forward_air_kb(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hard_forward_air_kb(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hold_butt_slide_air(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hold_butt_slide_air(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hold_butt_slide_air(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hold_freefall(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hold_freefall(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hold_freefall(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hold_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hold_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hold_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hold_water_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hold_water_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hold_water_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_jump_kick(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_jump_kick(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_jump_kick(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_lava_boost(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_lava_boost(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_lava_boost(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_long_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_long_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_long_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_riding_hoot(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_riding_hoot(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_riding_hoot(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_riding_shell_air(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_riding_shell_air(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_riding_shell_air(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_shot_from_cannon(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_shot_from_cannon(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_shot_from_cannon(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_side_flip(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_side_flip(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_side_flip(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_slide_kick(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_slide_kick(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_slide_kick(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_soft_bonk(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_soft_bonk(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_soft_bonk(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_special_triple_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_special_triple_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_special_triple_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_steep_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_steep_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_steep_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_thrown_backward(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_thrown_backward(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_thrown_backward(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_thrown_forward(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_thrown_forward(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_thrown_forward(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_top_of_pole_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_top_of_pole_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_top_of_pole_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_triple_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_triple_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_triple_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_twirling(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_twirling(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_twirling(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_vertical_wind(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_vertical_wind(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_vertical_wind(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_wall_kick_air(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_wall_kick_air(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_wall_kick_air(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_water_jump(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_water_jump(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_water_jump(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_check_common_airborne_cancels(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1561,210 +1033,6 @@ int smlua_func_update_lava_boost_or_twirling(lua_State* L) {
 | 
			
		|||
 // mario_actions_automatic.c //
 | 
			
		||||
///////////////////////////////
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_bubbled(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_bubbled(struct MarioState* m);
 | 
			
		||||
    lua_pushinteger(L, act_bubbled(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_climbing_pole(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_climbing_pole(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_climbing_pole(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_grab_pole_fast(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_grab_pole_fast(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_grab_pole_fast(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_grab_pole_slow(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_grab_pole_slow(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_grab_pole_slow(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_grabbed(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_grabbed(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_grabbed(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hang_moving(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hang_moving(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hang_moving(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_hanging(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_hanging(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_hanging(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_holding_pole(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_holding_pole(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_holding_pole(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_in_cannon(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_in_cannon(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_in_cannon(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_ledge_climb_down(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_ledge_climb_down(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_ledge_climb_down(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_ledge_climb_fast(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_ledge_climb_fast(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_ledge_climb_fast(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_ledge_climb_slow(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_ledge_climb_slow(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_ledge_climb_slow(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_ledge_grab(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_ledge_grab(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_ledge_grab(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_start_hanging(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_start_hanging(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_start_hanging(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_top_of_pole(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_top_of_pole(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_top_of_pole(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_top_of_pole_transition(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_top_of_pole_transition(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_top_of_pole_transition(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_act_tornado_twirling(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
    struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE);
 | 
			
		||||
    if (!gSmLuaConvertSuccess) { return 0; }
 | 
			
		||||
 | 
			
		||||
    extern s32 act_tornado_twirling(struct MarioState *m);
 | 
			
		||||
    lua_pushinteger(L, act_tornado_twirling(m));
 | 
			
		||||
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int smlua_func_add_tree_leaf_particles(lua_State* L) {
 | 
			
		||||
    if(!smlua_functions_valid_param_count(L, 1)) { return 0; }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -3291,50 +2559,6 @@ void smlua_bind_functions_autogen(void) {
 | 
			
		|||
    //smlua_bind_function(L, "vec3f_find_ceil", smlua_func_vec3f_find_ceil); <--- UNIMPLEMENTED
 | 
			
		||||
 | 
			
		||||
    // mario_actions_airborne.c
 | 
			
		||||
    smlua_bind_function(L, "act_air_hit_wall", smlua_func_act_air_hit_wall);
 | 
			
		||||
    smlua_bind_function(L, "act_air_throw", smlua_func_act_air_throw);
 | 
			
		||||
    smlua_bind_function(L, "act_backflip", smlua_func_act_backflip);
 | 
			
		||||
    smlua_bind_function(L, "act_backward_air_kb", smlua_func_act_backward_air_kb);
 | 
			
		||||
    smlua_bind_function(L, "act_backward_rollout", smlua_func_act_backward_rollout);
 | 
			
		||||
    smlua_bind_function(L, "act_burning_fall", smlua_func_act_burning_fall);
 | 
			
		||||
    smlua_bind_function(L, "act_burning_jump", smlua_func_act_burning_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_butt_slide_air", smlua_func_act_butt_slide_air);
 | 
			
		||||
    smlua_bind_function(L, "act_crazy_box_bounce", smlua_func_act_crazy_box_bounce);
 | 
			
		||||
    smlua_bind_function(L, "act_dive", smlua_func_act_dive);
 | 
			
		||||
    smlua_bind_function(L, "act_double_jump", smlua_func_act_double_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_flying", smlua_func_act_flying);
 | 
			
		||||
    smlua_bind_function(L, "act_flying_triple_jump", smlua_func_act_flying_triple_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_forward_air_kb", smlua_func_act_forward_air_kb);
 | 
			
		||||
    smlua_bind_function(L, "act_forward_rollout", smlua_func_act_forward_rollout);
 | 
			
		||||
    smlua_bind_function(L, "act_freefall", smlua_func_act_freefall);
 | 
			
		||||
    smlua_bind_function(L, "act_getting_blown", smlua_func_act_getting_blown);
 | 
			
		||||
    smlua_bind_function(L, "act_ground_pound", smlua_func_act_ground_pound);
 | 
			
		||||
    smlua_bind_function(L, "act_hard_backward_air_kb", smlua_func_act_hard_backward_air_kb);
 | 
			
		||||
    smlua_bind_function(L, "act_hard_forward_air_kb", smlua_func_act_hard_forward_air_kb);
 | 
			
		||||
    smlua_bind_function(L, "act_hold_butt_slide_air", smlua_func_act_hold_butt_slide_air);
 | 
			
		||||
    smlua_bind_function(L, "act_hold_freefall", smlua_func_act_hold_freefall);
 | 
			
		||||
    smlua_bind_function(L, "act_hold_jump", smlua_func_act_hold_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_hold_water_jump", smlua_func_act_hold_water_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_jump", smlua_func_act_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_jump_kick", smlua_func_act_jump_kick);
 | 
			
		||||
    smlua_bind_function(L, "act_lava_boost", smlua_func_act_lava_boost);
 | 
			
		||||
    smlua_bind_function(L, "act_long_jump", smlua_func_act_long_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_riding_hoot", smlua_func_act_riding_hoot);
 | 
			
		||||
    smlua_bind_function(L, "act_riding_shell_air", smlua_func_act_riding_shell_air);
 | 
			
		||||
    smlua_bind_function(L, "act_shot_from_cannon", smlua_func_act_shot_from_cannon);
 | 
			
		||||
    smlua_bind_function(L, "act_side_flip", smlua_func_act_side_flip);
 | 
			
		||||
    smlua_bind_function(L, "act_slide_kick", smlua_func_act_slide_kick);
 | 
			
		||||
    smlua_bind_function(L, "act_soft_bonk", smlua_func_act_soft_bonk);
 | 
			
		||||
    smlua_bind_function(L, "act_special_triple_jump", smlua_func_act_special_triple_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_steep_jump", smlua_func_act_steep_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_thrown_backward", smlua_func_act_thrown_backward);
 | 
			
		||||
    smlua_bind_function(L, "act_thrown_forward", smlua_func_act_thrown_forward);
 | 
			
		||||
    smlua_bind_function(L, "act_top_of_pole_jump", smlua_func_act_top_of_pole_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_triple_jump", smlua_func_act_triple_jump);
 | 
			
		||||
    smlua_bind_function(L, "act_twirling", smlua_func_act_twirling);
 | 
			
		||||
    smlua_bind_function(L, "act_vertical_wind", smlua_func_act_vertical_wind);
 | 
			
		||||
    smlua_bind_function(L, "act_wall_kick_air", smlua_func_act_wall_kick_air);
 | 
			
		||||
    smlua_bind_function(L, "act_water_jump", smlua_func_act_water_jump);
 | 
			
		||||
    smlua_bind_function(L, "check_common_airborne_cancels", smlua_func_check_common_airborne_cancels);
 | 
			
		||||
    smlua_bind_function(L, "check_fall_damage", smlua_func_check_fall_damage);
 | 
			
		||||
    smlua_bind_function(L, "check_fall_damage_or_get_stuck", smlua_func_check_fall_damage_or_get_stuck);
 | 
			
		||||
| 
						 | 
				
			
			@ -3357,23 +2581,6 @@ void smlua_bind_functions_autogen(void) {
 | 
			
		|||
    smlua_bind_function(L, "update_lava_boost_or_twirling", smlua_func_update_lava_boost_or_twirling);
 | 
			
		||||
 | 
			
		||||
    // mario_actions_automatic.c
 | 
			
		||||
    smlua_bind_function(L, "act_bubbled", smlua_func_act_bubbled);
 | 
			
		||||
    smlua_bind_function(L, "act_climbing_pole", smlua_func_act_climbing_pole);
 | 
			
		||||
    smlua_bind_function(L, "act_grab_pole_fast", smlua_func_act_grab_pole_fast);
 | 
			
		||||
    smlua_bind_function(L, "act_grab_pole_slow", smlua_func_act_grab_pole_slow);
 | 
			
		||||
    smlua_bind_function(L, "act_grabbed", smlua_func_act_grabbed);
 | 
			
		||||
    smlua_bind_function(L, "act_hang_moving", smlua_func_act_hang_moving);
 | 
			
		||||
    smlua_bind_function(L, "act_hanging", smlua_func_act_hanging);
 | 
			
		||||
    smlua_bind_function(L, "act_holding_pole", smlua_func_act_holding_pole);
 | 
			
		||||
    smlua_bind_function(L, "act_in_cannon", smlua_func_act_in_cannon);
 | 
			
		||||
    smlua_bind_function(L, "act_ledge_climb_down", smlua_func_act_ledge_climb_down);
 | 
			
		||||
    smlua_bind_function(L, "act_ledge_climb_fast", smlua_func_act_ledge_climb_fast);
 | 
			
		||||
    smlua_bind_function(L, "act_ledge_climb_slow", smlua_func_act_ledge_climb_slow);
 | 
			
		||||
    smlua_bind_function(L, "act_ledge_grab", smlua_func_act_ledge_grab);
 | 
			
		||||
    smlua_bind_function(L, "act_start_hanging", smlua_func_act_start_hanging);
 | 
			
		||||
    smlua_bind_function(L, "act_top_of_pole", smlua_func_act_top_of_pole);
 | 
			
		||||
    smlua_bind_function(L, "act_top_of_pole_transition", smlua_func_act_top_of_pole_transition);
 | 
			
		||||
    smlua_bind_function(L, "act_tornado_twirling", smlua_func_act_tornado_twirling);
 | 
			
		||||
    smlua_bind_function(L, "add_tree_leaf_particles", smlua_func_add_tree_leaf_particles);
 | 
			
		||||
    smlua_bind_function(L, "check_common_automatic_cancels", smlua_func_check_common_automatic_cancels);
 | 
			
		||||
    smlua_bind_function(L, "climb_up_ledge", smlua_func_climb_up_ledge);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue