]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also require crouch to drop the nade down
authorMario <zacjardine@y7mail.com>
Mon, 16 Mar 2015 21:48:27 +0000 (08:48 +1100)
committerMario <zacjardine@y7mail.com>
Mon, 16 Mar 2015 21:48:27 +0000 (08:48 +1100)
qcsrc/server/mutators/mutator_nades.qc

index ce6ee85cda6833305133f73913f316714720392c..321d0f8e6e5e6b587e99d9777b3df3f908cd5c85 100644 (file)
@@ -683,7 +683,7 @@ void toss_nade(entity e, vector _velocity, float _time)
        if (trace_startsolid)
                setorigin(_nade, e.origin);
 
-       if(self.v_angle.x >= 70 && self.v_angle.x <= 110)
+       if(self.v_angle.x >= 70 && self.v_angle.x <= 110 && self.BUTTON_CROUCH)
                _nade.velocity = '0 0 100';
        else if(autocvar_g_nades_nade_newton_style == 1)
                _nade.velocity = e.velocity + _velocity;