intercept mission

This commit is contained in:
Vasyl Horbachenko
2018-05-29 22:50:35 +03:00
committed by Vasyl Horbachenko
parent a61f487196
commit 781ddce09d
10 changed files with 256 additions and 96 deletions

View File

@@ -35,7 +35,22 @@ theater.senaki.base.aa = {
AirDefence.AAA_ZU_23_on_Ural_375: 2,
}
op = game.mission.CaptureOperation.playerless(m, theater.kutaisi, theater.senaki)
"""
op = game.mission.CaptureOperation(m, m.country("USA"), m.country("Russia"), theater.senaki, theater.batumi, {A_10C: 2}, {F_15C: 2}, {Armor.MBT_M1A2_Abrams: 4}, {Su_27: 4}, {Armor.MBT_T_55: 4}, {})
op.generate()
"""
op = game.mission.InterceptOperation(m,
m.country("USA"),
m.country("Russia"),
theater.batumi,
m.terrain.batumi(),
escort={Su_27: 2},
transport={An_26B: 2},
interceptors={M_2000C: 2})
op.generate()
if not os.path.exists("./build"):
os.mkdir("./build")
m.save("build/output.miz")