]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Switch back to previous last origin method
authorSamual Lenks <samual@xonotic.org>
Wed, 26 Feb 2014 23:39:26 +0000 (18:39 -0500)
committerSamual Lenks <samual@xonotic.org>
Wed, 26 Feb 2014 23:39:26 +0000 (18:39 -0500)
qcsrc/client/particles.qc

index 74660ebf99559474a6267e42533185503711222d..0e4e2b8871009540928ff8d71ee50234fdb921cb 100644 (file)
@@ -422,8 +422,8 @@ void Draw_ArcBeam_callback(vector start, vector hit, vector end)
        // draw primary beam render
        vector top    = hitorigin + (thickdir * thickness);
        vector bottom = hitorigin - (thickdir * thickness);
-       vector last_top    = start + (thickdir * Draw_ArcBeam_callback_last_thickness);
-       vector last_bottom = start - (thickdir * Draw_ArcBeam_callback_last_thickness);
+       //vector last_top    = start + (thickdir * Draw_ArcBeam_callback_last_thickness);
+       //vector last_bottom = start - (thickdir * Draw_ArcBeam_callback_last_thickness);
 
        R_BeginPolygon(beam.beam_image, DRAWFLAG_NORMAL); // DRAWFLAG_ADDITIVE
        R_PolygonVertex(
@@ -433,13 +433,13 @@ void Draw_ArcBeam_callback(vector start, vector hit, vector end)
                beam.beam_alpha
        );
        R_PolygonVertex(
-               last_top,
+               Draw_ArcBeam_callback_last_top,
                '0 0.5 0' + ('0 0.5 0' * (Draw_ArcBeam_callback_last_thickness / beam.beam_thickness)),
                beam.beam_color,
                beam.beam_alpha
        );
        R_PolygonVertex(
-               last_bottom,
+               Draw_ArcBeam_callback_last_bottom,
                '0 0.5 0' * (1 - (Draw_ArcBeam_callback_last_thickness / beam.beam_thickness)),
                beam.beam_color,
                beam.beam_alpha
@@ -693,6 +693,8 @@ void Draw_ArcBeam()
                        Draw_ArcBeam_callback
                );
 
+               //printf("segment: %d, warpzone transform: %d\n", i, (WarpZone_trace_transform != world));
+
                // WEAPONTODO:
                // Figure out some way to detect a collision with geometry with callback...
                // That way we can know when we are done drawing the beam and skip