Tons of renaming

This commit is contained in:
thedaneeffect committed 2022-07-19 21:28:55 -06:00
1 parent e5438f79a4
commit 172a880a85
20 files changed
+1242 -1046

No files matched your search

+37 -27
View File
@@ -9,20 +9,22 @@ public class NPCEntity extends PathingEntity {
public NPCEntity() {
}
public Model method450() {
if ((super.anInt1526 >= 0) && (super.anInt1529 == 0)) {
int k = SeqType.instances[super.anInt1526].primaryFrames[super.anInt1527];
int i1 = -1;
if ((super.seqCurrent >= 0) && (super.seqCurrent != super.seqStand)) {
i1 = SeqType.instances[super.seqCurrent].primaryFrames[super.seqFrame];
public Model getSequencedModel() {
if ((super.seqId1 >= 0) && (super.anInt1529 == 0)) {
int frame1 = SeqType.instances[super.seqId1].primaryFrames[super.seqFrame1];
int frame2 = -1;
if ((super.seqId2 >= 0) && (super.seqId2 != super.seqStand)) {
frame2 = SeqType.instances[super.seqId2].primaryFrames[super.seqFrame2];
}
return type.method164(i1, k, SeqType.instances[super.anInt1526].anIntArray357);
return type.getSequencedModel(frame2, frame1, SeqType.instances[super.seqId1].anIntArray357);
}
int l = -1;
if (super.seqCurrent >= 0) {
l = SeqType.instances[super.seqCurrent].primaryFrames[super.seqFrame];
int frame = -1;
if (super.seqId2 >= 0) {
frame = SeqType.instances[super.seqId2].primaryFrames[super.seqFrame2];
}
return type.method164(-1, l, null);
return type.getSequencedModel(-1, frame, null);
}
@Override
@@ -30,28 +32,36 @@ public class NPCEntity extends PathingEntity {
if (type == null) {
return null;
}
Model model = method450();
Model model = getSequencedModel();
if (model == null) {
return null;
}
super.height = model.minY;
if ((super.spotanim != -1) && (super.spotanimFrame != -1)) {
SpotAnimType type = SpotAnimType.instances[super.spotanim];
Model model_1 = type.method266();
if (model_1 != null) {
int j = type.seq.primaryFrames[super.spotanimFrame];
Model class30_sub2_sub4_sub6_2 = new Model(true, SeqFrame.isNull(j), false, model_1);
class30_sub2_sub4_sub6_2.translate(0, -super.anInt1524, 0);
class30_sub2_sub4_sub6_2.createLabelReferences();
class30_sub2_sub4_sub6_2.applySequenceFrame(j);
class30_sub2_sub4_sub6_2.labelFaces = null;
class30_sub2_sub4_sub6_2.labelVertices = null;
if ((type.anInt410 != 128) || (type.anInt411 != 128)) {
class30_sub2_sub4_sub6_2.scale(type.anInt410, type.anInt410, type.anInt411);
SpotAnimType spotanim = SpotAnimType.instances[super.spotanim];
Model model0 = spotanim.getModel();
if (model0 != null) {
int frame = spotanim.seq.primaryFrames[super.spotanimFrame];
// create a copy of the model
Model model1 = new Model(true, SeqFrame.isNull(frame), false, model0);
model1.translate(0, -super.spotanimY, 0);
model1.createLabelReferences();
model1.applySequenceFrame(frame);
model1.labelFaces = null;
model1.labelVertices = null;
if ((spotanim.scaleXY != 128) || (spotanim.scaleZ != 128)) {
model1.scale(spotanim.scaleXY, spotanim.scaleXY, spotanim.scaleZ);
}
class30_sub2_sub4_sub6_2.calculateNormals(64 + type.anInt413, 850 + type.anInt414, -30, -50, -30, true);
Model[] aclass30_sub2_sub4_sub6 = {model, class30_sub2_sub4_sub6_2};
model = new Model(2, -819, aclass30_sub2_sub4_sub6);
model1.calculateNormals(64 + spotanim.lightAmbient, 850 + spotanim.lightAttenuation, -30, -50, -30, true);
model = new Model(2, -819, new Model[]{model, model1});
}
}
if (type.size == 1) {