HackerN64 / HackerSM64

A Super Mario 64 decompilation repo based on CrashOveride95/ultrasm64 that aims to provide a flexible, easy-to-use base for creating romhacks.
328 stars 146 forks source link

EASIER_LONG_JUMPS: only long jump with A+Z while running #801

Closed gheskett closed 2 months ago

gheskett commented 3 months ago

Originally from: #706

Pointing to master for the time being.

Before this define indiscriminately made you long jump any time you pressed Z at the beginning of ACT_JUMP. there are quite a handful of places where ACT_JUMP is started, so it isnt safe to assume you can always first frame check here. Instead - I just do it while running (ACT_WALKING). Keeps it simple and very likely where people get tripped up over this.

As an extra layer of safety, this cancels into ACT_CROUCH_SLIDE so that the initial crouch slide checks are taken into consideration.