From: Samual Lenks Date: Wed, 26 Feb 2014 22:58:51 +0000 (-0500) Subject: Some cleanup, add comment for draw collision todo X-Git-Tag: xonotic-v0.8.0~152^2~54 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=677a2fe2307b3e7f86feb30a6d1906f3aff89970;p=xonotic%2Fxonotic-data.pk3dir.git Some cleanup, add comment for draw collision todo --- diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index 695ed5c3c..1005c0496 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -689,20 +689,13 @@ void Draw_ArcBeam() Draw_ArcBeam_callback ); - // check if we're going to proceed with drawing - //if(trace_fraction != 1) - //{ - // we're done with drawing this frame - //last_origin = last_origin + (new_dir * segmentdist * trace_fraction); - //hitorigin = last_origin + (new_dir * segmentdist * trace_fraction); - //break; - //} - //else - { - // continue onto the next segment - last_origin = WarpZone_TransformOrigin(WarpZone_trace_transform, new_origin); - beam_endpos_estimate = WarpZone_TransformOrigin(WarpZone_trace_transform, beam_endpos_estimate); - } + // 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 + // the rest of the segments without breaking warpzone support. + + last_origin = WarpZone_TransformOrigin(WarpZone_trace_transform, new_origin); + beam_endpos_estimate = WarpZone_TransformOrigin(WarpZone_trace_transform, beam_endpos_estimate); } if(self.beam_hiteffect) @@ -1057,17 +1050,5 @@ void Ent_ReadArcBeam(float isnew) { InterpolateOrigin_Note(); } - - #if 0 - printf( - "Ent_ReadArcBeam(%d): sf = %d, start = %s, want = %s, dir = %s, type = %d\n", - isnew, - sf, - vtos(self.beam_start), - vtos(self.v_angle), - vtos(self.angles), - self.beam_type - ); - #endif }