From: Mircea Kitsune Date: Sat, 29 Oct 2011 10:59:06 +0000 (+0300) Subject: Name the info command "mesh", and allow it to list both model, andimation frame,... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b286c095a20457b4eb5a02f6c22ee59655395e0a;p=xonotic%2Fxonotic-data.pk3dir.git Name the info command "mesh", and allow it to list both model, andimation frame, and tags. People can then know the model and frame of any object, which can be helpful with building --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 86e48936e..e68a24a20 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -601,11 +601,11 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) { switch(argv(2)) { - case "taginfo": + case "mesh": string tags; for(i = 0; gettaginfo(e, i); i++) tags = strcat(tags, "^5", gettaginfo_name, "^7, "); - print_to(self, strcat("^2SANDBOX - INFO: ^7Tag information for ^3", e.model, "^7: ", tags)); + 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; } }