Summary
Mod that allows buddy loading. Applicable to most launchers and machine guns.
Description
BuddyLoad adds a customizable action to allow buddy loading on specific launchers and all machine guns.
This mod enables belt linking on all vanilla machine guns.
To enable buddy loading, the base character prefab should have BuddyLoad and BuddyLoadMG registered in ActionManagerComponent, as well as compatible weapons and ammo prefabs having the BuddyLoadCompat component attached.
To make weapons work with buddy load its as simple as adding a BuddyLoadCompat component. However to make ammo compatible, ammo prefabs need to be updated with a BuddyLoadCompat component, as well as a BLGadgetComponent with is holdable toggled on. To make the held ammo have animations refer the MagazineInventoryComponent on my ammo prefabs and copy the animation variables over, make adjustments as needed.
KNOWN ISSUES
Due to the mod being designed with the M4 MAAWS mod in mind, only the maaws and any launcher that uses a MuzzleComponent rather than a MuzzleInMag component are compatible with buddy loading, I will try to make the script work with MuzzleInMag launchers but I haven't been successful so far.
Buddy loaded ammo cannot change ammo types, this is due to how I use SetAmmo, rather than changing the ammo in the launcher itself, I will try to fix this as well but it's not looking too hopeful for this feature.
License
Arma Public License Share Alike (APL-SA)