mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
updates to strike missions; frontline operations invalid units placement fixed; minor UI updates
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import pickle
|
||||
|
||||
from dcs.mission import Mission
|
||||
from dcs.terrain import PersianGulf
|
||||
|
||||
m = Mission()
|
||||
m.load_file("./gulf_terrain.miz")
|
||||
for terrain in ["cau", "gulf"]:
|
||||
m = Mission()
|
||||
m.load_file("./{}_terrain.miz".format(terrain))
|
||||
|
||||
landmap = []
|
||||
for plane_group in m.country("USA").plane_group:
|
||||
landmap.append([(x.position.x, x.position.y) for x in plane_group.points])
|
||||
landmap = []
|
||||
for plane_group in m.country("USA").plane_group:
|
||||
landmap.append([(x.position.x, x.position.y) for x in plane_group.points])
|
||||
|
||||
with open("../gulflandmap.p", "wb") as f:
|
||||
pickle.dump(landmap, f)
|
||||
with open("../{}landmap.p".format(terrain), "wb") as f:
|
||||
pickle.dump(landmap, f)
|
||||
|
||||
Reference in New Issue
Block a user