Cargo - Remove the ability to load cooked-off items (#8876)

This commit is contained in:
Wakbub 2022-05-02 23:57:19 +00:00 committed by GitHub
parent 6a213bcf60
commit f3258cae98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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