mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Alter DZE_SafeZonePosCheck to allow custom radii
This commit is contained in:
@@ -66,7 +66,7 @@ if ((_maxlocalspawned < _maxControlledZombies) && (dayz_CurrentNearByZombies < d
|
|||||||
_skipFOV = true;
|
_skipFOV = true;
|
||||||
_position = [_position,3,20,1] call fn_selectRandomLocation;
|
_position = [_position,3,20,1] call fn_selectRandomLocation;
|
||||||
};
|
};
|
||||||
if(_position call DZE_SafeZonePosCheck) exitWith {};
|
if ([_position] call DZE_SafeZonePosCheck) exitWith {};
|
||||||
if (surfaceIsWater _position) exitWith { diag_log "Location is in Water Abort"; };
|
if (surfaceIsWater _position) exitWith { diag_log "Location is in Water Abort"; };
|
||||||
|
|
||||||
if ((_skipFOV) or {([_position, 15, 10, 70] call _cantSee)}) then {
|
if ((_skipFOV) or {([_position, 15, 10, 70] call _cantSee)}) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user