]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make the controller entity for moving platforms QC-driven
authorMario <mario.mario@y7mail.com>
Sun, 27 Nov 2022 16:42:05 +0000 (02:42 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 27 Nov 2022 16:42:05 +0000 (02:42 +1000)
qcsrc/common/mapobjects/subs.qc

index 9c59fbf5f92ad0bb11bb74d00a5c1bd5081e1345..51819e64ae6085914879d0dea52d2469e1d713f6 100644 (file)
@@ -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;