]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Bot AI: Don't leave when gentle vore is enabled
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 14:55:09 +0000 (17:55 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 14:55:09 +0000 (17:55 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 6fa5945f07a8f0dfa8551f04b510e534876d1d61..4543dc2cad26b585e036e451b94e63b903bcd92a 100644 (file)
@@ -227,7 +227,7 @@ void Vore_AI()
                {
                        if(self.predator.digesting) // our predator is digesting, so get out of him regardless of who he is
                                self.BUTTON_JUMP = TRUE; // leave
-                       else if not(g_rpg && cvar("g_rpg_botattack") < 2)
+                       else if not((g_rpg && cvar("g_rpg_botattack") < 2) || !cvar("g_vore_digestion")) // don't leave when gentle vore is enabled
                        {
                                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