Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions addons/api/fnc_basicMissionSetup.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ private _addRadios = {
_player setVariable [QGVAR(basicMissionSetup), true, true];

private _cleanRadioList = [];
if !("ACRE_PRC343" in _defaultRadios) then {
private _defaultRadio = QEGVAR(sys_radio,defaultItemRadioType) call CBA_settings_fnc_get;
if !(_defaultRadio in _defaultRadios) then {
[_player, "ItemRadio"] call EFUNC(sys_core,removeGear);
[_player, "ACRE_PRC343"] call EFUNC(sys_core,removeGear);
[_player, _defaultRadio] call EFUNC(sys_core,removeGear);
_cleanRadioList = _defaultRadios;
} else {
private _countDefaultRadios = 0;
{
if (_x == "ACRE_PRC343") then {
if (_x == _defaultRadio) then {
_countDefaultRadios = _countDefaultRadios + 1;
if (_countDefaultRadios > 1) then {
_cleanRadioList pushBack _x;
Expand Down