]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/vore_ai.qc
keepinstomach - same thing on the predator's end. When enabled, a team mate will...
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / vore_ai.qc
index 5a9fc91feda6f1e2c6ee2bbf66c87d21f8b5f421..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,6 +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_stayinstomach")) // bots are not supposed to leave a team mate's stomach automatically
                                        self.BUTTON_JUMP = TRUE; // leave
                        }
                }