Fix incorrect threat range of SA-5

The SA-5 was not part of the radar_db.py and therefore the threat_range calculation was wrong / ever LN counted as threat even when the TR was dead. Also fixed a wrong unit for the SA-11 TELAR.
#1816
This commit is contained in:
RndName 2022-01-07 14:33:06 +01:00
parent 82dfeb8afa
commit 54745e786e
No known key found for this signature in database
GPG Key ID: 5EF516FD9537F7C0
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Saves from 5.x are not compatible with 6.0.
* **[Mission Generation]** Corrected Viggen FR22 & FR24 preset channels for the DCS 2.7.9 update * **[Mission Generation]** Corrected Viggen FR22 & FR24 preset channels for the DCS 2.7.9 update
* **[Mission Generation]** Fixed an issue which prevented the mission generation if two controlpoints are really close to each other (e.g. Marianas campaigns) * **[Mission Generation]** Fixed an issue which prevented the mission generation if two controlpoints are really close to each other (e.g. Marianas campaigns)
* **[Mission Generation]** Fixed the SA-5 Generator to use the P-19 FlatFace SR as a Fallback radar if the faction does not have access to the TinShield SR. * **[Mission Generation]** Fixed the SA-5 Generator to use the P-19 FlatFace SR as a Fallback radar if the faction does not have access to the TinShield SR.
* **[Mission Generation]** Fixed incorrect SA-5 threat range when TR destroyed. It will not count as threat anymore when the TR is dead.
* **[UI]** Enable / Disable the settings, save and stats actions if no game is loaded to prevent an error as these functions can only be used on a valid game. * **[UI]** Enable / Disable the settings, save and stats actions if no game is loaded to prevent an error as these functions can only be used on a valid game.
# 5.0.0 # 5.0.0

View File

@ -25,7 +25,7 @@ from dcs.vehicles import AirDefence
TELARS = { TELARS = {
AirDefence._2S6_Tunguska, AirDefence._2S6_Tunguska,
AirDefence.SA_11_Buk_SR_9S18M1, AirDefence.SA_11_Buk_LN_9A310M1,
AirDefence.Osa_9A33_ln, AirDefence.Osa_9A33_ln,
AirDefence.Tor_9A331, AirDefence.Tor_9A331,
AirDefence.Roland_ADS, AirDefence.Roland_ADS,
@ -38,6 +38,7 @@ TRACK_RADARS = {
AirDefence.Hawk_tr, AirDefence.Hawk_tr,
AirDefence.Patriot_str, AirDefence.Patriot_str,
AirDefence.SNR_75V, AirDefence.SNR_75V,
AirDefence.RPC_5N62V,
AirDefence.Rapier_fsa_blindfire_radar, AirDefence.Rapier_fsa_blindfire_radar,
AirDefence.HQ_7_STR_SP, AirDefence.HQ_7_STR_SP,
} }
@ -52,6 +53,7 @@ LAUNCHER_TRACKER_PAIRS = {
AirDefence.S_75M_Volhov: AirDefence.SNR_75V, AirDefence.S_75M_Volhov: AirDefence.SNR_75V,
AirDefence.Rapier_fsa_launcher: AirDefence.Rapier_fsa_blindfire_radar, AirDefence.Rapier_fsa_launcher: AirDefence.Rapier_fsa_blindfire_radar,
AirDefence.HQ_7_LN_SP: AirDefence.HQ_7_STR_SP, AirDefence.HQ_7_LN_SP: AirDefence.HQ_7_STR_SP,
AirDefence.S_200_Launcher: AirDefence.RPC_5N62V,
} }
UNITS_WITH_RADAR = { UNITS_WITH_RADAR = {
@ -80,6 +82,8 @@ UNITS_WITH_RADAR = {
AirDefence.Roland_Radar, AirDefence.Roland_Radar,
AirDefence.Snr_s_125_tr, AirDefence.Snr_s_125_tr,
AirDefence.SNR_75V, AirDefence.SNR_75V,
AirDefence.RLS_19J6,
AirDefence.RPC_5N62V,
AirDefence.Rapier_fsa_blindfire_radar, AirDefence.Rapier_fsa_blindfire_radar,
AirDefence.HQ_7_LN_SP, AirDefence.HQ_7_LN_SP,
AirDefence.HQ_7_STR_SP, AirDefence.HQ_7_STR_SP,