Basic NPC rendering under playground project

This commit is contained in:
Pazaz 2022-04-25 18:25:21 -04:00
parent 8fb5b3fc75
commit 3a90dfc1b3
43 changed files with 555 additions and 315 deletions

View file

@ -389,11 +389,11 @@ public abstract class PathingEntity extends Entity {
@Pc(245) int local245 = local201 <= local87 ? local201 : local87;
Static101.anInt2640 = (int) (Math.atan2((double) (local212 - local231), (double) local27) * 325.95D) & 0x7FF;
if (Static101.anInt2640 != 0) {
arg0.method4574(Static101.anInt2640);
arg0.rotateX(Static101.anInt2640);
}
Static102.anInt2680 = (int) (Math.atan2((double) (local245 - local238), (double) local24) * 325.95D) & 0x7FF;
if (Static102.anInt2680 != 0) {
arg0.method4564(Static102.anInt2680);
arg0.rotateZ(Static102.anInt2680);
}
Static62.anInt1938 = local224 + local87;
if (local201 + local134 < Static62.anInt1938) {
@ -401,7 +401,7 @@ public abstract class PathingEntity extends Entity {
}
Static62.anInt1938 = (Static62.anInt1938 >> 1) - this.anInt3424;
if (Static62.anInt1938 != 0) {
arg0.method4575(0, Static62.anInt1938, 0);
arg0.translate(0, Static62.anInt1938, 0);
}
}
@ -521,10 +521,10 @@ public abstract class PathingEntity extends Entity {
this.anInt3383 += this.anInt3355;
if (this.anInt3383 != 0) {
local101 = this.anInt3383 >> 5 & 0x7FF;
local106 = arg0.method4549() / 2;
arg0.method4575(0, -local106, 0);
arg0.method4564(local101);
arg0.method4575(0, local106, 0);
local106 = arg0.getMaxY() / 2;
arg0.translate(0, -local106, 0);
arg0.rotateZ(local101);
arg0.translate(0, local106, 0);
}
if (local28 != this.anInt3367) {
this.anInt3367 = local28;
@ -612,10 +612,10 @@ public abstract class PathingEntity extends Entity {
return;
}
local101 = this.anInt3427 >> 5 & 0x7FF;
local106 = arg0.method4549() / 2;
arg0.method4575(0, -local106, 0);
arg0.method4574(local101);
arg0.method4575(0, local106, 0);
local106 = arg0.getMaxY() / 2;
arg0.translate(0, -local106, 0);
arg0.rotateX(local101);
arg0.translate(0, local106, 0);
}
@OriginalMember(owner = "client!fe", name = "b", descriptor = "(I)I")