mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
* No ridiculously-fast float animation.
* No falling when you accidentially press spin.
This commit is contained in:
parent
b34dc93a18
commit
4c0ef9f0a3
1 changed files with 3 additions and 2 deletions
|
|
@ -7077,12 +7077,13 @@ static void P_MovePlayer(player_t *player)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((cmd->buttons & BT_JUMP) && (player->pflags & PF_THOKKED)) // Super Sonic move
|
|
||||||
|
if ((cmd->buttons & BT_JUMP) && (player->pflags & PF_THOKKED)) // Super Sonic move
|
||||||
{
|
{
|
||||||
if (player->skin == 0 && player->powers[pw_super] && player->speed > FixedMul(5<<FRACBITS, player->mo->scale)
|
if (player->skin == 0 && player->powers[pw_super] && player->speed > FixedMul(5<<FRACBITS, player->mo->scale)
|
||||||
&& P_MobjFlip(player->mo)*player->mo->momz <= 0)
|
&& P_MobjFlip(player->mo)*player->mo->momz <= 0)
|
||||||
{
|
{
|
||||||
if (player->panim == PA_ROLL || player->panim == PA_JUMP || player->mo->state-states == S_PLAY_PAIN || player->panim == PA_WALK)
|
if (player->panim == PA_JUMP || player->panim == PA_FALL)
|
||||||
P_SetPlayerMobjState(player->mo, S_PLAY_SUPER_FLOAT);
|
P_SetPlayerMobjState(player->mo, S_PLAY_SUPER_FLOAT);
|
||||||
|
|
||||||
player->mo->momz = 0;
|
player->mo->momz = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue