Attempt #1 to trick Arma into ACE arsenal
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
if (KPLIB_directArsenal) exitWith {
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
[player, player, false] call ace_arsenal_fnc_openBox;
|
||||
} else {
|
||||
["Open", false] spawn BIS_fnc_arsenal;
|
||||
@@ -17,7 +17,7 @@ private _backpack = backpack player;
|
||||
|
||||
private ["_loadouts_data"];
|
||||
// Get loadouts either from ACE or BI arsenals
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
_loadouts_data = +(profileNamespace getVariable ["ace_arsenal_saved_loadouts", []]);
|
||||
} else {
|
||||
private _saved_loadouts = +(profileNamespace getVariable "bis_fnc_saveInventory_data");
|
||||
@@ -82,7 +82,7 @@ while { dialog && (alive player) && edit_loadout == 0 } do {
|
||||
|
||||
if ( load_loadout > 0 ) then {
|
||||
private _loaded_loadout = _loadouts_data select (lbCurSel 201);
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
player setUnitLoadout (_loaded_loadout select 1);
|
||||
} else {
|
||||
[player, [profileNamespace, _loaded_loadout]] call BIS_fnc_loadInventory;
|
||||
@@ -123,7 +123,7 @@ while { dialog && (alive player) && edit_loadout == 0 } do {
|
||||
if ( edit_loadout > 0 ) then {
|
||||
closeDialog 0;
|
||||
waitUntil { !dialog };
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
[player, player, false] call ace_arsenal_fnc_openBox;
|
||||
} else {
|
||||
[ "Open", false ] spawn BIS_fnc_arsenal;
|
||||
@@ -131,7 +131,7 @@ if ( edit_loadout > 0 ) then {
|
||||
|
||||
if (KP_liberation_arsenalUsePreset) then {
|
||||
uiSleep 5;
|
||||
private _arsenalDisplay = ["RSCDisplayArsenal", "ace_arsenal_display"] select (KP_liberation_ace && KP_liberation_arsenal_type);
|
||||
private _arsenalDisplay = ["RSCDisplayArsenal", "ace_arsenal_display"] select (KP_liberation_ace && !KP_liberation_arsenal_type);
|
||||
waitUntil {sleep 1; isNull (uinamespace getvariable [_arsenalDisplay, displayNull])};
|
||||
[_backpack] call KPLIB_fnc_checkGear;
|
||||
};
|
||||
|
||||
@@ -95,7 +95,7 @@ if (KP_liberation_arsenalUsePreset) then {
|
||||
KP_liberation_allowed_items append KP_liberation_allowed_items_extension;
|
||||
};
|
||||
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
[player, KP_liberation_allowed_items, false] call ace_arsenal_fnc_addVirtualItems;
|
||||
};
|
||||
|
||||
@@ -107,7 +107,7 @@ if (KP_liberation_arsenalUsePreset) then {
|
||||
[missionNamespace, true] call BIS_fnc_addVirtualItemCargo;
|
||||
[missionNamespace, true] call BIS_fnc_addVirtualBackpackCargo;
|
||||
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
[player, true, false] call ace_arsenal_fnc_addVirtualItems;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -67,7 +67,7 @@ while {true} do {
|
||||
|
||||
// Get loadouts either from ACE or BI arsenals
|
||||
private ["_loadouts_data"];
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
_loadouts_data = +(profileNamespace getVariable ["ace_arsenal_saved_loadouts", []]);
|
||||
} else {
|
||||
private _saved_loadouts = +(profileNamespace getVariable "bis_fnc_saveInventory_data");
|
||||
@@ -191,7 +191,7 @@ while {true} do {
|
||||
|
||||
if ((lbCurSel 203) > 0) then {
|
||||
private _selectedLoadout = _loadouts_data select ((lbCurSel 203) - 1);
|
||||
if (KP_liberation_ace && KP_liberation_arsenal_type) then {
|
||||
if (KP_liberation_ace && !KP_liberation_arsenal_type) then {
|
||||
player setUnitLoadout (_selectedLoadout select 1);
|
||||
} else {
|
||||
[player, [profileNamespace, _selectedLoadout]] call BIS_fnc_loadInventory;
|
||||
|
||||
Reference in New Issue
Block a user