mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
add forced overrides of vehicle and loot tables
This commit is contained in:
parent
b02209184f
commit
63817d743e
@ -66,6 +66,9 @@ starterTraderItems[] = { { "ItemSodaBurst", "meatballs_epoch", "MortarBucket", "
|
|||||||
NPCSlotsLimit = 20; // Max number of traders static or dynamic. Warning! Higher the number lower performance.
|
NPCSlotsLimit = 20; // Max number of traders static or dynamic. Warning! Higher the number lower performance.
|
||||||
forceStaticTraders = "true"; // disables traders moving from work to home
|
forceStaticTraders = "true"; // disables traders moving from work to home
|
||||||
|
|
||||||
|
forcedVehicleSpawnTable = ""; // leave blank for default. Options: "allowedVehiclesList","allowedVehiclesList_CUP","allowedVehiclesList_MAD","allowedVehiclesList_MADCUP"
|
||||||
|
forcedLootSpawnTable = ""; // leave blank for default. Options: "CfgLootTable","CfgLootTable_CUP","CfgLootTable_MAD","CfgLootTable_MADCUP"
|
||||||
|
|
||||||
// Markers
|
// Markers
|
||||||
showEarthQuakes = "true"; // show mineral viens caused by earthquakes
|
showEarthQuakes = "true"; // show mineral viens caused by earthquakes
|
||||||
showShippingContainers = "true"; // Show location of events based loots (plants, shipping container, Carnival)
|
showShippingContainers = "true"; // Show location of events based loots (plants, shipping container, Carnival)
|
||||||
|
@ -24,6 +24,9 @@ diag_log format["Epoch: Attempt Create Object: %1 for %2",_objArr, name _player]
|
|||||||
_cfgPricing = 'CfgPricing' call EPOCH_returnConfig;
|
_cfgPricing = 'CfgPricing' call EPOCH_returnConfig;
|
||||||
_lootTableIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
_lootTableIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
||||||
_allowedVehicleListName = ["allowedVehiclesList","allowedVehiclesList_CUP","allowedVehiclesList_MAD","allowedVehiclesList_MADCUP"] select _allowedVehicleIndex;
|
_allowedVehicleListName = ["allowedVehiclesList","allowedVehiclesList_CUP","allowedVehiclesList_MAD","allowedVehiclesList_MADCUP"] select _allowedVehicleIndex;
|
||||||
|
if !(EPOCH_forcedVehicleSpawnTable isEqualTo "") then {
|
||||||
|
_allowedVehicleListName = EPOCH_forcedVehicleSpawnTable;
|
||||||
|
};
|
||||||
_allowedVehiclesList = getArray(configFile >> "CfgEpoch" >> worldName >> _allowedVehicleListName);
|
_allowedVehiclesList = getArray(configFile >> "CfgEpoch" >> worldName >> _allowedVehicleListName);
|
||||||
//diag_log format ["DEBUG: Allowed Vehs: %1",_allowedVehiclesList];
|
//diag_log format ["DEBUG: Allowed Vehs: %1",_allowedVehiclesList];
|
||||||
_vehicles = [];
|
_vehicles = [];
|
||||||
|
@ -19,6 +19,9 @@ _pricingConfig = 'CfgPricing' call EPOCH_returnConfig;
|
|||||||
|
|
||||||
_lootTableIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
_lootTableIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
||||||
_lootTableClass = ["CfgLootTable","CfgLootTable_CUP","CfgLootTable_MAD","CfgLootTable_MADCUP"] select _lootTableIndex;
|
_lootTableClass = ["CfgLootTable","CfgLootTable_CUP","CfgLootTable_MAD","CfgLootTable_MADCUP"] select _lootTableIndex;
|
||||||
|
if !(EPOCH_forcedLootSpawnTable isEqualTo "") then {
|
||||||
|
_lootTableClass = EPOCH_forcedLootSpawnTable;
|
||||||
|
};
|
||||||
_randomizeMagazineAmmoCount = ["CfgEpochClient", "randomizeMagazineAmmoCount", true] call EPOCH_fnc_returnConfigEntryV2;
|
_randomizeMagazineAmmoCount = ["CfgEpochClient", "randomizeMagazineAmmoCount", true] call EPOCH_fnc_returnConfigEntryV2;
|
||||||
if !(isNull _object) then{
|
if !(isNull _object) then{
|
||||||
_lootTable = [_type, "CfgMainTable", "tables"] call EPOCH_weightedArray;
|
_lootTable = [_type, "CfgMainTable", "tables"] call EPOCH_weightedArray;
|
||||||
|
@ -27,6 +27,7 @@ _abortAndError = {
|
|||||||
|
|
||||||
_cfgServerVersion = configFile >> "CfgServerVersion";
|
_cfgServerVersion = configFile >> "CfgServerVersion";
|
||||||
_serverSettingsConfig = configFile >> "CfgEpochServer";
|
_serverSettingsConfig = configFile >> "CfgEpochServer";
|
||||||
|
_epochConfig = configFile >> "CfgEpoch";
|
||||||
|
|
||||||
_clientVersion = getText(_cfgServerVersion >> "client");
|
_clientVersion = getText(_cfgServerVersion >> "client");
|
||||||
_configVersion = getText(_cfgServerVersion >> "config");
|
_configVersion = getText(_cfgServerVersion >> "config");
|
||||||
@ -99,7 +100,7 @@ WEST setFriend[EAST, 1];
|
|||||||
diag_log format["Epoch: Setup World Settings for %1",worldName];
|
diag_log format["Epoch: Setup World Settings for %1",worldName];
|
||||||
//World Settings
|
//World Settings
|
||||||
_worldSize = worldSize;
|
_worldSize = worldSize;
|
||||||
_epochWorldPath = configfile >> "CfgEpoch" >> worldName;
|
_epochWorldPath = _epochConfig >> worldName;
|
||||||
if (isClass _epochWorldPath) then {
|
if (isClass _epochWorldPath) then {
|
||||||
_configSize = getNumber(_epochWorldPath >> "worldSize");
|
_configSize = getNumber(_epochWorldPath >> "worldSize");
|
||||||
if (_configSize > 0) then {
|
if (_configSize > 0) then {
|
||||||
@ -140,9 +141,12 @@ diag_log "Epoch: Loading vehicles";
|
|||||||
// Vehicle slot limit set to total of all allowed limits
|
// Vehicle slot limit set to total of all allowed limits
|
||||||
_allowedVehicleIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
_allowedVehicleIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};
|
||||||
_allowedVehicleListName = ["allowedVehiclesList","allowedVehiclesList_CUP","allowedVehiclesList_MAD","allowedVehiclesList_MADCUP"] select _allowedVehicleIndex;
|
_allowedVehicleListName = ["allowedVehiclesList","allowedVehiclesList_CUP","allowedVehiclesList_MAD","allowedVehiclesList_MADCUP"] select _allowedVehicleIndex;
|
||||||
|
if !(EPOCH_forcedVehicleSpawnTable isEqualTo "") then {
|
||||||
|
_allowedVehicleListName = EPOCH_forcedVehicleSpawnTable;
|
||||||
|
};
|
||||||
// do something here
|
// do something here
|
||||||
|
|
||||||
_allowedVehiclesList = getArray(configFile >> "CfgEpoch" >> worldName >> _allowedVehicleListName);
|
_allowedVehiclesList = getArray(_epochConfig >> worldName >> _allowedVehicleListName);
|
||||||
_vehicleSlotLimit = 0;
|
_vehicleSlotLimit = 0;
|
||||||
{_vehicleSlotLimit = _vehicleSlotLimit + (_x select 1)} forEach _allowedVehiclesList;
|
{_vehicleSlotLimit = _vehicleSlotLimit + (_x select 1)} forEach _allowedVehiclesList;
|
||||||
_ReservedSlots = 50;
|
_ReservedSlots = 50;
|
||||||
|
@ -59,7 +59,9 @@ _configArray = [
|
|||||||
["hiveAdminCmdTime", 5],
|
["hiveAdminCmdTime", 5],
|
||||||
["DEBUG_VEH", false],
|
["DEBUG_VEH", false],
|
||||||
["useOldLoadVehicles", false],
|
["useOldLoadVehicles", false],
|
||||||
["enableUnitTestOnStart", 0]
|
["enableUnitTestOnStart", 0],
|
||||||
|
["forcedVehicleSpawnTable",""],
|
||||||
|
["forcedLootSpawnTable",""]
|
||||||
];
|
];
|
||||||
|
|
||||||
EPOCH_fnc_returnConfigEntry = {
|
EPOCH_fnc_returnConfigEntry = {
|
||||||
|
@ -68,6 +68,8 @@ class CfgEpoch
|
|||||||
telePos[] = {};
|
telePos[] = {};
|
||||||
propsPos[] = {};
|
propsPos[] = {};
|
||||||
staticNpcPos[] = {};
|
staticNpcPos[] = {};
|
||||||
|
forcedVehicleSpawnTable = "";
|
||||||
|
forcedLootSpawnTable = "";
|
||||||
allowedVehiclesList[] = {
|
allowedVehiclesList[] = {
|
||||||
{"C_Offroad_01_EPOCH",8},
|
{"C_Offroad_01_EPOCH",8},
|
||||||
{"C_Quadbike_01_EPOCH",8},
|
{"C_Quadbike_01_EPOCH",8},
|
||||||
|
Loading…
Reference in New Issue
Block a user