customized sensor markers to dont cheat enemy info

This commit is contained in:
Valmo Trindade
2025-11-26 20:21:09 -03:00
parent 2108d20b01
commit 5ac49e12f8

View File

@@ -3,15 +3,25 @@ params["_unit"];
_target = getSensorTargets (_unit);
{
_unit = _x select 0;
_position = _x select 1;
_status = _x select 2;
_unit = _x select 0;
_position = _x select 1;
_status = _x select 2;
if (isNil {_unit getVariable "armatak_current_side"}) then {
_unit setVariable ["armatak_current_side", side _unit];
};
if (isNil {
_unit getVariable "armatak_current_side"
}) then {
_unit setVariable ["armatak_current_side", side _unit];
};
if (_status != "destroyed") then {
_unit call armatak_fnc_send_enemy_cot;
};
if (_status != "destroyed" && !(_unit in armatak_server_syncedUnits)) then {
_unit_position = _unit call armatak_client_fnc_extractClientPosition;
_uuid = _unit call armatak_fnc_extract_uuid;
_type = _unit call armatak_fnc_extract_role;
_callsign = getText (configOf _unit >> "displayName");
_marker_cot = [_uuid, _type, _unit_position select 1, _unit_position select 2, _unit_position select 3, _callsign, _unit_position select 5, _unit_position select 6];
"armatak" callExtension ["tcp_socket:send_marker_cot", [_marker_cot]];
};
} forEach _target;