-- description: in vanilla sm64 there was supposed to be a 3 frame window to do a firsty and i figured out how to fix it -- name: Fixed "Thirdies" -- this alone fixes thirdies -- yes im calling them thirdies function on_set_mario_action(m) if m.playerIndex == 0 then if m.action == ACT_AIR_HIT_WALL then return set_mario_animation(m, MARIO_ANIM_START_WALLKICK) end end end -- unnecessary but it fixes mario -- facing the wrong direction when wall kicking function mario_update(m) if m.playerIndex == 0 then if m.action == ACT_AIR_HIT_WALL then m.marioObj.header.gfx.angle.y = m.faceAngle.y + 0x8000 end end end hook_event(HOOK_ON_SET_MARIO_ACTION, on_set_mario_action) hook_event(HOOK_MARIO_UPDATE, mario_update)