-- description: originally there was supposed to be a\nthree frame window to do a perfect\nwall kick but due to a simple bug it\nwas reduced to just one, creating\nfirsties\n\nafter so many years this bug is\nfixed, making perfect wall kicks\nfinally work as intended\n\nMod by King -- name: Fixed Perfect Wall Kicks -- this alone fixes thirdies -- yes im calling them thirdies hook_event(HOOK_ON_SET_MARIO_ACTION, function(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) -- technically unnecessary but it fixes mario -- facing the wrong direction when on the wall hook_event(HOOK_MARIO_UPDATE, function(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)