r4258 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 30 10:07:47 EDT 2008


Author: div0
Date: 2008-08-30 10:07:47 -0400 (Sat, 30 Aug 2008)
New Revision: 4258

Modified:
   trunk/data/qcsrc/client/laser.qc
Log:
detect NOIMPACT flag for laser (TODO: possibly extend the laser to infinity if it hits sky? need a test map for this first)


Modified: trunk/data/qcsrc/client/laser.qc
===================================================================
--- trunk/data/qcsrc/client/laser.qc	2008-08-30 14:02:16 UTC (rev 4257)
+++ trunk/data/qcsrc/client/laser.qc	2008-08-30 14:07:47 UTC (rev 4258)
@@ -102,10 +102,13 @@
 	{
 		Draw_CylindricLine(self.origin, trace_endpos, 2, "particles/laserbeam", 0, time * 3, self.colormod, 0.5, DRAWFLAG_ADDITIVE); // TODO make a texture to make the laser look smoother
 	}
-	if(self.cnt >= 0)
-		pointparticles(self.cnt, trace_endpos, trace_plane_normal, drawframetime * 1000);
-	if(self.colormod != '0 0 0')
-		R_AddDynamicLight(trace_endpos + trace_plane_normal * 1, 50, self.colormod * 5);
+	if not(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT)
+	{
+		if(self.cnt >= 0)
+			pointparticles(self.cnt, trace_endpos, trace_plane_normal, drawframetime * 1000);
+		if(self.colormod != '0 0 0')
+			R_AddDynamicLight(trace_endpos + trace_plane_normal * 1, 50, self.colormod * 5);
+	}
 }
 
 void Ent_Laser()




More information about the nexuiz-commits mailing list