Skip to content

Commit

Permalink
add check KLPQ radio
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale committed Jun 24, 2024
1 parent 2bc94f0 commit 6f152ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Missionframework/KPLIB_objectInits.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 2 additions & 0 deletions Missionframework/scripts/shared/fetch_params.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f152ef

Please sign in to comment.