WallKickTimer help!

MarioSonicMan

Member
Jul 14, 2024
7
0
110
I'm trying to patch a mod for personal use. I was gonna make it so you can wall jump out of a hard bonk, but it seems to already be coded in. It adds wall sliding, but when you hard bonk, you can't save yourself with an A press unless it's frame perfect. It uses custom code to convert soft bonks into wall slides, and manually sets mario to hard bonks. It sets m.wallKickTimer to 5 when it does so, but I can't wall kick out of the hard bonk! Why?

If you're wondering what mod it is, it's extended-moveset.lua from older sm64ex coop.

Speaking of, why was that mod removed from the default menu? It's phenomenal.

EDIT: I even added a snippit of code to FORCE it to work and it still doesn't:

local function act_bonk_save(m)
if m.wallKickTimer > 0 and (m.input & INPUT_A_PRESSED) ~= 0 then
m.vel.y = 52.0
m.faceAngle.y = limit_angle(m.faceAngle.y + 0x8000)
return set_mario_action(m, ACT_WALL_KICK_AIR, 0)
end
end

It's not flat in the .lua, the forums just do that automatically.
 
Last edited:

Users who are viewing this thread