-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
183 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,17 @@ private _box = param [1]; | |
if (_box getVariable ["d_player_ammobox", false]) then { | ||
_box spawn { | ||
if (!d_with_ranked) then { | ||
["Open", true] call bis_fnc_arsenal; | ||
if (!d_with_ace) then { | ||
["Open", true] call bis_fnc_arsenal; | ||
} else { | ||
[player, player, true] call ace_arsenal_fnc_openBox; | ||
}; | ||
} else { | ||
["Open", [nil, _this]] call bis_fnc_arsenal; | ||
if (!d_with_ace) then { | ||
["Open", [nil, _this]] call bis_fnc_arsenal; | ||
} else { | ||
[player, player, true] call ace_arsenal_fnc_openBox; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dedmen
|
||
}; | ||
}; | ||
}; | ||
true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,86 +15,173 @@ while {alive _vec} do { | |
clearItemCargo _vec; | ||
clearBackpackCargo _vec; | ||
|
||
_vec setVariable ["bis_addVirtualWeaponCargo_cargo", [[], [], [], []]]; | ||
|
||
_old_rank = rank player; | ||
|
||
if (!d_with_ace) then { | ||
_vec setVariable ["bis_addVirtualWeaponCargo_cargo", [[], [], [], []]]; | ||
|
||
waitUntil {time > 0}; | ||
private _helperar = []; | ||
private _curar = d_misc_store getVariable (_old_rank + "_RIFLES"); | ||
__TRACE_1("RIFLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("RIFLES","_helperar") | ||
|
||
_curar = d_misc_store getVariable (_old_rank + "_LAUNCHERS"); | ||
__TRACE_1("LAUNCHERS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("LAUNCHERS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_PISTOLS"); | ||
__TRACE_1("PISTOLS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("PISTOLS","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualWeaponCargo; | ||
|
||
_helperar = []; | ||
_curar = d_all_magazines; | ||
__TRACE_1("Mags","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x # 0]; | ||
} forEach _curar; | ||
__TRACE_1("Mags","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualMagazineCargo; | ||
|
||
waitUntil {time > 0}; | ||
private _helperar = []; | ||
private _curar = d_misc_store getVariable (_old_rank + "_RIFLES"); | ||
__TRACE_1("RIFLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("RIFLES","_helperar") | ||
_helperar = []; | ||
_curar = d_misc_store getVariable (_old_rank + "_OPTICS"); | ||
__TRACE_1("OPTICS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("OPTICS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_MUZZLES"); | ||
__TRACE_1("MUZZLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("MUZZLES","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_UNIFORMS"); | ||
__TRACE_1("UNIFORMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("UNIFORMS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_ITEMS"); | ||
__TRACE_1("ITEMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("ITEMS","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualItemCargo; | ||
|
||
_curar = d_misc_store getVariable (_old_rank + "_LAUNCHERS"); | ||
__TRACE_1("LAUNCHERS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("LAUNCHERS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_PISTOLS"); | ||
__TRACE_1("PISTOLS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("PISTOLS","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualWeaponCargo; | ||
_helperar = []; | ||
_curar = d_backpackclasses; | ||
__TRACE_1("Backpacks","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x]; | ||
} forEach _curar; | ||
__TRACE_1("Backpacks","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualBackpackCargo; | ||
} else { | ||
private _ref = uiNamespace getVariable "ace_arsenal_configItems"; | ||
This comment has been minimized.
Sorry, something went wrong.
dedmen
|
||
|
||
private _helperar = []; | ||
private _curar = d_misc_store getVariable (_old_rank + "_RIFLES"); | ||
__TRACE_1("RIFLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("RIFLES","_helperar") | ||
(_ref # 0) set [0, _helperar]; | ||
|
||
_curar = d_misc_store getVariable (_old_rank + "_LAUNCHERS"); | ||
__TRACE_1("LAUNCHERS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("LAUNCHERS","_helperar") | ||
(_ref # 0) set [1, _helperar]; | ||
|
||
_curar = d_misc_store getVariable (_old_rank + "_PISTOLS"); | ||
__TRACE_1("PISTOLS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("PISTOLS","_helperar") | ||
(_ref # 0) set [2, _helperar]; | ||
|
||
_helperar = []; | ||
_curar = d_all_magazines; | ||
__TRACE_1("Mags","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x # 0]; | ||
} forEach _curar; | ||
__TRACE_1("Mags","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualMagazineCargo; | ||
_helperar = []; | ||
_curar = d_all_magazines; | ||
__TRACE_1("Mags","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x # 0]; | ||
} forEach _curar; | ||
__TRACE_1("Mags","_helperar") | ||
_ref set [2, _helperar]; | ||
|
||
_helperar = []; | ||
_curar = d_misc_store getVariable (_old_rank + "_OPTICS"); | ||
__TRACE_1("OPTICS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("OPTICS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_MUZZLES"); | ||
__TRACE_1("MUZZLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("MUZZLES","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_UNIFORMS"); | ||
__TRACE_1("UNIFORMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("UNIFORMS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_ITEMS"); | ||
__TRACE_1("ITEMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("ITEMS","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualItemCargo; | ||
_helperar = []; | ||
_curar = d_misc_store getVariable (_old_rank + "_OPTICS"); | ||
__TRACE_1("OPTICS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("OPTICS","_helperar") | ||
(_ref # 1) set [0, _helperar]; | ||
|
||
_curar = d_misc_store getVariable (_old_rank + "_MUZZLES"); | ||
__TRACE_1("MUZZLES","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("MUZZLES","_helperar") | ||
(_ref # 1) set [2, _helperar]; | ||
|
||
// currently no uniforms and items when ace is used... Simply because other format | ||
_curar = d_misc_store getVariable (_old_rank + "_UNIFORMS"); | ||
__TRACE_1("UNIFORMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("UNIFORMS","_helperar") | ||
_curar = d_misc_store getVariable (_old_rank + "_ITEMS"); | ||
__TRACE_1("ITEMS","_curar") | ||
{ | ||
_helperar pushBack (_x # 0); | ||
false | ||
} count _curar; | ||
__TRACE_1("ITEMS","_helperar") | ||
|
||
_helperar = []; | ||
_curar = d_backpackclasses; | ||
__TRACE_1("Backpacks","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x]; | ||
} forEach _curar; | ||
__TRACE_1("Backpacks","_helperar") | ||
[_vec, _helperar, false, false] call BIS_fnc_addVirtualBackpackCargo; | ||
_helperar = []; | ||
_curar = d_backpackclasses; | ||
__TRACE_1("Backpacks","_curar") | ||
_helperar resize (count _curar); | ||
{ | ||
_helperar set [_forEachIndex, _x]; | ||
} forEach _curar; | ||
__TRACE_1("Backpacks","_helperar") | ||
_ref set [6, _helperar]; | ||
}; | ||
}; | ||
sleep 2.32; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This opens a full arsenal. With all items available. Which shouldn't be the case for ranked right?
Btw instead of
d_with_ace
you can just check theace_arsenal
variable. it will be true when the addon is there and nil otherwise.