-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModOptions.lua
195 lines (179 loc) · 5.26 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
-- 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 = '2gamemode',
name = 'Game Mode Settings',
desc = 'Game pacing and duration',
type = 'section',
},
{
key="starttime",
name="Start Time",
desc="When the capturing of points can begin in Victory Point mode. (key = 'starttime')",
type="list",
section = '2gamemode',
def="2",
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="500",
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 = '4other',
name = 'Other Settings',
desc = 'Various other settings',
type = 'section',
},
{
key = "initial_cash",
name = "Start of round cash",
desc = "Determines how much Command players receive at the start of a game period (key = 'initial_cash')",
type = "number",
def = 50000,
min = 5000,
max = 100000,
section= '4other',
step = 5000,
},
{
key = "objective_phase_length",
name = "Objective Phase Length",
desc = "Length of the objective phase of the game in minutes (key = 'objective_phase_length')",
type = "number",
def = 10,
min = 2,
max = 20,
section= '4other',
step = 1,
},
{
key = "logistics_reserve",
name = "Logistics reserve",
desc = "Determines how much Logistics players have to work with in each game (key = 'logistics_reserve')",
type = "number",
def = 1500,
min = 1000,
max = 20000,
section= '4other',
step = 500,
},
{
key = "shop_mode",
name = "Enable unit purchasing mode",
desc = "Disables normal gameplay and allows players to spend money to add to their army (key = 'shop_mode')",
type = "bool",
section = '4other',
def = false,
},
{
key = "civilian_goal",
name = "Civilian Rescue Goal",
desc = "Determines how many civs to save in order to achieve that obj (key = 'civilian_goal')",
type = "number",
def = 50,
min = 15,
max = 100,
section= '4other',
step = 5,
},
{
key = "flag_hold_goal",
name = "Flag control time goal",
desc = "Determines how # of flag-seconds of control are needed to achieve that obj (key = 'flag_hold_goal')",
type = "number",
def = 600,
min = 200,
max = 1600,
section= '4other',
step = 50,
},
{
key = "hot_zone_goal",
name = "Hotzone purge goal",
desc = "how many hot zones need to be destroyed to achieve obj (key = 'hot_zone_goal')",
type = "number",
def = 4,
min = 2,
max = 10,
section= '4other',
step = 1,
},
{
key = '1balance',
name = 'Balance Settings. REMOVE BEFORE RELEASE',
desc = "Sets experimental balance options.",
type = 'section',
},
{
key = "zombie_count",
name = "how many zombies spawn in at once?",
desc = "how many zombies spawn in at once?? (key = 'zombie_count')",
type = "number",
def = 5,
min = 1,
max = 20,
section= '1balance',
step = 1,
},
{
key = "civilian_count",
name = "how many civs spawn in at once?",
desc = "how many civs spawn in at once? (key = 'civilian_count')",
type = "number",
def = 15,
min = 5,
max = 35,
section= '1balance',
step = 1,
},
{
key = "respawn_period",
name = "How often do things spawn in?",
desc = "How often do things spawn in (in minutes)? (key = 'respawn_period')",
type = "number",
def = 1,
min = 1,
max = 5,
section= '1balance',
step = 1,
},
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
}
return options