]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvar bots leaving the stomach automatically once team healed (in case the predator...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 30 Sep 2010 01:14:26 +0000 (04:14 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 30 Sep 2010 01:14:26 +0000 (04:14 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 04d5a9de3dfbd4d7ad70b9332fdfcc6af64c40bf..b3bd7df3d9e9063bd8025cf6bbb91ca5cc3bd208 100644 (file)
@@ -359,6 +359,7 @@ set bot_ai_vore_decide_prey 1.35 "How fast bots decide what to do with their pre
 set bot_ai_vore_decide_swallow 0.2 "How often bots decide if to swallow someone or not"\r
 set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them and avoid them in some situations"\r
 set bot_ai_vore_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot abandoning a team heal when seeing an enemy they can vore, at highest skill"\r
+set bot_ai_vore_stayinteamstomach 1 "When enabled, a bot will stay in a team mate's stomach even if he was teamhealed to the max and could willingly leave"\r
 set bot_god 0 "god mode for bots"\r
 set bot_ai_navigation_jetpack 0 "Enable bots to navigat maps using the jetpack"\r
 set bot_ai_navigation_jetpack_mindistance 3500 "Bots will try fly to objects located farther than this distance"\r
index 5a9fc91feda6f1e2c6ee2bbf66c87d21f8b5f421..26c85aaae558b6d04184f2b7c772bad9e36ea8ab 100644 (file)
@@ -183,6 +183,7 @@ void Vore_AI()
                        else if not(g_rpg && cvar("g_rpg_botattack") < 2)
                        {
                                if not(teams_matter && self.team == self.predator.team && cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable")) // we are being team healed, don't leave
+                               if not(teams_matter && self.team == self.predator.team && cvar("bot_ai_vore_stayinteamstomach")) // bots are not supposed to leave a team mate's stomach automatically
                                        self.BUTTON_JUMP = TRUE; // leave
                        }
                }