PHP код:
private void doStart(float f)
{
super.start(-1F, 0);
fm = ((Aircraft)getOwner()).FM;
tStart = Time.current();
if(Config.isUSE_RENDER())
{
fl1 = Eff3DActor.New(this, findHook("_NavLightR"), null, 1.0F, "3DO/Effects/Fireworks/FlareRed.eff", -1F);
fl2 = Eff3DActor.New(this, findHook("_NavLightG"), null, 1.0F, "3DO/Effects/Fireworks/FlareGreen.eff", -1F);
flame.drawing(false);
}
pos.getAbs(p, or);
or.setYPR(or.getYaw(), or.getPitch(), 0.0F);
pos.setAbs(p, or);
}
public void destroy()
{
if(isNet() && isNetMirror())
doExplosionAir();
if(Config.isUSE_RENDER())
{
Eff3DActor.finish(fl1);
Eff3DActor.finish(fl2);
}
super.destroy();
}
protected void doExplosion(Actor actor, String s)
{
pos.getTime(Time.current(), p);
MsgExplosion.send(actor, s, p, getOwner(), 45F, 2.0F, 1, 550F);
super.doExplosion(actor, s);
}
protected void doExplosionAir()
{
pos.getTime(Time.current(), p);
MsgExplosion.send(null, null, p, getOwner(), 45F, 2.0F, 1, 550F);
super.doExplosionAir();
}
public NetMsgSpawn netReplicate(NetChannel netchannel)
throws IOException
{
NetMsgSpawn netmsgspawn = super.netReplicate(netchannel);
netmsgspawn.writeNetObj(getOwner().net);
Point3d point3d = pos.getAbsPoint();
netmsgspawn.writeFloat((float)point3d.x);
netmsgspawn.writeFloat((float)point3d.y);
netmsgspawn.writeFloat((float)point3d.z);
Orient orient = pos.getAbsOrient();
netmsgspawn.writeFloat(orient.azimut());
netmsgspawn.writeFloat(orient.tangage());
float f = (float)getSpeed(null);
netmsgspawn.writeFloat(f);
return netmsgspawn;
}
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;
}
private FlightModel fm;
private Eff3DActor fl1;
private Eff3DActor fl2;
private static Orient or = new Orient();
private static Point3d p = new Point3d();
private static Point3d pT = new Point3d();
private static Vector3d v = new Vector3d();
private static Actor hunted = null;
private long tStart;
private float prevd;
static
{
Class class1 = com.maddox.il2.objects.weapons.RocketX4_F.class;
Property.set(class1, "mesh", "3do/arms/X-4/mono.sim");
Property.set(class1, "sprite", "3DO/Effects/Tracers/GuidedRocket/Black.eff");
Property.set(class1, "flame", "3do/effects/rocket/mono.sim");
Property.set(class1, "smoke", "3DO/Effects/Tracers/GuidedRocket/White.eff");
Property.set(class1, "emitColor", new Color3f(1.0F, 1.0F, 0.5F));
Property.set(class1, "emitLen", 50F);
Property.set(class1, "emitMax", 1.0F);
Property.set(class1, "sound", "weapon.rocket_132");
Property.set(class1, "radius", 58F);
Property.set(class1, "timeLife", 400F);
Property.set(class1, "timeFire", 200.0F);
Property.set(class1, "force", 15712F);
Property.set(class1, "power", 17.5F);
Property.set(class1, "powerType", 1);
Property.set(class1, "kalibr", 0.22F);
Property.set(class1, "massa", 90F);
Property.set(class1, "massaEnd", 67.5F);
Spawn.add(class1, new SPAWN());
}
}
---------------
Может кому пригодиться.
|