From: MirceaKitsune Date: Wed, 8 Sep 2010 01:15:25 +0000 (+0300) Subject: Teamheal AI: Don't swallow a team mate who is digesting someone and ruin his frag. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8c04af720486c9720dbd0a49c6ee57302ef0484;p=voretournament%2Fvoretournament.git Teamheal AI: Don't swallow a team mate who is digesting someone and ruin his frag. --- 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