dcs_liberation/gen/sam/sam_vulcan.py
Khopa 2167953b87 Ground objects are always generated and destroyable, even when it's not the current mission objective.
Fix : SAM site destruction status is saved correctly.
Added most SAM site to generator.
2019-10-06 16:14:13 +02:00

19 lines
607 B
Python

import random
from dcs.vehicles import AirDefence, Unarmed
from gen.sam.group_generator import AntiAirGroupGenerator
class VulcanGenerator(AntiAirGroupGenerator):
"""
This generate a Vulcan group
"""
def generate(self):
self.add_unit(AirDefence.AAA_Vulcan_M163, "SPAAA", self.position.x, self.position.y, self.heading)
if random.randint(0, 1) == 1:
self.add_unit(AirDefence.AAA_Vulcan_M163, "SPAAA2", self.position.x, self.position.y, self.heading)
self.add_unit(Unarmed.Transport_M818, "TRUCK", self.position.x + 80, self.position.y, self.heading)