Skip to content

Commit

Permalink
Merge pull request #1644 from bagigi-arma/fix/wirecutter-backpacks
Browse files Browse the repository at this point in the history
FIX: Backpacks with integrated Wirecutter can Break Doors
  • Loading branch information
Vdauphin authored Aug 17, 2024
2 parents 640a3b6 + 6696a52 commit e4be084
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ if (btc_p_arsenal_Restrict isNotEqualTo 0) then {[btc_gear_object, btc_p_arsenal
//Door
_action = ["door_break", localize "STR_BTC_HAM_ACTION_DOOR_BREAK", "\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa", {
[btc_door_fnc_break] call CBA_fnc_execNextFrame;
}, {"ACE_wirecutter" in items player}] call ace_interact_menu_fnc_createAction;
}, {
(((player call ace_common_fnc_uniqueItems) arrayIntersect ace_logistics_wirecutter_possibleWirecutters) isNotEqualTo []) || {getNumber ((configOf (backpackContainer player)) >> "ace_logistics_wirecutter_hasWirecutter") == 1} ||
{getNumber (configFile >> "CfgWeapons" >> (vest player) >> "ace_logistics_wirecutter_hasWirecutter") == 1}
}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions", "ACE_Equipment"], _action] call ace_interact_menu_fnc_addActionToObject;

//Flag
Expand Down

0 comments on commit e4be084

Please sign in to comment.