From cf73aed8769663e5dd093949e90a15909fc1442f Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 9 Feb 2021 18:45:41 +0100 Subject: [PATCH] Improve 'bot_cmd help' output --- qcsrc/server/bot/default/scripting.qc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 -- 2.39.2