From: Samual Lenks Date: Thu, 26 Jul 2012 16:27:37 +0000 (-0400) Subject: Working more on the effect X-Git-Tag: xonotic-v0.8.0~152^2~408^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0a961a443b2f372ee912d80f1ea3047e064b7e1;p=xonotic%2Fxonotic-data.pk3dir.git Working more on the effect --- diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index 7056f2ac5..5155a17eb 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -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(); }