From 6f152eff5b1c7e5beac880942753ab286e578d90 Mon Sep 17 00:00:00 2001 From: Apricot <50947830+Apricot-ale@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:09:34 +0900 Subject: [PATCH] add check KLPQ radio --- Missionframework/KPLIB_objectInits.sqf | 10 ++++++++++ Missionframework/scripts/shared/fetch_params.sqf | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Missionframework/KPLIB_objectInits.sqf b/Missionframework/KPLIB_objectInits.sqf index 1b029b292..80ecaa8c1 100644 --- a/Missionframework/KPLIB_objectInits.sqf +++ b/Missionframework/KPLIB_objectInits.sqf @@ -157,6 +157,16 @@ KPLIB_objectInits = [ } ], + // Add KPLQ Radio to static radios + [ + ["Land_FMradio_F", "Land_SurvivalRadio_F", "CUP_radio_b", "Radio", "Radio_Old"], + { + if (KPLIB_klpq) then { + [_this, false] call klpq_musicRadio_fnc_addRadio; + }; + } + ], + // Disable autocombat (if set in parameters) and fleeing [ ["CAManBase"], diff --git a/Missionframework/scripts/shared/fetch_params.sqf b/Missionframework/scripts/shared/fetch_params.sqf index 49528a050..1311ee06a 100644 --- a/Missionframework/scripts/shared/fetch_params.sqf +++ b/Missionframework/scripts/shared/fetch_params.sqf @@ -4,6 +4,8 @@ if (isClass (configfile >> "CfgPatches" >> "ace_common")) then {KPLIB_ace = true; ["ACE detected. Deactivating resupply script from Liberation.", "MOD"] call KPLIB_fnc_log;} else {KPLIB_ace = false}; // Check if ACE Medical is running if (isClass (configfile >> "CfgPatches" >> "ace_medical")) then {KPLIB_ace_med = true; ["ACE Medical detected. switch some script for ACE Medical.", "MOD"] call KPLIB_fnc_log;} else {KPLIB_ace_med = false}; +// Check if KLPQ is running +if (isClass (configfile >> "CfgPatches" >> "klpq_musicRadio")) then {KPLIB_klpq = true;} else {KPLIB_klpq = false}; /* Not saveable params */ KPLIB_param_wipe_savegame_1 = ["WipeSave1", 0] call bis_fnc_getParamValue;