-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo - Improve various aspects #9617
Conversation
Damn, that's a lot. There are so many simple checks behind lazy evals, many even in succession, that will surely do more harm than good, like the |
GVAR(interactionVehicle) and GVAR(interactionParadrop) variables keep their values after the menu is closed, this can be problematic. Found a bug when cancelling item load but trying to get consistent repro atm. |
Carry item -> Load with LMB -> Cancel load: Item remains attached to player, carrying hint is gone |
In what way? For |
#9493 (review) is still relevant. Unfortunately no text is displayed, so this issue should be resolved before being merged. |
I'm getting an error code My guess is that the cargo menu doesn't close fast enough and |
When merged this pull request will:
"ace_cargoLoaded"
from being called within event"ace_loadCargo"
to being called inFUNC(loadItem)
.FUNC(handleDeleted)
, as it shared close to the entire code withFUNC(handleDestroyed)
.FUNC(handleDestroyed)
is now triggered when an entity is killed or deleted. It deletes all loaded cargo items of a vehicle. It also checks if item was in a vehicle as cargo and removes itself from said vehicle's cargo.FUNC(validateCargoSpace)
, as it serves no purpose.is now
They aren't quite the same, but I feel the updated version is what is intended.
FUNC(canUnloadItem)
received more conditions to check.FUNC(initObject)
be executed every time as global and JIP when its size is changed.FUNC(initVehicle)
, as it also had the same problem.QGVAR(space)
is kept up to date more rigorously and accurately. The integration of negative sizes of items has been improved.common
were also cleaned up, as they were used.dragging
,FUNC(dropObject_carry)
was improved so that it no longer drops the carried item if it's possible to load the carried item.cargo
had their categories changed, as localized vs. unlocalized entries, despite resulting in the same display name, are not considered to be the same category in CBA settings. If the categories incargo
had only been changed, there would have been twoACE Logistics
categories in the CBA settings.IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.