Improved Controls (based on SM64Plus)

nateify

Newbie
Apr 5, 2026
2
0
50
Pronouns
he/him
Hello,

I recently finished a full playthrough of SM64Plus with "Improved Controls" turned on, I played SM64 before but got quite used to these new controls. I tried to port it to Lua which is an unfamiliar language to me. I did a little bit of vibe coding which is usually discouraged but it seemed to give me some good results. I wanted to post it here to see if I could get any feedback before I try to port other SM64Plus changes, it would be much appreciated.

The code is here: sm64coopdxmods/improved_controls.lua at main · nateify/sm64coopdxmods

I added a couple things not found in the original SM64Plus code:

1. Improved ledge drop - causes mario to fall straight down vertically instead of with an outward velocity.
2. Reworked the ledge protection to be more forgiving

For the ledge protection in the SM64Plus it worked on quarter steps, I was not sure if I could to that 1:1 in Lua hooks which seemed to operate on whole frames. I put some code in a for loop that iterates 4 times, for i = 1, 4 do but I'm not sure if this is technically just taking the final loop's values once the hook is injected.
 

Users who are viewing this thread