Skip to content

Commit

Permalink
Cargo - Remove the ability to load cooked-off items (#8876)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wakbub authored May 2, 2022
1 parent 6a213bc commit f3258ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/cargo/functions/fnc_canLoadItemIn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ if (_item isEqualType "") then {
} else {
_validItem =
(alive _item) &&
{_ignoreInteraction || {([_item, _vehicle] call EFUNC(interaction,getInteractionDistance)) < MAX_LOAD_DISTANCE}};
{_ignoreInteraction || {([_item, _vehicle] call EFUNC(interaction,getInteractionDistance)) < MAX_LOAD_DISTANCE}} &&
{!(_item getVariable [QEGVAR(cookoff,isCookingOff), false])};
};

_validItem &&
Expand Down

0 comments on commit f3258ca

Please sign in to comment.