]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make the dead teammate check a big more reliable
authorMario <mario.mario@y7mail.com>
Fri, 8 Feb 2013 01:21:10 +0000 (12:21 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 8 Feb 2013 01:21:10 +0000 (12:21 +1100)
qcsrc/server/mutators/gamemode_rts.qc

index 6bebbabe6cabaaba605217176d2b8517ff620882..1779091de5ef0f92554a0661f8291a02945c684c 100644 (file)
@@ -247,7 +247,7 @@ MUTATOR_HOOKFUNCTION(rts_MonsterThink)
        if not(IsDifferentTeam(monster_target, self))
        {
                // following a fellow teammate, so attack their enemy
-               if(monster_target.deadflag != DEAD_NO)
+               if(monster_target.deadflag != DEAD_NO || monster_target.health < 1)
                        monster_target = world; // teammate died
                        
                if(monster_target.enemy)