]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Added offset to nexball passing.
authorErik Schilling <ablu.erikschilling@googlemail.com>
Mon, 10 Sep 2012 11:58:02 +0000 (13:58 +0200)
committerErik Schilling <ablu.erikschilling@googlemail.com>
Mon, 10 Sep 2012 17:52:10 +0000 (19:52 +0200)
Before the ball was passed to the height of feets

qcsrc/server/mutators/gamemode_nexball.qc

index ec8de781e257fa754167f2c028c3e6c5dc5ea3cc..145b83ee41e03377a2aef7ec821000ad59fd1f64 100644 (file)
@@ -653,7 +653,7 @@ void W_Nexball_Think()
 {
     //dprint("W_Nexball_Think\n");
     //vector new_dir = steerlib_arrive(self.enemy.origin, 2500);
-    vector new_dir = normalize(self.enemy.origin - self.origin);
+    vector new_dir = normalize(self.enemy.origin + '0 0 50' - self.origin);
     vector old_dir = normalize(self.velocity);     
     float _speed = vlen(self.velocity);    
     vector new_vel = normalize(old_dir + (new_dir * autocvar_g_nexball_safepass_turnrate)) * _speed;