From c4e5adb4a6ca7e6af370ec3b8a955eba0920868f Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Tue, 22 May 2012 17:32:01 +0300 Subject: [PATCH] Use an origin code which is closer to the correct rotation. The train will aim toward the next point while standing now, but it still doesn't seem to reach full rotation before carrying on --- qcsrc/server/t_plats.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 6ac02df66f..de1243ecbb 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -267,8 +267,10 @@ void train_wait() if(self.spawnflags & 1 && self.bezier_turn && self.wait >= 0) { entity targ; + vector org; targ = find(world, targetname, self.target); - SUB_CalcAngleMove(targ.origin, TSPEED_TIME, self.ltime - time + self.wait, train_wait); + org = vectoangles(targ.origin); + SUB_CalcAngleMove(org, TSPEED_TIME, self.ltime - time + self.wait, train_wait); self.train_wait_turning = TRUE; return; } -- 2.39.2