]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Reimplement the ability to override engine commands with QC commands
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 24 Jan 2023 00:11:40 +0000 (10:11 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 24 Jan 2023 00:11:40 +0000 (10:11 +1000)
commit3912e78a6047f2c45b3ff4967df7a68ad4e1b994
tree920666fb5c8a9eb9a2454223677431c8c433f8b8
parent025fbac31da7f654e296e20b3037b5ce88074f8b
Reimplement the ability to override engine commands with QC commands

This was working in div0-stable and was removed in 46acef5491629d06eddb8e78ed01e50b175d2bd8

Due to previous improvements by LH & Cloudwalk, the behaviour is now better:
the new QC command appears in the console in addition to the engine one,
the new command takes priority and what's going on is clearer.
When the CSQC VM shuts down, the registered command is removed.

Also this time we can has documentation.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
clvm_cmds.c
cmd.c
cmd.h
dpdefs/dpextensions.qc
mvm_cmds.c
svvm_cmds.c