mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
hmmm
This commit is contained in:
parent
fb5345f8c5
commit
0f31efd467
@ -11,30 +11,6 @@
|
|||||||
|
|
||||||
Github:
|
Github:
|
||||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf
|
||||||
*/
|
|
||||||
//[[[cog import generate_private_arrays ]]]
|
|
||||||
private ["_shipwrecks","_item","_markers"];
|
|
||||||
//[[[end]]]
|
|
||||||
if (getNumber(configFile >> "CfgEpoch" >> worldname >> "shipwreckLootEnabled") isEqualTo 1) then {
|
|
||||||
_worldSize = worldSize/2;
|
|
||||||
_shipwrecks = nearestTerrainObjects [ [_worldSize, _worldSize], ["SHIPWRECK"], _worldSize, false ];
|
|
||||||
if !(isNil "_shipwrecks") then {
|
|
||||||
if (count _shipwrecks > 12) then {
|
|
||||||
_shipwrecks = (_shipwrecks call BIS_fnc_arrayShuffle) resize 12;
|
|
||||||
};
|
|
||||||
{
|
|
||||||
_item = createVehicle["container_epoch", _x, [], 0, "NONE"];
|
|
||||||
_item setMass 220;
|
|
||||||
if (EPOCH_SHOW_BOATLOOT) then {
|
|
||||||
_markers = ["Shipwreck",_x] call EPOCH_server_createGlobalMarkerSet;
|
|
||||||
};
|
|
||||||
} foreach _shipwrecks;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
//[[[cog import generate_private_arrays ]]]
|
//[[[cog import generate_private_arrays ]]]
|
||||||
private ["_shipwrecks","_item","_markers"];
|
private ["_shipwrecks","_item","_markers"];
|
||||||
@ -46,7 +22,7 @@ if (getNumber(_cfgEpoch >> "shipwreckLootEnabled") isEqualTo 1) then {
|
|||||||
_total = getNumber(_cfgEpoch >> "maxSpawnedShipwrecks");
|
_total = getNumber(_cfgEpoch >> "maxSpawnedShipwrecks");
|
||||||
for "_i" from 0 to _total-1 do{
|
for "_i" from 0 to _total-1 do{
|
||||||
_wreck = selectRandom _shipwrecks;
|
_wreck = selectRandom _shipwrecks;
|
||||||
_shipwrecks = _shipwrecks - [_wrecks];
|
_shipwrecks = _shipwrecks - [_wreck];
|
||||||
_item = createVehicle["container_epoch", _wreck, [], 0, "NONE"];
|
_item = createVehicle["container_epoch", _wreck, [], 0, "NONE"];
|
||||||
_item setMass 220;
|
_item setMass 220;
|
||||||
if (EPOCH_SHOW_BOATLOOT) then {
|
if (EPOCH_SHOW_BOATLOOT) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user