]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Wops - passing goes secondary
authorJakob MG <jakob_mg@hotmail.com>
Thu, 29 Dec 2011 14:27:55 +0000 (15:27 +0100)
committerJakob MG <jakob_mg@hotmail.com>
Thu, 29 Dec 2011 14:27:55 +0000 (15:27 +0100)
qcsrc/server/mutators/gamemode_nexball.qc

index 14c7348bcda50ac49b98cfcdd464f4879a87ba8c..32ca0ee0280cf5d59f98b6c55d1e4848d2485b34 100644 (file)
@@ -721,14 +721,7 @@ void W_Nexball_Attack(float t)
                mul = mi + (ma - mi) * mul; // range from the minimal power to the maximal power
        }
        
-       if(ball.enemy)
-       {
-        ball.think = W_Nexball_Think;
-        ball.nextthink = time;
-           DropBall(ball, w_shotorg, trigger_push_calculatevelocity(ball.origin, ball.enemy, 32));
-       }
-       else
-        DropBall(ball, w_shotorg, W_CalculateProjectileVelocity(self.velocity, w_shotdir * autocvar_g_balance_nexball_primary_speed * mul, FALSE));
+    DropBall(ball, w_shotorg, W_CalculateProjectileVelocity(self.velocity, w_shotdir * autocvar_g_balance_nexball_primary_speed * mul, FALSE));
        
 
        //TODO: use the speed_up cvar too ??
@@ -736,6 +729,14 @@ void W_Nexball_Attack(float t)
 
 void W_Nexball_Attack2(void)
 {
+       if(ball.enemy)
+       {
+        ball.think = W_Nexball_Think;
+        ball.nextthink = time;
+           DropBall(ball, w_shotorg, trigger_push_calculatevelocity(ball.origin, ball.enemy, 32));
+           return;
+       }
+
        entity missile;
        if(!(balls & BALL_BASKET))
                return;