diff --git a/cScripts/functions/gear/fn_gear_setupRadios.sqf b/cScripts/functions/gear/fn_gear_setupRadios.sqf index 3323d50c1..e02fc0fb9 100644 --- a/cScripts/functions/gear/fn_gear_setupRadios.sqf +++ b/cScripts/functions/gear/fn_gear_setupRadios.sqf @@ -14,7 +14,9 @@ * [] call cScripts_fnc_gear_setupRadios * */ - + +if !(EGVAR(patches,usesACRE)) exitWith {}; +if !(EGVAR(Settings,enableACRE)) exitWith {}; if (count allMissionObjects "acre_api_basicMissionSetup" > 0) exitWith {}; if (count allMissionObjects "acre_api_nameChannels" > 0) exitWith {}; diff --git a/cScripts/functions/players/fn_setRadioChannel.sqf b/cScripts/functions/players/fn_setRadioChannel.sqf index e42febb15..ba38c944c 100644 --- a/cScripts/functions/players/fn_setRadioChannel.sqf +++ b/cScripts/functions/players/fn_setRadioChannel.sqf @@ -17,7 +17,9 @@ params [["_player", objNull, [objNull]]]; -if !(isPlayer _player) exitWith {}; +if !(EGVAR(patches,usesACRE)) exitWith {}; +if !(EGVAR(Settings,enableACRE)) exitWith {}; +if !(isPlayer player) exitWith {}; _player setVariable [QEGVAR(Player,RadioChannel), []]; private _playerRadios = [_player] call acre_api_fnc_getCurrentRadioList; diff --git a/init.sqf b/init.sqf index f286f4f1a..deb18129b 100644 --- a/init.sqf +++ b/init.sqf @@ -16,12 +16,10 @@ if (!isMultiplayer) then {["Mission is running on singelplayer enviroment!", "", // ACRE radio init if (isMultiplayer) then { - if (EGVAR(patches,usesACRE) && EGVAR(Settings,enableACRE)) then { - GVAR(Radio) = false; - ["Setting up ACRE preset...", "init"] call FUNC(info); - call EFUNC(gear,setupRadios); - GVAR(Radio) = true; - }; + GVAR(Radio) = false; + ["Setting up ACRE preset...", "init"] call FUNC(info); + call EFUNC(gear,setupRadios); + GVAR(Radio) = true; } else { ["Mission in singelplayer enviroment ACRE radio preset will not be set!", "init", true] call FUNC(warning); };