From: Samual Lenks Date: Tue, 24 Jul 2012 20:06:14 +0000 (-0400) Subject: Use MOVE_NOMONSTERS for tracing visibility instead of MOVE_WORLDONLY X-Git-Tag: xonotic-v0.8.0~152^2~408^2~34 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=b1cbb8feb425171a679ba8a15ecfdd958793302a;p=xonotic%2Fxonotic-data.pk3dir.git Use MOVE_NOMONSTERS for tracing visibility instead of MOVE_WORLDONLY --- diff --git a/qcsrc/server/w_laser.qc b/qcsrc/server/w_laser.qc index 6b7fcdf2d..f2ece0cad 100644 --- a/qcsrc/server/w_laser.qc +++ b/qcsrc/server/w_laser.qc @@ -76,14 +76,14 @@ float W_Laser_Shockwave_IsVisible(entity head, vector nearest_on_line, vector sw // STEP ONE: Check if the nearest point is clear if(W_Laser_Shockwave_CheckSpread(nearest_to_attacker, nearest_on_line, sw_shotorg, attack_endpos)) { - WarpZone_TraceLine(sw_shotorg, nearest_to_attacker, MOVE_WORLDONLY, self); + WarpZone_TraceLine(sw_shotorg, nearest_to_attacker, MOVE_NOMONSTERS, self); if(trace_fraction == 1) { return TRUE; } // yes, the nearest point is clear and we can allow the damage } // STEP TWO: Check if shotorg to center point is clear if(W_Laser_Shockwave_CheckSpread(center, nearest_on_line, sw_shotorg, attack_endpos)) { - WarpZone_TraceLine(sw_shotorg, center, MOVE_WORLDONLY, self); + WarpZone_TraceLine(sw_shotorg, center, MOVE_NOMONSTERS, self); if(trace_fraction == 1) { return TRUE; } // yes, the center point is clear and we can allow the damage } @@ -93,7 +93,7 @@ float W_Laser_Shockwave_IsVisible(entity head, vector nearest_on_line, vector sw corner = get_corner_position(head, i); if(W_Laser_Shockwave_CheckSpread(corner, nearest_on_line, sw_shotorg, attack_endpos)) { - WarpZone_TraceLine(sw_shotorg, corner, MOVE_WORLDONLY, self); + WarpZone_TraceLine(sw_shotorg, corner, MOVE_NOMONSTERS, self); if(trace_fraction == 1) { return TRUE; } // yes, this corner is clear and we can allow the damage } }