Skip to content

Commit 5ac49e1

Browse files
committed
customized sensor markers to dont cheat enemy info
1 parent 2108d20 commit 5ac49e1

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

addons/main/functions/extract_data/fn_extract_sensor_data.sqf

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,25 @@ params["_unit"];
33
_target = getSensorTargets (_unit);
44

55
{
6-
_unit = _x select 0;
7-
_position = _x select 1;
8-
_status = _x select 2;
6+
_unit = _x select 0;
7+
_position = _x select 1;
8+
_status = _x select 2;
99

10-
if (isNil {_unit getVariable "armatak_current_side"}) then {
11-
_unit setVariable ["armatak_current_side", side _unit];
12-
};
10+
if (isNil {
11+
_unit getVariable "armatak_current_side"
12+
}) then {
13+
_unit setVariable ["armatak_current_side", side _unit];
14+
};
1315

14-
if (_status != "destroyed") then {
15-
_unit call armatak_fnc_send_enemy_cot;
16-
};
17-
} forEach _target;
16+
if (_status != "destroyed" && !(_unit in armatak_server_syncedUnits)) then {
17+
_unit_position = _unit call armatak_client_fnc_extractClientPosition;
18+
19+
_uuid = _unit call armatak_fnc_extract_uuid;
20+
_type = _unit call armatak_fnc_extract_role;
21+
_callsign = getText (configOf _unit >> "displayName");
22+
23+
_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];
24+
25+
"armatak" callExtension ["tcp_socket:send_marker_cot", [_marker_cot]];
26+
};
27+
} forEach _target;

0 commit comments

Comments
 (0)