Уважаемые коллеги прошу помощи. Вот класс корабля с ходовыми огнями, выделено черным, которые включаются ночью. Что и где нужно прописать что бы добавить эффект работающий круглосуточно?
Код:
/* Old_Gunboat - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
package com.maddox.il2.objects.ships;
import com.maddox.JGP.Point3d;
import com.maddox.il2.ai.World;
import com.maddox.il2.ai.ground.TgtShip;
import com.maddox.il2.engine.Eff3DActor;
import com.maddox.il2.engine.HookNamed;
import com.maddox.il2.engine.LightPointActor;
import com.maddox.il2.engine.LightPointWorld;
import com.maddox.il2.engine.Loc;
import com.maddox.rts.SectFile;
public abstract class Old_Gunboat extends Ship
{
/*synthetic*/ static Class class$com$maddox$il2$objects$ships$Old_Gunboat$Koreyets;
public static class Koreyets extends BigshipGeneric implements TgtShip
{
public LightPointActor light1;
public LightPointActor light2;
public LightPointActor light3;
public LightPointActor light4;
public LightPointActor[] lightk;
public Koreyets() {
lightk = new LightPointActor[5];
}
public Koreyets(String string, int i, SectFile sectfile,
String string_0_, SectFile sectfile_1_,
String string_2_) {
super(string, i, sectfile, string_0_, sectfile_1_, string_2_);
lightk = new LightPointActor[5];
Loc loc = new Loc(0.0, 0.0, 0.0, 0.0F, 0.0F, 0.0F);
Loc loc_3_ = new Loc();
Loc loc_4_ = new Loc();
Loc loc_5_ = new Loc();
Loc loc_6_ = new Loc();
Loc loc_7_ = new Loc();
if (World.Sun().ToSun.z < -0.15F) {
for (int i_8_ = 0; i_8_ < 6; i_8_++)
Eff3DActor.New(this, findHook("_CLight" + i_8_), null,
1.0F, "3DO/Effects/Lights/FlareWhitek.eff",
-1.0F);
Eff3DActor.New(this, findHook("_GLight"), null, 1.0F,
"3DO/Effects/Lights/FlareGreenkb.eff", -1.0F);
Eff3DActor.New(this, findHook("_RLight"), null, 1.0F,
"3DO/Effects/Lights/FlareRedkb.eff", -1.0F);
{
}
}
}
}
/*synthetic*/ static Class class$(String string) {
Class var_class;
try {
var_class = Class.forName(string);
} catch (ClassNotFoundException classnotfoundexception) {
throw new NoClassDefFoundError(classnotfoundexception
.getMessage());
}
return var_class;
}
static {
new BigshipGeneric.SPAWN
(class$com$maddox$il2$objects$ships$Old_Gunboat$Koreyets == null
? (class$com$maddox$il2$objects$ships$Old_Gunboat$Koreyets
= class$("com.maddox.il2.objects.ships.Old_Gunboat$Koreyets"))
: class$com$maddox$il2$objects$ships$Old_Gunboat$Koreyets);
}
}