X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fcommand%2Fcl_cmd.qc;h=88cd246ff106fe5246ad3de4b721ced2e1fd80bf;hp=34e891cca23b6a617927e6d6c354aceb92f59700;hb=14a31565a2bc3c9a8871e6b3e768c68f7e58eda5;hpb=b557753cb5b1d9c92ef9ab17cb03d74bcbb75485 diff --git a/qcsrc/client/command/cl_cmd.qc b/qcsrc/client/command/cl_cmd.qc index 34e891cca..88cd246ff 100644 --- a/qcsrc/client/command/cl_cmd.qc +++ b/qcsrc/client/command/cl_cmd.qc @@ -20,7 +20,7 @@ #include "../../common/command/generic.qh" -void DrawDebugModel() +void DrawDebugModel(entity this) { if(time - floor(time) > 0.5) { @@ -174,7 +174,7 @@ void LocalCommand_debugmodel(int request, int argc) debugmodel_entity = spawn(); precache_model(modelname); - setmodel(debugmodel_entity, modelname); + _setmodel(debugmodel_entity, modelname); setorigin(debugmodel_entity, view_origin); debugmodel_entity.angles = view_angles; debugmodel_entity.draw = DrawDebugModel; @@ -254,6 +254,15 @@ void LocalCommand_hud(int request, int argc) return; } + case "quickmenu": + { + if(QuickMenu_IsOpened()) + QuickMenu_Close(); + else + QuickMenu_Open(argv(2), argv(3)); // mode, submenu + return; + } + case "minigame": { if(HUD_MinigameMenu_IsOpened()) @@ -314,6 +323,9 @@ void LocalCommand_hud(int request, int argc) LOG_INFO(" 'configname' is the name to save to for \"save\" action,\n"); LOG_INFO(" 'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action,\n"); LOG_INFO(" and 'layout' is how to organize the scoreboard columns for the set action.\n"); + LOG_INFO(" quickmenu [[default | file | \"\"] submenu]\n"); + LOG_INFO(" Called without options (or with "") loads either the default quickmenu or a quickmenu file if hud_panel_quickmenu_file is set to a valid filename.\n"); + LOG_INFO(" Submenu option allows to open quickmenu directly in a submenu, it requires to specify 'default', 'file' or '\"\"' option.\n"); LOG_INFO(" Full list of commands here: \"configure, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n"); return; }