From eed369203df942e1afc7b8e637c0ae43b8ce6ebd Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Fri, 14 Apr 2023 00:47:52 +0200 Subject: [PATCH] Core - Filter radios for CBA Extended Loadouts (#1205) --- addons/sys_core/XEH_postInit.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/sys_core/XEH_postInit.sqf b/addons/sys_core/XEH_postInit.sqf index 4f11d81dc..944afcf51 100644 --- a/addons/sys_core/XEH_postInit.sqf +++ b/addons/sys_core/XEH_postInit.sqf @@ -3,6 +3,11 @@ [QGVAR(onRevealUnit), { _this call FUNC(onRevealUnit) }] call CALLSTACK(CBA_fnc_addEventHandler); +["CBA_loadoutGet", { + params ["", "_loadout", ""]; + [_loadout] call EFUNC(api,filterUnitLoadout); +}] call CBA_fnc_addEventHandler; + if (!hasInterface) exitWith {}; // Ensure the TeamSpeak plugin handler code is initialized first