added roe option to make attacking ai effective

This commit is contained in:
spencer-ki 2022-02-01 19:04:47 -08:00
parent b2a1d9ccd2
commit 1a2df0aad3
3 changed files with 9 additions and 4 deletions

3
Generator/Output/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
*/
!.gitignore

View File

@ -290,6 +290,7 @@ class RotorOpsMission:
def zone_attack(fg, unit_type):
fg.set_skill(dcs.unit.Skill.Random)
fg.late_activation = True
fg.points[0].tasks.append(dcs.task.OptROE(0))
#fg.load_loadout(unit_type["loadout"])
#task = dcs.task.CAS
#loadout = dcs.planes.Su_25.loadout(task)
@ -315,7 +316,7 @@ class RotorOpsMission:
"Enemy Attack Helicopters",
helo,
airport=enemy_airport,
maintask=dcs.task.GroundAttack,
maintask=dcs.task.CAS,
start_type=dcs.mission.StartType.Warm,
group_size=2)
zone_attack(afg, helo)
@ -325,7 +326,7 @@ class RotorOpsMission:
afg = self.m.flight_group_from_airport(
russia, "Enemy Attack Planes", plane["type"],
airport=enemy_airport,
maintask=dcs.task.GroundAttack,
maintask=dcs.task.CAS,
start_type=dcs.mission.StartType.Warm,
group_size=2)
zone_attack(afg, plane)

View File

@ -20,7 +20,8 @@ e_transport_helos = [
]
e_attack_planes = [
{'type': dcs.planes.Su_34, 'loadout': "APU-8 Vikhr-M*2,Kh-25ML,R-73*2,SPPU-22*2,Mercury LLTV Pod,MPS-410"},
{'type': dcs.planes.Su_25, 'loadout': "RKB-250*8,R-60M*2"},
#{'type': dcs.planes.Su_34, 'loadout': "APU-8 Vikhr-M*2,Kh-25ML,R-73*2,SPPU-22*2,Mercury LLTV Pod,MPS-410"},
#{'type': dcs.planes.Su_25, 'loadout': "RKB-250*8,R-60M*2"},
{'type': dcs.planes.A_10C, 'loadout': ""}
]