From f0a961a443b2f372ee912d80f1ea3047e064b7e1 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Thu, 26 Jul 2012 12:27:37 -0400 Subject: [PATCH] Working more on the effect --- qcsrc/client/particles.qc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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(); } -- 2.39.2