]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu/gamecommand.qc
now using DP_SV_CMD/DP_QC_CMD; removed cvar abuse by g_maplist_add etc. and changed...
[divverent/nexuiz.git] / data / qcsrc / menu / gamecommand.qc
1 void GameCommand_Init()
2 {
3         // make gg call menu QC commands
4         localcmd("alias qc_cmd \"menu_cmd $*\"\n");
5 }
6
7 void GameCommand(string command)
8 {
9         float argc;
10         argc = tokenize(command);
11
12         if(argv(0) == "help" || argc == 0)
13         {
14                 print("Usage: menu_cmd COMMAND..., where possible commands are:\n");
15                 GameCommand_Generic("help");
16                 return;
17         }
18
19         if(GameCommand_Generic(command))
20                 return;
21
22         print("Invalid command. For a list of supported commands, try menu_cmd help.\n");
23 }