mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:33:30 +00:00
updated send_human_cot to send-eud_cot to match new cot generation flow
This commit is contained in:
12
addons/main/functions/api/fn_send_eud_cot.sqf
Normal file
12
addons/main/functions/api/fn_send_eud_cot.sqf
Normal 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]];
|
||||
@@ -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);
|
||||
@@ -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]];
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user