mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make momz always base-scale handled, to match how gravity works
This commit is contained in:
parent
ea74a219e5
commit
1c8e5b3418
1 changed files with 2 additions and 4 deletions
|
|
@ -11452,14 +11452,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
}
|
}
|
||||||
else if (cmd->throwdir < 0)
|
else if (cmd->throwdir < 0)
|
||||||
{
|
{
|
||||||
boolean relative = true;
|
|
||||||
|
|
||||||
player->mo->momx /= 3;
|
player->mo->momx /= 3;
|
||||||
player->mo->momy /= 3;
|
player->mo->momy /= 3;
|
||||||
|
|
||||||
if (player->mo->momz * P_MobjFlip(player->mo) <= 0)
|
if (player->mo->momz * P_MobjFlip(player->mo) <= 0)
|
||||||
{
|
{
|
||||||
relative = false;
|
player->mo->momz = 0; // relative = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate speed boost decay:
|
// Calculate speed boost decay:
|
||||||
|
|
@ -11468,7 +11466,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
player->trickboostdecay = min(TICRATE*3/4, abs(momz/FRACUNIT));
|
player->trickboostdecay = min(TICRATE*3/4, abs(momz/FRACUNIT));
|
||||||
//CONS_Printf("decay: %d\n", player->trickboostdecay);
|
//CONS_Printf("decay: %d\n", player->trickboostdecay);
|
||||||
|
|
||||||
P_SetObjectMomZ(player->mo, 48*invertscale, relative);
|
player->mo->momz += P_MobjFlip(player->mo)*48*mapobjectscale;
|
||||||
player->trickpanel = 4;
|
player->trickpanel = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue