From 28aa2438ab97a7e167bedc59b123ce3d2035d1f8 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Tue, 22 May 2012 16:13:08 +0300 Subject: [PATCH] Don't use target2 for the curve point, use another field called curve. This is to avoid conflicting or limiting the 4 target triggers, as well as allowing netRadiant later on to draw the bezier curve line in order to preview it --- qcsrc/server/defs.qh | 1 + qcsrc/server/t_plats.qc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index fe1b00b9a..de814316c 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -528,6 +528,7 @@ void target_voicescript_clear(entity pl); .string target2; .string target3; .string target4; +.string curve; .float target_random; .float trigger_reverse; diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index d6b39768b..1fa075e15 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -298,7 +298,7 @@ void train_next() if (self.spawnflags & 1) { cp = find(world, target, targ.targetname); // get the previous corner first - cp = find(world, targetname, cp.target2); // now get its second target (the control point) + cp = find(world, targetname, cp.curve); // now get its second target (the control point) if(cp.targetname == "") cp_org = targ.origin - self.mins; // no control point found, assume a straight line to the destination else -- 2.39.2