]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Lots of updates to cl_cmd.qc
authorSamual <samual@xonotic.org>
Sat, 17 Dec 2011 14:58:46 +0000 (09:58 -0500)
committerSamual <samual@xonotic.org>
Sat, 17 Dec 2011 14:58:46 +0000 (09:58 -0500)
qcsrc/client/command/cl_cmd.qc
qcsrc/client/command/cl_cmd.qh
qcsrc/client/scoreboard.qc

index ba327793d37a4b6c67c23ec0c68e6dda02dd84bf..97896137ccf3c1834b3eddbe25cebbe03eb17fb8 100644 (file)
@@ -199,42 +199,42 @@ void LocalCommand_hud(float request, float argc) // TODO: Add aliases in command
                                        }
                                }
                                
-                               case "radar":
+                               case "scoreboard_columns_set":
                                {
-                                       if(argv(2))
-                                               hud_panel_radar_maximized = (stof(argv(2)) != 0);
-                                       else
-                                               hud_panel_radar_maximized = !hud_panel_radar_maximized;
+                                       Cmd_HUD_SetFields(argc); 
                                        
                                        return;
                                }
-                               
-                               case "scoreboard_columns_set":
+
+                               case "scoreboard_columns_help":
                                {
-                                       Cmd_HUD_SetFields(argc); // todo update this function
+                                       Cmd_HUD_Help();
                                        
                                        return;
                                }
-
-                               case "scoreboard_columns_help":
+                               
+                               case "radar":
                                {
-                                       Cmd_HUD_Help(argc); // todo update this function
+                                       if(argv(2))
+                                               hud_panel_radar_maximized = (stof(argv(2)) != 0);
+                                       else
+                                               hud_panel_radar_maximized = !hud_panel_radar_maximized;
                                        
                                        return;
                                }
                        }
-                       return; 
                }
                        
                default:
                        print("Incorrect parameters for ^2hud^7\n");
                case CMD_REQUEST_USAGE:
                {
-                       print("\nUsage:^3 cl_cmd hud action [configname | radartoggle]\n");
+                       print("\nUsage:^3 cl_cmd hud action [configname | radartoggle | layout]\n");
                        print("  Where 'action' is the command to complete,\n");
                        print("  'configname' is the name to save to for \"save\" action,\n");
-                       print("  and 'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action.\n");
-                       print("  Full list of commands here: \"configure, save, radar.\"\n");
+                       print("  'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action,\n");
+                       print("  and 'layout' is how to organize the scoreboard columns for the set action.\n");
+                       print("  Full list of commands here: \"configure, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
                        return;
                }
        }
@@ -254,7 +254,7 @@ void LocalCommand_mv_download(float request, float argc)
                default:
                case CMD_REQUEST_USAGE:
                {
-                       print("\nUsage:^3 cl_cmd mapvote_download mapid\n");
+                       print("\nUsage:^3 cl_cmd mv_download mapid\n");
                        print("  Where 'mapid' is the id number of the map to request an image of on the map vote selection menu.\n");
                        return;
                }
index 17238b94ab60d759fe038803aac7f943db8b4aa0..6e562af9258023b92a260724d3475ea468f6e1e0 100644 (file)
@@ -1,10 +1,7 @@
 // ==============================================
 //  CSQC client commands code, written by Samual
-//  Last updated: November 26th, 2011
+//  Last updated: December 17th, 2011
 // ==============================================
 
 void Cmd_HUD_SetFields(float);
-void Cmd_HUD_Help(float);
-
-.vector view_ofs;
-entity debug_shotorg;
\ No newline at end of file
+void Cmd_HUD_Help();
\ No newline at end of file
index 7d452713be745e835f1b5e159842f3569c0495da..f560bb12f46f5e00bb7e4e35d9694965579fe1f9 100644 (file)
@@ -234,7 +234,7 @@ void HUD_UpdateTeamPos(entity Team)
        }
 }
 
-void Cmd_HUD_Help(float argc)
+void Cmd_HUD_Help()
 {
        print(_("You can modify the scoreboard using the ^2scoreboard_columns_set command.\n"));
        print(_("^3|---------------------------------------------------------------|\n"));