add a small offset to final destination to avoid player unstuck messages when doing...
authorMaik Merten <maikmerten@googlemail.com>
Tue, 7 Dec 2010 20:14:09 +0000 (21:14 +0100)
committerMaik Merten <maikmerten@googlemail.com>
Tue, 7 Dec 2010 20:14:09 +0000 (21:14 +0100)
qcsrc/server/g_subs.qc

index fe7a7e29f0feb44bf5ccc49b98eae106b182f286..e3c2e1225bf18257ccc5a6f7ca869395a15775fe 100644 (file)
@@ -260,7 +260,7 @@ void SUB_CalcMove (vector tdest, float tspeed, void() func)
        controller.classname = "SUB_CalcMove_controller";
        controller.owner = self;
        controller.origin = self.origin; // starting point
-       controller.finaldest = tdest; // where do we want to end?
+       controller.finaldest = (tdest + '0 0 1'); // where do we want to end? Offset to overshoot a bit.
        controller.destvec = delta;
        controller.animstate_starttime = time;
        controller.animstate_endtime = time + traveltime;