You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
EASIER_LONG_JUMPS: only long jump with A+Z while running (#801)
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
This commit is contained in:
@@ -429,15 +429,6 @@ u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation,
|
||||
}
|
||||
|
||||
s32 act_jump(struct MarioState *m) {
|
||||
#ifdef EASIER_LONG_JUMPS
|
||||
if (m->actionTimer < 1) {
|
||||
m->actionTimer++;
|
||||
if (m->input & INPUT_Z_PRESSED && m->forwardVel > 10.0f) {
|
||||
return set_jumping_action(m, ACT_LONG_JUMP, 0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (check_kick_or_dive_in_air(m)) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -766,6 +766,11 @@ s32 act_walking(struct MarioState *m) {
|
||||
}
|
||||
|
||||
if (m->input & INPUT_A_PRESSED) {
|
||||
#ifdef EASIER_LONG_JUMPS
|
||||
if (m->input & INPUT_Z_PRESSED && m->forwardVel > 10.0f) {
|
||||
return set_mario_action(m, ACT_CROUCH_SLIDE, 0);
|
||||
}
|
||||
#endif
|
||||
return set_jump_from_landing(m);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user