From 71d8ffb493216687a76e6dbaebe3e73eee360745 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 31 Jan 2021 20:11:44 -0500 Subject: [PATCH] Reduce max rubberband top speed from +100% to +25% --- src/k_bot.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/k_bot.c b/src/k_bot.c index c7b115d2f..21cd4f18e 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -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)