Skip to content

Commit

Permalink
EPLRS for 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Khopa committed Oct 5, 2020
1 parent efbc6fe commit 819d775
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
4 changes: 4 additions & 0 deletions gen/groundobjectsgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def generate(self):
vehicle.heading = u.heading
vehicle.player_can_drive = True
vg.add_unit(vehicle)

if hasattr(utype, 'eplrs'):
if utype.eplrs:
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)
Expand Down
42 changes: 21 additions & 21 deletions pydcs_extensions/frenchpack/frenchpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ERC_90(unittype.VehicleType):
detection_range = 0
threat_range = 4000
air_weapon_dist = 4000
eprls = True
eplrs = True


class VAB__50(unittype.VehicleType):
Expand All @@ -34,7 +34,7 @@ class VAB__50(unittype.VehicleType):
detection_range = 0
threat_range = 1200
air_weapon_dist = 1200
eprls = True
eplrs = True


class VAB_T20_13(unittype.VehicleType):
Expand All @@ -43,7 +43,7 @@ class VAB_T20_13(unittype.VehicleType):
detection_range = 0
threat_range = 2000
air_weapon_dist = 2000
eprls = True
eplrs = True


class VAB_MEPHISTO(unittype.VehicleType):
Expand All @@ -52,7 +52,7 @@ class VAB_MEPHISTO(unittype.VehicleType):
detection_range = 0
threat_range = 4000
air_weapon_dist = 4000
eprls = True
eplrs = True


class VBL__50(unittype.VehicleType):
Expand All @@ -61,7 +61,7 @@ class VBL__50(unittype.VehicleType):
detection_range = 0
threat_range = 1200
air_weapon_dist = 1200
eprls = True
eplrs = True


class VBL_AANF1(unittype.VehicleType):
Expand All @@ -70,7 +70,7 @@ class VBL_AANF1(unittype.VehicleType):
detection_range = 0
threat_range = 1000
air_weapon_dist = 1000
eprls = True
eplrs = True


class VBAE_CRAB(unittype.VehicleType):
Expand All @@ -79,7 +79,7 @@ class VBAE_CRAB(unittype.VehicleType):
detection_range = 0
threat_range = 3500
air_weapon_dist = 3500
eprls = True
eplrs = True


class VBAE_CRAB_MMP(unittype.VehicleType):
Expand All @@ -88,7 +88,7 @@ class VBAE_CRAB_MMP(unittype.VehicleType):
detection_range = 0
threat_range = 3500
air_weapon_dist = 3500
eprls = True
eplrs = True


class AMX_30B2(unittype.VehicleType):
Expand Down Expand Up @@ -121,7 +121,7 @@ class DIM__TOYOTA_BLUE(unittype.VehicleType):
detection_range = 0
threat_range = 1200
air_weapon_dist = 1200
eprls = True
eplrs = True


class DIM__TOYOTA_GREEN(unittype.VehicleType):
Expand All @@ -130,7 +130,7 @@ class DIM__TOYOTA_GREEN(unittype.VehicleType):
detection_range = 0
threat_range = 1200
air_weapon_dist = 1200
eprls = True
eplrs = True


class DIM__TOYOTA_DESERT(unittype.VehicleType):
Expand All @@ -139,7 +139,7 @@ class DIM__TOYOTA_DESERT(unittype.VehicleType):
detection_range = 0
threat_range = 1200
air_weapon_dist = 1200
eprls = True
eplrs = True


class DIM__KAMIKAZE(unittype.VehicleType):
Expand All @@ -148,7 +148,7 @@ class DIM__KAMIKAZE(unittype.VehicleType):
detection_range = 0
threat_range = 50
air_weapon_dist = 50
eprls = True
eplrs = True

## FORTIFICATION

Expand Down Expand Up @@ -187,39 +187,39 @@ class TRM_2000(unittype.VehicleType):
detection_range = 3500
threat_range = 0
air_weapon_dist = 0
eprls = True
eplrs = True

class TRM_2000_Fuel(unittype.VehicleType):
id = "TRM2000_Citerne"
name = "TRM-2000 Fuel"
detection_range = 3500
threat_range = 0
air_weapon_dist = 0
eprls = True
eplrs = True

class VAB_MEDICAL(unittype.VehicleType):
id = "VABH"
name = "VAB MEDICAL"
detection_range = 0
threat_range = 0
air_weapon_dist = 0
eprls = True
eplrs = True

class VAB(unittype.VehicleType):
id = "VAB_RADIO"
name = "VAB"
detection_range = 0
threat_range = 0
air_weapon_dist = 0
eprls = True
eplrs = True

class VBL(unittype.VehicleType):
id = "VBL-Radio"
name = "VBL"
detection_range = 0
threat_range = 0
air_weapon_dist = 0
eprls = True
eplrs = True

class Tracma_TD_1500(unittype.VehicleType):
id = "Tracma"
Expand All @@ -236,7 +236,7 @@ class SMOKE_SAM_IR(unittype.VehicleType):
detection_range = 20000
threat_range = 20000
air_weapon_dist = 20000
eprls = True
eplrs = True

class _53T2(unittype.VehicleType):
id = "AA20"
Expand All @@ -251,15 +251,15 @@ class TRM_2000_53T2(unittype.VehicleType):
detection_range = 6000
threat_range = 2000
air_weapon_dist = 2000
eprls = True
eplrs = True

class TRM_2000_PAMELA(unittype.VehicleType):
id = "TRMMISTRAL"
name = "TRM-2000 PAMELA"
detection_range = 8000
threat_range = 10000
air_weapon_dist = 10000
eprls = True
eplrs = True

## INFANTRY

Expand All @@ -285,4 +285,4 @@ class VAB_MORTIER(unittype.VehicleType):
detection_range = 0
threat_range = 15000
air_weapon_dist = 15000
eprls = True
eplrs = True

0 comments on commit 819d775

Please sign in to comment.