forked from beyond-all-reason/Beyond-All-Reason
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodoptions.lua
More file actions
1572 lines (1478 loc) · 44.2 KB
/
modoptions.lua
File metadata and controls
1572 lines (1478 loc) · 44.2 KB
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
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- $Id: ModOptions.lua 4642 2009-05-22 05:32:36Z carrepairer $
-- 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 ('list','string','number','bool')
-- 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
-- section: so lobbies can order options in categories/panels
-- scope: 'all', 'player', 'team', 'allyteam' <<< not supported yet >>>
--
local options={
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Restrictions
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
key = 'restrictions',
name = 'Restrictions',
desc = '',
type = 'section',
},
{
key = 'maxunits',
name = 'Max units',
desc = 'Maximum number of units (including buildings) for each team allowed at the same time',
type = 'number',
def = 2000,
min = 500,
max = 10000, --- engine caps at lower limit if more than 3 team are ingame
step = 1, -- quantization is aligned to the def value, (step <= 0) means that there is no quantization
section= "restrictions",
},
{
key="transportenemy",
name="Enemy Transporting",
desc="Toggle which enemy units you can kidnap with an air transport",
hidden = true,
type="list",
def="notcoms",
section="restrictions",
items={
{key="notcoms", name="All But Commanders", desc="Only commanders are immune to napping"},
{key="none", name="Disallow All", desc="No enemy units can be napped"},
}
},
{
key = "allowuserwidgets",
name = "Allow custom widgets",
desc = "Allow custom user widgets or disallow them",
type = "bool",
def = true,
section = 'restrictions',
},
{
key = 'fixedallies',
name = 'Disabled dynamic alliances',
desc = 'Disables the possibility of players to dynamically change alliances ingame',
type = 'bool',
def = true,
section = "restrictions",
},
{
key = 'norush',
name = "No Rush mode - Work in Progress, Requires Startboxes (doesn't work in FFA or 1v1 preset)",
desc = 'No Rush mode',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'norushtimer',
name = "No Rush Time (in minutes)",
desc = 'No Rush Time (in minutes)',
type = "number",
section = 'restrictions',
def = 5,
min = 5,
max = 30,
step = 1,
},
{
key = 'disable_fogofwar',
name = 'Disable Fog of War',
desc = 'Disable Fog of War',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_notech2',
name = 'Disable Tech 2',
desc = 'Disable Tech 2',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_notech3',
name = 'Disable Tech 3',
desc = 'Disable Tech 3',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_noair',
name = 'Disable Air Units',
desc = 'Disable Air Units',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_noextractors',
name = 'Disable Metal Extractors',
desc = 'Disable Metal Extractors',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_noconverters',
name = 'Disable Energy Converters',
desc = 'Disable Energy Converters',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_nonukes',
name = 'Disable Nuclear Missiles',
desc = 'Disable Nuclear Missiles',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_notacnukes',
name = 'Disable Tactical Nukes and EMPs',
desc = 'Disable Tactical Nukes and EMPs',
type = "bool",
section = 'restrictions',
def = false,
},
{
key = 'unit_restrictions_nolrpc',
name = 'Disable Long Range Artilery (LRPC) structures',
desc = 'Disable Long Range Artilery (LRPC) structures',
type = "bool",
section = 'restrictions',
def = false,
},
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Scavengers
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
key = "options_scavengers",
name = "Scavengers",
desc = "Gameplay options for Scavengers gamemode",
type = "section",
},
{
key = 'scavdifficulty',
name = 'Base Difficulty',
desc = 'Scavengers Base Difficulty Level',
type = 'list',
section = 'options_scavengers',
def = "medium",
items={
{key="noob", name="Noob", desc="Noob"},
{key="veryeasy", name="Very Easy", desc="Very Easy"},
{key="easy", name="Easy", desc="Easy"},
{key="medium", name="Medium", desc="Medium"},
{key="hard", name="Hard", desc="Hard"},
{key="veryhard", name="Very Hard", desc="Very Hard"},
{key="expert", name="Expert", desc="Expert"},
{key="brutal", name="Brutal", desc="You'll die"},
}
},
{
key = 'scavgraceperiod',
name = 'Grace Period',
desc = 'Time before Scavengers start sending attacks (in minutes).',
type = 'number',
section= 'options_scavengers',
def = 5,
min = 1,
max = 20,
step = 1,
},
{
key = 'scavmaxtechlevel',
name = 'Maximum Scavengers Tech Level',
desc = 'Caps Scav tech level at specific point.',
type = 'list',
section = 'options_scavengers',
def = "tech4",
items={
{key="tech4", name="Tech 4", desc="Tech 4"},
{key="tech3", name="Tech 3", desc="Tech 3"},
{key="tech2", name="Tech 2", desc="Tech 2"},
{key="tech1", name="Tech 1", desc="Tech 1"},
}
},
{
key = 'scavendless',
name = 'Endless Mode',
desc = 'Disables final boss fight, turning Scavengers into an endless survival mode',
type = 'bool',
section = 'options_scavengers',
def = false,
},
{
key = 'scavtechcurve',
name = 'Game Length Multiplier',
desc = 'Higher than 1 - Longer, Lower than 1 - Shorter',
type = 'number',
section= 'options_scavengers',
def = 1,
min = 0.01,
max = 10,
step = 0.01,
},
{
key = 'scavbosshealth',
name = 'Final Boss Health Multiplier',
--desc = '',
type = 'number',
section= 'options_scavengers',
hidden = true,
def = 1,
min = 0.01,
max = 10,
step = 0.01,
},
{
key = 'scavevents',
name = 'Random Events',
desc = 'Random Events System',
type = 'bool',
section = 'options_scavengers',
def = true,
},
{
key = 'scaveventsamount',
name = 'Random Events Amount',
desc = 'Modifies frequency of random events',
type = 'list',
section = 'options_scavengers',
def = "normal",
items={
{key="normal", name="Normal", desc="Normal"},
{key="lower", name="Lower", desc="Halved"},
{key="higher", name="Higher", desc="Doubled"},
}
},
{
key = 'scavconstructors',
name = 'Scavenger Commanders',
desc = "When disabled, Scavengers won't build bases but will spawn more unit waves to balance it out.",
type = 'bool',
section = 'options_scavengers',
def = true,
},
{
key = 'scavstartboxcloud',
name = 'Scavenger Startbox Cloud (Requires Startbox for Scavenger team)',
desc = "Spawns purple cloud in Scav startbox area, giving them safe space.",
type = 'bool',
section = 'options_scavengers',
def = true,
},
{
key = 'scavspawnarea',
name = 'Scavenger Spawn Area (Requires Startbox for Scavenger team)',
desc = "When enabled, Scavengers will only spawn beacons within an area that starts in their startbox and grows up with time. When disabled, they will spawn freely around the map",
type = 'bool',
section = 'options_scavengers',
def = true,
},
{
key = 'scavbosstoggle',
name = 'Scavenger Boss',
desc = "When enabled, final scavenger boss will spawn",
type = 'bool',
section = 'options_scavengers',
def = true,
},
-- Hidden
{
key = 'scavunitcountmultiplier',
name = 'Spawn Wave Size Multiplier',
desc = '',
type = 'number',
section= 'options_scavengers',
def = 1,
min = 0.01,
max = 10,
step = 0.01,
hidden = true,
},
{
key = 'scavunitspawnmultiplier',
name = 'Frequency of Spawn Waves Multiplier',
desc = '',
type = 'number',
section= 'options_scavengers',
def = 1,
min = 0.01,
max = 10,
step = 0.01,
hidden = true,
},
{
key = 'scavbuildspeedmultiplier',
name = 'Scavenger Build Speed Multiplier',
desc = '',
type = 'number',
section= 'options_scavengers',
def = 1,
min = 0.01,
max = 10,
step = 0.01,
hidden = true,
},
{
key = 'scavunitveterancymultiplier',
name = 'Scavenger Unit Experience Level Multiplier',
desc = 'Higher means stronger Scav units',
type = 'number',
section= 'options_scavengers',
def = 1,
min = 0.01,
max = 10,
step = 0.01,
hidden = true,
},
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Raptors
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
key = 'raptor_defense_options',
name = 'Raptors',
desc = 'Various gameplay options that will change how the Raptor Defense is played.',
type = 'section',
},
{
key="raptor_difficulty",
name="Base Difficulty",
desc="Raptors difficulty",
type="list",
def="normal",
section="raptor_defense_options",
items={
{key="veryeasy", name="Very Easy", desc="Very Easy"},
{key="easy", name="Easy", desc="Easy"},
{key="normal", name="Normal", desc="Normal"},
{key="hard", name="Hard", desc="Hard"},
{key="veryhard", name="Very Hard", desc="Very Hard"},
{key="epic", name="Epic", desc="Epic"},
--{key="survival", name="Endless", desc="Endless Mode"}
}
},
{
key="raptor_raptorstart",
name="Burrow Placement",
desc="Control where burrows spawn",
type="list",
def="initialbox",
section="raptor_defense_options",
items={
{key="avoid", name="Avoid Players", desc="Burrows avoid player units"},
{key="initialbox", name="Initial Start Box", desc="First wave spawns in raptor start box, following burrows avoid players"},
{key="alwaysbox", name="Always Start Box", desc="Burrows always spawn in raptor start box"},
}
},
{
key = "raptor_endless",
name = "Endless Mode",
desc = "When you kill the queen, the game doesn't end, but loops around at higher difficulty instead, infinitely.",
type = "bool",
def = false,
section= "raptor_defense_options",
},
{
key = "raptor_queentimemult",
name = "Queen Hatching Time Multiplier",
desc = "How quickly Queen Hatch goes from 0 to 100% (Range: 0.1 - 3)",
type = "number",
def = 1,
min = 0.1,
max = 3,
step = 0.1,
section= "raptor_defense_options",
},
{
key = "raptor_spawncountmult",
name = "Unit Spawn Per Wave Multiplier",
desc = "How many times more raptors will spawn per wave. (Range: 1 - 5)",
type = "number",
def = 1,
min = 1,
max = 5,
step = 1,
section= "raptor_defense_options",
},
{
key = "raptor_spawntimemult",
name = "Time Between Waves Multiplier",
desc = "How often new waves will spawn. (Range: 0.1 - 3)",
type = "number",
def = 1,
min = 0.1,
max = 3,
step = 0.1,
section= "raptor_defense_options",
},
{
key = "raptor_graceperiodmult",
name = "Grace Period Time Multiplier",
desc = "Time before Raptors become active. (Range: 0.1 - 3)",
type = "number",
def = 1,
min = 0.1,
max = 3,
step = 0.1,
section= "raptor_defense_options",
},
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Other Options
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
key = "options",
name = "Other",
desc = "Options",
type = "section",
},
{
key = "startmetal",
name = "Starting metal",
desc = "Determines amount of metal and metal storage that each player will start with",
type = "number",
section= "options",
def = 1000,
min = 0,
max = 10000,
step = 1,
},
{
key = "startenergy",
name = "Starting energy",
desc = "Determines amount of energy and energy storage that each player will start with",
type = "number",
section= "options",
def = 1000,
min = 0,
max = 10000,
step = 1,
},
{
key="map_tidal",
name="Tidal Strength",
desc="Unchanged = map setting, low = 13e/sec, medium = 18e/sec, high = 23e/sec.",
hidden = true,
type="list",
def="unchanged",
section="options",
items={
{key="unchanged", name="Unchanged", desc="Use map settings"},
{key="low", name="Low", desc="Set tidal incomes to 13 energy per second"},
{key="medium", name="Medium", desc="Set tidal incomes to 18 energy per second"},
{key="high", name="High", desc="Set tidal incomes to 23 energy per second"},
}
},
{
key = 'critters',
name = 'Animal amount',
desc = 'This multiplier will be applied on the amount of critters a map will end up with',
hidden = true,
type = 'number',
section= 'options',
def = 1,
min = 0,
max = 2,
step = 0.2,
},
{
key="deathmode",
name="Game End Mode",
desc="What it takes to eliminate a team",
type="list",
def="com",
section="options",
items={
{key="neverend", name="Never ending", desc="Teams are never eliminated"},
{key="com", name="Kill all enemy Commanders", desc="When a team has no Commanders left, it loses"},
{key="builders", name="Kill all Builders"},
{key="killall", name="Kill everything", desc="Every last unit must be eliminated, no exceptions!"},
{key="own_com", name="Player resign on Com death", desc="When player commander dies, you auto-resign."},
}
},
{
key="map_waterlevel",
name="Water Level",
desc=" <0 = Decrease water level, >0 = Increase water level",
type="number",
def = 0,
min = -10000,
max = 10000,
step = 1,
section="options",
},
{
key = "map_waterislava",
name = "Water Is Lava",
desc = "Turns water into Lava",
type = "bool",
def = false,
section= "options",
},
{
key = "map_atmosphere",
name = "Map Atmosphere and Ambient Sounds",
desc = "",
type = "bool",
def = true,
hidden = true,
section= "options",
},
{
key = "ffa_mode",
name = "FFA Mode",
desc = "Units with no player control are removed/destroyed \nUse FFA spawning mode",
hidden = true,
type = "bool",
def = false,
section= "options",
},
{
key = "ffa_wreckage",
name = "FFA Mode Wreckage",
desc = "Killed players will blow up but leave wreckages",
hidden = true,
type = "bool",
def = false,
section= "options",
},
{
key = 'teamcolors_anonymous_mode',
name = 'Anonymous Mode',
desc = 'Anonimizes players in the match so you have harder time telling who is who.',
type = 'list',
section = 'options',
def = "disabled",
items={
{key="disabled", name="Disabled", desc="Anonymous Mode disabled."},
{key="allred", name="Force SimpleColors", desc="All players have simple colors enabled, enemies cannot be recognized from each other."},
{key="global", name="Shuffle Globally", desc="Player colors order is shuffled globally, everyone see the same colors"},
{key="local", name="Shuffle Locally", desc="Player colors order is shuffled locally, everyone see different colors"},
--{key="disco", name="Shuffle Locally - DiscoMode", desc="Player colors order is shuffled locally, everyone see different colors that change every once a while randomly"},
}
},
{
key = 'coop',
name = 'Cooperative mode',
desc = 'Adds extra commanders to id-sharing teams, 1 com per player',
type = 'bool',
hidden = true,
def = false,
section= 'options',
},
{
key = 'disablemapdamage',
name = 'Undeformable map',
desc = 'Prevents the map shape from being changed by weapons',
type = 'bool',
def = false,
section= "options",
},
{
key="ruins",
name="Ruins",
type="list",
def="scav_only",
section="options",
items={
{key="enabled", name="Enabled"},
{key="scav_only", name="Enabled for Scavengers only"},
{key="disabled", name="Disabled"},
}
},
{
key="ruins_density",
name="Ruins: Density",
type="list",
def="normal",
section="options",
items={
{key="normal", name="Normal"},
{key="rarer", name="Rare"},
{key="veryrare", name="Very Rare"},
}
},
{
key = 'ruins_only_t1',
name = 'Ruins: Only T1',
type = 'bool',
def = false,
section= "options",
},
{
key = 'ruins_civilian_disable',
name = 'Ruins: Disable Civilian (Not Implemented Yet)',
type = 'bool',
def = false,
section= "options",
hidden = true,
},
{
key="lootboxes",
name="Lootboxes",
type="list",
def="scav_only",
section="options",
items={
{key="enabled", name="Enabled"},
{key="scav_only", name="Enabled for Scavengers only"},
{key="disabled", name="Disabled"},
}
},
{
key="lootboxes_density",
name="Lootboxes: Density",
type="list",
def="normal",
section="options",
items={
{key="normal", name="Normal"},
{key="rarer", name="Rare"},
{key="veryrare", name="Very Rare"},
}
},
{
key="assistdronesenabled",
name="Assist Drones",
type="list",
def="pve_only",
section="options",
items={
{key="enabled", name="Enabled"},
{key="pve_only", name="Enabled for PvE only"},
{key="disabled", name="Disabled"},
}
},
{
key = 'assistdronescount',
name = 'Assist Drones: Count',
desc = 'How many assist drones per commander should be spawned',
type = 'number',
section= 'options',
def = 3,
min = 1,
max = 30,
step = 1,
},
{
key = 'assistdronesair',
name = 'Assist Drones: Use Air Drones',
type = 'bool',
def = true,
hidden = true,
section= "options",
},
{
key="commanderbuildersenabled",
name="Base Construction Turret",
type="list",
def="pve_only",
section="options",
items={
{key="enabled", name="Enabled"},
{key="pve_only", name="Enabled for PvE only"},
{key="disabled", name="Disabled"},
}
},
{
key = 'commanderbuildersrange',
name = 'Base Construction Turret: Range',
type = 'number',
section= 'options',
def = 1000,
min = 100,
max = 5000,
step = 1,
},
{
key = 'commanderbuildersbuildpower',
name = 'Base Construction Turret: Buildpower',
type = 'number',
section= 'options',
def = 400,
min = 100,
max = 4000,
step = 1,
},
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Control Victory Options
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
key = 'controlvictoryoptions',
name = 'Control',
desc = 'Allows you to control at a granular level the individual options for Control Point Victory',
type = 'section',
},
{
key="scoremode",
name="Scoring Mode",
desc="Defines how the game is played",
type="list",
def="disabled",
section="controlvictoryoptions",
items={
{key="disabled", name="Disabled", desc="Disable Control Points as a victory condition."},
{key="countdown", name="Countdown", desc="A Control Point decreases all opponents' scores, zero means defeat."},
{key="tugofwar", name="Tug of War", desc="A Control Point steals enemy score, zero means defeat."},
--{key="domination", name="Domination", desc="Holding all Control Points will grant 1000 score, first to reach the score limit wins."},
}
},
{
key = 'scoremode_chess',
name = 'Chess Mode',
desc = 'No basebuilding',
type = 'bool',
section= 'controlvictoryoptions',
def = true,
},
{
key = 'scoremode_chess_unbalanced',
name = 'Chess: Unbalanced',
desc = 'Each player gets diffrent set of units',
type = 'bool',
section= 'controlvictoryoptions',
def = false,
},
{
key = 'scoremode_chess_adduptime',
name = 'Chess: Minutes Between New Units Add-up.',
desc = 'Time Between New Units Add-up.',
type = 'number',
section= 'controlvictoryoptions',
def = 1,
min = 1,
max = 10,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'scoremode_chess_spawnsperphase',
name = 'Chess: Number of spawns in each phase.',
desc = 'Number of spawns in each phase.',
type = 'number',
section= 'controlvictoryoptions',
def = 1,
min = 1,
max = 10,
step = 1, -- quantization is aligned to the def value
hidden = true,
-- (step <= 0) means that there is no quantization
},
{
key = 'limitscore',
name = 'Initial Score Per Control Point',
desc = 'Initial score amount available.',
type = 'number',
section= 'controlvictoryoptions',
def = 300,
min = 100,
max = 10000,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = "numberofcontrolpoints",
name = "Number of control points (affects initial score)",
desc = "Sets the number of control points on the map and scales the total score amount to match. Has no effect if Preset map configs are enabled.",
section= "controlvictoryoptions",
type="list",
def="13",
items={
{key="7", name="7", desc=""},
{key="13", name="13", desc=""},
{key="19", name="19", desc=""},
{key="25", name="25", desc=""},
},
hidden = true,
},
{
key = "usemapconfig",
name = "Use preset map-specific Control Point locations?",
desc = "Should the control point config for this map be used instead of autogenerated control points?",
hidden = true,
type = 'bool',
def = true,
section= "controlvictoryoptions",
},
{
key = "usemexconfig",
name = "Use metal spots as point locations",
type = 'bool',
def = false,
section= "controlvictoryoptions",
},
{
key = 'captureradius',
name = 'Capture points size',
desc = 'Radius around a point in which to capture it.',
type = 'number',
section= 'controlvictoryoptions',
def = 100,
min = 100,
max = 1000,
step = 25, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
hidden = true,
},
{
key = 'capturetime',
name = 'Capture Time',
desc = 'Time to capture a point.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 30,
min = 1,
max = 120,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'capturebonus',
name = 'Capture Bonus',
desc = 'Percentage of how much faster capture takes place by adding more units.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 100,
min = 1,
max = 100,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'decapspeed',
name = 'De-Cap Speed',
desc = 'Speed multiplier for neutralizing an enemy point.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 2,
min = 1,
max = 3,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'starttime',
name = 'Start Time',
desc = 'Number of seconds until control points can be captured.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 0,
min = 0,
max = 300,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'metalperpoint',
name = 'Metal given per point',
desc = 'Each player on an allyteam that has captured a point will receive this amount of resources per point captured per second',
type = 'number',
section= 'controlvictoryoptions',
def = 1,
min = 0,
max = 5,
step = 0.1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
hidden = true,
},
{
key = 'energyperpoint',
name = 'Energy given per point',
desc = 'Each player on an allyteam that has captured a point will receive this amount of resources per point captured per second',
type = 'number',
section= 'controlvictoryoptions',
def = 75,
min = 0,
max = 500,
step = 0.1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
hidden = true,
},
{
key = 'dominationscoretime',
name = 'Domination Score Time',
desc = 'Time needed holding all points to score in multi domination.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 30,
min = 1,
max = 60,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'tugofwarmodifier',
name = 'Tug of War Modifier',
desc = 'The amount of score transfered between opponents when points are captured is multiplied by this amount.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 4,
min = 0,
max = 6,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization
},
{
key = 'dominationscore',
name = 'Score awarded for Domination',
desc = 'The amount of score awarded when you have scored a domination.',
hidden = true,
type = 'number',
section= 'controlvictoryoptions',
def = 1000,
min = 500,
max = 1000,
step = 1, -- quantization is aligned to the def value
-- (step <= 0) means that there is no quantization