ACE3/addons/cargo/functions
Samuel Deutsch edf4a70ed6
Refuel - Added ability to refuel fuel sources (#8981)
* Simplify main fuel loop

* Remove unecessary action macro

* Add container refueling

* Fuel counter behaviour is now consistent for both limited and unlimited fuel sources

* Update maxFuel and refuelContainer whenever fueling begins

* Update maxFuel and refuelContainer whenever fueling begins

* Prevent loading of fuel sources into cargo when they have a nozzle connected to them

* Added action to check how much fuel is left in a jerry can

* Prevent jerry cans from being picked up if they have a nozzle connected to them

* Added function to check if a nozzle can be connected to an object

* Prevent fuel sources which have their nozzle deployed from being loaded

* Compute both tank volumes inside of refuel instead of durring turn on

* Didn't mean to delete these

* Allow for user defined fuel capacities

* Handle more edge cases with infinite fuel sources

* Refuel - Prevent fuel sources from being dragged while they're refueling other things

* Refuel - Added flow rate multiplier for refueling fuel sources

* Refuel - Use FUNC instead of DFUNC for nozzle actions

* Refuel - getCapacity should return REFUEL_DISABLED_FUEL instead of 0 when argument is not a fuel source

* Refuel - Correctly reset fuel counter when fueling a new target

* Refuel - Implemented all suggested changes

* Refuel - Added newlines to end of files

* Refuel - Added missing newline at end of XEH_PREP

* Only setFuel once per jerry can creation

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Calling getFuel will initialize the fuel source

* Refuel - Add newline to end of file

---------

Co-authored-by: BaerMitUmlaut <baermitumlaut@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-02-16 20:06:11 -06:00
..
fnc_addCargoItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_addCargoVehiclesActions.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_canLoadItemIn.sqf Refuel - Added ability to refuel fuel sources (#8981) 2023-02-16 20:06:11 -06:00
fnc_canUnloadItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_getCargoSpaceLeft.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_getNameItem.sqf Cargo - Improve config and fnc_getNameItem (#8777) 2022-01-30 12:12:52 -06:00
fnc_getSizeItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_handleDeleted.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_handleDestroyed.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_initObject.sqf General - Change object config lookups to configOf (#8795) 2022-03-08 21:41:21 -06:00
fnc_initVehicle.sqf General - Change object config lookups to configOf (#8795) 2022-03-08 21:41:21 -06:00
fnc_loadItem.sqf Disable damage for all cargo objects (#7946) 2020-10-10 18:58:38 +02:00
fnc_moduleSettings.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
fnc_onMenuOpen.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_paradropItem.sqf Cargo - Fix undefined object name in paradrop (#8543) 2021-10-17 00:48:31 -05:00
fnc_removeCargoItem.sqf conform isnil checking: cargo 2020-02-12 17:28:10 +01:00
fnc_renameObject.sqf Cargo - Limit text length (#8915) 2022-05-17 02:37:26 -05:00
fnc_setSize.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_setSpace.sqf Cargo - setSpace checks for existing cargo (#7133) 2019-12-07 22:10:03 +01:00
fnc_startLoadIn.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_startUnload.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_unloadCarryItem.sqf Add a way to block auto carry after unload on classes (#9013) 2022-09-01 14:06:24 -05:00
fnc_unloadItem.sqf Cargo - Make player carry/drag item on unload (#8797) 2022-05-07 22:45:57 -05:00
fnc_validateCargoSpace.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
script_component.hpp Cleaned function headers 2015-08-16 22:41:35 +02:00