mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
EPLRS implemented for base defense unit.
This commit is contained in:
parent
db36a76c2c
commit
5ecf9aeed8
@ -1,9 +1,7 @@
|
|||||||
# 2.1.4
|
# 2.1.4
|
||||||
|
|
||||||
## Fixes :
|
## Fixes :
|
||||||
* **[UI]** Fixed an issue that prevent generating the mission (take off button no working) on old savegames.
|
* **[UI]** Fixed an issue that prevented generating the mission (take off button no working) on old savegames.
|
||||||
|
|
||||||
# 2.1.3
|
|
||||||
|
|
||||||
## Features/Improvements :
|
## Features/Improvements :
|
||||||
* **[Units/Factions]** Added A-10C_2 to USA 2005 and Bluefor modern factions
|
* **[Units/Factions]** Added A-10C_2 to USA 2005 and Bluefor modern factions
|
||||||
|
|||||||
@ -184,6 +184,7 @@ class GroundConflictGenerator:
|
|||||||
|
|
||||||
for dcs_group, group in ally_groups:
|
for dcs_group, group in ally_groups:
|
||||||
|
|
||||||
|
# TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs
|
||||||
if hasattr(group.units[0], 'eprls'):
|
if hasattr(group.units[0], 'eprls'):
|
||||||
if group.units[0].eprls:
|
if group.units[0].eprls:
|
||||||
dcs_group.points[0].tasks.append(EPLRS(dcs_group.id))
|
dcs_group.points[0].tasks.append(EPLRS(dcs_group.id))
|
||||||
|
|||||||
@ -80,6 +80,11 @@ class GroundObjectsGenerator:
|
|||||||
vehicle.heading = u.heading
|
vehicle.heading = u.heading
|
||||||
vehicle.player_can_drive = True
|
vehicle.player_can_drive = True
|
||||||
vg.add_unit(vehicle)
|
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:
|
else:
|
||||||
vg = self.m.ship_group(side, g.name, utype, position=g.position,
|
vg = self.m.ship_group(side, g.name, utype, position=g.position,
|
||||||
heading=g.units[0].heading)
|
heading=g.units[0].heading)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user