Для полноты картины надо бы добавить в дм 3До ещё пару повреждений.
Код:
if(s.endsWith("supc") && getEnergyPastArmor(0.05F, shot) > 0.0F && World.Rnd().nextFloat() < 0.89F)
{
FM.EI.engines[0].setKillCompressor(shot.initiator);
Aircraft.debugprintln(this, "*** Engine Supercharger Out..");
}
if(s.endsWith("eqpt") && getEnergyPastArmor(World.Rnd().nextFloat(0.001F, 0.2F), shot) > 0.0F && World.Rnd().nextFloat() < 0.89F)
{
if(World.Rnd().nextFloat() < 0.11F)
{
FM.EI.engines[0].setMagnetoKnockOut(shot.initiator, World.Rnd().nextInt(0, 1));
Aircraft.debugprintln(this, "*** Engine Magneto Out..");
}
if(World.Rnd().nextFloat() < 0.11F)
{
FM.EI.engines[0].setKillCompressor(shot.initiator);
Aircraft.debugprintln(this, "*** Engine Compressor Feed Out..");
}
}
return;
}
Это за движком две коробочки - побольше и поменьше.
Второй блок цилиндров - это || s.endsWith("
cyl2"))