Added mandol map support

This commit is contained in:
Valmo Trindade
2026-01-03 02:55:39 -03:00
parent 8fe14dc18d
commit 13cd08c655
6 changed files with 35 additions and 13 deletions

View File

@@ -104,6 +104,9 @@ switch (toLower worldName) do {
case "clafghan": { case "clafghan": {
_realLocation = _position call armatak_fnc_convert_to_clafghan; _realLocation = _position call armatak_fnc_convert_to_clafghan;
}; };
case "rut_mandol": {
_realLocation = _position call armatak_fnc_convert_to_rut_mandol;
};
default { default {
_warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Unsupported Map"]; _warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Unsupported Map"];
[[_warning, 1.5]] call CBA_fnc_notify; [[_warning, 1.5]] call CBA_fnc_notify;

View File

@@ -119,6 +119,9 @@ class CfgFunctions {
class convert_to_clafghan { class convert_to_clafghan {
file = "\armatak\armatak\addons\main\functions\map\fn_convert_to_clafghan.sqf"; file = "\armatak\armatak\addons\main\functions\map\fn_convert_to_clafghan.sqf";
}; };
class convert_to_rut_mandol {
file = "\armatak\armatak\addons\main\functions\map\fn_convert_to_rut_mandol.sqf";
};
}; };
}; };
}; };

View File

@@ -8,11 +8,11 @@ _playerLongitude = _playerPosition select 1;
_playerMaxLatitude = 20480; _playerMaxLatitude = 20480;
_playerMaxLongitude = 20480; _playerMaxLongitude = 20480;
_MapMaxLatitude = 33.728772; _MapMaxLongitude = 33.728772;
_MapMinLatitude = 33.542815; _MapMinLongitude = 33.542815;
_MapMaxLongitude = 63.169746; _MapMaxLatitude = 63.169746;
_MapMinLongitude = 62.938820; _MapMinLatitude = 62.938820;
_LongitudeDifference = _MapMaxLongitude - _MapMinLongitude; _LongitudeDifference = _MapMaxLongitude - _MapMinLongitude;
_LatitudeDifference = _MapMaxLatitude - _MapMinLatitude; _LatitudeDifference = _MapMaxLatitude - _MapMinLatitude;

View File

@@ -0,0 +1,23 @@
params["_latitude", "_longitude", "_altitude"];
_playerPosition = [_latitude, _longitude, _altitude];
_playerLatitude = _playerPosition select 0;
_playerLongitude = _playerPosition select 1;
_playerMaxLatitude = 32768;
_playerMaxLongitude = 32768;
_MapMaxLongitude = 35.285485;
_MapMinLongitude = 34.927617;
_MapMaxLatitude = 70.445404;
_MapMinLatitude = 70.016783;
_LongitudeDifference = _MapMaxLongitude - _MapMinLongitude;
_LatitudeDifference = _MapMaxLatitude - _MapMinLatitude;
_RealLongitude = (_playerLongitude / _playerMaxLongitude) * _LongitudeDifference + _MapMinLongitude;
_RealLatitude = (_playerLatitude / _playerMaxLatitude) * _LatitudeDifference + _MapMinLatitude;
[_RealLongitude, _RealLatitude, _playerPosition select 2]

View File

@@ -4,19 +4,11 @@ class CfgVehicles {
{ {
class AttributesBase class AttributesBase
{ {
class Default;
class Edit; class Edit;
class Combo;
class Checkbox;
class CheckboxNumber;
class ModuleDescription; class ModuleDescription;
class Units;
}; };
class ModuleDescription class ModuleDescription;
{
class AnyBrain;
};
}; };
class GVAR(moduleBase): Module_F { class GVAR(moduleBase): Module_F {