mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Alter DZE_SafeZonePosCheck to allow custom radii
This commit is contained in:
@@ -39,7 +39,7 @@ if (_lootChance <= 0) exitWith {};
|
|||||||
_lootPos = getArray (_config >> "lootPos");
|
_lootPos = getArray (_config >> "lootPos");
|
||||||
_lootGroup = Loot_GetGroup(getText(_config >> "lootGroup"));
|
_lootGroup = Loot_GetGroup(getText(_config >> "lootGroup"));
|
||||||
|
|
||||||
if (!(_this call DZE_SafeZonePosCheck)) then {
|
if (!([_this] call DZE_SafeZonePosCheck)) then {
|
||||||
{
|
{
|
||||||
//Get the world position of the spawn position
|
//Get the world position of the spawn position
|
||||||
_worldPos = _this modelToWorld _x;
|
_worldPos = _this modelToWorld _x;
|
||||||
@@ -64,7 +64,7 @@ if (isArray (_config >> "lootPosSmall")) then {
|
|||||||
_lootPos = getArray (_config >> "lootPosSmall");
|
_lootPos = getArray (_config >> "lootPosSmall");
|
||||||
_lootGroup = Loot_GetGroup((getText(_config >> "lootGroup")) + "Small");
|
_lootGroup = Loot_GetGroup((getText(_config >> "lootGroup")) + "Small");
|
||||||
if (_lootGroup >= 1) then {
|
if (_lootGroup >= 1) then {
|
||||||
if (!(_this call DZE_SafeZonePosCheck)) then {
|
if (!([_this] call DZE_SafeZonePosCheck)) then {
|
||||||
{
|
{
|
||||||
//Get the world position of the spawn position
|
//Get the world position of the spawn position
|
||||||
_worldPos = _this modelToWorld _x;
|
_worldPos = _this modelToWorld _x;
|
||||||
|
|||||||
Reference in New Issue
Block a user