ACE3/addons/rearm/functions
Tuupertunut 0644ad9ca2 Rearm bugfixing (#5411)
* Added workaround functions for turret magazine ammo.

* Switched to retrieving turrets dynamically instead of looking them up from an array.

* Refactoring only, no functional changes

* Repurposed getNeedRearmMagazines as a general purpose rearm info function + more.

* The function retrieves all non-full magazines. This code was previously repeated in many different functions, but is now centralized in one.
* Empty pylon filling is no longer supported in favor of the upcoming "pylons" ACE-module.

Fixed bugs:

* Rearm was using broken commands "magazineTurretAmmo" and "setMagazineTurretAmmo". They are now replaced with their corresponding workaround functions.
* Pylon rearm was trying to set ammo count on empty pylons.

Note: rearmSuccessLocal is not yet fixed!

* Rearming no longer switches shell types in cannons/mortars.

* Added Tuupertunut to authors.

* Rearming no longer switches shell types. 2nd try.

Last time it was fixed only if the turret is manned. Now it is fixed even when unmanned.

* Updated fnc_rearm to support the earlier repurposing of fnc_getNeedRearmMagazines.

* Small fixes and comments.

* Renamed fnc_getVehicleMagazines to fnc_getTurretConfigMagazines.

The latter describes much better what the function actually does.

* Removed redundant checks.

* Refactoring.

* Fixed spaces in macros.

* Renamed fnc_getAllTurrets to fnc_getAllRearmTurrets
2017-09-29 14:53:25 -05:00
..
fnc_addMagazineToSupply.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_addRearmActions.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_addVehicleMagazinesToSupply.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_canReadSupplyCounter.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_canRearm.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_canStoreAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_canTakeAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_createDummy.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_disable.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_dropAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getAllRearmTurrets.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getCaliber.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getHardpointMagazines.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_getMaxMagazines.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getNeedRearmMagazines.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getSupplyCount.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_getTurretConfigMagazines.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_getTurretMagazineAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_grabAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_handleKilled.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_handleUnconscious.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_hasEnoughSupply.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_initSupplyVehicle.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_makeDummy.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_moduleRearmSettings.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_pickUpAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_readSupplyCounter.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearm.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearmEntireVehicle.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearmEntireVehicleSuccess.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearmEntireVehicleSuccessLocal.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearmSuccess.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_rearmSuccessLocal.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_removeMagazineFromSupply.sqf Rearm - Pylon Support and Dynamically Add Supply Actions (#5183) 2017-06-08 11:47:52 -05:00
fnc_setSupplyCount.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_setTurretMagazineAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_storeAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_takeAmmo.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
fnc_takeSuccess.sqf Rearm bugfixing (#5411) 2017-09-29 14:53:25 -05:00
script_component.hpp More fixes 2015-08-15 19:23:02 +02:00