From c8c04af720486c9720dbd0a49c6ee57302ef0484 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 8 Sep 2010 04:15:25 +0300 Subject: [PATCH] Teamheal AI: Don't swallow a team mate who is digesting someone and ruin his frag. --- data/qcsrc/server/bot/havocbot/vore_ai.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index b0aaf27f..00bd76c3 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -81,6 +81,7 @@ void Vore_AI_Teamheal(entity prey) // check if we can heal a damaged team mate we came across, and if so swallow them if(prey.classname == "player" && prey.team == self.team) if(prey.health < cvar("g_balance_vore_teamheal_stable")) + if not(prey.digesting) // if our team mate is digesting someone, he likely wouldn't want us ruining his frag if not(prey.flagcarried) // don't eat the flag carrier and ruin his job if(Swallow_condition_check_bot(prey)) self.BUTTON_ATCK = TRUE; // swallow -- 2.39.2