]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Vore AI: Don't eat (teamheal) a team mate who is holding down a fire button
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 11:11:04 +0000 (14:11 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 11:11:04 +0000 (14:11 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index f037bfb1b0b00796caf8181d86f09c3c05ffcab4..24a72152685608c1cefb1b6f0d064dc1cc7ac9e4 100644 (file)
@@ -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
 }