]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
bot_cmd: update usage example of the cc subcommand. Use the BOLD macro in 2 Survival...
authorterencehill <piuntn@gmail.com>
Mon, 12 Jun 2023 14:56:56 +0000 (16:56 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 12 Jun 2023 14:56:56 +0000 (16:56 +0200)
qcsrc/common/notifications/all.inc
qcsrc/server/bot/default/scripting.qc
qcsrc/server/command/sv_cmd.qc

index effed26d98f90084dd53d1afb8da23e5db5664a5..e2bb94aedf54e55822df0957f16ed2c791678eef 100644 (file)
@@ -785,9 +785,9 @@ string multiteam_info_sprintf(string input, string teamname) { return ((input !=
     MSG_CENTER_NOTIF(SUPERWEAPON_LOST,                  N_ENABLE,    0, 0, "",               CPID_POWERUP,           "0 0",  _("^F2Superweapons have been lost"), "")
     MSG_CENTER_NOTIF(SUPERWEAPON_PICKUP,                N_ENABLE,    0, 0, "",               CPID_POWERUP,           "0 0",  _("^F2You now have a superweapon"), "")
 
-    MSG_CENTER_NOTIF(SURVIVAL_HUNTER,                   N_ENABLE,    0, 0, "",               CPID_SURVIVAL,          "5 0",  strcat(BOLD_OPERATOR, _("^BGYou are a ^K1hunter^BG! Eliminate the survivor(s) without raising suspicion!")), "")
+    MSG_CENTER_NOTIF(SURVIVAL_HUNTER,                   N_ENABLE,    0, 0, "",               CPID_SURVIVAL,          "5 0",  BOLD(_("^BGYou are a ^K1hunter^BG! Eliminate the survivor(s) without raising suspicion!")), "")
     MSG_CENTER_NOTIF(SURVIVAL_HUNTER_WIN,               N_ENABLE,    0, 0, "",               CPID_ROUND,             "0 0",  _("^K1Hunters^BG win the round"), "")
-    MSG_CENTER_NOTIF(SURVIVAL_SURVIVOR,                 N_ENABLE,    0, 0, "",               CPID_SURVIVAL,          "5 0",  strcat(BOLD_OPERATOR, _("^BGYou are a ^F1survivor^BG! Identify and eliminate the hunter(s)!")), "")
+    MSG_CENTER_NOTIF(SURVIVAL_SURVIVOR,                 N_ENABLE,    0, 0, "",               CPID_SURVIVAL,          "5 0",  BOLD(_("^BGYou are a ^F1survivor^BG! Identify and eliminate the hunter(s)!")), "")
     MSG_CENTER_NOTIF(SURVIVAL_SURVIVOR_WIN,             N_ENABLE,    0, 0, "",               CPID_ROUND,             "0 0",  _("^F1Survivors^BG win the round"), "")
 
     MULTITEAM_CENTER(TEAMCHANGE,                        N_ENABLE,    0, 1, "",               CPID_TEAMCHANGE,        "1 f1", _("^K1Changing to ^TC^TT^K1 in ^COUNT"), "", NAME)
index 5a13330652f576268b6ce42a2939716d4517a66f..4ad6246e611a797a821a0fb63ae7d78900cac2f0 100644 (file)
@@ -390,7 +390,7 @@ void bot_cmdhelp(string scmd)
                                desc = "Resets the goal stack";
                                break;
                        case BOT_CMD_CC:
-                               desc = "Execute client command. Examples: cc \"say something\"; cc god; cc \"name newnickname\"; cc kill;";
+                               desc = "Execute client command. Examples: cc say something; cc god; cc name newnickname; cc kill;";
                                break;
                        case BOT_CMD_IF:
                                desc = "Perform simple conditional execution.\n"
index 61861acbb2ac47f7f8212b57c277f356899d27d6..f05edfcb5a670225986eb18ae6f679645d540c9b 100644 (file)
@@ -465,7 +465,7 @@ void GameCommand_bot_cmd(int request, int argc, string command)
                        LOG_HELP("  <client> can be either the name of the bot or a progressive number (not the entity number!)");
                        LOG_HELP("           can also be '*' or 'all' to allow sending the command to all the bots");
                        LOG_HELP("  For full list of commands, see bot_cmd help [<command>].");
-                       LOG_HELP("Examples: sv_cmd bot_cmd 1 cc \"say something\"");
+                       LOG_HELP("Examples: sv_cmd bot_cmd 1 cc say something");
                        LOG_HELP("          sv_cmd bot_cmd 1 presskey jump");
                        LOG_HELP("          sv_cmd bot_cmd * pause");
                        return;