From: Mario Date: Sun, 27 Nov 2022 16:42:05 +0000 (+1000) Subject: Make the controller entity for moving platforms QC-driven X-Git-Tag: xonotic-v0.8.6~230^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=56f4264ecb1253320e4ad99884a90f114c6251fe;p=xonotic%2Fxonotic-data.pk3dir.git Make the controller entity for moving platforms QC-driven --- diff --git a/qcsrc/common/mapobjects/subs.qc b/qcsrc/common/mapobjects/subs.qc index 9c59fbf5f..51819e64a 100644 --- a/qcsrc/common/mapobjects/subs.qc +++ b/qcsrc/common/mapobjects/subs.qc @@ -241,6 +241,7 @@ void SUB_CalcMove_Bezier (entity this, vector tcontrol, vector tdest, float tspe delete(this.move_controller); } controller = new_pure(SUB_CalcMove_controller); + set_movetype(controller, MOVETYPE_NONE); // mark the entity as physics driven so that thinking is handled by QC controller.owner = this; this.move_controller = controller; controller.platmovetype = this.platmovetype;