X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fclientcommands.qc;h=7f52f8f8c951fe3161eee840a2fcaf2d1dcab53c;hp=1c8b59facee90ba1228724239a499e5c4961d243;hb=d7931068ce37d3f05c0f4e4f052ff8e43ac9f0e4;hpb=23fc0e8dbdfe468cbac2b79e14e03445a9996fd0 diff --git a/qcsrc/server/clientcommands.qc b/qcsrc/server/clientcommands.qc index 1c8b59face..7f52f8f8c9 100644 --- a/qcsrc/server/clientcommands.qc +++ b/qcsrc/server/clientcommands.qc @@ -363,6 +363,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) @@ -377,7 +380,7 @@ void SV_ParseClientCommand(string s) { } //clientcommand(self, formatmessage(s)); } else if(cmd_name == "info") { - cmd_name = cvar_string_builtin(strcat("sv_info_", argv(1))); // This needed fixed for the cvar check + cmd_name = builtin_cvar_string(strcat("sv_info_", argv(1))); // This needed fixed for the cvar check if(cmd_name == "") sprint(self, "ERROR: unsupported info command\n"); else