From: MirceaKitsune Date: Sun, 26 Sep 2010 11:11:04 +0000 (+0300) Subject: Vore AI: Don't eat (teamheal) a team mate who is holding down a fire button X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8867b63f988a1939f2644d63f9e3cde1b3b5c105;p=voretournament%2Fvoretournament.git Vore AI: Don't eat (teamheal) a team mate who is holding down a fire button --- diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index f037bfb1..24a72152 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -69,6 +69,7 @@ void Vore_AI_Teamheal(entity prey) 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 not(prey.BUTTON_ATCK || prey.BUTTON_ATCK2) // our team mate wouldn't want us eating him while he's firing self.BUTTON_ATCK = TRUE; // swallow the team mate }