]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
keepinstomach - same thing on the predator's end. When enabled, a team mate will...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 30 Sep 2010 01:27:32 +0000 (04:27 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 30 Sep 2010 01:27:32 +0000 (04:27 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 2d60bdb9a865b63ef0cb6fce22628e32cc11a60d..e73e76e7ab2b0a209cc8637790855bce1a596946 100644 (file)
@@ -359,7 +359,8 @@ 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 0 "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_ai_vore_stayinstomach 0 "When enabled, a bot will stay in a team mate's stomach even if he has no reason to and could willingly leave"\r
+set bot_ai_vore_keepinstomach 0 "When enabled, a bot will keep a team mate in his stomach even if he has no reason to and could regurgitate him"\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 26c85aaae558b6d04184f2b7c772bad9e36ea8ab..207f9055bb5c30adf7b1e37a5b1c5f11bfa1e7b4 100644 (file)
@@ -56,6 +56,7 @@ void Vore_AI_Teamheal(entity prey)
        // now that we're decided if we can teamheal or not, lets go ahead and do so
 
        // if we are holding a team mate that's been healed to the limit, we can release them
+       if not(cvar("bot_ai_vore_keepinstomach"))
        FOR_EACH_PLAYER(head)
        {
                if(head.predator == self) // head is automatically a team mate, or we wouldn't be reaching this part of the code
@@ -183,7 +184,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
+                               if not(teams_matter && self.team == self.predator.team && cvar("bot_ai_vore_stayinstomach")) // bots are not supposed to leave a team mate's stomach automatically
                                        self.BUTTON_JUMP = TRUE; // leave
                        }
                }