]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix curvetarget rename, and remove useless commented out code of the old platform...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:17:16 +0000 (18:17 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:17:16 +0000 (18:17 +0300)
qcsrc/server/defs.qh
qcsrc/server/g_subs.qc

index 71620c9dcecb0d86d9a41208f56817ede5f07875..5cafe8892bbe73c527c8f6053997697115567123 100644 (file)
@@ -529,7 +529,7 @@ void target_voicescript_clear(entity pl);
 .string target2;
 .string target3;
 .string target4;
-.string curve;
+.string curvetarget;
 .float target_random;
 .float trigger_reverse;
 
index 31bbeb6bcbf9a01e77f1ce3c6a2e15c3656ccb21..0c1eff197d6e21134f0489f3920c8ee263bd26b5 100644 (file)
@@ -189,29 +189,6 @@ void SUB_CalcMove_controller_think (void)
                traveltime = self.animstate_endtime - self.animstate_starttime;
                phasepos = (nexttick - self.animstate_starttime) / traveltime; // range: [0, 1]
                phasepos = cubic_speedfunc(self.platmovetype_start, self.platmovetype_end, phasepos);
-
-               /* switch(self.platmovetype)
-               {
-                       case 1: // linear
-                               break;
-                               // phasepos = cubic_speedfunc(1, 1, phasepos); // identity
-                       case 2: // cosine
-                               // phasepos = (1 - cos(phasepos * 3.14159265)) / 2;
-                               phasepos = cubic_speedfunc(0, 0, phasepos);
-                               break;
-                       case 3: // inverted cosine
-                               // phasepos = acos(1 - phasepos * 2) / 3.14159265;
-                               phasepos = cubic_speedfunc(2, 2, phasepos);
-                               break;
-                       case 4: // half cosine
-                               // phasepos = (1 - cos(phasepos * (3.14159265 / 2)));
-                               phasepos = cubic_speedfunc(0, 1.5, phasepos);
-                               break;
-                       case 5: // inverted half cosine
-                               // phasepos = sin(phasepos * (3.14159265 / 2));
-                               phasepos = cubic_speedfunc(1.5, 0, phasepos);
-                               break;
-               } */
                nextpos = self.origin + (delta * phasepos) + (delta2 * phasepos * phasepos);
                // derivative: delta + 2 * delta2 * phasepos (e.g. for angle positioning)