Strengthen SA-10, add point defense.

Fixes https://github.com/Khopa/dcs_liberation/issues/417, though the
notes on that bug about this being non-optimal for skynet are still
true. This doesn't make skynet behavior any worse though, and does
improve it some compared to not having PD.

Adds two new SA-10 generator variants:

* Tier 2, with SA-15 for point defense
* Tier 3, with SA-15 for point defense and the Shilka upgraded to a
  Tunguska.

Updated factions that are capable of those systems, added missing SAMs
to those factions, and removed use of SA-19 as an independent SAM from
those factions. Will do a larger audit of faction SAMs later.
This commit is contained in:
Dan Albert
2020-11-27 01:00:16 -08:00
parent 43a21cb341
commit fa5b842cc7
9 changed files with 80 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
from __future__ import annotations
import math
import random
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Type
from dcs import unitgroup
from dcs.point import PointAction
@@ -38,7 +38,7 @@ class GroupGenerator:
def get_generated_group(self) -> unitgroup.VehicleGroup:
return self.vg
def add_unit(self, unit_type: VehicleType, name: str, pos_x: float,
def add_unit(self, unit_type: Type[VehicleType], name: str, pos_x: float,
pos_y: float, heading: int) -> Vehicle:
unit = Vehicle(self.game.next_unit_id(),
f"{self.go.group_name}|{name}", unit_type.id)