]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/data/server.menu
Commit round I. Im too tired to write the selector and maplist reset code right now...
[divverent/nexuiz.git] / scmenu / data / server.menu
1 // Property of Alientrap
2 //
3 // data/server.menu
4
5 Item DataContainer Server
6 {
7         Item DataContainer Map
8         {
9                 Item Data_Container Query
10                 {
11                         defValue        "maps/*.mapcfg"
12                         value "maps/*.mapcfg"
13
14                         Item DataLink_TextSwitch Switch
15                         {
16                                 valueList       "'maps/*.mapcfg' 'maps/dm_*.mapcfg' 'maps/tdm_*.mapcfg' 'maps/dom_*.mapcfg' 'maps/ctf_*.mapcfg' 'maps/rune_*.mapcfg'"
17                                 descList        "'List All''Classic Deathmatch''Team Deathmatch''Domination''Capture The Flag''Rune Match'"
18
19                                 link            "##up"
20                         }
21                 }
22                 Item Nex_MapDB DataBase
23                 {
24                 }
25                 // for the < > map selection in the basic options
26                 Item DataLink_Nex_MapList Selector
27                 {
28                         init    Item_DataLink_Nex_MapList_InitWithMapList
29                 }
30                 // for the map list in map cycle
31                 Item DataLink_Nex_MapList List
32                 {
33                         init    Item_DataLink_Nex_MapList_InitWithMapList
34                 }
35                 Item DataLink_Nex_MapList Cycle
36                 {
37                         // creates x and x_index (CVAR_SAVE)
38                         cvarName        "g_maplist"
39                 }
40         }
41
42         Item Data_Cvar Hostname
43         {
44                 cvarName        "hostname"
45                 defValue        "Nexuiz Server"
46
47                 Item DataLink_Text Text
48                 {
49                         link            "##up"
50                         maxValue        64
51                 }
52         }
53         Item Data_CvarCreateSave MaxPlayers
54         {
55                 cvarName        "_nex_maxplayers"
56                 defValue        8
57
58                 Item DataLink_Value Value
59                 {
60                         link            "##up"
61                         minValue        1
62                         stepValue       1
63                         maxValue        32
64                 }
65                 Item DataLink_Text Text
66                 {
67                         link            "##down"
68                         maxValue        5
69
70                         Item DataLink_TextValue TextValue
71                         {
72                                 link    "##up prev"
73                         }
74                 }
75         }
76         Item Data_Cvar TimeLimit
77         {
78                 cvarName        "timelimit_override"
79                 defValue        0
80
81                 Item DataLink_Value Value
82                 {
83                         maxValue        86400
84                         link            "##up"
85                 }
86                 Item DataLink_Text Text
87                 {
88                         maxValue        8
89                         link            "##down"
90
91                         Item DataLink_TextTime TextTime
92                         {
93                                 link    "##up prev"
94                         }
95                 }
96         }
97         Item Data_Cvar FragLimit
98         {
99                 cvarName        "fraglimit_override"
100                 defValue        20
101
102                 [DataLink_Setting]
103         }
104         Item Data_Cvar ServerProgs
105         {
106                 cvarName        "sv_progs"
107                 defValue        "progs.dat"
108
109                 Item DataLink_Nex_ModSwitch Switch
110                 {
111                         link    "##up"
112                 }
113         }
114         Item Data_Cvar GameMode
115         {
116                 cvarName        "gamecfg"
117                 // from 1 to 4
118                 defValue        1
119
120                 Item DataLink_ValueSwitch Switch
121                 {
122                         minValue        1
123                         stepValue       1
124                         maxValue        4
125                         descList        "'Classic Deathmatch''Team Deathmatch''Domination''Capture The Flag'"
126
127                         link            "##up"
128                 }
129         }
130         Item Data_CvarCreateSave NumBots
131         {
132                 cvarName        "bot_number"
133                 defValue        0
134
135                 Item DataLink_Value Value
136                 {
137                         minValue        0
138                         stepValue       1
139                         maxValue        64
140
141                         link            "##up"
142                 }
143                 Item DataLink_Text Text
144                 {
145                         maxValue        5
146                         link            "##down"
147
148                         Item DataLink_TextValue TextValue
149                         {
150                                 link    "##up prev"
151                         }
152                 }
153         }
154         Item Data_CvarCreateSave BotSkill
155         {
156                 // TODO: add support for this in FrikQcc
157                 cvarName        "skill"
158                 // from 0 to 10
159                 defValue        5
160
161                 Item DataLink_ValueSwitch Switch
162                 {
163                         minValue        0
164                         stepValue       1
165                         maxValue        10
166                         descList        "'Dumb, very''You will win''You can win''You might win''Beginner''Intermediate''Advanced''Expert''Assassin''Godlike'"
167
168                         link            "##up"
169                 }
170         }
171         Item Data_Cvar PublicServer
172         {
173                 cvarName        "sv_public"
174                 defValue        1
175
176                 Item DataLink_ValueSwitch Switch
177                 {
178                         maxValue        1
179                         descList        "'Disabled''Enabled'"
180
181                         link            "##up"
182                 }
183         }
184         Item Data_Cvar ServerFrameTime
185         {
186                 cvarName        "sys_ticrate"
187                 defValue        "0.05"
188
189                 Item DataLink_Value Value
190                 {
191                         minValue        0.01    // 100 fps
192                         maxValue        0.10    // 10 fps
193                         stepValue       0.005
194                         link            "##up"
195                 }
196                 Item DataLink_Text Text
197                 {
198                         maxValue        5
199                         link            "##down"
200
201                         Item DataLink_TextValue TextValue
202                         {
203                                 link    "##up prev"
204                         }
205                 }
206         }
207         Item Data_Cvar ServerMaxRate
208         {
209                 cvarName        "sv_maxrate"
210                 defValue        "10000"
211
212                 Item DataLink_Value Value
213                 {
214                         minValue        1000.0
215                         maxValue        25000.0
216                         stepValue       1000.0
217
218                         link            "##up"
219                 }
220                 Item DataLink_Text Text
221                 {
222                         maxValue        5
223                         link            "##down"
224
225                         Item DataLink_TextValue TextValue
226                         {
227                                 link    "##up prev"
228                         }
229                 }
230         }
231 }