shipwreck update and max config

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-10-24 14:47:56 -05:00
parent 6821e1895d
commit fb5345f8c5
2 changed files with 33 additions and 0 deletions

View File

@ -31,3 +31,26 @@ if (getNumber(configFile >> "CfgEpoch" >> worldname >> "shipwreckLootEnabled") i
} foreach _shipwrecks;
};
};
*/
//[[[cog import generate_private_arrays ]]]
private ["_shipwrecks","_item","_markers"];
//[[[end]]]
_cfgEpoch = configFile >> "CfgEpoch" >> worldname;
if (getNumber(_cfgEpoch >> "shipwreckLootEnabled") isEqualTo 1) then {
_worldSize = worldSize/2;
_shipwrecks = nearestTerrainObjects [ [_worldSize, _worldSize], ["SHIPWRECK"], _worldSize];
_total = getNumber(_cfgEpoch >> "maxSpawnedShipwrecks");
for "_i" from 0 to _total-1 do{
_wreck = selectRandom _shipwrecks;
_shipwrecks = _shipwrecks - [_wrecks];
_item = createVehicle["container_epoch", _wreck, [], 0, "NONE"];
_item setMass 220;
if (EPOCH_SHOW_BOATLOOT) then {
_markers = ["Shipwreck",_wreck] call EPOCH_server_createGlobalMarkerSet;
};
};
};

View File

@ -61,6 +61,8 @@ class CfgEpoch
{"NameCityCapital",4},
{"Airport",5}
};
// Radiation System
radioactiveLocations[] = {"NameCityCapital", "NameCity", "Airport"};
radioactiveLocationsCount = 3;
// Block radioactive locations spawn
@ -71,10 +73,17 @@ class CfgEpoch
// {{0,0,0}, 0, ""} //any of these will throw an error in the rpt
// leave this empty to spawn 0 custom locations
};
// Traders
traderBlds[] = {"House", "Building"};
traderHomes[] = {"House", "Building"};
traderUniforms[] = {"U_OG_leader", "U_C_Poloshirt_stripped", "U_C_Poloshirt_blue", "U_C_Poloshirt_burgundy", "U_C_Poloshirt_tricolour", "U_C_Poloshirt_salmon", "U_C_Poloshirt_redwhite", "U_C_Poor_1", "U_C_WorkerCoveralls", "U_C_Journalist", "U_C_Scientist", "U_OrestesBody"};
// Shipwrecks
shipwreckLootEnabled = 1;
maxSpawnedShipwrecks = 12;
// Debug Box
telePos[] = {};
lightPos[] = {
{-16.623,-8.50195,-10.5417},
@ -82,6 +91,7 @@ class CfgEpoch
};
debugBoxClass = "Debug_static_F";
cloneClasses[] = {"clone_empty_static_F", "clone_male_static_F", "clone_female_static_F"};
propsPos[] = {};
staticNpcPos[] = {};
forcedVehicleSpawnTable = "";