GOM_fnc_aircraftLoadout V1.35
by Grumpy Old Man
Features:
Change serial (tail) number on compatible aircraft (currently supported: Gryphon, Shikra and Black Wasp)
Change pylon priority (makes multiple pylons act as a single weapon if they have the same priority)
Works with all addon aircrafts with properly configured pylons
Preset function to save presets and load them, mission/server independent
deleting a preset works only when holding down CTRL to prevent mishaps
Option to set pylon ownership to either gunner or pilot, also works with presets
Change the livery of the aircraft if it's configured for one
Allows certain players to modify aircraft loadouts, as well as rearm the pylons and repair/refuel the aircraft
Can be restricted to work only if fuel/ammo/repair sources are within 50m of the object holding the menu
You can simultaneously only refuel as many aircraft as you have fuel sources
Can sort for compatible weapons or allow to mount all weapons on all pylons
Ability to set reporting, receiving of remote targets and own position
One click to clear all pylons if you changed your mind
Can be operated by a lone pilot or a designated logistics crew
Multiple players can install multiple pylons on the same plane, one pylon at a time
Pylon installation will take some time, depending on mag size (twin cannons or gatlings will install faster than a 12 missile dagr pod)
Rearming with engines on
How to use this script:
Unpack the downloaded .rar and check out the demo mission.
Copy the file structure besides init.sqf and mission.sqm into your own mission. Don't forget to back up before overwriting any files!
Functions for mission makers:
List of commands used by remoteExec (changed in 1.33😞
Read:
The addAction on objects will only show up if the players weapon is lowered.
Make sure you have aircraft placed that are dynamic loadout compatible (especially for missions made pre 1.70!).
The script now by default needs to have at least one ammo source, repair source or fuel source within 50m of the object that is holding the loadout menu.
The respective options will be greyed out otherwise.
This can be changed however. Simply adjust the variables in the of GOM_fnc_aircraftLoadoutParameters.sqf to your liking, the comments tell you what each variable does.
(!) Check out the included mission file on how to add this menu to objects, players or triggers, dedicated server and local hosted server compatible.
Aircraft Loadout V1.35 Download
Known issues:
If you encounter any errors please send me a PM containing details (screenshots,.rpt,error messages etc).
If you encounter vehicle resources not working with ACE3 check out the functions for mission makers section above.
Changelog:
V1.35
Fixed: Players are no longer able to load presets created with a different pylon restriction setting, thanks @magicsrp
Due to this change all presets needed to be reset
V1.342
(Most likely) Fixed: Error with CUP Aircraft not returning getAllHitPointsDamage
V1.341
Fixed: "Unknown attribute t" .rpt spam, thanks @magicsrp
Previous changes:
10.07.2021:
Added the file to google drive, so it should be permanent.
Also removed the armaholic link. RIP.
Enjoy