mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 08:44:25 +00:00
Allow half-speed turning for side tricks
This commit is contained in:
parent
6e6c0cd71f
commit
c9d72499f1
1 changed files with 9 additions and 3 deletions
12
src/k_kart.c
12
src/k_kart.c
|
|
@ -9415,9 +9415,9 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (player->trickpanel != 0 && player->trickpanel < 4)
|
||||
if (player->trickpanel == 1 || player->trickpanel == 5)
|
||||
{
|
||||
// No turning during trick panel unless you did the upwards trick (4)
|
||||
// Forward trick or rising from trickpanel
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -9513,6 +9513,12 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
|||
// Weight has a small effect on turning
|
||||
turnfixed = FixedMul(turnfixed, weightadjust);
|
||||
|
||||
// Side trick
|
||||
if (player->trickpanel == 2 || player->trickpanel == 3)
|
||||
{
|
||||
turnfixed /= 2;
|
||||
}
|
||||
|
||||
return (turnfixed / FRACUNIT);
|
||||
}
|
||||
|
||||
|
|
@ -12025,7 +12031,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
}
|
||||
|
||||
P_InstaThrust(player->mo, player->mo->angle, max(basespeed, speed*3));
|
||||
player->trickpanel = 2;
|
||||
player->trickpanel = 5;
|
||||
}
|
||||
else if (cmd->throwdir < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue