mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix wrong dayz_minpos and maxpos for Chernarus
Fixes radiation effect when out of map
This commit is contained in:
@@ -505,12 +505,13 @@ if (isNil "DZE_selfTransfuse_Values") then {DZE_selfTransfuse_Values = [12000,15
|
|||||||
if (isNil "DZE_PlotPole") then {DZE_PlotPole = [30,45];};
|
if (isNil "DZE_PlotPole") then {DZE_PlotPole = [30,45];};
|
||||||
DZE_maintainRange = ((DZE_PlotPole select 0)+20);
|
DZE_maintainRange = ((DZE_PlotPole select 0)+20);
|
||||||
if (isNil "DZE_slowZombies") then {DZE_slowZombies = false;};
|
if (isNil "DZE_slowZombies") then {DZE_slowZombies = false;};
|
||||||
if ((toLower worldName) in ["napf","sauerland","tavi"]) then {
|
|
||||||
dayz_minpos = if ((toLower worldName) == "tavi") then {-26000} else {-1000};
|
switch (toLower worldName) do {
|
||||||
dayz_maxpos = 26000;
|
case "napf";
|
||||||
} else {
|
case "sauerland" : {dayz_minpos = -1000; dayz_maxpos = 26000;};
|
||||||
dayz_minpos = -20000;
|
case "tavi" : {dayz_minpos = -26000; dayz_maxpos = 26000;};
|
||||||
dayz_maxpos = 20000;
|
case "chernarus" : {dayz_minpos = -1; dayz_maxpos = 16000;};
|
||||||
|
case default {dayz_minpos = -20000; dayz_maxpos = 20000;};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ while {1 == 1} do {
|
|||||||
|
|
||||||
_outsideMap = ((dayz_myPosition select 0) < dayz_minpos || (dayz_myPosition select 1) < dayz_minpos || (dayz_myPosition select 0) > dayz_maxpos || (dayz_myPosition select 1) > dayz_maxpos);
|
_outsideMap = ((dayz_myPosition select 0) < dayz_minpos || (dayz_myPosition select 1) < dayz_minpos || (dayz_myPosition select 0) > dayz_maxpos || (dayz_myPosition select 1) > dayz_maxpos);
|
||||||
|
|
||||||
if ((_outsideMap || DZE_Quarantine) && {!r_player_dead} && {!isNull (findDisplay 46)} && {player distance (getMarkerPos "respawn_west") > 200}) then {
|
if ((_outsideMap || DZE_Quarantine) && {!r_player_dead} && {!isNull (findDisplay 46)} && {player distance (getMarkerPos "respawn_west") > 15}) then {
|
||||||
DZE_InRadiationZone = true;
|
DZE_InRadiationZone = true;
|
||||||
};
|
};
|
||||||
player setVariable["posForceUpdate",true,true];
|
player setVariable["posForceUpdate",true,true];
|
||||||
|
|||||||
Reference in New Issue
Block a user