From f70fc75efefd04073372a0afd06bc10db966a13e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 10 Dec 2011 12:04:09 +0100 Subject: [PATCH] add a "selfstuff" clientcommand to embed stuff into a demo --- qcsrc/server/clientcommands.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/clientcommands.qc b/qcsrc/server/clientcommands.qc index 3deddf801..b62f34f23 100644 --- a/qcsrc/server/clientcommands.qc +++ b/qcsrc/server/clientcommands.qc @@ -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) -- 2.39.2