* Add: Now findUnloadPosition support also cargo object
- use of ace_cargo_fnc_getSizeItem to determine size of item
- prefer the config way instead of manually set size
- This will also take into account object manually added to the cargo system with ace_cargo_fnc_setsize
- use the cargo object for ace_cargo_fnc_unloadItem.
* FIX: old work around
* FIX: error when cargo module is not loaded
* As suggested by @orbis2358
This fix handle the case when cargo module is not loaded for scheduled and unscheduled environnement.
* Use ACE framework to check if module is present
* FIX: EFUNC and isEqualto
- _itemSize here is always number
- here we are in common module (addons/common/functions/fnc_findUnloadPosition) so FUNC is ace_common_fnc
* FIX case where config value is `-1`
- if the config value is -1, get the `ace_cargo_size` from the `ace_cargo_fnc_getSizeItem
-
https://github.com/acemod/ACE3/issues/6357#issuecomment-393525374
* Remove deprecated functionality for 3.12.0
* Remove associated deprecated module icon
* Restore a dummy version of old module
This is just to prevent existing missions from breaking due to a missing
object.
* Convert ACE_settings to CBA_settings
* Run Modules Globaly, BWC for SetSetting
* Add support for string settings
* ACE_ServerSettings warning
* Add handler for global setting being changed
* Add deprecated and replaced not to Settings Framework doc
* Remove options menu UI, Move Debug and HeadBug Fix to Options in Pause Menu
* Change modules scope to 1
* Disable debug
* Fix Magazine Repack underwater - fix#5513
Also prevent common goKneeling function underwater
* Fix loading patients underwater - fix#5515
* Fix load object underwater
* Fix take nozzle on jerry can underwater
* Fix refuel underwater conditions further
* Use isTouchingGround, Make refuel semi-compatible
reports false if head is out of the water, we want true even if we are not diving
* Less interact exceptions duplication
* Use animationState to determine if unit is swimming, create common function and use it instead of isTouchingGround
* Fix condition
* Support dragging underwater
No carrying due to animation timing issues and other misc things
* Allow Medical Legs SelfActions underwater
* Fix fixPosition function underwater (use getPosATL instead of getPos)
* Fix fixPosition's slope adjustment for non-gravity objects, Do the same for objects without simulation as well
* Add load in child actions to medical & captive
* Add actions with proper structure
* Move vehicles actions code to common function
* Simplify code in config, Fix docs
* Remove unused vars
* Fix header example
* Add _distance param to fnc_nearestVehiclesFreeSeat
* Change docs
* Fix spacing
* Add removeCargoItem function to cargo module
* Fix documentation typos
* Fix header 'public' field
Of course it's a public function, that's the whole point!
* Fix spelling
* Add missing then command
* Work better with objects
* After-test fixes
* Also update wiki
* Overhaul
* Make the event more robust
* Fix logic & shorten docs
- Add a ace_cargo_space attribute to vehicles to alter how much cargo they can carry.
- Add an ace_cargo_size attribute to objects to alter how much cargo space they consume.
- Add two public functions `fnc_setSize.sqf` and `fnc_setSpace.sqf` to update the cargo size/space respectively of any given object.
- Deprecate cargo makeLoadable module and public function.
- Added some macros to get the space/size of a config, making code more readable in places.
* Add submenu with vehicles to cargo load menu
* replace private ARRAY with keyword
* fix ace function macro using
* filter vehicles without cargo
* add Load condition, clean params, fix param reusing
* replace nearEntities with nearestObjects, add macro
* optimize, del magic, replace count with forEach
* del unused functions
* del useless _this parameter
* Add coef
* Show cargo paradrop time in menu
* Unary command, not a function call
* If drop time is 0 don't show a progress bar
* Add the setting to cargo's editor module
* Swap values
* Remove extra comma
* Move unload message to paradrop event
This way the message will show up on all paradrops, not just immidiate
ones.
* Optimizations with private, params, and isEqualType
* Fixed tab being used instead of space
* Fixed tabs inserted by notepad++
* More usage of new private syntax and params
- changed a few checks for an array being empty to `_arr isEqualTo []`
rather than `count _arr == 0`
- added more uses of `private` on the same line as the variable is
declared
- added more uses of params to assign variables passed as parameters
- removed unnecessary parentheses
- removed several unnecessary variable declarations with private array
syntax
* clean up and formatting