From fb5345f8c5db3e8d9cb3bd3a03832192d1e5c633 Mon Sep 17 00:00:00 2001 From: "DESKTOP-UH65DCE\\MusTanG" Date: Tue, 24 Oct 2017 14:47:56 -0500 Subject: [PATCH] shipwreck update and max config --- .../EPOCH_server_spawnBoatLoot.sqf | 23 +++++++++++++++++++ Sources/epoch_server_settings/config.cpp | 10 ++++++++ 2 files changed, 33 insertions(+) diff --git a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf index 637c5576..ea909c17 100644 --- a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf +++ b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf @@ -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; + }; + }; +}; \ No newline at end of file diff --git a/Sources/epoch_server_settings/config.cpp b/Sources/epoch_server_settings/config.cpp index fb30d055..39bbf3a2 100644 --- a/Sources/epoch_server_settings/config.cpp +++ b/Sources/epoch_server_settings/config.cpp @@ -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 = "";