added functions to handle TCP payloads

This commit is contained in:
Valmo Trindade
2025-01-30 01:41:58 -03:00
parent 79bdb3a3fc
commit 70d73ee804
5 changed files with 125 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
// function name: armatak_fnc_extract_drone
// function author: Valmo
// function description: Gets the drone information for the CoT Router
params["_drone"];
private _atak_role = "a-f-A";
private _atak_callsign = getText(configFile >> "CfgVehicles" >> typeOf _drone >> "displayName");
switch (side _drone) do {
case "WEST": {
_atak_role = "a-f-A-M-F-Q"
};
case "EAST": {
_atak_role = "a-h-A-M-F-Q"
};
case "INDEPENDENT": {
_atak_role = "a-n-A-M-F-Q"
};
case "CIVILIAN": {
_atak_role = "a-f-A-C"
};
default {
_atak_role = "a-f-A-M-F-Q"
};
};
_cot = [_drone, _atak_role, _atak_callsign] call armatak_fnc_extract_marker_cot_info;
"armatak" callExtension ["cot_router:send_marker_cot", [_cot]];