]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/command/cl_cmd.qc
Commands: move dump commands to their respective systems
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / command / cl_cmd.qc
index b5980e216f1715d88a4af1b17e7bcb2dfd8ef228..88cd246ff106fe5246ad3de4b721ced2e1fd80bf 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "../../common/command/generic.qh"
 
-void DrawDebugModel()
+void DrawDebugModel(entity this)
 {
        if(time - floor(time) > 0.5)
        {
@@ -82,7 +82,7 @@ void LocalCommand_boxparticles(int request, int argc)
                {
                        if (argc == 9)
                        {
-                               int effect = particleeffectnum(argv(1));
+                               int effect = _particleeffectnum(argv(1));
                                if (effect >= 0)
                                {
                                        int index = stoi(argv(2));
@@ -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;
                }