Fixed issue with lost helicopters causing errors in debriefing.

Mission generated now configure bluefor and redfor coalition properly, so it is possible to use country that are not in the default coalitions.
Added insurgent faction.
This commit is contained in:
Khopa
2019-10-13 17:17:33 +02:00
parent a7e202bbc8
commit bd95258176
14 changed files with 233 additions and 84 deletions

View File

@@ -134,7 +134,7 @@ class VisualGenerator:
mission_units.add(db.unit_type_of(unit))
for unit_type in mission_units:
self.mission.static_group(self.mission.country("USA"), "a", unit_type, Point(0, 300000), hidden=True)
self.mission.static_group(self.mission.country(self.game.player_country), "a", unit_type, Point(0, 300000), hidden=True)
def generate_target_smokes(self, target):
spread = target.size * DESTINATION_SMOKE_DISTANCE_FACTOR