mirror of
https://github.com/s4Ys369/CHEATERex.git
synced 2025-01-22 23:52:17 -05:00
Allow spin jump fall to be slowed when holding A with wing cap
This commit is contained in:
parent
883194f626
commit
f7737a0816
1 changed files with 15 additions and 3 deletions
|
@ -547,9 +547,21 @@ void apply_gravity(struct MarioState *m) {
|
|||
m->vel[1] = -75.0f;
|
||||
}
|
||||
} else if (m->action == ACT_SPIN_JUMP) {
|
||||
m->vel[1] -= (m->vel[1] > 0.0f) ? 4.0f : 1.4f;
|
||||
if (m->vel[1] < -75.0f) {
|
||||
m->vel[1] = -75.5f;
|
||||
if ((m->flags & MARIO_WING_CAP) && m->vel[1] < 0.0f && (m->input & INPUT_A_DOWN)) {
|
||||
m->marioBodyState->wingFlutter = TRUE;
|
||||
m->vel[1] -= 0.7f;
|
||||
if (m->vel[1] < -37.5f) {
|
||||
if ((m->vel[1] += 1.4f) > -37.5f) {
|
||||
m->vel[1] = -37.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m->vel[1] -= (m->vel[1] > 0.0f) ? 4.0f : 1.4f;
|
||||
if (m->vel[1] < -75.0f) {
|
||||
m->vel[1] = -75.5f;
|
||||
}
|
||||
}
|
||||
} else if (m->action == ACT_WALL_SLIDE) {
|
||||
m->vel[1] -= 2.0f;
|
||||
|
|
Loading…
Reference in a new issue