forked from spring1944/spring1944
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModOptions.lua
477 lines (440 loc) · 12.8 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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
-- 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 = "sensors",
name = "New Sensors",
desc = "Experimental changes to intelligence",
type = "bool",
def = true,
},]]--
--[[ {
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 = "command_mult",
name = "Command Point Income/Battle Significance",
desc = "Sets level of Command Point income - use to adjust maps that provide too much or too little command points (key = 'command_mult')",
type = "list",
section= '3resources',
def = "2",
items =
{
{
key = "0",
name = "Very Low",
desc = "Very limited resources. Nothing but a minor skirmish, you must make the most of what resources you have.",
},
{
key = "1",
name = "Low",
desc = "Limited Command Points. This battle is insignificant, and you will be struggling to maintain infantry battalions",
},
{
key = "2",
name = "Normal",
desc = "Standard Command Points. The supreme commanders are keeping an eye on the outcome of this engagement. Expect medium numbers of infantry with considerable vehicle support, with armor and gun batteries appearing later.",
},
{
key = "3",
name = "High",
desc = "Abundant Command Points. The command has deemed this battle vital. You must win at all costs, and your available resources reflect that urgency.",
},
{
key = "4",
name = "Very High",
desc = "Excessive Command Points. High command has an emotional attachment to your skirmish, and they want it won.",
},
},
},
{
key = "logistics_period",
name = "Logistics Resupply Frequency",
desc = "Sets the gap between Logistics Resupply (key = 'logistics_period')",
type = "list",
section= '3resources',
def = "450",
items =
{
{
key = "675",
name = "Low - 11.25 minute gap",
desc = "Limited logistics supply. Conservative play - storage buildings and well supplied infantry are the order of the day.",
},
{
key = "450",
name = "Normal - 7.5 minute gap",
desc = "Normal logistics supply. Supplies come on a frequent enough basis to keep the warmachine rumbling, but beware of large artillery batteries or armored thrusts.",
},
{
key = "225",
name = "High - 3.75 minute gap",
desc = "Abundant logistics supply. Supply deliveries arrive early and often, allowing for much more aggressive play.",
},
},
},
{
key = "command_storage",
name = "Fixed Command Storage",
desc = "Fixes the command storage of all players. (key = 'command_storage')",
type = "number",
def = 10000,
min = 1000,
max = 50000,
section= '3resources',
step = 1000,
},
{
key = "map_command_per_player",
name = "Map Command Per Player",
desc = "Sets the total command on the map to some number per player (negative to disable). (key = 'map_command_per_player')",
type = "number",
def = -10,
min = -10,
max = 200,
section= '3resources',
step = 10,
},
{
key = "communism_mode",
name = "Communism Mode",
desc = "Distributes income from flags evenly between allied players. (key = 'communism_mode')",
type = "bool",
def = false,
section= '3resources',
},
--[[ {
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 = "prisoner_income",
name = "Command Income per tick per prisoner",
desc = "Changes the amount you recieve for holding prisoners (key = 'prisoner_income')",
type = "number",
def = 0,
min = 0,
max = 5,
section= '1balance',
step = 0.25,
},
{
key = "air_fear_mult",
name = "Aircraft fear tolerance multiplier",
desc = "Changes the amount of AA fire required to scare off a plane (key = 'air_fear_mult')",
type = "number",
def = 1,
min = 0,
max = 100,
section= '1balance',
step = 1,
},]]--
{
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 = "qtpfs",
name = "QTPFS",
desc = "Switch between Legacy or QTPFS pathfinder.)",
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 = "weapon_bulletdamage_mult",
name = "Bullet Damage Multiplier",
desc = 'Multiplies the damage of smallarms (high smallarms damage best used with high range multipliers)',
type = "number",
def = 1.0,
min = 0.1,
max = 10.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 = "unit_radar_mult",
name = "Unit radar multiplier",
desc = "Applies a multiplier to all the radar ranges ingame, which affects spotting of tanks outside LoS",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
section = '4other',
step = 0.1,
},
--[[ {
key = "smoke_mult",
name = "Smoke Duration Multiplier",
desc = "Multiplies the duration of smoke shells",
type = "number",
def = 1.0,
min = 0.1,
max = 10,
section = '4other',
step = 0.1,
},]]--
--[[{
key = "always_visible_flags",
name = "Always Visible Flags",
desc = "Flags and their capping status can be seen without LOS",
type = "bool",
def = true,
section = '4other',
},]]--
--[[
{
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