mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Podium bot handling tweaks
- Friction was made stronger - They are better at turning - Friction change is properly clamped
This commit is contained in:
parent
0d12a3cb5d
commit
3850f2d579
1 changed files with 9 additions and 1 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -8911,6 +8911,11 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
||||||
turnfixed = FixedMul(turnfixed, 5*FRACUNIT/4); // Base increase to turning
|
turnfixed = FixedMul(turnfixed, 5*FRACUNIT/4); // Base increase to turning
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (K_PodiumSequence() == true)
|
||||||
|
{
|
||||||
|
turnfixed *= 2;
|
||||||
|
}
|
||||||
|
|
||||||
if (player->drift != 0 && P_IsObjectOnGround(player->mo))
|
if (player->drift != 0 && P_IsObjectOnGround(player->mo))
|
||||||
{
|
{
|
||||||
fixed_t countersteer = FixedDiv(turnfixed, KART_FULLTURN*FRACUNIT);
|
fixed_t countersteer = FixedDiv(turnfixed, KART_FULLTURN*FRACUNIT);
|
||||||
|
|
@ -10014,9 +10019,12 @@ fixed_t K_PlayerBaseFriction(fixed_t original)
|
||||||
|
|
||||||
if (K_PodiumSequence() == true)
|
if (K_PodiumSequence() == true)
|
||||||
{
|
{
|
||||||
frict -= 4096;
|
frict -= FRACUNIT >> 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (frict > FRACUNIT) { frict = FRACUNIT; }
|
||||||
|
if (frict < 0) { frict = 0; }
|
||||||
|
|
||||||
return frict;
|
return frict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue