infantry transport missions for helis

This commit is contained in:
Vasyl Horbachenko
2018-06-25 03:26:42 +03:00
parent 0110af0bec
commit f9e66dec21
54 changed files with 203 additions and 4186 deletions

View File

@@ -52,16 +52,13 @@ class ArmorConflictGenerator:
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)
def generate_passengers(self, count: int):
unit_type = random.choice(db.find_unittype(Nothing, self.conflict.attackers_side.name))
group = self.m.vehicle_group(
self.m.vehicle_group(
country=self.conflict.attackers_side,
name=namegen.next_passenger_group_name(),
_type=unit_type,
position=at,
group_size=6
position=self.conflict.ground_attackers_location,
group_size=count
)
wayp = group.add_waypoint(at)
wayp.tasks.append(EmbarkToTransport())