From: Mario Date: Sat, 7 Mar 2015 15:03:21 +0000 (+1100) Subject: Fix monsters unable to target non-player entities X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=224433c2747133e735b959cdb16a73f8ece1ec31;p=xonotic%2Fxonotic-data.pk3dir.git Fix monsters unable to target non-player entities --- diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index 923a6ad5e..0a57edbec 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -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)))