Skip to content

Commit

Permalink
Merge pull request #605 from beyond-all-reason/revert-603-remove-cont…
Browse files Browse the repository at this point in the history
…rol-point-modoption

Revert "[Modoption cleanup] Remove control point modoptions"
  • Loading branch information
AntlerForce authored Mar 19, 2024
2 parents 171de0c + 14513f2 commit 7149cc1
Showing 1 changed file with 253 additions and 0 deletions.
253 changes: 253 additions & 0 deletions LuaMenu/configs/gameConfig/byar/ModOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ local options={
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


{
key = "modes",
name = "GameModes",
Expand All @@ -1255,6 +1256,7 @@ local options={
type = "section",
},


{
key = "shareddynamicalliancevictory",
name = "Dynamic Ally Victory",
Expand Down Expand Up @@ -1297,11 +1299,262 @@ local options={
hidden = true,
},

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Control Victory Options -- Unused gamemode
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

{
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",
hidden = true, -- Should NOT be hidden when we work on this again.
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',
hidden = true, -- Should NOT be hidden when we work on this again.
def = true,
},
{
key = 'scoremode_chess_unbalanced',
name = 'Chess: Unbalanced',
desc = 'Each player gets diffrent set of units',
type = 'bool',
section= 'controlvictoryoptions',
hidden = true, -- Should NOT be hidden when we work on this again.
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',
hidden = true, -- Should NOT be hidden when we work on this again.
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',
hidden = true, -- Should NOT be hidden when we work on this again.
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",
hidden = true, -- Should NOT be hidden when we work on this again.
},
{
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
},

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- End Options
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

}

for i = 1, 9 do
Expand Down

0 comments on commit 7149cc1

Please sign in to comment.