From: MirceaKitsune Date: Tue, 7 Sep 2010 17:19:56 +0000 (+0300) Subject: Use correct value in Vore_AI X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=612d5f9e17ac2adf7d2feb05d6b387b140381cb5;p=voretournament%2Fvoretournament.git Use correct value in Vore_AI --- diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index a782af99..d7f69548 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -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