]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a "selfstuff" clientcommand to embed stuff into a demo
authorRudolf Polzer <divverent@xonotic.org>
Sat, 10 Dec 2011 11:04:09 +0000 (12:04 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 10 Dec 2011 11:04:09 +0000 (12:04 +0100)
qcsrc/server/clientcommands.qc

index 3deddf80164c92ceb6269ea35f78e5a538d17fd9..b62f34f23320de68f6e46cf0dbe4ce8b366244f5 100644 (file)
@@ -355,6 +355,9 @@ void SV_ParseClientCommand(string s) {
                if(cmd_argc >= 2)
                        Say(self, TRUE, world, substring(s, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), 1);
                //clientcommand(self, formatmessage(s));
+       } else if(cmd_name == "selfstuff") {
+               // this command mainly serves to embed a command to be executed into a demo (HINT: use settemp)
+               stuffcmd(self, substring(s, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)));
        } else if(cmd_name == "tell") {
                e = GetCommandPlayerSlotTargetFromTokenizedCommand(cmd_argc, 1);
                if(e && cmd_argc > ParseCommandPlayerSlotTarget_firsttoken)