From 3533c3aa9393fc6350178b196c813dc636ec9cf6 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:57:23 +0300 Subject: init --- Common/Init/Init_Boundaries.sqf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Common/Init/Init_Boundaries.sqf (limited to 'Common/Init/Init_Boundaries.sqf') diff --git a/Common/Init/Init_Boundaries.sqf b/Common/Init/Init_Boundaries.sqf new file mode 100644 index 0000000..9f55ba7 --- /dev/null +++ b/Common/Init/Init_Boundaries.sqf @@ -0,0 +1,38 @@ +Private ['_boundariesXY']; +_boundariesXY = -1; + +switch (toLower(worldName)) do { + case 'chernarus': {_boundariesXY = 15360}; + case 'eden': {_boundariesXY = 12800}; + case 'fallujah': {_boundariesXY = 10240}; + case 'isladuala': {_boundariesXY = 10240}; + case 'panthera2': {_boundariesXY = 10240}; + case 'queshkibrul': {_boundariesXY = 5120}; + case 'sara': {_boundariesXY = 20480}; + case 'saraLite': {_boundariesXY = 10240}; + case 'takistan': {_boundariesXY = 12800}; + case 'utes': {_boundariesXY = 5120}; + case 'yapal': {_boundariesXY = 5120}; + case 'zargabad': {_boundariesXY = 8192}; +}; + +if (paramBoundaries) then { + if (_boundariesXY == -1) then { + paramBoundaries = false; + if (local player) then { + BoundariesIsOnMap = nil; + BoundariesHandleOnMap = nil; + }; + diag_log Format["[WFBE (INFORMATION)][frameno:%2 | ticktime:%3] Init_Boundaries: There is no proper boundaries set for the island '%1'",worldName,diag_frameno,diag_tickTime]; + } else { + ['WFBE_BOUNDARIESXY',_boundariesXY,true] Call SetNamespace; + diag_log Format["[WFBE (INIT)][frameno:%3 | ticktime:%4] Init_Boundaries: Boundaries found for the island '%1' %2",worldName,_boundariesXY,diag_frameno,diag_tickTime]; + }; +} else { + if (_boundariesXY == -1) then { + diag_log Format["[WFBE (INFORMATION)][frameno:%2 | ticktime:%3] Init_Boundaries: There is no proper boundaries set for the island '%1'",worldName,diag_frameno,diag_tickTime]; + } else { + ['WFBE_BOUNDARIESXY',_boundariesXY,true] Call SetNamespace; + diag_log Format["[WFBE (INIT)][frameno:%3 | ticktime:%4] Init_Boundaries: Boundaries found for the island '%1' %2 [Boundaries parameter is disabled]",worldName,_boundariesXY,diag_frameno,diag_tickTime]; + }; +}; \ No newline at end of file -- cgit v1.3.1