]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Small improvements to the bot AI, as well as a fix
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 1 Feb 2012 00:20:55 +0000 (02:20 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 1 Feb 2012 00:20:55 +0000 (02:20 +0200)
data/botsVT.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc
docs/TODO.txt

index 1840624981004e419f915ad4008c409be790c7df..7024da21aab7d77f61cbbc2a7e905c2501c116d5 100644 (file)
@@ -16,8 +16,8 @@ set bot_vs_human 0    "Bots and humans play in different teams when set. positive v
 \r
 // general bot AI cvars\r
 set bot_ai_thinkinterval 0.05\r
-set bot_ai_strategyinterval 3 "How often a new objective is chosen"\r
-set bot_ai_enemydetectioninterval 0.5 "How often bots pick a new target"\r
+set bot_ai_strategyinterval 1 "How often a new objective is chosen"\r
+set bot_ai_enemydetectioninterval 0.3 "How often bots pick a new target"\r
 set bot_ai_enemydetectionradius 10000 "How far bots can see enemies"\r
 set bot_ai_dodgeupdateinterval 0.1 "How often scan for items to dodge. Currently not in use."\r
 set bot_ai_chooseweaponinterval 0.3 "How often the best weapon according to the situation will be chosen"\r
index b55689049c1a2c8d5e254917361575d331fb86f1..e5051955a455bba4cd7da7acc8e0be0dcb879ea5 100644 (file)
@@ -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;
                        }
 
index ded1dfeb65f022ce22cdd1a107578a9d14ace06d..9b3a13ba4b4d7b20603a8e31bb7af3ab8f4c268d 100644 (file)
@@ -44,8 +44,6 @@
 \r
 - 0.8: Vore roles mutator, or gametype\r
 \r
-- +0.8: Make sure bots follow the prey they are trying to swallow, and don't go for other items and stuff\r
-\r
 - 0.7 | 0.8: New player color symbols for scoreboard?\r
 \r
 - +0.8: Perhaps make new bots in bots.txt, using characters with names?\r