]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Use correct value in Vore_AI
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 17:19:56 +0000 (20:19 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 17:19:56 +0000 (20:19 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index a782af99e65e9a0b3259552a0d8d0b373e00aa29..d7f6954823bcef42cdaab6a426d199ca7371dd0f 100644 (file)
@@ -31,7 +31,7 @@ void Vore_AI_Teamheal(entity prey)
 
        entity head;
 
-       if not(teamplay && cvar("g_balance_vore_teamheal"))
+       if not(teams_matter && cvar("g_balance_vore_teamheal"))
                return;
        if(self.deadflag != DEAD_NO || self.eater.classname == "player" || self.flagcarried || self.digesting) // a flag carrier can't waste time on team healing
        {
@@ -119,7 +119,7 @@ void Vore_AI()
        {
                // the greater the skill, the higher the chance bots will swallow someone each attempt
                if(skill >= random_try)
-               if not(teamplay && prey.team == self.team)
+               if not(teams_matter && prey.team == self.team)
                {
                        self.BUTTON_ATCK = TRUE; // swallow
                        self.decide_delay1 = time + decide_pred; // time before the bot decides what to do with their prey
@@ -155,7 +155,7 @@ void Vore_AI()
        {
                // the higher the skill, the more the bot will kick in your stomack
                if(skill >= random_try)
-               if not(teamplay && prey.team == self.team) // if someone from the same team somehow made it in the belly, don't kick the eater
+               if not(teams_matter && prey.team == self.team) // if someone from the same team somehow made it in the belly, don't kick the eater
                        self.BUTTON_ATCK = TRUE; // kick
 
                self.decide_delay2 = time + decide_prey; // time before the bot decides what to do with their predator