Revert changes

This commit is contained in:
Samuele Lorefice
2025-05-27 22:46:40 +02:00
parent 08317ffc77
commit 6718e35b7a
6 changed files with 13 additions and 13 deletions

View File

@@ -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;
};

View File

@@ -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;
};
};

View File

@@ -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;

View File

@@ -51,11 +51,11 @@ if(isServer) then {
GET_PARAM_BOOL(GRLIB_blufor_defenders, "BluforDefenders", 1);
GET_PARAM_BOOL(GRLIB_autodanger, "Autodanger", 0);
GET_PARAM(GRLIB_time_factor, "DayDuration", 12);
GET_PARAM_BOOL(GRLIB_shorter_nights, "ShorterNights", 1);
GET_PARAM_BOOL(GRLIB_shorter_nights, "ShorterNights", 0);
GET_PARAM(GRLIB_weather_param, "Weather", 3);
GET_PARAM_BOOL(KP_liberation_fog_param, "VanillaFog", 1);
GET_PARAM(GRLIB_resources_multiplier, "ResourcesMultiplier", 3);
GET_PARAM_BOOL(KP_liberation_arsenal_type, "ArsenalType", 1);
GET_PARAM_BOOL(KP_liberation_arsenal_type, "ArsenalType", 0);
GET_PARAM_BOOL(KPLIB_directArsenal, "DirectArsenal", 0);
GET_PARAM_BOOL(KP_liberation_playermenu, "PlayerMenu", 1);
GET_PARAM(KP_liberation_victoryCondition, "VictoryCondition", 0);