]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix monsters unable to target non-player entities
authorMario <zacjardine@y7mail.com>
Sat, 7 Mar 2015 15:03:21 +0000 (02:03 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 7 Mar 2015 15:03:21 +0000 (02:03 +1100)
qcsrc/common/monsters/sv_monsters.qc

index 923a6ad5ed4b11cab659010fe931e41c693b462d..0a57edbecd3cd0446fc34c6443adf3264b684f02 100644 (file)
@@ -547,7 +547,7 @@ vector Monster_Move_Target(entity targ)
                if(    (self.enemy == world)
                        || (Player_Trapped(self.enemy))
                        || (self.enemy.flags & FL_NOTARGET)
-                       || (self.enemy.alpha < 0.5)
+                       || (self.enemy.alpha < 0.5 && self.enemy.alpha != 0)
                        || (self.enemy.takedamage == DAMAGE_NO)
                        || (vlen(self.origin - targ_origin) > self.target_range)
                        || ((trace_fraction < 1) && (trace_ent != self.enemy)))