While trying to add the code to verify id the player's section was shot down by an enemy aicraft, or AA, I've found another bug: after the section leader is shot down, each time a friendly aircraft is shot you'll get the Mission failed message again! So, this needs to be fixed too.
Axel73, I've studied russsian while I was at school for some years, but there's a lot of years from then, so even if I still can fully read it, I'm only understand like half of it. Yet, that is enough when helped with an online russian english dictionary, an automatic translator and my history knowledge to make a very good translation. The texts are not literature, but plain informative ones, so they are simple enough to be translated by someone who knows a little bit of russian.
Again, please ask someone who really knows well both and ask him for a confirmation of the accuracy of the translation. Like Ataros for example.
PS: here's the code which prevents the mission to fail if player's section leader was not shot down by an airplane, and which prevents the message to be repeated for each friendly aircraft downed, once player's section leader is shot down
Код:
bool isSectionLeaderDead = false;
...
if (actor.Army() == 2)
{
if (!isSectionLeaderDead && airc1.Person(0) != null && !(airc1.Person(0).IsAlive()))
{
isSectionLeaderDead = true;
bool aircFound = false;
foreach (DamagerScore i in initiatorList)
{
if (i.initiator != null)
{
if ((i.initiator.Actor is AiAircraft) && (i.initiator.Actor.Army() == 1))
{
aircFound = true;
}
}
}
if (!aircFound)
{
serverMessage("Your Rottenführer is down!");
return;
}
Campaign.battleSuccess = false;
serverMessage("They've shot down your Rottenführer!");
HUDMessgeTo("You've failed the main objective!");
Timeout(10.0, () =>
{
GamePlay.gpHUDLogCenter("Press ESC to end mission!");
});
}
}