From 0797a6c4c20cf42a2449b0711cbf61c6494f1637 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 1 Feb 2012 02:20:55 +0200 Subject: [PATCH] Small improvements to the bot AI, as well as a fix --- data/botsVT.cfg | 4 ++-- data/qcsrc/server/bot/havocbot/vore_ai.qc | 2 +- docs/TODO.txt | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/data/botsVT.cfg b/data/botsVT.cfg index 18406249..7024da21 100644 --- a/data/botsVT.cfg +++ b/data/botsVT.cfg @@ -16,8 +16,8 @@ set bot_vs_human 0 "Bots and humans play in different teams when set. positive v // general bot AI cvars set bot_ai_thinkinterval 0.05 -set bot_ai_strategyinterval 3 "How often a new objective is chosen" -set bot_ai_enemydetectioninterval 0.5 "How often bots pick a new target" +set bot_ai_strategyinterval 1 "How often a new objective is chosen" +set bot_ai_enemydetectioninterval 0.3 "How often bots pick a new target" set bot_ai_enemydetectionradius 10000 "How far bots can see enemies" set bot_ai_dodgeupdateinterval 0.1 "How often scan for items to dodge. Currently not in use." set bot_ai_chooseweaponinterval 0.3 "How often the best weapon according to the situation will be chosen" diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index b5568904..e5051955 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -199,7 +199,7 @@ void Vore_AI() if(!Stomach_HasLivePrey(self)) if not(cvar("g_balance_vore_digestion_limit") < 0 && self.health < cvar("g_balance_vore_digestion_vampire_stable")) - if not(consumables && self.health < min(min(g_pickup_healthsmall_max, g_pickup_healthmedium_max), min(g_pickup_healthlarge_max, g_pickup_healthmega_max))) + if not(consumables && self.health < max(max(g_pickup_healthsmall_max, g_pickup_healthmedium_max), max(g_pickup_healthlarge_max, g_pickup_healthmega_max))) self.BUTTON_REGURGITATE = TRUE; } diff --git a/docs/TODO.txt b/docs/TODO.txt index ded1dfeb..9b3a13ba 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -44,8 +44,6 @@ - 0.8: Vore roles mutator, or gametype -- +0.8: Make sure bots follow the prey they are trying to swallow, and don't go for other items and stuff - - 0.7 | 0.8: New player color symbols for scoreboard? - +0.8: Perhaps make new bots in bots.txt, using characters with names? -- 2.39.2