From: Mircea Kitsune Date: Sun, 30 Oct 2011 09:59:00 +0000 (+0200) Subject: Add the object_info object command, which will print all this information to the... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bdab721c96827a35cf24e198e9d015be3037601b;p=xonotic%2Fxonotic-data.pk3dir.git Add the object_info object command, which will print all this information to the player asking for it --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 9e779eaec..630d55d4c 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -669,6 +669,9 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) tags = strcat(tags, "^5", gettaginfo_name, "^7, "); print_to(self, strcat("^2SANDBOX - INFO: ^7Object mesh is ^3", e.model, "^7 at animation frame ^3", ftos(e.frame), " ^7containing the following tags: ", tags)); return TRUE; + case "object": + print_to(self, strcat("^2SANDBOX - INFO: ^7Object is owned by ^7", e.netname, "^7, created ^3", e.message, "^7, last edited ^3", e.message2)); + return TRUE; } } print_to(self, "^1SANDBOX - WARNING: ^7No information could not be found. Make sure you are facing an object");