]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get the correct formula for the still rotations. Just needs a few adjustments and...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 18:59:26 +0000 (21:59 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 18:59:26 +0000 (21:59 +0300)
qcsrc/server/t_plats.qc

index f335af7095d071b4d21c581c225dcb1e03f74617..9c0d057b03a31a33ff5b04db8334d72535dc446c 100644 (file)
@@ -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 != "")