From: terencehill Date: Tue, 23 Aug 2022 16:21:16 +0000 (+0200) Subject: Bot AI: fix think rate formula giving exaggerated importance to bot personality value... X-Git-Tag: xonotic-v0.8.6~322^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc1d977b06bcab0dd3f172f83a7f0f268e4ea457;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix think rate formula giving exaggerated importance to bot personality values of "aithink" (set in bots.txt) --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 79b3a9692..2497ecaa0 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -64,7 +64,7 @@ void bot_think(entity this) if(autocvar_bot_god) this.flags |= FL_GODMODE; - this.bot_nextthink = max(time, this.bot_nextthink) + max(0.01, autocvar_bot_ai_thinkinterval * (0.5 ** this.bot_aiskill) * min(14 / (skill + 14), 1)); + this.bot_nextthink = max(time, this.bot_nextthink) + max(0.01, autocvar_bot_ai_thinkinterval * min(14 / (skill + this.bot_aiskill + 14), 1)); if (!IS_PLAYER(this) || (autocvar_g_campaign && !campaign_bots_may_start)) {