forked from spring1944/spring1944
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModOptions.lua
304 lines (284 loc) · 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
-- 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 = '3resources',
name = 'Resource Settings',
desc = 'Sets various options related to the in-game resources, Command and Logistics',
type = 'section',
},
{
key = "spoilsofwar",
name = "Spoils of War",
desc = "Captureable Neutral units",
type = "list",
section = '3resources',
def = "disabled",
items = {
{
key = "disabled",
name = "None",
desc = "No neutral units",
},
{
key = "trucks",
name = "Trucks",
desc = "Neutral Trucks",
},
{
key = "france",
name = "French Legacy",
desc = "French units for capture",
},
{
key = "mines",
name = "Minefields",
desc = "Some flags will start out with anti-personnel minefields (more likely farther from player starts)",
},
},
},
{
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 = 5000,
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 = true,
section = '3resources',
},
{
key = "base_command_income",
name = "Base Command Income",
desc = "Gives each player a permanent income of at least this amount (key = 'base_command_income')",
type = "number",
def = 25,
min = 0,
max = 1000,
section = '3resources',
step = 5,
},
{
key = '4other',
name = 'Other Settings',
desc = 'Various other settings',
type = 'section',
},
{
key = "sloped_armour",
name = "Sloped Armour",
desc = "Armour values vary dynamically by angle.",
type = "bool",
section = '4other',
def = true,
},
{
key = "sloped_armour_debug",
name = "Sloped Armour Debugger",
desc = "Enables debugging echoes",
type = "bool",
section = '4other',
def = true,
},
{
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,
},
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- 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."
},
{
key = "4",
name = "Impossible",
desc = "Infinite resources and ammo storage."
},
}
},
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
}
return options