[Fix] A bunch of fixes for artillery strike

* Avoid using hard-coded Signal and HE mortar shell indices. This caused art.strikes malfunctioning in item mods.
* Trim max nubers of waves to duration of signal smoke. Otherwise art.strike turns into unnatural stupidity.
* If enemy AI tried to get art.strike but lacked of resources, player will not a warning anymore.
This commit is contained in:
sun-alf
2023-05-22 22:06:18 +03:00
parent 6e30d24ce5
commit ab2a26accb
15 changed files with 97 additions and 94 deletions
+1
View File
@@ -2549,6 +2549,7 @@ enum
MSG113_RADIO_ACTION_FAILED,
MSG113_NOT_ENOUGH_MORTAR_SHELLS,
MSG113_NO_SIGNAL_SHELL,
MSG113_NO_DEFAULT_SHELL,
MSG113_NO_MORTARS,
MSG113_ALREADY_JAMMING,
MSG113_ALREADY_LISTENING,
+1
View File
@@ -7667,6 +7667,7 @@ STR16 New113Message[] =
L"无线电操作失败!",
L"迫击炮弹不足,无法在分区发动密集轰炸!",
L"Items.xml里没有定义信号弹物品!",
L"No High-Explosive shell item found in Items.xml!",
L"未发现迫击炮,无法执行密集轰炸!",
L"干扰信号成功,不需要重复操作!",
L"正在监听周围声音,无需重复操作!",
+1
View File
@@ -7673,6 +7673,7 @@ STR16 New113Message[] =
L"Radio action failed!",
L"Not enough mortar shells in sector to start a barrage!",
L"No signal shell item found in Items.xml!",
L"No High-Explosive shell item found in Items.xml!",
L"No mortars found, cannot commence barrage!",
L"Already jamming signal, no need to do so again!",
L"Already listening for nearby sounds, no need to do so again!",
+1
View File
@@ -7667,6 +7667,7 @@ STR16 New113Message[] =
L"Radio action failed!",
L"Not enough mortar shells in sector to start a barrage!",
L"No signal shell item found in Items.xml!",
L"No High-Explosive shell item found in Items.xml!",
L"No mortars found, cannot commence barrage!",
L"Already jamming signal, no need to do so again!",
L"Already listening for nearby sounds, no need to do so again!",
+1
View File
@@ -7670,6 +7670,7 @@ STR16 New113Message[] =
L"L'action radio a échoué !",
L"Pas assez d'obus de mortier dans le secteur pour un tir de barrage !",
L"Aucun obus éclairant trouvé dans Items.xml !",
L"No High-Explosive shell item found in Items.xml!",
L"Aucun mortier trouvé, tir de barrage impossible !",
L"Brouillage radio déjà en cours, inutile d'en lancer un autre !",
L"Écoute des sons alentour déjà en cours, inutile d'en lancer une autre !",
+1
View File
@@ -7524,6 +7524,7 @@ STR16 New113Message[] =
L"Radio action failed!",
L"Not enough mortar shells in sector to start a barrage!",
L"No signal shell item found in Items.xml!",
L"No High-Explosive shell item found in Items.xml!",
L"No mortars found, cannot commence barrage!",
L"Already jamming signal, no need to do so again!",
L"Already listening for nearby sounds, no need to do so again!",
+1
View File
@@ -7664,6 +7664,7 @@ STR16 New113Message[] =
L"Radio action failed!",
L"Not enough mortar shells in sector to start a barrage!",
L"No signal shell item found in Items.xml!",
L"No High-Explosive shell item found in Items.xml!",
L"No mortars found, cannot commence barrage!",
L"Already jamming signal, no need to do so again!",
L"Already listening for nearby sounds, no need to do so again!",
+1
View File
@@ -7673,6 +7673,7 @@ STR16 New113Message[] =
L"Radio action failed!",
L"Not enough mortar shells in sector to start a barrage!",
L"No signal shell item found in Items.xml!",
L"No High-Explosive shell item found in Items.xml!",
L"No mortars found, cannot commence barrage!",
L"Already jamming signal, no need to do so again!",
L"Already listening for nearby sounds, no need to do so again!",
+1
View File
@@ -7662,6 +7662,7 @@ STR16 New113Message[] =
L"Не удалось использовать радиостанцию!",
L"Недостаточно миномётных снарядов в секторе для постановки огня!",
L"Не обнаружены сигнальные мины в Items.xml!",
L"Не обнаружены осколочно-фугасные мины в Items.xml!",
L"Нет миномётов, невозможно организовать артналет!",
L"Режим радиопомех уже включен, нет необходимости делать это снова!",
L"Режим прослушивания звуков уже включен, нет необходимости делать это снова!",