projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7008dcc
)
Make the controller entity for moving platforms QC-driven
author
Mario <mario.mario@y7mail.com>
Sun, 27 Nov 2022 16:42:05 +0000
(
02:42
+1000)
committer
Mario <mario.mario@y7mail.com>
Sun, 27 Nov 2022 16:42:05 +0000
(
02:42
+1000)
qcsrc/common/mapobjects/subs.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/mapobjects/subs.qc
b/qcsrc/common/mapobjects/subs.qc
index 9c59fbf5f92ad0bb11bb74d00a5c1bd5081e1345..51819e64ae6085914879d0dea52d2469e1d713f6 100644
(file)
--- 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;