Podium bot handling tweaks

- Friction was made stronger
- They are better at turning
- Friction change is properly clamped
This commit is contained in:
Sally Coolatta 2023-03-02 16:19:27 -05:00
parent 0d12a3cb5d
commit 3850f2d579

View file

@ -8911,6 +8911,11 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
turnfixed = FixedMul(turnfixed, 5*FRACUNIT/4); // Base increase to turning
}
if (K_PodiumSequence() == true)
{
turnfixed *= 2;
}
if (player->drift != 0 && P_IsObjectOnGround(player->mo))
{
fixed_t countersteer = FixedDiv(turnfixed, KART_FULLTURN*FRACUNIT);
@ -10014,9 +10019,12 @@ fixed_t K_PlayerBaseFriction(fixed_t original)
if (K_PodiumSequence() == true)
{
frict -= 4096;
frict -= FRACUNIT >> 3;
}
if (frict > FRACUNIT) { frict = FRACUNIT; }
if (frict < 0) { frict = 0; }
return frict;
}