mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
added placeholder Takistan Montains
This commit is contained in:
@@ -61,6 +61,9 @@ class CfgFunctions {
|
|||||||
class convert_to_cucui {
|
class convert_to_cucui {
|
||||||
file = "\armatak\armatak\armatak_main\functions\map\fn_convert_to_cucui.sqf";
|
file = "\armatak\armatak\armatak_main\functions\map\fn_convert_to_cucui.sqf";
|
||||||
};
|
};
|
||||||
|
class convert_to_takistan_montains {
|
||||||
|
file = "\armatak\armatak\armatak_main\functions\map\fn_convert_to_takistan_montains.sqf";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -20,6 +20,9 @@ switch (worldName) do {
|
|||||||
case "cucui": {
|
case "cucui": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_cucui;
|
_realLocation = _position call armatak_fnc_convert_to_cucui;
|
||||||
};
|
};
|
||||||
|
case "Mountains_ACR": {
|
||||||
|
_realLocation = _position call armatak_fnc_convert_to_takistan_montains;
|
||||||
|
};
|
||||||
default {
|
default {
|
||||||
_realLocation = [0, 0, 0];
|
_realLocation = [0, 0, 0];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
params["_latitude", "_longitude", "_altitude"];
|
||||||
|
|
||||||
|
_playerPosition = [_latitude, _longitude, _altitude];
|
||||||
|
|
||||||
|
_playerLatitude = _playerPosition select 0;
|
||||||
|
_playerLongitude = _playerPosition select 1;
|
||||||
|
|
||||||
|
_playerMaxLongitude = 6340;
|
||||||
|
_playerMaxLatitude = 6340;
|
||||||
|
|
||||||
|
_MapMaxLatitude = 35.042822;
|
||||||
|
_MapMinLatitude = 34.914006;
|
||||||
|
|
||||||
|
_MapMaxLongitude = 36.268269;
|
||||||
|
_MapMinLongitude = 36.111253;
|
||||||
|
|
||||||
|
_LongitudeDifference = _MapMaxLongitude - _MapMinLongitude;
|
||||||
|
_LatitudeDifference = _MapMaxLatitude - _MapMinLatitude;
|
||||||
|
|
||||||
|
_RealLongitude = (_playerLongitude / _playerMaxLongitude) * _LongitudeDifference + _MapMinLongitude;
|
||||||
|
_RealLatitude = (_playerLatitude / _playerMaxLatitude) * _LatitudeDifference + _MapMinLatitude;
|
||||||
|
|
||||||
|
[_RealLongitude, _RealLatitude, _playerPosition select 2]
|
||||||
Reference in New Issue
Block a user