* First Push
Added the ability to edit cargo objects (crates/boxes only) names. Either via in-game action on the object it self or via 3den attributes.
Added a single function which spawns the UI to edit the name and also edits it. This is an scripted UI, it could be changed to a config version if wanted, but as I'm not good in UI coding I left it on this simple version mainly for testing.
Added 4 new stringtable entries, 2 for action and 2 for 3den attributes.
* Add extra stringtable
Forgot to add the UI to the stringtable.
* Update fnc_renameObject.sqf
fixing tabs
* Show custom name only behind
Added new function "getNameItem" that will get the items name.
Put the custom name behind the original name between brackets "[...]".
* Added "Hide Rename Action" setting
Also removed an unused _itemClass from postInit.
* Apply suggestions from code review
Co-authored-by: jonpas <jonpas33@gmail.com>
* Update AUTHORS.txt
Added my name
* Applied the sugesstions.
* Fixed function crash
* Moved to dialog.
* Removed unused comment/code
* Update renameMenu.hpp
Fixed tabs to spaces.
* Update renameMenu.hpp
* move rename to common
* Update addons/arsenal/ui/RscAttributes.hpp
* style and use addActionToObject
Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* 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 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
Allows cargo objects to be added via classname and reduces simulation/synchronization overhead. Objects become physical upon unloading and cannot be re-made virtual, only scripts can add such virtual objects.
Also separates the player feedback from the loading/unloading code and adds a progress bar.