From: Mircea Kitsune Date: Sun, 30 Oct 2011 11:13:04 +0000 (+0200) Subject: Add object_info attachments to the helper and menu X-Git-Tag: xonotic-v0.6.0~35^2~18^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d891ad284c7f42356b2f6a220990ed5a6885893d;p=xonotic%2Fxonotic-data.pk3dir.git Add object_info attachments to the helper and menu --- diff --git a/qcsrc/menu/xonotic/dialog_sandboxtools.c b/qcsrc/menu/xonotic/dialog_sandboxtools.c index 46f6a03ae..1ef62c6d0 100644 --- a/qcsrc/menu/xonotic/dialog_sandboxtools.c +++ b/qcsrc/menu/xonotic/dialog_sandboxtools.c @@ -75,7 +75,8 @@ void XonoticSandboxToolsDialog_fill(entity me) me.TR(me); me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* object info"), '0 0 0', "sandbox object_info object; toggleconsole", 0)); me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* mesh info"), '0 0 0', "sandbox object_info mesh; toggleconsole", 0)); - me.TDempty(me, 1); + me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* attachment info"), '0 0 0', "sandbox object_info attachments; toggleconsole", 0)); + me.TDempty(me, 0.5); me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Show help"), '1 0 0', "sandbox help; toggleconsole", 0)); me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("* is the object you are facing"))); diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 29091af2f..2a38941d2 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -409,6 +409,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) print_to(self, "^7\"^2object_info ^3value^7\" shows public information about the object"); print_to(self, "^3object ^7- prints general information about the object, such as owner and creation / editing date"); print_to(self, "^3mesh ^7- prints information about the object's mesh, including skeletal bones"); + print_to(self, "^3attachments ^7- prints information about the object's attachments"); print_to(self, "^7The ^1drag object ^7key can be used to grab and carry objects. Players can only grab their own objects"); return TRUE; @@ -672,7 +673,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) print_to(self, strcat("^2SANDBOX - INFO: ^7Object mesh is \"^3", e.model, "^7\" at animation frame ^3", ftos(e.frame), " ^7containing the following tags: ", s)); return TRUE; case "attachments": - // should show the same info as "mesh" but for attachments + // this should show the same info as 'mesh' but for attachments entity head; for(head = world; (head = find(head, classname, "object")); ) {