From: terencehill Date: Sun, 25 Dec 2016 10:55:57 +0000 (+0100) Subject: Fix bots thinking too much after setting a high enough slowmo value X-Git-Tag: xonotic-v0.8.2~343^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d0118abdcf8e26d436eb3093555cf7aa4aa89f75;p=xonotic%2Fxonotic-data.pk3dir.git Fix bots thinking too much after setting a high enough slowmo value --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index ed9070f9c..fb6f1e046 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;