From: Mircea Kitsune Date: Tue, 22 May 2012 13:13:08 +0000 (+0300) Subject: Don't use target2 for the curve point, use another field called curve. This is to... X-Git-Tag: xonotic-v0.8.0~295^2~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28aa2438ab97a7e167bedc59b123ce3d2035d1f8;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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