From 64d291cbeaec95ad7f83118d7143634e40d95348 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 7 Sep 2010 03:58:50 +0300 Subject: [PATCH] Do it properly --- data/qcsrc/server/bot/havocbot/vore_ai.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 562b6c74..6676c881 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -19,7 +19,7 @@ float Swallow_condition_check_bot(entity prey) if(self.eater.classname != "player" && self.stomach_load < cvar("g_balance_vore_swallow_limit") && self.deadflag == DEAD_NO) // we can't swallow players while inside someone's stomach ourselves if not(cvar("g_vore_biggergut") && prey.stomach_load > self.stomach_load) if(self.health > cvar("g_balance_vore_kick_damage_max")) // explained below - if not(prey.team == self.team && teamplay) + if not(teamplay && prey.team == self.team) return TRUE; return FALSE; } @@ -96,7 +96,7 @@ void Vore_AI() { // the higher the skill, the more the bot will kick in your stomack if(skill >= random_try) - if not(teams_matter && self.team == self.eater.team) // if someone from the same team somehow made it in the belly, don't kick the eater + if not(teamplay && 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 -- 2.39.2