EPLRS implemented for base defense unit.

This commit is contained in:
Khopa
2020-10-03 18:32:11 +02:00
parent db36a76c2c
commit 5ecf9aeed8
3 changed files with 7 additions and 3 deletions

View File

@@ -184,6 +184,7 @@ class GroundConflictGenerator:
for dcs_group, group in ally_groups:
# TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs
if hasattr(group.units[0], 'eprls'):
if group.units[0].eprls:
dcs_group.points[0].tasks.append(EPLRS(dcs_group.id))

View File

@@ -80,6 +80,11 @@ class GroundObjectsGenerator:
vehicle.heading = u.heading
vehicle.player_can_drive = True
vg.add_unit(vehicle)
#TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs
if hasattr(utype, 'eprls'):
if utype.eprls:
vg.points[0].tasks.append(EPLRS(vg.id))
else:
vg = self.m.ship_group(side, g.name, utype, position=g.position,
heading=g.units[0].heading)