Skip to content

Commit 269c05d

Browse files
committed
v1.0.3
1 parent 97b5e5a commit 269c05d

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

@AIO_SPPack/addons/AIO_AIMENU.pbo

554 Bytes
Binary file not shown.

@AIO_SPPack/addons/AIO_AIMENU/XEH_preInit.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
//zeus
6666
["AIO_Zeus_Enabled", "CHECKBOX", "Create Zeus Module", ["All-In-One Command Menu", "Zeus"] ,true, 1] call CBA_Settings_fnc_init;
67+
["AIO_forceActivateAddons", "CHECKBOX", ["Force-enable all mods", "Mission makers can deactivate some addons. You can force activate them."], ["All-In-One Command Menu", "Zeus"] ,false, 1] call CBA_Settings_fnc_init;
6768
["AIO_Zeus_place_Enabled", "CHECKBOX", "Enable Creating Objects in Zeus", ["All-In-One Command Menu", "Zeus"] ,true, 1] call CBA_Settings_fnc_init;
6869
["AIO_Zeus_edit_Enabled", "CHECKBOX", "Enable Editing Objects in Zeus", ["All-In-One Command Menu", "Zeus"] ,true, 1] call CBA_Settings_fnc_init;
6970
["AIO_Zeus_delete_Enabled", "CHECKBOX", "Enable Deleting Objects in Zeus", ["All-In-One Command Menu", "Zeus"] ,true, 1] call CBA_Settings_fnc_init;

@AIO_SPPack/addons/AIO_AIMENU/functions/init/fn_init.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (isNil "AIO_enableMod") then {
99
AIO_Zeus_edit_Enabled = true;
1010
AIO_Zeus_delete_Enabled = true;
1111
AIO_Zeus_destroy_Enabled = true;
12+
AIO_forceActivateAddons = false;
1213
AIO_Zeus_limit_area = 0;
1314
AIO_becomeLeaderOnSwitch = false;
1415
AIO_pilot_holdCtrl = true;

@AIO_SPPack/addons/AIO_AIMENU/functions/init/fn_zeus.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ _createZeusFnc =
1111
//AIO_curator_module = _group createUnit ["ModuleCurator_F", [0, 0, 0], [], 0, "NONE"];
1212
AIO_curator_module = "ModuleCurator_F" createVehicleLocal [0, 0, 0];
1313
AIO_curator_module setVariable ["owner", (name player)];
14-
_classes = '!(["A3", configName _x, true] call BIS_fnc_inString)' configClasses (configFile >> "CfgPatches");
14+
_classes = '!(["A3", str _x, true] call BIS_fnc_inString)' configClasses (configFile >> "CfgPatches");
1515

1616
_classes = _classes apply {configName _x};
1717

18-
_classes call BIS_fnc_activateAddons;
18+
if (AIO_forceActivateAddons) then {_classes call BIS_fnc_activateAddons};
1919

2020
AIO_curator_module addCuratorAddons _classes;
2121

@AIO_SPPack/addons/AIO_AIMENU/functions/unitCommands/tasking/tasks/fn_task_rearm.sqf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,15 @@ call {
341341

342342
_fnc_TakeMag =
343343
{
344+
_add = (_x select 2);
345+
346+
for "_add" from _add to 0 step -1 do
347+
{
348+
if (_unit canAdd [_itemType, _add]) exitWith {};
349+
};
350+
351+
if (_add == 0) exitWith {};
352+
344353
_magazineCargo = getMagazineCargo _obj;
345354

346355
_mags = (_magazineCargo select 0);
@@ -351,8 +360,6 @@ _fnc_TakeMag =
351360

352361
_cnt = (_magazineCargo select 1) select _index;
353362

354-
_add = (_x select 2);
355-
356363
(_magazineCargo select 1) set [_index, (_cnt - _add) max 0];
357364

358365
_unit addMagazines [_itemType, _add];
@@ -366,6 +373,15 @@ _fnc_TakeMag =
366373

367374
_fnc_TakeItem =
368375
{
376+
_add = (_x select 2);
377+
378+
for "_add" from _add to 0 step -1 do
379+
{
380+
if (_unit canAdd [_itemType, _add]) exitWith {};
381+
};
382+
383+
if (_add == 0) exitWith {};
384+
369385
_magazineCargo = getItemCargo _obj;
370386

371387
_mags = (_magazineCargo select 0);
@@ -376,8 +392,6 @@ _fnc_TakeItem =
376392

377393
_cnt = (_magazineCargo select 1) select _index;
378394

379-
_add = (_x select 2);
380-
381395
(_magazineCargo select 1) set [_index, (_cnt - _add) max 0];
382396

383397
for "_i" from 1 to _add do {

@AIO_SPPack/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.2-Beta
1+
v1.0.3-Beta

0 commit comments

Comments
 (0)