Взято из
CockpitD3A2_TGunner.java
Код:
public void moveGun(Orient orient)
{
super.moveGun(orient);
mesh.chunkSetAngles("Turret1A", 0.0F, orient.getYaw(), 0.0F);
mesh.chunkSetAngles("Turret1B", 0.0F, orient.getTangage(), 0.0F);
}
public void clipAnglesGun(Orient orient)
{
if(isRealMode())
if(!aiTurret().bIsOperable)
{
orient.setYPR(0.0F, 0.0F, 0.0F);
} else
{
float f = orient.getYaw();
float f1 = orient.getTangage();
if(f < -33F)
f = -33F;
if(f > 33F)
f = 33F;
if(f1 > 62F)
f1 = 62F;
if(f1 < -3F)
f1 = -3F;
orient.setYPR(f, f1, 0.0F);
orient.wrap();
}
}
Код:
static java.lang.Class _mthclass$(java.lang.String s)
{
java.lang.Class class1;
try
{
class1 = java.lang.Class.forName(s);
}
catch(java.lang.ClassNotFoundException classnotfoundexception)
{
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}
return class1;
}
static
{
Property.set(com.maddox.il2.objects.air.CockpitKi30A_TGunner.class, "aiTuretNum", 0);
Property.set(com.maddox.il2.objects.air.CockpitKi30A_TGunner.class, "weaponControlNum", 10);
Property.set(com.maddox.il2.objects.air.CockpitKi30A_TGunner.class, "astatePilotIndx", 1);
}
}