Vasya, I'm not Java specialist but yes it lacks damage model
would like to wait for someone who will do it properly
Changing the code for leaking fuel tanks and burning fuel does not help - I have tried more than 10 options for building the code.
The meshes have fuel tanks (collisions), but the game does not see them.
I don't know why - a good 3D specialist is needed here.
You can code in the classroom to set the tread thickness and leak time, checking what is obtained using tests in the game, but so far no firing of the wings leads to a leak of fuel tanks.
Sadly, very much.
This is one of the options for the code.
if(s.startsWith("xxtank"))
{
int i1 = s.charAt(6) - 49;
if(getEnergyPastArmor(0.06F, shot) > 0.0F)
{
if(FM.AS.astateTankStates[i1] == 0)
{
Aircraft.debugprintln(this, "*** Fuel Tank: Pierced..");
FM.AS.hitTank(shot.initiator, i1, 1);
FM.AS.doSetTankState(shot.initiator, i1, 1);
}
if(shot.powerType == 3)
{
if(shot.power < 14100F)
{
if(FM.AS.astateTankStates[i1] < 4 && World.Rnd().nextFloat() < 0.21F)
FM.AS.hitTank(shot.initiator, i1, 1);
} else
{
FM.AS.hitTank(shot.initiator, i1, World.Rnd().nextInt(1, 1 + (int)(shot.power / 14100F)));
Aircraft.debugprintln(this, "*** Fuel Tank: Hit..");
}
} else
if(shot.power > 14100F)
FM.AS.hitTank(shot.initiator, i1, World.Rnd().nextInt(1, 1 + (int)(shot.power / 14100F)));
Aircraft.debugprintln(this, "*** Fuel Tank: Major Hit..");
}
return;
} else