string msg = MakeConsoleSafe(strreplace("\n", "\\n", welcome_msg));
welcomedialog_args = strcat(welcomedialog_args, " WELCOME \"", msg, "\"");
localcmd("\nmenu_cmd directmenu Welcome ", welcomedialog_args, "\n");
- if (intermission || isdemo()) // close it after it's been initialized so it can still be opened manually
+ if (intermission || isdemo() || !autocvar_cl_welcome)
+ // close it after it's been initialized so it can still be opened manually
localcmd("\ntogglemenu 0\n");
}
bool autocvar_developer_csqcentities;
bool autocvar_cl_race_cptimes_onlyself; // TODO: move to race gamemode
bool autocvar_cl_race_cptimes_showself = false;
+bool autocvar_cl_welcome = true;
// Map coordinate base calculations need these
vector mi_center;
alias -show_info1 ""
alias +show_info +show_info$_menu_welcome_dialog_available
alias -show_info -show_info$_menu_welcome_dialog_available
+seta cl_welcome 1 "1: show the Welcome dialog when connecting; 0: show it only when +show_info keybind is pressed"
// merge lightmaps up to 2048x2048 textures
mod_q3bsp_lightmapmergepower 4