From d0118abdcf8e26d436eb3093555cf7aa4aa89f75 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 25 Dec 2016 11:55:57 +0100 Subject: [PATCH] Fix bots thinking too much after setting a high enough slowmo value --- qcsrc/server/bot/default/bot.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index ed9070f9cd..fb6f1e046d 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -64,6 +64,8 @@ void bot_think(entity this) this.flags |= FL_GODMODE; this.bot_nextthink = this.bot_nextthink + autocvar_bot_ai_thinkinterval * pow(0.5, this.bot_aiskill); + if(this.bot_nextthink < time) + this.bot_nextthink = time + autocvar_bot_ai_thinkinterval * pow(0.5, this.bot_aiskill); //if (this.bot_painintensity > 0) // this.bot_painintensity = this.bot_painintensity - (skill + 1) * 40 * frametime; -- 2.39.2