]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add comment for velocity accomodation idea
authorSamual Lenks <samual@xonotic.org>
Thu, 20 Feb 2014 05:39:57 +0000 (00:39 -0500)
committerSamual Lenks <samual@xonotic.org>
Thu, 20 Feb 2014 05:39:57 +0000 (00:39 -0500)
qcsrc/common/weapons/w_arc.qc

index 466bf3fc6b3ad8fd594e410f4c44d5e6e8850e66..c4932a23da4f57dfc624c36db97ca38a0978ed8f 100644 (file)
@@ -194,6 +194,12 @@ void W_Arc_Beam_Think(void)
                self.beam_initialized = TRUE;
        }
 
+       // WEAPONTODO: Detect player velocity so that the beam curves when moving too
+       // idea: blend together self.beam_dir with the inverted direction the player is moving in
+       // might have to make some special accomodation so that it only uses view_right and view_up
+
+       // note that if we do this, it'll always be corrected to a maximum angle by beam_maxangle handling
+
        float segments; 
        if(self.beam_dir != w_shotdir)
        {
@@ -418,7 +424,6 @@ void W_Arc_Beam(float bursting)
        beam.think = W_Arc_Beam_Think;
        beam.owner = self;
        beam.movetype = MOVETYPE_NONE;
-       //beam.shot_spread = 1;
        beam.bot_dodge = TRUE;
        beam.bot_dodgerating = WEP_CVAR(arc, beam_damage);
        beam.beam_bursting = bursting;