From: Mircea Kitsune Date: Thu, 24 May 2012 18:59:26 +0000 (+0300) Subject: Get the correct formula for the still rotations. Just needs a few adjustments and... X-Git-Tag: xonotic-v0.8.0~295^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=97ef0274ae20983fc4c1c9707698ea24fb7ecb31;p=xonotic%2Fxonotic-data.pk3dir.git Get the correct formula for the still rotations. Just needs a few adjustments and angle flipping --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index f335af709..9c0d057b0 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -310,9 +310,9 @@ void train_wait() cp = world; if(cp) // bezier curves movement - org = normalize(cp.origin - (self.origin - self.mins)); // use the origin of the control point of the next path_corner + org = vectoangles(cp.origin - self.origin); // use the origin of the control point of the next path_corner else // linear movement - org = normalize(targ.origin - (self.origin - self.mins)); // use the origin of the next path_corner + org = vectoangles(targ.origin - self.origin); // use the origin of the next path_corner if(self.wait >= 0) // slow turning { @@ -321,7 +321,7 @@ void train_wait() return; } else // instant turning - self.angles = vectoangles(org); + self.angles = org; } if(self.noise != "")