]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix think rate formula giving exaggerated importance to bot personality value...
authorterencehill <piuntn@gmail.com>
Tue, 23 Aug 2022 16:21:16 +0000 (18:21 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 23 Aug 2022 16:33:38 +0000 (18:33 +0200)
qcsrc/server/bot/default/bot.qc

index 79b3a96924754bf066ef762b7d602c03faa9ca8b..2497ecaa011b3cce5d9b0d6169f6424af6dfc48d 100644 (file)
@@ -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))
        {