mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
blacklist rework
This commit is contained in:
parent
858f0827ab
commit
a210dfa60a
@ -265,12 +265,14 @@ _radioactiveLocationsTmp = [];
|
||||
if !(_radioactiveLocations isEqualTo []) then {
|
||||
private _locations = nearestLocations[epoch_centerMarkerPosition, _radioactiveLocations, EPOCH_dynamicVehicleArea];
|
||||
if !(_locations isEqualTo []) then {
|
||||
|
||||
{
|
||||
_locPOS = locationPosition _x;
|
||||
_nearBLObj = nearestObjects [_locPOS, _blacklist, _distance];
|
||||
if!(_nearBLObj isEqualTo [])then{_locations = _locations - [_x]};
|
||||
}forEach _locations;
|
||||
for "_i" from 0 to ((getNumber(_epochConfig >> worldName >> "radioactiveLocationsCount"))-1) do
|
||||
{
|
||||
if (_locations isEqualTo []) exitWith {};
|
||||
_nearBLObj = nearestObjects [_position, _blacklist, _distance];
|
||||
if(_nearBLObj isEqualTo [])then{
|
||||
private _selectedLoc = selectRandom _locations;
|
||||
_locations = _locations - [_selectedLoc];
|
||||
_locSize = size _selectedLoc;
|
||||
@ -281,7 +283,6 @@ if !(_radioactiveLocations isEqualTo []) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
missionNamespace setVariable ["EPOCH_radioactiveLocations", _radioactiveLocationsTmp, true];
|
||||
|
||||
// spawn bunkers, just in VR for now.
|
||||
|
Loading…
Reference in New Issue
Block a user