]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use MOVE_NOMONSTERS for tracing visibility instead of MOVE_WORLDONLY
authorSamual Lenks <samual@xonotic.org>
Tue, 24 Jul 2012 20:06:14 +0000 (16:06 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 24 Jul 2012 20:06:14 +0000 (16:06 -0400)
qcsrc/server/w_laser.qc

index 6b7fcdf2d4fde0f9fbe5f4871eb68d346562f057..f2ece0cad372222702c0ea06d6b330f2659c346f 100644 (file)
@@ -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
                }
        }