From 97ef0274ae20983fc4c1c9707698ea24fb7ecb31 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 24 May 2012 21:59:26 +0300 Subject: [PATCH] Get the correct formula for the still rotations. Just needs a few adjustments and angle flipping --- qcsrc/server/t_plats.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 != "") -- 2.39.2