ACE3/addons/refuel/functions
johnb432 c0d74ba703
Refuel - Fix fuel source disabling (#9995)
* Add enable setting

* Exclude man class init

* Fix multiplayer terrain pump fuel sync

* Add terrain pumps positions

* Add vanilla fuel cargo restoring before destroying

* Add Livonia positions by bux

* Fix terrain pumps destruction

* Improve settings init

* Fix double settings category

* Check enabled var in public functions

* Fix fnc_makeSource

* Handle recent CUP Terrains changes

* Update includes

* Fix issues introduced in #9133

* Change warning

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Optimisations and cleanup

- Use hashmaps wherever possible
- Reduced pump search radius by ~30%
- Sorted pumps alphabetically and sorted positions by "smallest" first, for consistency

* Add init debug trace

* compileScript in dev

* yoda conditions & DFUNC macro

* Wait until CBA settings are ready

* Update Chernarus 2020 and add more maps configs

* Remove vanilla fuel cargo restoring before destroying

* Update fnc_makeSource.sqf

---------

Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-05-23 21:56:08 +02:00
..
fnc_canCheckFuel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canConnectNozzle.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canDisconnect.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canReturnNozzle.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canTakeNozzle.sqf Refuel - Add ownership concept to nozzles & jerry cans (#9826) 2024-03-05 11:55:59 -08:00
fnc_canTurnOff.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canTurnOn.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_checkFuel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_connectNozzleAction.sqf Refuel - Add ownership concept to nozzles & jerry cans (#9826) 2024-03-05 11:55:59 -08:00
fnc_disconnect.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_dropNozzle.sqf Refuel - Add ownership concept to nozzles & jerry cans (#9826) 2024-03-05 11:55:59 -08:00
fnc_getCapacity.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_getFuel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_getFuelCargo.sqf Refuel - Add enable setting (#7613) 2024-05-23 21:47:19 +02:00
fnc_handleDisconnect.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_handleRespawn.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_initSource.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_makeJerryCan.sqf Refuel - Add enable setting (#7613) 2024-05-23 21:47:19 +02:00
fnc_makeSource.sqf Refuel - Fix fuel source disabling (#9995) 2024-05-23 21:56:08 +02:00
fnc_moduleRefuelSettings.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onMouseButtonDown.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_readFuelCounter.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_refuel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_returnNozzle.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_setFuel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_startNozzleInHandsPFH.sqf Refuel - Add ownership concept to nozzles & jerry cans (#9826) 2024-03-05 11:55:59 -08:00
fnc_takeNozzle.sqf Refuel - Add ownership concept to nozzles & jerry cans (#9826) 2024-03-05 11:55:59 -08:00
fnc_turnOff.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_turnOn.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00