mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
transport mission stubs
This commit is contained in:
14
gen/armor.py
14
gen/armor.py
@@ -51,3 +51,17 @@ class ArmorConflictGenerator:
|
||||
unit=type,
|
||||
count=count,
|
||||
at=self.conflict.ground_defenders_location)
|
||||
|
||||
def generate_passengers(self, group_to_embark: Group, at: Point):
|
||||
unit_type = db.find_unittype(Nothing, self.conflict.attackers_side.name)
|
||||
|
||||
group = self.m.vehicle_group(
|
||||
country=self.conflict.attackers_side,
|
||||
name=namegen.next_passenger_group_name(),
|
||||
_type=unit_type,
|
||||
position=at,
|
||||
group_size=6
|
||||
)
|
||||
|
||||
wayp = group.add_waypoint(at)
|
||||
wayp.tasks.append(EmbarkToTransport())
|
||||
|
||||
@@ -29,6 +29,10 @@ class NameGenerator:
|
||||
self.number += 1
|
||||
return "AWACS Unit {}".format(self.number)
|
||||
|
||||
def next_passenger_group_name(self):
|
||||
self.number += 1
|
||||
return "Infantry Unit {}".format(self.number)
|
||||
|
||||
|
||||
namegen = NameGenerator()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user