mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:13:29 +00:00
added handler for unsupported maps and handled all world names to lowercase
This commit is contained in:
@@ -4,26 +4,29 @@ _position = [_latitude, _longitude, _altitude];
|
|||||||
|
|
||||||
_realLocation = null;
|
_realLocation = null;
|
||||||
|
|
||||||
switch (worldName) do {
|
switch (toLower worldName) do {
|
||||||
case "Altis": {
|
case "altis": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_altis;
|
_realLocation = _position call armatak_fnc_convert_to_altis;
|
||||||
};
|
};
|
||||||
case "Stratis": {
|
case "stratis": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_stratis;
|
_realLocation = _position call armatak_fnc_convert_to_stratis;
|
||||||
};
|
};
|
||||||
case "Malden": {
|
case "malden": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_malden;
|
_realLocation = _position call armatak_fnc_convert_to_malden;
|
||||||
};
|
};
|
||||||
case "VR": {
|
case "vr": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_vr;
|
_realLocation = _position call armatak_fnc_convert_to_vr;
|
||||||
};
|
};
|
||||||
case "cucui": {
|
case "cucui": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_cucui;
|
_realLocation = _position call armatak_fnc_convert_to_cucui;
|
||||||
};
|
};
|
||||||
case "Mountains_ACR": {
|
case "mountains_acr": {
|
||||||
_realLocation = _position call armatak_fnc_convert_to_takistan_montains;
|
_realLocation = _position call armatak_fnc_convert_to_takistan_montains;
|
||||||
};
|
};
|
||||||
default {
|
default {
|
||||||
|
_warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Unsupported Map"];
|
||||||
|
[[_warning, 1.5]] call CBA_fnc_notify;
|
||||||
|
|
||||||
_realLocation = [0, 0, 0];
|
_realLocation = [0, 0, 0];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user