Teamheal AI: Don't swallow a team mate who is digesting someone and ruin his frag.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 01:15:25 +0000 (04:15 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 01:15:25 +0000 (04:15 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index b0aaf27..00bd76c 100644 (file)
@@ -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