mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Made Patriot and Sa-10 sites more compact, so it's easier to find valid position to generate them on the map.
This commit is contained in:
parent
818c679d4f
commit
22c552053f
@ -28,6 +28,6 @@ class PatriotGenerator(GenericSamGroupGenerator):
|
|||||||
|
|
||||||
# Short range protection for high value site
|
# Short range protection for high value site
|
||||||
num_launchers = random.randint(3, 4)
|
num_launchers = random.randint(3, 4)
|
||||||
positions = self.get_circular_position(num_launchers, launcher_distance=300, coverage=360)
|
positions = self.get_circular_position(num_launchers, launcher_distance=200, coverage=360)
|
||||||
for i, position in enumerate(positions):
|
for i, position in enumerate(positions):
|
||||||
self.add_unit(AirDefence.AAA_Vulcan_M163, "SPAAA#" + str(i), position[0], position[1], position[2])
|
self.add_unit(AirDefence.AAA_Vulcan_M163, "SPAAA#" + str(i), position[0], position[1], position[2])
|
||||||
@ -31,7 +31,7 @@ class SA10Generator(GenericSamGroupGenerator):
|
|||||||
|
|
||||||
# 2 different launcher type (C & D)
|
# 2 different launcher type (C & D)
|
||||||
num_launchers = random.randint(6, 8)
|
num_launchers = random.randint(6, 8)
|
||||||
positions = self.get_circular_position(num_launchers, launcher_distance=120, coverage=360)
|
positions = self.get_circular_position(num_launchers, launcher_distance=100, coverage=360)
|
||||||
for i, position in enumerate(positions):
|
for i, position in enumerate(positions):
|
||||||
if i%2 == 0:
|
if i%2 == 0:
|
||||||
self.add_unit(AirDefence.SAM_SA_10_S_300PS_LN_5P85C, "LN#" + str(i), position[0], position[1], position[2])
|
self.add_unit(AirDefence.SAM_SA_10_S_300PS_LN_5P85C, "LN#" + str(i), position[0], position[1], position[2])
|
||||||
@ -41,12 +41,12 @@ class SA10Generator(GenericSamGroupGenerator):
|
|||||||
# Then let's add short range protection to this high value site
|
# Then let's add short range protection to this high value site
|
||||||
# Sa-13 Strela are great for that
|
# Sa-13 Strela are great for that
|
||||||
num_launchers = random.randint(2, 4)
|
num_launchers = random.randint(2, 4)
|
||||||
positions = self.get_circular_position(num_launchers, launcher_distance=300, coverage=360)
|
positions = self.get_circular_position(num_launchers, launcher_distance=140, coverage=360)
|
||||||
for i, position in enumerate(positions):
|
for i, position in enumerate(positions):
|
||||||
self.add_unit(AirDefence.SAM_SA_13_Strela_10M3_9A35M3, "IR#" + str(i), position[0], position[1], position[2])
|
self.add_unit(AirDefence.SAM_SA_13_Strela_10M3_9A35M3, "IR#" + str(i), position[0], position[1], position[2])
|
||||||
|
|
||||||
# And even some AA
|
# And even some AA
|
||||||
num_launchers = random.randint(6, 8)
|
num_launchers = random.randint(6, 8)
|
||||||
positions = self.get_circular_position(num_launchers, launcher_distance=350, coverage=360)
|
positions = self.get_circular_position(num_launchers, launcher_distance=210, coverage=360)
|
||||||
for i, position in enumerate(positions):
|
for i, position in enumerate(positions):
|
||||||
self.add_unit(AirDefence.SPAAA_ZSU_23_4_Shilka, "AA#" + str(i), position[0], position[1], position[2])
|
self.add_unit(AirDefence.SPAAA_ZSU_23_4_Shilka, "AA#" + str(i), position[0], position[1], position[2])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user