]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Working more on the effect
authorSamual Lenks <samual@xonotic.org>
Thu, 26 Jul 2012 16:27:37 +0000 (12:27 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 26 Jul 2012 16:27:37 +0000 (12:27 -0400)
qcsrc/client/particles.qc

index 7056f2ac5b9091bdfa82c83f6ffb3b4477ba058d..5155a17eb7761202da075a0e0e667a059eed0d85 100644 (file)
@@ -326,17 +326,19 @@ void Net_ReadShockwaveParticle()
                deviation_y = v_forward_x;
                deviation_z = v_forward_y;
                deviation = deviation * spread;
-               deviation = ((shotdir + (right * deviation_y) + (up * deviation_z)) * 1000);
+               deviation = ((shotdir + (right * deviation_y) + (up * deviation_z)));
                
                dist = vlen(shotorg - endpos);
                neworg = (shotorg + (deviation * dist));
+
+               //te_lightning2(world, neworg, shotorg); 
                
                if(lastdist)
                {
-                       R_BeginPolygon("", DRAWFLAG_NORMAL);
-                       R_PolygonVertex(lastorg, '0 0 0', '1 0 0', 0.5);
-                       R_PolygonVertex(neworg, '0 0 0', '1 0 0', 0.5);
-                       R_PolygonVertex(shotorg, '0 0 0', '1 0 0', 0.5);
+                       R_BeginPolygon("", DRAWFLAG_ADDITIVE);
+                       R_PolygonVertex(lastorg, '0 0 0', '1 0 0', 1);
+                       R_PolygonVertex(neworg, '0 0 0', '1 0 0', 1);
+                       R_PolygonVertex(shotorg, '0 0 0', '1 0 0', 1);
                        R_EndPolygon();
                }