From f4c54bb9e6ac166b35aca8be2debbed8a403f4ee Mon Sep 17 00:00:00 2001 From: Khopa Date: Tue, 8 Jun 2021 13:17:34 +0200 Subject: [PATCH] Autogenerate ammo & fuel for helipads so player controlled helicopter can use ground crew menu to refuel and rearm at FARPs. --- gen/groundobjectsgen.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gen/groundobjectsgen.py b/gen/groundobjectsgen.py index 111fd1b9..f0407c02 100644 --- a/gen/groundobjectsgen.py +++ b/gen/groundobjectsgen.py @@ -600,6 +600,24 @@ class HelipadGenerator: helipad.static_unit = sg helipad.occupied = False + # Generate a FARP Ammo and Fuel stack for each pad + self.m.static_group( + country=country, + name=(name + "_fuel"), + _type=Fortification.FARP_Fuel_Depot, + position=pad.position.point_from_heading(helipad.heading, 35), + heading=pad.heading, + ) + self.m.static_group( + country=country, + name=(name + "_ammo"), + _type=Fortification.FARP_Ammo_Storage, + position=pad.position.point_from_heading( + helipad.heading, 35 + ).point_from_heading(helipad.heading + 90, 10), + heading=pad.heading, + ) + class GroundObjectsGenerator: """Creates DCS groups and statics for the theater during mission generation.