This is the UberASM version of the wall kick patch by MarioE (https://www.smwcentral.net/?p=section&a=details&id=17585), so that you can enable this mechanic only in certain levels.
The base code is essentially the same. All credit for the code goes to MarioE.
Requested by Romano338.
Version 1.1: added two new options:
- Allow a wall kick even when Mario is spin jumping.
- Allow consecutive wall kicks from walls with the same direction (including wall jumping off of the same wall multiple times). With this it doesn't happen that a wall doesn't let you slide and jump, so it removes what could be felt as unintuitive (or "jank") by players.
As for the jump sound glitching out even if you change the '#$01' and '$1DFA' to '#$35' and '$1DFC', it's actually because of the '?' next to the '35 Jump.txt' in 'addmusic_sound effects.txt'. Remove that '?' and reapply and you should be good to go. This fix should work with any resource that makes the jump sound.