mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9513,6 +9513,12 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
||||||
// Weight has a small effect on turning
|
// Weight has a small effect on turning
|
||||||
turnfixed = FixedMul(turnfixed, weightadjust);
|
turnfixed = FixedMul(turnfixed, weightadjust);
|
||||||
|
|
||||||
|
// Side trick
|
||||||
|
if (player->trickpanel == 2 || player->trickpanel == 3)
|
||||||
|
{
|
||||||
|
turnfixed /= 2;
|
||||||
|
}
|
||||||
|
|
||||||
return (turnfixed / FRACUNIT);
|
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));
|
P_InstaThrust(player->mo, player->mo->angle, max(basespeed, speed*3));
|
||||||
player->trickpanel = 2;
|
player->trickpanel = 5;
|
||||||
}
|
}
|
||||||
else if (cmd->throwdir < 0)
|
else if (cmd->throwdir < 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue