mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
19 lines
547 B
Python
19 lines
547 B
Python
import random
|
|
|
|
from dcs.vehicles import AirDefence
|
|
|
|
from gen.sam.group_generator import AntiAirGroupGenerator
|
|
|
|
|
|
class ZU23UralGenerator(AntiAirGroupGenerator):
|
|
"""
|
|
This generate a Zu23 Ural group
|
|
"""
|
|
|
|
def generate(self):
|
|
num_launchers = random.randint(2, 8)
|
|
|
|
positions = self.get_circular_position(num_launchers, launcher_distance=80, coverage=360)
|
|
for i, position in enumerate(positions):
|
|
self.add_unit(AirDefence.AAA_ZU_23_on_Ural_375, "SPAA#" + str(i), position[0], position[1], position[2])
|