updated send_human_cot to send-eud_cot to match new cot generation flow

This commit is contained in:
Valmo Trindade
2025-04-17 06:37:50 -03:00
parent 3128ac0022
commit 4412b67d63
5 changed files with 16 additions and 16 deletions

View File

@@ -19,8 +19,8 @@ class CfgFunctions {
class send_group_cots {
file = "\armatak\armatak\armatak_main\functions\api\fn_send_group_cots.sqf";
};
class send_human_cot {
file = "\armatak\armatak\armatak_main\functions\api\fn_send_human_cot.sqf";
class send_eud_cot {
file = "\armatak\armatak\armatak_main\functions\api\fn_send_eud_cot.sqf";
};
class send_marker_cot {
file = "\armatak\armatak\armatak_main\functions\api\fn_send_marker_cot.sqf";

View File

@@ -0,0 +1,12 @@
// function name: armatak_fnc_extract_eud_cot_info
// function author: Valmo
// function description: Gets the information necessary for generating the EUD Cursor Over Time
params ["_unit", "_callsign", "_group_name", "_group_role"];
_position = _unit call armatak_fnc_extract_position;
_uuid = _unit call armatak_fnc_extract_uuid;
_eud_cot = [_uuid, _position select 0, _position select 1, _position select 2, _callsign, _group_name, _group_role, _position select 3, speed player / 3.6];
"armatak" callExtension ["cot_router:send_eud_cot", [_eud_cot]];

View File

@@ -9,5 +9,5 @@ params["_group"];
_group_name = [_group] call armatak_fnc_extract_group_color;
_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_eud_cot;
} forEach (units _group);

View File

@@ -1,12 +0,0 @@
// function name: armatak_fnc_extract_human_cot_info
// function author: Valmo
// function description: Gets the information necessary for generating the Human Cursor Over Time
params ["_unit", "_callsign", "_group_name", "_group_role"];
_position = _unit call armatak_fnc_extract_position;
_uuid = _unit call armatak_fnc_extract_uuid;
_human_cot = [_uuid, _position select 0, _position select 1, _position select 2, _callsign, _group_name, _group_role, _position select 3, speed player / 3.6];
"armatak" callExtension ["cot_router:send_human_cot", [_human_cot]];

View File

@@ -58,7 +58,7 @@ if (isServer) exitWith {
_group_name = [group _x] call armatak_fnc_extract_group_color;
_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_eud_cot;
[_x] call armatak_fnc_send_digital_pointer_cot;
};
if ((_objectType select 0) == "Vehicle") then {