diff --git a/addons/main/CfgFunctions.hpp b/addons/main/CfgFunctions.hpp index 7ca5ba3..ca68ebd 100644 --- a/addons/main/CfgFunctions.hpp +++ b/addons/main/CfgFunctions.hpp @@ -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"; diff --git a/addons/main/functions/api/fn_send_eud_cot.sqf b/addons/main/functions/api/fn_send_eud_cot.sqf new file mode 100644 index 0000000..5cb2b4c --- /dev/null +++ b/addons/main/functions/api/fn_send_eud_cot.sqf @@ -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]]; \ No newline at end of file diff --git a/addons/main/functions/api/fn_send_group_cots.sqf b/addons/main/functions/api/fn_send_group_cots.sqf index 8d98b19..b56b01a 100644 --- a/addons/main/functions/api/fn_send_group_cots.sqf +++ b/addons/main/functions/api/fn_send_group_cots.sqf @@ -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); \ No newline at end of file diff --git a/addons/main/functions/api/fn_send_human_cot.sqf b/addons/main/functions/api/fn_send_human_cot.sqf deleted file mode 100644 index ff3c0d6..0000000 --- a/addons/main/functions/api/fn_send_human_cot.sqf +++ /dev/null @@ -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]]; \ No newline at end of file diff --git a/addons/main/functions/fn_init.sqf b/addons/main/functions/fn_init.sqf index b03751e..340a507 100644 --- a/addons/main/functions/fn_init.sqf +++ b/addons/main/functions/fn_init.sqf @@ -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 {