-
Notifications
You must be signed in to change notification settings - Fork 0
/
NPC.java
executable file
·69 lines (63 loc) · 1.93 KB
/
NPC.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
public final class NPC extends Entity
{
private Model method450()
{
if(super.anim >= 0 && super.anInt1529 == 0)
{
int k = Animation.anims[super.anim].anIntArray353[super.anInt1527];
int i1 = -1;
if(super.anInt1517 >= 0 && super.anInt1517 != super.anInt1511)
i1 = Animation.anims[super.anInt1517].anIntArray353[super.anInt1518];
return desc.method164(i1, k, Animation.anims[super.anim].anIntArray357);
}
int l = -1;
if(super.anInt1517 >= 0)
l = Animation.anims[super.anInt1517].anIntArray353[super.anInt1518];
return desc.method164(-1, l, null);
}
public Model getRotatedModel()
{
if(desc == null)
return null;
Model model = method450();
if(model == null)
return null;
super.height = model.modelHeight;
if(super.anInt1520 != -1 && super.anInt1521 != -1)
{
SpotAnim spotAnim = SpotAnim.cache[super.anInt1520];
Model model_1 = spotAnim.getModel();
if(model_1 != null)
{
int j = spotAnim.aAnimation_407.anIntArray353[super.anInt1521];
Model model_2 = new Model(true, Class36.method532(j), false, model_1);
model_2.method475(0, -super.anInt1524, 0);
model_2.method469();
model_2.method470(j);
model_2.anIntArrayArray1658 = null;
model_2.anIntArrayArray1657 = null;
if(spotAnim.anInt410 != 128 || spotAnim.anInt411 != 128)
model_2.method478(spotAnim.anInt410, spotAnim.anInt410, spotAnim.anInt411);
model_2.method479(64 + spotAnim.anInt413, 850 + spotAnim.anInt414, -30, -50, -30, true);
Model aModel[] = {
model, model_2
};
model = new Model(aModel);
}
}
if(desc.aByte68 == 1)
model.aBoolean1659 = true;
return model;
}
public boolean isVisible()
{
return desc != null;
}
NPC()
{
}
public EntityDef desc;
}