mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 11:21:11 +00:00
Make flight controls less bullshit
This commit is contained in:
parent
4238003887
commit
ec02a90ebc
1 changed files with 4 additions and 4 deletions
|
@ -5503,10 +5503,7 @@ static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
|
||||||
; // Can't do anything if you're a fish out of water!
|
; // Can't do anything if you're a fish out of water!
|
||||||
else if (player->powers[pw_tailsfly]) // If currently flying, give an ascend boost.
|
else if (player->powers[pw_tailsfly]) // If currently flying, give an ascend boost.
|
||||||
{
|
{
|
||||||
if (!player->fly1)
|
player->fly1 = 20;
|
||||||
player->fly1 = 20;
|
|
||||||
else
|
|
||||||
player->fly1 = 2;
|
|
||||||
|
|
||||||
if (player->charability == CA_SWIM)
|
if (player->charability == CA_SWIM)
|
||||||
player->fly1 /= 2;
|
player->fly1 /= 2;
|
||||||
|
@ -8487,7 +8484,10 @@ static void P_MovePlayer(player_t *player)
|
||||||
// Descend
|
// Descend
|
||||||
if (cmd->buttons & BT_USE && !(player->pflags & PF_STASIS) && !player->exiting && !(player->mo->eflags & MFE_GOOWATER))
|
if (cmd->buttons & BT_USE && !(player->pflags & PF_STASIS) && !player->exiting && !(player->mo->eflags & MFE_GOOWATER))
|
||||||
if (P_MobjFlip(player->mo)*player->mo->momz > -FixedMul(5*actionspd, player->mo->scale))
|
if (P_MobjFlip(player->mo)*player->mo->momz > -FixedMul(5*actionspd, player->mo->scale))
|
||||||
|
{
|
||||||
|
player->fly1 = 0;
|
||||||
P_SetObjectMomZ(player->mo, -actionspd/2, true);
|
P_SetObjectMomZ(player->mo, -actionspd/2, true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue