mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove requirements for usable items to be in backpack (#7545)
This commit is contained in:
parent
f7a880e81b
commit
3145a31d00
@ -15,4 +15,5 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
(("ACE_ATragMX" in (uniformItems ACE_player)) || ("ACE_ATragMX" in (vestItems ACE_player))) && !(underwater ACE_player);
|
||||
!underwater ACE_player &&
|
||||
{"ACE_ATragMX" in ([ACE_player] call EFUNC(common,uniqueItems))}
|
||||
|
@ -28,9 +28,7 @@ if (!GVAR(initialised)) then {
|
||||
TRACE_1("",GVAR(initialised));
|
||||
};
|
||||
|
||||
if (GVAR(active)) exitWith { false };
|
||||
if (underwater ACE_player) exitWith { false };
|
||||
if (!("ACE_ATragMX" in (uniformItems ACE_player)) && !("ACE_ATragMX" in (vestItems ACE_player))) exitWith { false };
|
||||
if (GVAR(active) || {!(call FUNC(can_show))}) exitWith {false};
|
||||
|
||||
createDialog 'ATragMX_Display';
|
||||
|
||||
|
@ -15,4 +15,4 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
("ACE_Kestrel4500" in (uniformItems ACE_player)) || ("ACE_Kestrel4500" in (vestItems ACE_player))
|
||||
"ACE_Kestrel4500" in ([ACE_player] call EFUNC(common,uniqueItems))
|
||||
|
@ -15,9 +15,7 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
if (GVAR(Kestrel4500)) exitWith { false };
|
||||
if (underwater ACE_player) exitWith { false };
|
||||
if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { false };
|
||||
if (GVAR(Kestrel4500) || {underwater ACE_player} || {!(call FUNC(canShow))}) exitWith {false};
|
||||
|
||||
GVAR(Overlay) = false;
|
||||
QGVAR(Layer) cutText ["", "PLAIN"];
|
||||
|
@ -41,8 +41,7 @@ if (GVAR(Overlay)) exitWith {
|
||||
QGVAR(Layer) cutText ["", "PLAIN"];
|
||||
true
|
||||
};
|
||||
if (underwater ACE_player) exitWith { true };
|
||||
if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { true };
|
||||
if (underwater ACE_player || {!(call FUNC(canShow))}) exitWith {true};
|
||||
|
||||
if (GVAR(Kestrel4500) && dialog) then {
|
||||
GVAR(Kestrel4500) = false;
|
||||
@ -53,7 +52,7 @@ GVAR(Overlay) = true;
|
||||
|
||||
[{
|
||||
// abort condition
|
||||
if (!GVAR(Overlay) || {!(("ACE_Kestrel4500" in (uniformItems ACE_player)) || ("ACE_Kestrel4500" in (vestItems ACE_player)))}) exitWith {
|
||||
if (!GVAR(Overlay) || {!(call FUNC(canShow))}) exitWith {
|
||||
GVAR(Overlay) = false;
|
||||
QGVAR(Layer) cutText ["", "PLAIN"];
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
|
@ -15,4 +15,8 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
(GVAR(ammoClass) != "" && GVAR(magazineClass) != "" && GVAR(weaponClass) != "" && !GVAR(RangeCardOpened) && ("ACE_RangeCard" in (uniformItems ACE_player)) || ("ACE_RangeCard" in (vestItems ACE_player)))
|
||||
GVAR(ammoClass) != "" &&
|
||||
GVAR(magazineClass) != "" &&
|
||||
GVAR(weaponClass) != "" &&
|
||||
!GVAR(RangeCardOpened) &&
|
||||
"ACE_RangeCard" in ([ACE_player] call EFUNC(common,uniqueItems))
|
||||
|
@ -15,4 +15,8 @@
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
(GVAR(ammoClassCopy) != "" && GVAR(magazineClassCopy) != "" && GVAR(weaponClassCopy) != "" && !GVAR(RangeCardOpened) && ("ACE_RangeCard" in (uniformItems ACE_player)) || ("ACE_RangeCard" in (vestItems ACE_player)))
|
||||
GVAR(ammoClassCopy) != "" &&
|
||||
GVAR(magazineClassCopy) != "" &&
|
||||
GVAR(weaponClassCopy) != "" &&
|
||||
!GVAR(RangeCardOpened) &&
|
||||
"ACE_RangeCard" in ([ACE_player] call EFUNC(common,uniqueItems))
|
||||
|
Loading…
Reference in New Issue
Block a user