From: Rudolf Polzer Date: Sat, 10 Dec 2011 11:04:09 +0000 (+0100) Subject: add a "selfstuff" clientcommand to embed stuff into a demo X-Git-Tag: xonotic-v0.6.0~35^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f70fc75efefd04073372a0afd06bc10db966a13e;p=xonotic%2Fxonotic-data.pk3dir.git add a "selfstuff" clientcommand to embed stuff into a demo --- 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)