-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModOptions.lua
334 lines (303 loc) · 8.51 KB
/
ModOptions.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
-- Custom Options Definition Table format
-- NOTES:
-- - using an enumerated table lets you specify the options order
--
-- These keywords must be lowercase for LuaParser to read them.
--
-- key: the string used in the script.txt
-- name: the displayed name
-- desc: the description (could be used as a tooltip)
-- type: the option type
-- def: the default value;
-- min: minimum value for number options
-- max: maximum value for number options
-- step: quantization step, aligned to the def value
-- maxlen: the maximum string length for string options
-- items: array of item strings for list options
-- scope: "all", "player", "team", "allyteam" <<< not supported yet >>>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local options = {
--[[{
key = "maxammo_mult",
name = "Vehicle maxammmo multiplier",
desc = "Applies a multiplier to all the vehicle maxammo values",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
step = 0.1,
},]]--
{
key = '2gamemode',
name = 'Game Mode Settings',
desc = 'Point vs Traditional Victory and Naval settings',
type = 'section',
},
--[[ {
key = "navies",
name = "Naval Units",
desc = "Enable the production of naval units",
type = "list",
def = 0,
items = {
{
key = "0",
name = "Standard",
desc = "Standard Naval Unit Buildtree",
},
{
key = "1",
name = "Heavy Ships",
desc = "Includes Destroyers and other Heavy Ships",
},
}
},]]--
{
key="scoremode",
name="Victory Condition",
desc="What leads to victory? (key = 'scoremode')",
type="list",
def="disabled",
section = '2gamemode',
items = {
{
key = "disabled",
name = "Annihilation",
desc = "Only goal is complete and total annihilation of the enemy",
},
{
key = "tugowar",
name = "Victory Points",
desc = "Owning more flags than the enemy causes them to lose tickets. When a team hits zero, they are eliminated." ,
},
{
key = "multidomination",
name = "Multi-Domination Victory Points",
desc = "Hold all points for 20 seconds to score",
},
},
},
{
key="starttime",
name="Start Time",
desc="When the capturing of points can begin in Victory Point mode. (key = 'starttime')",
type="list",
section = '2gamemode',
def="5",
items = {
{ key = "0", name = "0", desc = "0 minutes", },
{ key = "2", name = "2", desc = "2 minutes", },
{ key = "3", name = "3", desc = "3 minutes", },
{ key = "5", name = "5", desc = "5 minutes", },
{ key = "10", name = "10", desc = "10 minutes", },
},
},
{
key="limitscore",
name="Score Limit",
desc="The Winning Amount for Victory Point Mode",
type="list",
section = '2gamemode',
def="1000",
items = {
{ key = "200", name = "200", desc = "Very Short", },
{ key = "500", name = "500", desc = "Short", },
{ key = "1000", name = "1000", desc = "Average", },
{ key = "2000", name = "2000", desc = "Long", },
{ key = "3000", name = "3000", desc = "Insane!", },
},
},
{
key = '3resources',
name = 'Resource Settings',
desc = 'Sets various options related to the in-game resources, Command and Logistics',
type = 'section',
},
{
key = "game_length",
name = "Game Length",
desc = "Determines how long the game lasts before a winner is declared (in minutes). (key = 'game_length')",
type = "number",
def = 10,
min = 5,
max = 30,
section= '3resources',
step = 0.5,
},
{
key = "command_storage",
name = "Fixed Command Storage",
desc = "Fixes the command storage of all players. (key = 'command_storage')",
type = "number",
def = 100000,
min = 1000,
max = 5000000,
section= '3resources',
step = 1000,
},
{
key = "base_income",
name = "Base income level",
desc = "Sets the baseline income level for all teams.. (key = 'base_income')",
type = "number",
def = 750,
min = 100,
max = 1250,
section= '3resources',
step = 10,
},
{
key = '1balance',
name = 'Balance Settings. REMOVE BEFORE RELEASE',
desc = "Sets experimental balance options.",
type = 'section',
},
--[[ {
key = "weapon_apdamage_mult",
name = "AP damage multiplier",
desc = "Applies a multiplier to all the AP damage values",
type = "number",
def = 1,
min = 0.01,
max = 2,
section= '1balance',
step = 0.05,
},]]--
{
key = '4other',
name = 'Other Settings',
desc = 'Various other settings',
type = 'section',
},
{
key = "gm_team_enable",
name = "Enable Sandbox/GM tools faction",
desc = "Allows the sandbox/game master tools faction to spawn, rather than changing to a random team (key = 'gm_team_enable')",
type = "bool",
section = '4other',
def = false,
},
{
key = "weapon_range_mult",
name = "Range multiplier",
desc = 'Multiplies the range of all weapons, adjusting accuracy and weapon velocity as well. 1 is default, 8 is "realistic".',
type = "number",
def = 1.0,
min = 0.1,
max = 8.0,
section = '4other',
step = 0.1,
},
{
key = "unit_los_mult",
name = "Unit sight (los/airLoS) multiplier",
desc = "Applies a multiplier to all the LoS ranges ingame",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
section = '4other',
step = 0.1,
},
--[[
{
key = "weapon_reload_mult",
name = "Weapon reload multiplier",
desc = "Applies a multiplier to all the weapon reloadtimes ingame",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
step = 0.1,
},
{
key = "unit_speed_mult",
name = "Unit speed multiplier",
desc = "Applies a multiplier to all the unit speeds and acceleration values ingame",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
step = 0.1,
},
{
key = "weapon_aoe_mult",
name = "AoE multiplier",
desc = "Applies a multiplier to all the weapon AoE values",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
step = 0.05,
},
{
key = "weapon_hedamage_mult",
name = "HE damage multiplier",
desc = "Applies a multiplier to all the HE damage values",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
step = 0.05,
},
{
key = "weapon_edgeeffectiveness_mult",
name = "Weapon edgeeffectiveness multiplier",
desc = "Applies a multiplier to all the weapon edgeeffectiveness ingame",
type = "number",
def = 1.0,
min = 0.01,
max = 10,
step = 0.1,
}
{
key = "unit_hq_platoon",
name = "HQ-centric infantry game",
desc = "Removes rifle/assault squads from barracks, puts them in HQ",
type = "number",
def = 0,
min = 0,
max = 1,
step = 1,
}]]--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- C.R.A.I.G. specific option(s)
--
{
key = '5ai',
name = 'A.I. Settings',
desc = "Sets C.R.A.I.G's options",
type = 'section',
},
{
key = "craig_difficulty",
name = "C.R.A.I.G. difficulty level",
desc = "Sets the difficulty level of the C.R.A.I.G. bot. (key = 'craig_difficulty')",
type = "list",
section = "5ai",
def = "2",
items = {
{
key = "1",
name = "Easy",
desc = "No resource cheating."
},
{
key = "2",
name = "Medium",
desc = "Little bit of resource cheating."
},
{
key = "3",
name = "Hard",
desc = "Infinite resources."
},
}
},
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
}
return options