Reinforce Infantry
This mod makes it so that infantry can be reinforced from ammo supply trucks. It includes gun crews, too!
By default, infantry can not reinforce from ammunition trucks, similar to how they did in WGRD. This mod changes it so that they can! Simply place your infantry within range of a nearby supply truck and you will see them replace lost members of their squad. It takes about four seconds for a single soldier to be replaced, at about 5 munitions per second, for about 20 munitions per soldier every four seconds.
That’s easy! Just go find the right file and change the variables. Start in the following directory:
[Mod File]GameDataGameplayConstantes
Find the named Ravitaillement.ndf and then look for the code on lines 27, labeled HealthSuppliableMovingTypes. The array should only have "EUnitMovingType/Track," in it. This tells the game which types of units to reinforce the health of. We’re going to want to add all the other types of units to this list, so that the game will try to reinforce the health of those units, too. Replace what’s in the array with this:
EUnitMovingType/Infantry,
EUnitMovingType/InfantryAmphibious,
EUnitMovingType/Track,
EUnitMovingType/TrackAmphibious,
EUnitMovingType/AllTerrainWheelAmphibious,
EUnitMovingType/HalfTrack,
EUnitMovingType/AllTerrainWheel,
EUnitMovingType/Wheel,
That will tell the game to allow supply trucks to fix up each of those types of units (which is all of the ground units in the game).
Also, huge thanks to Dekkers for helping me bugfix!
Revisions:
Old revisions of this mod are available below. Click the link to download.