mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-27 10:22:32 +00:00
Reduce max rubberband top speed from +100% to +25%
This commit is contained in:
parent
aefff1c943
commit
71d8ffb493
1 changed files with 6 additions and 1 deletions
|
|
@ -422,11 +422,16 @@ fixed_t K_BotTopSpeedRubberband(player_t *player)
|
|||
{
|
||||
fixed_t rubberband = K_BotRubberband(player);
|
||||
|
||||
if (rubberband < FRACUNIT)
|
||||
if (rubberband <= FRACUNIT)
|
||||
{
|
||||
// Never go below your regular top speed
|
||||
rubberband = FRACUNIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Max at +25% for level 9 bots
|
||||
rubberband = FRACUNIT + ((rubberband - FRACUNIT) / 4);
|
||||
}
|
||||
|
||||
// Only allow you to go faster than your regular top speed if you're facing the right direction
|
||||
if (rubberband > FRACUNIT && player->mo != NULL && player->nextwaypoint != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue