added digital point function into CoT Router runtime

This commit is contained in:
Valmo Trindade
2025-02-01 04:02:13 -03:00
parent 2eb0b318bc
commit be331ea34a

View File

@@ -8,6 +8,15 @@ if (isServer) exitWith {
_warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Connecting to TAK Server TCP Socket..."]; _warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Connecting to TAK Server TCP Socket..."];
[[_warning, 1.5]] call CBA_fnc_notify; [[_warning, 1.5]] call CBA_fnc_notify;
addMissionEventHandler ["ExtensionCallback", {
params ["_name", "_function", "_data"];
if (_name == "armatak_tcp_socket") then {
_warning = format ["<t color='#FF8021'>ARMATAK</t><br/> %1", "Connecting to TAK Server TCP Socket..."];
[[_warning, 1.5]] call CBA_fnc_notify;
};
}];
_tak_server_instance_address = _logic getVariable "armatak_module_tak_server_instance_address"; _tak_server_instance_address = _logic getVariable "armatak_module_tak_server_instance_address";
_tak_server_instance_port = _logic getVariable "armatak_module_tak_server_instance_port"; _tak_server_instance_port = _logic getVariable "armatak_module_tak_server_instance_port";
@@ -35,6 +44,7 @@ if (isServer) exitWith {
_group_role = [_x] call armatak_fnc_extract_group_role; _group_role = [_x] call armatak_fnc_extract_group_role;
[_x, _callsign, _group_name, _group_role] call armatak_fnc_send_human_cot; [_x, _callsign, _group_name, _group_role] call armatak_fnc_send_human_cot;
[_x] call armatak_fnc_send_digital_pointer_cot;
}; };
if ((_objectType select 0) == "Vehicle") then { if ((_objectType select 0) == "Vehicle") then {
_atak_type = [_x] call armatak_fnc_extract_role; _atak_type = [_x] call armatak_fnc_extract_role;
@@ -44,6 +54,7 @@ if (isServer) exitWith {
}; };
if (unitIsUAV _x) then { if (unitIsUAV _x) then {
[_x] call armatak_fnc_send_drone_cot; [_x] call armatak_fnc_send_drone_cot;
[_x] call armatak_fnc_send_digital_pointer_cot;
}; };
} forEach _syncedUnits; } forEach _syncedUnits;
}, 2, []] call CBA_fnc_addPerFrameHandler; }, 2, []] call CBA_fnc_addPerFrameHandler;