From: Erik Schilling Date: Mon, 10 Sep 2012 11:58:02 +0000 (+0200) Subject: Added offset to nexball passing. X-Git-Tag: xonotic-v0.7.0~241^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ee38f24e7f826379d2aacd5a80826efc2e795cd8;p=xonotic%2Fxonotic-data.pk3dir.git Added offset to nexball passing. Before the ball was passed to the height of feets --- diff --git a/qcsrc/server/mutators/gamemode_nexball.qc b/qcsrc/server/mutators/gamemode_nexball.qc index ec8de781e..145b83ee4 100644 --- a/qcsrc/server/mutators/gamemode_nexball.qc +++ b/qcsrc/server/mutators/gamemode_nexball.qc @@ -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;