From: terencehill Date: Tue, 9 Feb 2021 17:45:41 +0000 (+0100) Subject: Improve 'bot_cmd help' output X-Git-Tag: xonotic-v0.8.5~560^2~7 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=cf73aed8769663e5dd093949e90a15909fc1442f;p=xonotic%2Fxonotic-data.pk3dir.git Improve 'bot_cmd help' output --- diff --git a/qcsrc/server/bot/default/scripting.qc b/qcsrc/server/bot/default/scripting.qc index a20f98fda..c904c5db4 100644 --- a/qcsrc/server/bot/default/scripting.qc +++ b/qcsrc/server/bot/default/scripting.qc @@ -346,7 +346,7 @@ void bot_cmdhelp(string scmd) switch(ntype) { case BOT_CMD_PARAMETER_FLOAT: - stype = "float number"; + stype = "float"; break; case BOT_CMD_PARAMETER_STRING: stype = "string"; @@ -449,17 +449,14 @@ void bot_list_commands() if(!bot_cmds_initialized) bot_commands_init(); - LOG_INFO( - "List of all available commands:\n" - " Command - Parameter Type\n" - ); + LOG_HELP("Bot commands:"); for(i=1;i"); + if (ptype != "none") + LOG_HELP(" ^2", bot_cmd_string[i]," ^7<", ptype, ">"); + else + LOG_HELP(" ^2", bot_cmd_string[i]); } + LOG_HELP("For help about a specific command, type bot_cmd help "); } // Commands code