Movede some functions to SceneGraph

This commit is contained in:
Pazaz 2022-06-27 17:24:42 -04:00
parent 8e878adea5
commit 0b44eca4ba
33 changed files with 2509 additions and 2567 deletions

View file

@ -85,6 +85,8 @@ public class Camera {
public static int anInt4774 = 0; public static int anInt4774 = 0;
@OriginalMember(owner = "client!sj", name = "H", descriptor = "I") @OriginalMember(owner = "client!sj", name = "H", descriptor = "I")
public static int anInt5161 = 0; public static int anInt5161 = 0;
@OriginalMember(owner = "client!af", name = "d", descriptor = "I")
public static int anInt40;
public static double mod(double a, double b) { public static double mod(double a, double b) {
return ((a % b) + b) % b; return ((a % b) + b) % b;
@ -140,7 +142,7 @@ public class Camera {
if (anInt4612 >= 100) { if (anInt4612 >= 100) {
renderX = anInt5375 * 128 + 64; renderX = anInt5375 * 128 + 64;
renderZ = anInt4232 * 128 + 64; renderZ = anInt4232 * 128 + 64;
Static5.anInt40 = SceneGraph.getTileHeight(Player.level, renderX, renderZ) - Static231.anInt5203; anInt40 = SceneGraph.getTileHeight(Player.level, renderX, renderZ) - Static231.anInt5203;
} else { } else {
if (renderX < local15) { if (renderX < local15) {
renderX += Static233.anInt5225 + anInt4612 * (local15 - renderX) / 1000; renderX += Static233.anInt5225 + anInt4612 * (local15 - renderX) / 1000;
@ -148,10 +150,10 @@ public class Camera {
renderX = local15; renderX = local15;
} }
} }
if (Static5.anInt40 < local23) { if (anInt40 < local23) {
Static5.anInt40 += (local23 - Static5.anInt40) * anInt4612 / 1000 + Static233.anInt5225; anInt40 += (local23 - anInt40) * anInt4612 / 1000 + Static233.anInt5225;
if (Static5.anInt40 > local23) { if (anInt40 > local23) {
Static5.anInt40 = local23; anInt40 = local23;
} }
} }
if (renderX > local15) { if (renderX > local15) {
@ -166,10 +168,10 @@ public class Camera {
renderZ = local9; renderZ = local9;
} }
} }
if (local23 < Static5.anInt40) { if (local23 < anInt40) {
Static5.anInt40 -= (Static5.anInt40 - local23) * anInt4612 / 1000 + Static233.anInt5225; anInt40 -= (anInt40 - local23) * anInt4612 / 1000 + Static233.anInt5225;
if (local23 > Static5.anInt40) { if (local23 > anInt40) {
Static5.anInt40 = local23; anInt40 = local23;
} }
} }
if (renderZ > local9) { if (renderZ > local9) {
@ -182,7 +184,7 @@ public class Camera {
local9 = anInt5765 * 128 + 64; local9 = anInt5765 * 128 + 64;
local15 = anInt5449 * 128 + 64; local15 = anInt5449 * 128 + 64;
local23 = SceneGraph.getTileHeight(Player.level, local15, local9) - anInt1744; local23 = SceneGraph.getTileHeight(Player.level, local15, local9) - anInt1744;
@Pc(236) int local236 = local23 - Static5.anInt40; @Pc(236) int local236 = local23 - anInt40;
@Pc(241) int local241 = local9 - renderZ; @Pc(241) int local241 = local9 - renderZ;
@Pc(246) int local246 = local15 - renderX; @Pc(246) int local246 = local15 - renderX;
@Pc(257) int local257 = (int) Math.sqrt((double) (local246 * local246 + local241 * local241)); @Pc(257) int local257 = (int) Math.sqrt((double) (local246 * local246 + local241 * local241));
@ -272,7 +274,7 @@ public class Camera {
local173 = anIntArrayArrayArray9[anInt3718][local70 + 2][local72] + local131 - local119 - local111; local173 = anIntArrayArrayArray9[anInt3718][local70 + 2][local72] + local131 - local119 - local111;
renderCoordinates[local72] = (float) local119 + (((float) local173 * local66 + (float) local155) * local66 + (float) local146) * local66; renderCoordinates[local72] = (float) local119 + (((float) local173 * local66 + (float) local155) * local66 + (float) local146) * local66;
} }
Static5.anInt40 = (int) renderCoordinates[1] * -1; anInt40 = (int) renderCoordinates[1] * -1;
renderX = (int) renderCoordinates[0] - originX * 128; renderX = (int) renderCoordinates[0] - originX * 128;
renderZ = (int) renderCoordinates[2] - originZ * 128; renderZ = (int) renderCoordinates[2] - originZ * 128;
@Pc(226) float[] local226 = new float[3]; @Pc(226) float[] local226 = new float[3];
@ -308,7 +310,7 @@ public class Camera {
@Pc(30) int local30 = anInt5449 * 128 + 64; @Pc(30) int local30 = anInt5449 * 128 + 64;
@Pc(36) int local36 = anInt5765 * 128 + 64; @Pc(36) int local36 = anInt5765 * 128 + 64;
@Pc(44) int local44 = SceneGraph.getTileHeight(Player.level, local30, local36) - anInt1744; @Pc(44) int local44 = SceneGraph.getTileHeight(Player.level, local30, local36) - anInt1744;
@Pc(49) int local49 = local44 - Static5.anInt40; @Pc(49) int local49 = local44 - anInt40;
@Pc(54) int local54 = local30 - renderX; @Pc(54) int local54 = local30 - renderX;
@Pc(59) int local59 = local36 - renderZ; @Pc(59) int local59 = local36 - renderZ;
@Pc(70) int local70 = (int) Math.sqrt((double) (local59 * local59 + local54 * local54)); @Pc(70) int local70 = (int) Math.sqrt((double) (local59 * local59 + local54 * local54));
@ -334,7 +336,7 @@ public class Camera {
if (arg0 && anInt4612 >= 100) { if (arg0 && anInt4612 >= 100) {
renderX = anInt5375 * 128 + 64; renderX = anInt5375 * 128 + 64;
renderZ = anInt4232 * 128 + 64; renderZ = anInt4232 * 128 + 64;
Static5.anInt40 = SceneGraph.getTileHeight(Player.level, renderX, renderZ) - Static231.anInt5203; anInt40 = SceneGraph.getTileHeight(Player.level, renderX, renderZ) - Static231.anInt5203;
} }
cameraType = 2; cameraType = 2;
} }
@ -381,4 +383,44 @@ public class Camera {
clampCameraAngle(); clampCameraAngle();
} }
} }
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(IIIIIIII)V")
public static void method555(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5, @OriginalArg(7) int arg6) {
@Pc(5) int local5;
@Pc(29) int local29;
if (GlRenderer.enabled) {
local5 = arg1 - 334;
if (local5 < 0) {
local5 = 0;
} else if (local5 > 100) {
local5 = 100;
}
local29 = local5 * (ScriptRunner.aShort27 - ScriptRunner.aShort30) / 100 + ScriptRunner.aShort30;
arg3 = local29 * arg3 >> 8;
}
local5 = 2048 - arg6 & 0x7FF;
local29 = 2048 - arg4 & 0x7FF;
@Pc(55) int local55 = 0;
@Pc(57) int local57 = arg3;
@Pc(59) int local59 = 0;
@Pc(72) int local72;
@Pc(68) int local68;
if (local5 != 0) {
local68 = MathUtils.cos[local5];
local72 = MathUtils.sin[local5];
local59 = local72 * -arg3 >> 16;
local57 = local68 * arg3 >> 16;
}
if (local29 != 0) {
local72 = MathUtils.sin[local29];
local68 = MathUtils.cos[local29];
local55 = local72 * local57 >> 16;
local57 = local57 * local68 >> 16;
}
cameraPitch = arg6;
cameraYaw = arg4;
renderZ = arg5 - local57;
renderX = arg0 - local55;
anInt40 = arg2 - local59;
}
} }

View file

@ -9,6 +9,8 @@ import java.io.IOException;
public class ClientProt { public class ClientProt {
@OriginalMember(owner = "client!e", name = "Dc", descriptor = "Lclient!na;") @OriginalMember(owner = "client!e", name = "Dc", descriptor = "Lclient!na;")
public static final JagString aClass100_363 = JagString.parse("_labels"); public static final JagString aClass100_363 = JagString.parse("_labels");
@OriginalMember(owner = "client!bh", name = "C", descriptor = "Lclient!na;")
public static final JagString COMPLETE_PERCENT = JagString.parse("<br>(X100(U(Y");
@OriginalMember(owner = "client!wc", name = "g", descriptor = "I") @OriginalMember(owner = "client!wc", name = "g", descriptor = "I")
public static int anInt5804 = 0; public static int anInt5804 = 0;
@OriginalMember(owner = "client!nm", name = "U", descriptor = "I") @OriginalMember(owner = "client!nm", name = "U", descriptor = "I")
@ -265,7 +267,7 @@ public class ClientProt {
} }
if (Static233.loadingScreenState != 0) { if (Static233.loadingScreenState != 0) {
Static114.drawTextOnScreen(true, JagString.concatenate(new JagString[] { LocalizedText.LOADING, Static18.COMPLETE_PERCENT})); Static114.drawTextOnScreen(true, JagString.concatenate(new JagString[] { LocalizedText.LOADING, COMPLETE_PERCENT}));
} }
client.audioLoop(); client.audioLoop();
@ -347,9 +349,9 @@ public class ClientProt {
if (i < Player.level - 1) { if (i < Player.level - 1) {
} }
if (SceneGraph.allLevelsAreVisible()) { if (SceneGraph.allLevelsAreVisible()) {
Static146.method2750(0); SceneGraph.method2750(0);
} else { } else {
Static146.method2750(SceneGraph.firstVisibleLevel); SceneGraph.method2750(SceneGraph.firstVisibleLevel);
} }
SceneGraph.unload(); SceneGraph.unload();
if (GlRenderer.enabled && hasUnderWaterMap) { if (GlRenderer.enabled && hasUnderWaterMap) {
@ -381,7 +383,7 @@ public class ClientProt {
} }
for (chunkX = 0; chunkX < 104; chunkX++) { for (chunkX = 0; chunkX < 104; chunkX++) {
for (chunkZ = 0; chunkZ < 104; chunkZ++) { for (chunkZ = 0; chunkZ < 104; chunkZ++) {
Static220.spawnGroundObject(chunkZ, chunkX); Protocol.spawnGroundObject(chunkZ, chunkX);
} }
} }
ScriptRunner.method2218(); ScriptRunner.method2218();

View file

@ -21,7 +21,7 @@ public class LightingManager {
@OriginalMember(owner = "client!ch", name = "w", descriptor = "I") @OriginalMember(owner = "client!ch", name = "w", descriptor = "I")
public static int anInt987; public static int anInt987;
@OriginalMember(owner = "client!id", name = "b", descriptor = "I") @OriginalMember(owner = "client!id", name = "b", descriptor = "I")
public static int anInt2875 = -1; public static int anInt2875 = -1;
@OriginalMember(owner = "client!jf", name = "c", descriptor = "[I") @OriginalMember(owner = "client!jf", name = "c", descriptor = "[I")
private static int[] anIntArray283; private static int[] anIntArray283;
@OriginalMember(owner = "client!jf", name = "d", descriptor = "I") @OriginalMember(owner = "client!jf", name = "d", descriptor = "I")
@ -29,7 +29,7 @@ public static int anInt2875 = -1;
@OriginalMember(owner = "client!jf", name = "e", descriptor = "I") @OriginalMember(owner = "client!jf", name = "e", descriptor = "I")
private static int anInt3030; private static int anInt3030;
@OriginalMember(owner = "client!jf", name = "f", descriptor = "[Z") @OriginalMember(owner = "client!jf", name = "f", descriptor = "[Z")
private static boolean[] aBooleanArray65; private static boolean[] enabledLights;
@OriginalMember(owner = "client!jf", name = "g", descriptor = "[[[I") @OriginalMember(owner = "client!jf", name = "g", descriptor = "[[[I")
private static int[][][] anIntArrayArrayArray11; private static int[][][] anIntArrayArrayArray11;
@OriginalMember(owner = "client!jf", name = "h", descriptor = "[I") @OriginalMember(owner = "client!jf", name = "h", descriptor = "[I")
@ -45,9 +45,9 @@ public static int anInt2875 = -1;
@OriginalMember(owner = "client!jf", name = "n", descriptor = "I") @OriginalMember(owner = "client!jf", name = "n", descriptor = "I")
private static int anInt3035; private static int anInt3035;
@OriginalMember(owner = "client!jf", name = "o", descriptor = "I") @OriginalMember(owner = "client!jf", name = "o", descriptor = "I")
private static int anInt3036; private static int length;
@OriginalMember(owner = "client!jf", name = "p", descriptor = "I") @OriginalMember(owner = "client!jf", name = "p", descriptor = "I")
private static int anInt3037; private static int width;
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(IIIIIII)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(IIIIIII)V")
public static void method2388(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6) { public static void method2388(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6) {
@ -56,19 +56,19 @@ public static int anInt2875 = -1;
} }
if (arg0 == 1 && arg5 > 0) { if (arg0 == 1 && arg5 > 0) {
method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6); method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6);
} else if (arg0 == 4 && arg5 < anInt3037 - 1) { } else if (arg0 == 4 && arg5 < width - 1) {
method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6); method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6);
} else if (arg0 == 8 && arg6 > 0) { } else if (arg0 == 8 && arg6 > 0) {
method2393(arg1, arg2, arg3, arg4, arg5, arg6 - 1); method2393(arg1, arg2, arg3, arg4, arg5, arg6 - 1);
} else if (arg0 == 2 && arg6 < anInt3036 - 1) { } else if (arg0 == 2 && arg6 < length - 1) {
method2393(arg1, arg2, arg3, arg4, arg5, arg6 + 1); method2393(arg1, arg2, arg3, arg4, arg5, arg6 + 1);
} else if (arg0 == 16 && arg5 > 0 && arg6 < anInt3036 - 1) { } else if (arg0 == 16 && arg5 > 0 && arg6 < length - 1) {
method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6 + 1); method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6 + 1);
} else if (arg0 == 32 && arg5 < anInt3037 - 1 && arg6 < anInt3036 - 1) { } else if (arg0 == 32 && arg5 < width - 1 && arg6 < length - 1) {
method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6 + 1); method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6 + 1);
} else if (arg0 == 128 && arg5 > 0 && arg6 > 0) { } else if (arg0 == 128 && arg5 > 0 && arg6 > 0) {
method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6 - 1); method2393(arg1, arg2, arg3, arg4, arg5 - 1, arg6 - 1);
} else if (arg0 == 64 && arg5 < anInt3037 - 1 && arg6 > 0) { } else if (arg0 == 64 && arg5 < width - 1 && arg6 > 0) {
method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6 - 1); method2393(arg1, arg2, arg3, arg4, arg5 + 1, arg6 - 1);
} }
} }
@ -86,7 +86,7 @@ public static int anInt2875 = -1;
public static void method2390() { public static void method2390() {
for (@Pc(1) int local1 = 0; local1 < 4; local1++) { for (@Pc(1) int local1 = 0; local1 < 4; local1++) {
anIntArray284[local1] = -1; anIntArray284[local1] = -1;
method2396(local1); disableLight(local1);
} }
} }
@ -155,7 +155,7 @@ public static int anInt2875 = -1;
for (local35 = 0; local35 < 4; local35++) { for (local35 = 0; local35 < 4; local35++) {
if (!aBooleanArray66[local35]) { if (!aBooleanArray66[local35]) {
anIntArray284[local35] = -1; anIntArray284[local35] = -1;
method2396(local35); disableLight(local35);
} }
} }
anInt3031 = arg3; anInt3031 = arg3;
@ -168,9 +168,9 @@ public static int anInt2875 = -1;
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(III)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(III)V")
public static void method2392() { public static void method2392() {
anInt3032 = 4; anInt3032 = 4;
anInt3037 = 104; width = 104;
anInt3036 = 104; length = 104;
anIntArrayArrayArray11 = new int[anInt3032][anInt3037][anInt3036]; anIntArrayArrayArray11 = new int[anInt3032][width][length];
} }
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(IIIIII)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(IIIIII)V")
@ -211,7 +211,7 @@ public static int anInt2875 = -1;
for (local47 = 0; local47 < 4; local47++) { for (local47 = 0; local47 < 4; local47++) {
if (!aBooleanArray66[local47]) { if (!aBooleanArray66[local47]) {
anIntArray284[local47] = -1; anIntArray284[local47] = -1;
method2396(local47); disableLight(local47);
} }
} }
anInt3031 = arg3; anInt3031 = arg3;
@ -255,8 +255,8 @@ public static int anInt2875 = -1;
local39 = 0; local39 = 0;
} }
@Pc(55) int local55 = (local8.z >> 7) + local8.radius; @Pc(55) int local55 = (local8.z >> 7) + local8.radius;
if (local55 > anInt3036 - 1) { if (local55 > length - 1) {
local55 = anInt3036 - 1; local55 = length - 1;
} }
for (@Pc(66) int local66 = local39; local66 <= local55; local66++) { for (@Pc(66) int local66 = local39; local66 <= local55; local66++) {
@Pc(75) short local75 = local8.aShortArray30[local31++]; @Pc(75) short local75 = local8.aShortArray30[local31++];
@ -265,8 +265,8 @@ public static int anInt2875 = -1;
if (local87 < 0) { if (local87 < 0) {
local87 = 0; local87 = 0;
} }
if (local95 > anInt3037 - 1) { if (local95 > width - 1) {
local95 = anInt3037 - 1; local95 = width - 1;
} }
for (@Pc(110) int local110 = local87; local110 <= local95; local110++) { for (@Pc(110) int local110 = local87; local110 <= local95; local110++) {
@Pc(121) int local121 = anIntArrayArrayArray11[local26][local110][local66]; @Pc(121) int local121 = anIntArrayArrayArray11[local26][local110][local66];
@ -286,12 +286,12 @@ public static int anInt2875 = -1;
} }
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(I)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(I)V")
private static void method2396(@OriginalArg(0) int arg0) { private static void disableLight(@OriginalArg(0) int i) {
if (aBooleanArray65[arg0]) { if (enabledLights[i]) {
aBooleanArray65[arg0] = false; enabledLights[i] = false;
@Pc(14) int local14 = arg0 + 16384 + 4; @Pc(14) int light = i + 16384 + 4;
@Pc(16) GL2 local16 = GlRenderer.gl; @Pc(16) GL2 gl = GlRenderer.gl;
local16.glDisable(local14); gl.glDisable(light);
} }
} }
@ -321,7 +321,7 @@ public static int anInt2875 = -1;
} }
} }
anIntArray284[local4] = -1; anIntArray284[local4] = -1;
method2396(local4); disableLight(local4);
} }
} }
@ -329,7 +329,7 @@ public static int anInt2875 = -1;
public static void method2398() { public static void method2398() {
lights = null; lights = null;
anIntArray284 = null; anIntArray284 = null;
aBooleanArray65 = null; enabledLights = null;
anIntArray283 = null; anIntArray283 = null;
aBooleanArray66 = null; aBooleanArray66 = null;
anIntArrayArrayArray11 = null; anIntArrayArrayArray11 = null;
@ -347,7 +347,7 @@ public static int anInt2875 = -1;
} }
for (local3 = 0; local3 < 4; local3++) { for (local3 = 0; local3 < 4; local3++) {
anIntArray284[local3] = -1; anIntArray284[local3] = -1;
method2396(local3); disableLight(local3);
} }
} }
@ -355,10 +355,10 @@ public static int anInt2875 = -1;
public static void method2401() { public static void method2401() {
lights = new Light[255]; lights = new Light[255];
anIntArray284 = new int[4]; anIntArray284 = new int[4];
aBooleanArray65 = new boolean[4]; enabledLights = new boolean[4];
anIntArray283 = new int[4]; anIntArray283 = new int[4];
aBooleanArray66 = new boolean[4]; aBooleanArray66 = new boolean[4];
anIntArrayArrayArray11 = new int[anInt3032][anInt3037][anInt3036]; anIntArrayArrayArray11 = new int[anInt3032][width][length];
} }
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(II[[[Lclient!bj;)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(II[[[Lclient!bj;)V")
@ -366,17 +366,17 @@ public static int anInt2875 = -1;
if (!Preferences.highDetailLighting) { if (!Preferences.highDetailLighting) {
return; return;
} }
@Pc(4) GL2 local4 = GlRenderer.gl; @Pc(4) GL2 gl = GlRenderer.gl;
MaterialManager.setMaterial(0, 0); MaterialManager.setMaterial(0, 0);
GlRenderer.setTextureCombineRgbMode(0); GlRenderer.setTextureCombineRgbMode(0);
GlRenderer.resetTextureMatrix(); GlRenderer.resetTextureMatrix();
GlRenderer.setTextureId(GlRenderer.anInt5328); GlRenderer.setTextureId(GlRenderer.anInt5328);
local4.glDepthMask(false); gl.glDepthMask(false);
GlRenderer.setLightingEnabled(false); GlRenderer.setLightingEnabled(false);
local4.glBlendFunc(GL2.GL_DST_COLOR, GL2.GL_ONE); gl.glBlendFunc(GL2.GL_DST_COLOR, GL2.GL_ONE);
local4.glFogfv(GL2.GL_FOG_COLOR, new float[] { 0.0F, 0.0F, 0.0F, 0.0F }, 0); gl.glFogfv(GL2.GL_FOG_COLOR, new float[] { 0.0F, 0.0F, 0.0F, 0.0F }, 0);
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_CONSTANT); gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_CONSTANT);
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_ALPHA); gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_ALPHA);
label71: for (@Pc(56) int local56 = 0; local56 < lightCount; local56++) { label71: for (@Pc(56) int local56 = 0; local56 < lightCount; local56++) {
@Pc(63) Light local63 = lights[local56]; @Pc(63) Light local63 = lights[local56];
@Pc(66) int local66 = local63.level; @Pc(66) int local66 = local63.level;
@ -411,7 +411,7 @@ public static int anInt2875 = -1;
} }
if (local66 < 0 || local160 != null && local160.aBoolean45) { if (local66 < 0 || local160 != null && local160.aBoolean45) {
GlRenderer.method4159(201.5F - (float) local63.level * 50.0F - 1.5F); GlRenderer.method4159(201.5F - (float) local63.level * 50.0F - 1.5F);
local4.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 0.0F, 0.0F, local63.alpha}, 0); gl.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 0.0F, 0.0F, local63.alpha}, 0);
local63.aClass45_1.method1556(); local63.aClass45_1.method1556();
continue label71; continue label71;
} }
@ -419,50 +419,41 @@ public static int anInt2875 = -1;
} }
} }
} }
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE); gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR); gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
local4.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA); gl.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA);
local4.glDepthMask(true); gl.glDepthMask(true);
local4.glFogfv(GL2.GL_FOG_COLOR, FogManager.fogColor, 0); gl.glFogfv(GL2.GL_FOG_COLOR, FogManager.fogColor, 0);
local4.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY); gl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
GlRenderer.restoreLighting(); GlRenderer.restoreLighting();
} }
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(ILclient!gi;III)V") @OriginalMember(owner = "client!jf", name = "a", descriptor = "(ILclient!gi;III)V")
private static void method2403(@OriginalArg(0) int arg0, @OriginalArg(1) Light arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) { private static void method2403(@OriginalArg(0) int arg0, @OriginalArg(1) Light arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
@Pc(5) int local5 = arg0 + 16384 + 4; @Pc(5) int local5 = arg0 + 16384 + 4;
@Pc(7) GL2 local7 = GlRenderer.gl; @Pc(7) GL2 gl = GlRenderer.gl;
if (!aBooleanArray65[arg0]) { if (!enabledLights[arg0]) {
local7.glEnable(local5); gl.glEnable(local5);
aBooleanArray65[arg0] = true; enabledLights[arg0] = true;
} }
local7.glLightf(local5, GL2.GL_QUADRATIC_ATTENUATION, arg1.aFloat9); gl.glLightf(local5, GL2.GL_QUADRATIC_ATTENUATION, arg1.aFloat9);
local7.glLightfv(local5, GL2.GL_DIFFUSE, arg1.diffuse, 0); gl.glLightfv(local5, GL2.GL_DIFFUSE, arg1.diffuse, 0);
aFloatArray17[0] = arg1.x - arg2; aFloatArray17[0] = arg1.x - arg2;
aFloatArray17[1] = arg1.y - arg3; aFloatArray17[1] = arg1.y - arg3;
aFloatArray17[2] = arg1.z - arg4; aFloatArray17[2] = arg1.z - arg4;
local7.glLightfv(local5, GL2.GL_POSITION, aFloatArray17, 0); gl.glLightfv(local5, GL2.GL_POSITION, aFloatArray17, 0);
} }
@OriginalMember(owner = "client!jf", name = "g", descriptor = "()V") @OriginalMember(owner = "client!jf", name = "g", descriptor = "()V")
public static void method2404() { public static void method2404() {
lightCount = 0; lightCount = 0;
for (@Pc(3) int local3 = 0; local3 < anInt3032; local3++) { for (@Pc(3) int local3 = 0; local3 < anInt3032; local3++) {
for (@Pc(8) int local8 = 0; local8 < anInt3037; local8++) { for (@Pc(8) int local8 = 0; local8 < width; local8++) {
for (@Pc(13) int local13 = 0; local13 < anInt3036; local13++) { for (@Pc(13) int local13 = 0; local13 < length; local13++) {
anIntArrayArrayArray11[local3][local8][local13] = 0; anIntArrayArrayArray11[local3][local8][local13] = 0;
} }
} }
} }
} }
@OriginalMember(owner = "client!ch", name = "c", descriptor = "(I)V")
public static void method846() {
if (!SceneGraph.allLevelsAreVisible() && LoginManager.centralPlane != Player.level) {
LoginManager.method2463(Player.level, LoginManager.centralZoneZ, LoginManager.centralZoneX, PlayerList.self.movementQueueZ[0], false, PlayerList.self.movementQueueX[0]);
} else if (Player.level != anInt2875 && MiniMap.renderMap(Player.level)) {
anInt2875 = Player.level;
ScriptRunner.method2218();
}
}
} }

View file

@ -833,444 +833,9 @@ public class LoginManager {
@Pc(45) int local45 = (regionBitPacked[local25] >> 8) * 64 - Camera.originX; @Pc(45) int local45 = (regionBitPacked[local25] >> 8) * 64 - Camera.originX;
@Pc(56) int local56 = (regionBitPacked[local25] & 0xFF) * 64 - Camera.originZ; @Pc(56) int local56 = (regionBitPacked[local25] & 0xFF) * 64 - Camera.originZ;
client.audioLoop(); client.audioLoop();
method2437(local45, arg0, local32, local56, PathFinder.collisionMaps); SceneGraph.method2437(local45, arg0, local32, local56, PathFinder.collisionMaps);
} }
} }
} }
@OriginalMember(owner = "client!jk", name = "a", descriptor = "(IZ[BII[Lclient!mj;)V")
public static void method2437(@OriginalArg(0) int arg0, @OriginalArg(1) boolean arg1, @OriginalArg(2) byte[] arg2, @OriginalArg(3) int arg3, @OriginalArg(5) CollisionMap[] arg4) {
@Pc(10) Buffer local10 = new Buffer(arg2);
@Pc(12) int local12 = -1;
while (true) {
@Pc(16) int local16 = local10.gVarSmart();
if (local16 == 0) {
return;
}
local12 += local16;
@Pc(27) int local27 = 0;
while (true) {
@Pc(31) int local31 = local10.gsmarts();
if (local31 == 0) {
break;
}
local27 += local31 - 1;
@Pc(46) int local46 = local27 & 0x3F;
@Pc(50) int local50 = local27 >> 12;
@Pc(56) int local56 = local27 >> 6 & 0x3F;
@Pc(60) int local60 = local10.g1();
@Pc(64) int local64 = local60 >> 2;
@Pc(68) int local68 = local60 & 0x3;
@Pc(72) int local72 = arg0 + local56;
@Pc(76) int local76 = local46 + arg3;
if (local72 > 0 && local76 > 0 && local72 < 103 && local76 < 103) {
@Pc(90) CollisionMap local90 = null;
if (!arg1) {
@Pc(95) int local95 = local50;
if ((SceneGraph.tileFlags[1][local72][local76] & 0x2) == 2) {
local95 = local50 - 1;
}
if (local95 >= 0) {
local90 = arg4[local95];
}
}
method3397(local50, !arg1, local50, arg1, local90, local12, local64, local72, local76, local68);
}
}
}
}
@OriginalMember(owner = "client!p", name = "a", descriptor = "(IZIZLclient!mj;IIIBII)V")
public static void method3397(@OriginalArg(0) int arg0, @OriginalArg(1) boolean arg1, @OriginalArg(2) int arg2, @OriginalArg(3) boolean arg3, @OriginalArg(4) CollisionMap arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7, @OriginalArg(9) int arg8, @OriginalArg(10) int arg9) {
if (arg1 && !SceneGraph.allLevelsAreVisible() && (SceneGraph.tileFlags[0][arg7][arg8] & 0x2) == 0) {
if ((SceneGraph.tileFlags[arg2][arg7][arg8] & 0x10) != 0) {
return;
}
if (Static4.method22(arg8, arg7, arg2) != centralPlane) {
return;
}
}
if (arg2 < SceneGraph.firstVisibleLevel) {
SceneGraph.firstVisibleLevel = arg2;
}
@Pc(62) LocType local62 = LocTypeList.get(arg5);
if (GlRenderer.enabled && local62.aBoolean216) {
return;
}
@Pc(84) int local84;
@Pc(81) int local81;
if (arg9 == 1 || arg9 == 3) {
local81 = local62.width;
local84 = local62.length;
} else {
local84 = local62.width;
local81 = local62.length;
}
@Pc(103) int local103;
@Pc(112) int local112;
if (arg7 + local84 <= 104) {
local103 = arg7 + (local84 >> 1);
local112 = arg7 + (local84 + 1 >> 1);
} else {
local112 = arg7 + 1;
local103 = arg7;
}
@Pc(129) int local129;
@Pc(133) int local133;
if (local81 + arg8 > 104) {
local129 = arg8;
local133 = arg8 + 1;
} else {
local129 = (local81 >> 1) + arg8;
local133 = arg8 + (local81 + 1 >> 1);
}
@Pc(153) int[][] local153 = SceneGraph.tileHeights[arg0];
@Pc(165) int local165 = (local84 << 6) + (arg7 << 7);
@Pc(173) int local173 = (local81 << 6) + (arg8 << 7);
@Pc(199) int local199 = local153[local103][local133] + local153[local112][local129] + local153[local103][local129] + local153[local112][local133] >> 2;
@Pc(201) int local201 = 0;
@Pc(213) int[][] local213;
if (GlRenderer.enabled && arg0 != 0) {
local213 = SceneGraph.tileHeights[0];
local201 = local199 - (local213[local112][local133] + local213[local112][local129] + local213[local103][local129] + local213[local103][local133] >> 2);
}
local213 = null;
@Pc(261) long local261 = (long) (arg7 | 0x40000000 | arg8 << 7 | arg6 << 14 | arg9 << 20);
if (arg3) {
local213 = SceneGraph.surfaceTileHeights[0];
} else if (arg0 < 3) {
local213 = SceneGraph.tileHeights[arg0 + 1];
}
if (local62.anInt4429 == 0 || arg3) {
local261 |= Long.MIN_VALUE;
}
if (local62.anInt4438 == 1) {
local261 |= 0x400000L;
}
if (local62.aBoolean213) {
local261 |= 0x80000000L;
}
if (local62.hasAreaSound()) {
AreaSoundManager.add(arg8, local62, arg9, null, arg7, arg2, null);
}
@Pc(330) boolean local330 = local62.aBoolean212 & !arg3;
local261 |= (long) arg5 << 32;
@Pc(387) Entity local387;
@Pc(403) Loc_Class139 local403;
if (arg6 == 22) {
if (Preferences.showGroundDecorations || local62.anInt4429 != 0 || local62.anInt4435 == 1 || local62.aBoolean206) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, 22, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 22, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
SceneGraph.setGroundDecor(arg2, arg7, arg8, local199, local387, local261, local62.aBoolean211);
if (local62.anInt4435 == 1 && arg4 != null) {
arg4.flagGroundDecor(arg7, arg8);
}
}
} else if (arg6 == 10 || arg6 == 11) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg6 == 11 ? arg9 + 4 : arg9, local165, local153, 10, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 10, arg6 == 11 ? arg9 + 4 : arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
if (local387 != null) {
@Pc(531) boolean local531 = Static5.method35(arg2, arg7, arg8, local199, local84, local81, local387, local261);
if (local62.aBoolean215 && local531 && arg1) {
@Pc(541) int local541 = 15;
if (local387 instanceof Model) {
local541 = ((Model) local387).method4566() / 4;
if (local541 > 30) {
local541 = 30;
}
}
for (@Pc(560) int local560 = 0; local560 <= local84; local560++) {
for (@Pc(565) int local565 = 0; local565 <= local81; local565++) {
if (SceneGraph.aByteArrayArrayArray9[arg2][arg7 + local560][local565 + arg8] < local541) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + local560][arg8 + local565] = (byte) local541;
}
}
}
}
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagScenery(arg7, local62.aBoolean207, arg8, local84, local81);
}
} else if (arg6 >= 12) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, arg6, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, arg6, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static5.method35(arg2, arg7, arg8, local199, 1, 1, local387, local261);
if (arg1 && arg6 >= 12 && arg6 <= 17 && arg6 != 13 && arg2 > 0) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x4;
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagScenery(arg7, local62.aBoolean207, arg8, local84, local81);
}
} else if (arg6 == 0) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, 0, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 0, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
SceneGraph.setWall(arg2, arg7, arg8, local199, local387, null, Static267.anIntArray517[arg9], 0, local261);
if (arg1) {
if (arg9 == 0) {
if (local62.aBoolean215) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8] = 50;
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8 + 1] = 50;
}
if (local62.aBoolean220) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x1;
}
} else if (arg9 == 1) {
if (local62.aBoolean215) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8 + 1] = 50;
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8 + 1] = 50;
}
if (local62.aBoolean220) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8 + 1] |= 0x2;
}
} else if (arg9 == 2) {
if (local62.aBoolean215) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8] = 50;
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8 + 1] = 50;
}
if (local62.aBoolean220) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7 + 1][arg8] |= 0x1;
}
} else if (arg9 == 3) {
if (local62.aBoolean215) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8] = 50;
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8] = 50;
}
if (local62.aBoolean220) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x2;
}
}
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagWall(arg9, arg6, local62.aBoolean207, arg8, arg7);
}
if (local62.wallDecorOffsetScale != 16) {
Static18.method559(arg2, arg7, arg8, local62.wallDecorOffsetScale);
}
} else if (arg6 == 1) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, 1, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 1, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
SceneGraph.setWall(arg2, arg7, arg8, local199, local387, null, anIntArray204[arg9], 0, local261);
if (local62.aBoolean215 && arg1) {
if (arg9 == 0) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8 + 1] = 50;
} else if (arg9 == 1) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8 + 1] = 50;
} else if (arg9 == 2) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8] = 50;
} else if (arg9 == 3) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8] = 50;
}
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagWall(arg9, arg6, local62.aBoolean207, arg8, arg7);
}
} else {
@Pc(1226) int local1226;
if (arg6 == 2) {
local1226 = arg9 + 1 & 0x3;
@Pc(1269) Entity local1269;
@Pc(1254) Entity local1254;
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
@Pc(1287) Loc_Class139 local1287 = local62.method3428(arg9 + 4, local165, local153, 2, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local1287.aClass36_Sub1_3, local165, local201, local173);
}
local1254 = local1287.aClass8_10;
local1287 = local62.method3428(local1226, local165, local153, 2, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local1287.aClass36_Sub1_3, local165, local201, local173);
}
local1269 = local1287.aClass8_10;
} else {
local1254 = new Loc(arg5, 2, arg9 + 4, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
local1269 = new Loc(arg5, 2, local1226, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
SceneGraph.setWall(arg2, arg7, arg8, local199, local1254, local1269, Static267.anIntArray517[arg9], Static267.anIntArray517[local1226], local261);
if (local62.aBoolean220 && arg1) {
if (arg9 == 0) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x1;
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8 + 1] |= 0x2;
} else if (arg9 == 1) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8 + 1] |= 0x2;
SceneGraph.anIntArrayArrayArray6[arg2][arg7 + 1][arg8] |= 0x1;
} else if (arg9 == 2) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7 + 1][arg8] |= 0x1;
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x2;
} else if (arg9 == 3) {
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x2;
SceneGraph.anIntArrayArrayArray6[arg2][arg7][arg8] |= 0x1;
}
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagWall(arg9, arg6, local62.aBoolean207, arg8, arg7);
}
if (local62.wallDecorOffsetScale != 16) {
Static18.method559(arg2, arg7, arg8, local62.wallDecorOffsetScale);
}
} else if (arg6 == 3) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, 3, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 3, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
SceneGraph.setWall(arg2, arg7, arg8, local199, local387, null, anIntArray204[arg9], 0, local261);
if (local62.aBoolean215 && arg1) {
if (arg9 == 0) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8 + 1] = 50;
} else if (arg9 == 1) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8 + 1] = 50;
} else if (arg9 == 2) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7 + 1][arg8] = 50;
} else if (arg9 == 3) {
SceneGraph.aByteArrayArrayArray9[arg2][arg7][arg8] = 50;
}
}
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagWall(arg9, arg6, local62.aBoolean207, arg8, arg7);
}
} else if (arg6 == 9) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, arg6, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, arg6, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static5.method35(arg2, arg7, arg8, local199, 1, 1, local387, local261);
if (local62.anInt4435 != 0 && arg4 != null) {
arg4.flagScenery(arg7, local62.aBoolean207, arg8, local84, local81);
}
if (local62.wallDecorOffsetScale != 16) {
Static18.method559(arg2, arg7, arg8, local62.wallDecorOffsetScale);
}
} else if (arg6 == 4) {
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local403 = local62.method3428(arg9, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local403.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local403.aClass8_10;
} else {
local387 = new Loc(arg5, 4, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static185.method1880(arg2, arg7, arg8, local199, local387, null, Static267.anIntArray517[arg9], 0, 0, 0, local261);
} else {
@Pc(1889) long local1889;
@Pc(1934) Entity local1934;
@Pc(1950) Loc_Class139 local1950;
if (arg6 == 5) {
local1226 = 16;
local1889 = SceneGraph.getWallKey(arg2, arg7, arg8);
if (local1889 != 0L) {
local1226 = LocTypeList.get(Integer.MAX_VALUE & (int) (local1889 >>> 32)).wallDecorOffsetScale;
}
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local1950 = local62.method3428(arg9, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local1950.aClass36_Sub1_3, local165 - Static34.anIntArray80[arg9] * 8, local201, local173 - SceneGraph.anIntArray469[arg9] * 8);
}
local1934 = local1950.aClass8_10;
} else {
local1934 = new Loc(arg5, 4, arg9, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static185.method1880(arg2, arg7, arg8, local199, local1934, null, Static267.anIntArray517[arg9], 0, local1226 * Static34.anIntArray80[arg9], SceneGraph.anIntArray469[arg9] * local1226, local261);
} else if (arg6 == 6) {
local1226 = 8;
local1889 = SceneGraph.getWallKey(arg2, arg7, arg8);
if (local1889 != 0L) {
local1226 = LocTypeList.get(Integer.MAX_VALUE & (int) (local1889 >>> 32)).wallDecorOffsetScale / 2;
}
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
local1950 = local62.method3428(arg9 + 4, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local1950.aClass36_Sub1_3, local165 - Static114.anIntArray565[arg9] * 8, local201, local173 - SceneGraph.anIntArray154[arg9] * 8);
}
local1934 = local1950.aClass8_10;
} else {
local1934 = new Loc(arg5, 4, arg9 + 4, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static185.method1880(arg2, arg7, arg8, local199, local1934, null, 256, arg9, local1226 * Static114.anIntArray565[arg9], local1226 * SceneGraph.anIntArray154[arg9], local261);
} else if (arg6 == 7) {
@Pc(2137) int local2137 = arg9 + 2 & 0x3;
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
@Pc(2183) Loc_Class139 local2183 = local62.method3428(local2137 + 4, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local2183.aClass36_Sub1_3, local165, local201, local173);
}
local387 = local2183.aClass8_10;
} else {
local387 = new Loc(arg5, 4, local2137 + 4, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static185.method1880(arg2, arg7, arg8, local199, local387, null, 256, local2137, 0, 0, local261);
} else if (arg6 == 8) {
local1226 = 8;
local1889 = SceneGraph.getWallKey(arg2, arg7, arg8);
if (local1889 != 0L) {
local1226 = LocTypeList.get(Integer.MAX_VALUE & (int) (local1889 >>> 32)).wallDecorOffsetScale / 2;
}
@Pc(2244) int local2244 = arg9 + 2 & 0x3;
@Pc(2289) Entity local2289;
if (local62.anInt4430 == -1 && local62.multiLocs == null && !local62.aBoolean214) {
@Pc(2297) int local2297 = SceneGraph.anIntArray154[arg9] * 8;
@Pc(2303) int local2303 = Static114.anIntArray565[arg9] * 8;
@Pc(2319) Loc_Class139 local2319 = local62.method3428(arg9 + 4, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local2319.aClass36_Sub1_3, local165 - local2303, local201, local173 - local2297);
}
local1934 = local2319.aClass8_10;
local2319 = local62.method3428(local2244 + 4, local165, local153, 4, local199, local213, arg1, null, local330, local173);
if (GlRenderer.enabled && local330) {
ShadowManager.method4211(local2319.aClass36_Sub1_3, local165 - local2303, local201, local173 - local2297);
}
local2289 = local2319.aClass8_10;
} else {
local1934 = new Loc(arg5, 4, arg9 + 4, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
local2289 = new Loc(arg5, 4, local2244 + 4, arg0, arg7, arg8, local62.anInt4430, local62.aBoolean209, null);
}
Static185.method1880(arg2, arg7, arg8, local199, local1934, local2289, 256, arg9, local1226 * Static114.anIntArray565[arg9], SceneGraph.anIntArray154[arg9] * local1226, local261);
}
}
}
}
} }

View file

@ -121,6 +121,14 @@ public class MiniMenu {
public static int anInt7 = 0; public static int anInt7 = 0;
@OriginalMember(owner = "client!cl", name = "Y", descriptor = "I") @OriginalMember(owner = "client!cl", name = "Y", descriptor = "I")
public static int anInt1092 = -1; public static int anInt1092 = -1;
@OriginalMember(owner = "client!p", name = "e", descriptor = "I")
public static int anInt4370;
@OriginalMember(owner = "client!jg", name = "b", descriptor = "I")
public static int anInt3039;
@OriginalMember(owner = "client!th", name = "n", descriptor = "Z")
public static boolean aBoolean302 = false;
@OriginalMember(owner = "client!bh", name = "t", descriptor = "I")
public static int clickedInventoryIndex = 0;
@OriginalMember(owner = "client!va", name = "a", descriptor = "(IZILclient!be;)V") @OriginalMember(owner = "client!va", name = "a", descriptor = "(IZILclient!be;)V")
public static void addComponentEntries(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) Component component) { public static void addComponentEntries(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) Component component) {
@ -128,7 +136,7 @@ public class MiniMenu {
add(-1, 0L, JagString.EMPTY, 0, (short) 8, component.aClass100_89, component.id); add(-1, 0L, JagString.EMPTY, 0, (short) 8, component.aClass100_89, component.id);
} }
@Pc(47) JagString local47; @Pc(47) JagString local47;
if (component.anInt530 == 2 && !Static241.aBoolean302) { if (component.anInt530 == 2 && !aBoolean302) {
local47 = MiniMap.getTargetVerb(component); local47 = MiniMap.getTargetVerb(component);
if (local47 != null) { if (local47 != null) {
add(-1, 0L, JagString.concatenate(new JagString[] {COLOR_GREEN, component.aClass100_85 }), -1, (short) 32, local47, component.id); add(-1, 0L, JagString.concatenate(new JagString[] {COLOR_GREEN, component.aClass100_85 }), -1, (short) 32, local47, component.id);
@ -160,17 +168,17 @@ public class MiniMenu {
} }
if (arg1 >= local195 && local202 <= arg0 && local195 + 32 > arg1 && local202 + 32 > arg0) { if (arg1 >= local195 && local202 <= arg0 && local195 + 32 > arg1 && local202 + 32 > arg0) {
InterfaceList.mouseOverInventoryInterface = component; InterfaceList.mouseOverInventoryInterface = component;
Static18.clickedInventoryIndex = local171; clickedInventoryIndex = local171;
if (component.objTypes[local171] > 0) { if (component.objTypes[local171] > 0) {
@Pc(267) ServerActiveProperties local267 = InterfaceList.getServerActiveProperties(component); @Pc(267) ServerActiveProperties local267 = InterfaceList.getServerActiveProperties(component);
@Pc(276) ObjType local276 = ObjTypeList.get(component.objTypes[local171] - 1); @Pc(276) ObjType local276 = ObjTypeList.get(component.objTypes[local171] - 1);
if (anInt5014 == 1 && local267.isObjOpsEnabled()) { if (anInt5014 == 1 && local267.isObjOpsEnabled()) {
if (MiniMap.anInt5062 != component.id || Static185.anInt4370 != local171) { if (MiniMap.anInt5062 != component.id || anInt4370 != local171) {
add(-1, (long) local276.id, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local276.name}), local171, (short) 40, LocalizedText.USE, component.id); add(-1, (long) local276.id, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local276.name}), local171, (short) 40, LocalizedText.USE, component.id);
} }
} else if (Static241.aBoolean302 && local267.isObjOpsEnabled()) { } else if (aBoolean302 && local267.isObjOpsEnabled()) {
@Pc(596) ParamType local596 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039); @Pc(596) ParamType local596 = anInt3039 == -1 ? null : ParamTypeList.get(anInt3039);
if ((anInt4999 & 0x10) != 0 && (local596 == null || local276.getParam(local596.defaultInt, Static121.anInt3039) != local596.defaultInt)) { if ((anInt4999 & 0x10) != 0 && (local596 == null || local276.getParam(local596.defaultInt, anInt3039) != local596.defaultInt)) {
add(anInt5393, (long) local276.id, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local276.name}), local171, (short) 3, aClass100_545, component.id); add(anInt5393, (long) local276.id, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local276.name}), local171, (short) 3, aClass100_545, component.id);
} }
} else { } else {
@ -250,7 +258,7 @@ public class MiniMenu {
if (!component.if3) { if (!component.if3) {
return; return;
} }
if (!Static241.aBoolean302) { if (!aBoolean302) {
for (local171 = 9; local171 >= 5; local171--) { for (local171 = 9; local171 >= 5; local171--) {
@Pc(765) JagString local765 = InterfaceList.getOp(component, local171); @Pc(765) JagString local765 = InterfaceList.getOp(component, local171);
if (local765 != null) { if (local765 != null) {
@ -379,7 +387,7 @@ public class MiniMenu {
} }
if (local23 == 40) { if (local23 == 40) {
Protocol.outboundBuffer.p1isaac(27); Protocol.outboundBuffer.p1isaac(27);
Protocol.outboundBuffer.p2(Static185.anInt4370); Protocol.outboundBuffer.p2(anInt4370);
Protocol.outboundBuffer.ip4(local19); Protocol.outboundBuffer.ip4(local19);
Protocol.outboundBuffer.ip2(local15); Protocol.outboundBuffer.ip2(local15);
Protocol.outboundBuffer.ip4(MiniMap.anInt5062); Protocol.outboundBuffer.ip4(MiniMap.anInt5062);
@ -602,7 +610,7 @@ public class MiniMenu {
Protocol.outboundBuffer.p2add(Camera.originX + local15); Protocol.outboundBuffer.p2add(Camera.originX + local15);
Protocol.outboundBuffer.p2(anInt4997); Protocol.outboundBuffer.p2(anInt4997);
Protocol.outboundBuffer.ip2(local19 + Camera.originZ); Protocol.outboundBuffer.ip2(local19 + Camera.originZ);
Protocol.outboundBuffer.p2(Static185.anInt4370); Protocol.outboundBuffer.p2(anInt4370);
Protocol.outboundBuffer.mp4(MiniMap.anInt5062); Protocol.outboundBuffer.mp4(MiniMap.anInt5062);
Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE); Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE);
} }
@ -665,7 +673,7 @@ public class MiniMenu {
if (local693 != null) { if (local693 != null) {
method1294(); method1294();
@Pc(1493) ServerActiveProperties local1493 = InterfaceList.getServerActiveProperties(local693); @Pc(1493) ServerActiveProperties local1493 = InterfaceList.getServerActiveProperties(local693);
Static247.method4246(local19, local15, local1493.getTargetMask(), local1493.anInt540, local693.anInt499, local693.anInt484); method4246(local19, local15, local1493.getTargetMask(), local1493.anInt540, local693.anInt499, local693.anInt484);
anInt5014 = 0; anInt5014 = 0;
aClass100_545 = MiniMap.getTargetVerb(local693); aClass100_545 = MiniMap.getTargetVerb(local693);
if (aClass100_545 == null) { if (aClass100_545 == null) {
@ -776,7 +784,7 @@ public class MiniMenu {
Cross.x = Mouse.clickX; Cross.x = Mouse.clickX;
Protocol.outboundBuffer.p1isaac(115); Protocol.outboundBuffer.p1isaac(115);
Protocol.outboundBuffer.mp4(MiniMap.anInt5062); Protocol.outboundBuffer.mp4(MiniMap.anInt5062);
Protocol.outboundBuffer.ip2(Static185.anInt4370); Protocol.outboundBuffer.ip2(anInt4370);
Protocol.outboundBuffer.ip2(local36); Protocol.outboundBuffer.ip2(local36);
Protocol.outboundBuffer.ip2add(anInt4997); Protocol.outboundBuffer.ip2add(anInt4997);
} }
@ -802,7 +810,7 @@ public class MiniMenu {
Cross.type = 2; Cross.type = 2;
Protocol.outboundBuffer.p1isaac(101); Protocol.outboundBuffer.p1isaac(101);
Protocol.outboundBuffer.ip2add(local15 + Camera.originX); Protocol.outboundBuffer.ip2add(local15 + Camera.originX);
Protocol.outboundBuffer.ip2(Static185.anInt4370); Protocol.outboundBuffer.ip2(anInt4370);
Protocol.outboundBuffer.ip2(anInt4997); Protocol.outboundBuffer.ip2(anInt4997);
Protocol.outboundBuffer.ip2(local36); Protocol.outboundBuffer.ip2(local36);
Protocol.outboundBuffer.ip2add(Camera.originZ + local19); Protocol.outboundBuffer.ip2add(Camera.originZ + local19);
@ -850,7 +858,7 @@ public class MiniMenu {
Protocol.outboundBuffer.p1isaac(248); Protocol.outboundBuffer.p1isaac(248);
Protocol.outboundBuffer.ip2add(local36); Protocol.outboundBuffer.ip2add(local36);
Protocol.outboundBuffer.p2(anInt4997); Protocol.outboundBuffer.p2(anInt4997);
Protocol.outboundBuffer.p2(Static185.anInt4370); Protocol.outboundBuffer.p2(anInt4370);
Protocol.outboundBuffer.mp4(MiniMap.anInt5062); Protocol.outboundBuffer.mp4(MiniMap.anInt5062);
} }
} }
@ -914,7 +922,7 @@ public class MiniMenu {
method1294(); method1294();
local693 = InterfaceList.getComponent(local19); local693 = InterfaceList.getComponent(local19);
MiniMap.anInt5062 = local19; MiniMap.anInt5062 = local19;
Static185.anInt4370 = local15; anInt4370 = local15;
anInt5014 = 1; anInt5014 = 1;
anInt4997 = local36; anInt4997 = local36;
InterfaceList.redraw(local693); InterfaceList.redraw(local693);
@ -1042,7 +1050,7 @@ public class MiniMenu {
anInt5014 = 0; anInt5014 = 0;
InterfaceList.redraw(InterfaceList.getComponent(MiniMap.anInt5062)); InterfaceList.redraw(InterfaceList.getComponent(MiniMap.anInt5062));
} }
if (Static241.aBoolean302) { if (aBoolean302) {
method1294(); method1294();
} }
if (pressedInventoryComponent != null && anInt2043 == 0) { if (pressedInventoryComponent != null && anInt2043 == 0) {
@ -1083,7 +1091,7 @@ public class MiniMenu {
@Pc(19) int local19 = Rasteriser.screenLowerX; @Pc(19) int local19 = Rasteriser.screenLowerX;
@Pc(33) int local33 = (arg5 - arg3) * (local17 - local19) / arg1 + local19; @Pc(33) int local33 = (arg5 - arg3) * (local17 - local19) / arg1 + local19;
x = local15 + (local13 - local15) * (arg4 - arg0) / arg2; x = local15 + (local13 - local15) * (arg4 - arg0) / arg2;
if (Static241.aBoolean302 && (anInt4999 & 0x40) != 0) { if (aBoolean302 && (anInt4999 & 0x40) != 0) {
@Pc(61) Component local61 = InterfaceList.method1418(anInt2512, anInt506); @Pc(61) Component local61 = InterfaceList.method1418(anInt2512, anInt506);
if (local61 == null) { if (local61 == null) {
method1294(); method1294();
@ -1117,9 +1125,9 @@ public class MiniMenu {
} }
if (anInt5014 == 1) { if (anInt5014 == 1) {
add(MiniMap.anInt4075, local121, JagString.concatenate(new JagString[] {aClass100_203, aClass100_164, local172.name}), x, (short) 14, LocalizedText.USE, z); add(MiniMap.anInt4075, local121, JagString.concatenate(new JagString[] {aClass100_203, aClass100_164, local172.name}), x, (short) 14, LocalizedText.USE, z);
} else if (Static241.aBoolean302) { } else if (aBoolean302) {
@Pc(363) ParamType local363 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039); @Pc(363) ParamType local363 = anInt3039 == -1 ? null : ParamTypeList.get(anInt3039);
if ((anInt4999 & 0x4) != 0 && (local363 == null || local172.getParam(local363.defaultInt, Static121.anInt3039) != local363.defaultInt)) { if ((anInt4999 & 0x4) != 0 && (local363 == null || local172.getParam(local363.defaultInt, anInt3039) != local363.defaultInt)) {
add(anInt5393, local121, JagString.concatenate(new JagString[] { aClass100_466, aClass100_164, local172.name}), x, (short) 38, aClass100_545, z); add(anInt5393, local121, JagString.concatenate(new JagString[] { aClass100_466, aClass100_164, local172.name}), x, (short) 38, aClass100_545, z);
} }
} else { } else {
@ -1222,9 +1230,9 @@ public class MiniMenu {
@Pc(951) ObjType local951 = ObjTypeList.get(local240); @Pc(951) ObjType local951 = ObjTypeList.get(local240);
if (anInt5014 == 1) { if (anInt5014 == 1) {
add(MiniMap.anInt4075, (long) local240, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local951.name }), x, (short) 33, LocalizedText.USE, z); add(MiniMap.anInt4075, (long) local240, JagString.concatenate(new JagString[] { aClass100_203, aClass100_947, local951.name }), x, (short) 33, LocalizedText.USE, z);
} else if (Static241.aBoolean302) { } else if (aBoolean302) {
@Pc(1142) ParamType local1142 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039); @Pc(1142) ParamType local1142 = anInt3039 == -1 ? null : ParamTypeList.get(anInt3039);
if ((anInt4999 & 0x1) != 0 && (local1142 == null || local951.getParam(local1142.defaultInt, Static121.anInt3039) != local1142.defaultInt)) { if ((anInt4999 & 0x1) != 0 && (local1142 == null || local951.getParam(local1142.defaultInt, anInt3039) != local1142.defaultInt)) {
add(anInt5393, (long) local240, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local951.name }), x, (short) 39, aClass100_545, z); add(anInt5393, (long) local240, JagString.concatenate(new JagString[] { aClass100_466, aClass100_947, local951.name }), x, (short) 39, aClass100_545, z);
} }
} else { } else {
@ -1274,7 +1282,7 @@ public class MiniMenu {
@Pc(32) JagString local32; @Pc(32) JagString local32;
if (anInt5014 == 1 && size < 2) { if (anInt5014 == 1 && size < 2) {
local32 = JagString.concatenate(new JagString[] { LocalizedText.USE, LocalizedText.MINISEPARATOR, aClass100_203, aClass100_961}); local32 = JagString.concatenate(new JagString[] { LocalizedText.USE, LocalizedText.MINISEPARATOR, aClass100_203, aClass100_961});
} else if (Static241.aBoolean302 && size < 2) { } else if (aBoolean302 && size < 2) {
local32 = JagString.concatenate(new JagString[] { aClass100_545, LocalizedText.MINISEPARATOR, aClass100_466, aClass100_961}); local32 = JagString.concatenate(new JagString[] { aClass100_545, LocalizedText.MINISEPARATOR, aClass100_466, aClass100_961});
} else if (Cheat.shiftClick && Keyboard.pressedKeys[Keyboard.KEY_SHIFT] && size > 2) { } else if (Cheat.shiftClick && Keyboard.pressedKeys[Keyboard.KEY_SHIFT] && size > 2) {
local32 = getOp(size - 2); local32 = getOp(size - 2);
@ -1317,9 +1325,9 @@ public class MiniMenu {
} }
if (anInt5014 == 1) { if (anInt5014 == 1) {
add(MiniMap.anInt4075, (long) arg2, JagString.concatenate(new JagString[] {aClass100_203, aClass100_407, local35 }), arg1, (short) 26, LocalizedText.USE, arg3); add(MiniMap.anInt4075, (long) arg2, JagString.concatenate(new JagString[] {aClass100_203, aClass100_407, local35 }), arg1, (short) 26, LocalizedText.USE, arg3);
} else if (Static241.aBoolean302) { } else if (aBoolean302) {
@Pc(378) ParamType local378 = Static121.anInt3039 == -1 ? null : ParamTypeList.get(Static121.anInt3039); @Pc(378) ParamType local378 = anInt3039 == -1 ? null : ParamTypeList.get(anInt3039);
if ((anInt4999 & 0x2) != 0 && (local378 == null || arg0.getParam(Static121.anInt3039, local378.defaultInt) != local378.defaultInt)) { if ((anInt4999 & 0x2) != 0 && (local378 == null || arg0.getParam(anInt3039, local378.defaultInt) != local378.defaultInt)) {
add(anInt5393, (long) arg2, JagString.concatenate(new JagString[] {aClass100_466, aClass100_407, local35 }), arg1, (short) 45, aClass100_545, arg3); add(anInt5393, (long) arg2, JagString.concatenate(new JagString[] {aClass100_466, aClass100_407, local35 }), arg1, (short) 45, aClass100_545, arg3);
} }
} else { } else {
@ -1424,7 +1432,7 @@ public class MiniMenu {
@Pc(275) int local275; @Pc(275) int local275;
if (anInt5014 == 1) { if (anInt5014 == 1) {
add(MiniMap.anInt4075, (long) arg0, JagString.concatenate(new JagString[] {aClass100_203, aClass100_561, string }), arg3, (short) 1, LocalizedText.USE, arg1); add(MiniMap.anInt4075, (long) arg0, JagString.concatenate(new JagString[] {aClass100_203, aClass100_561, string }), arg3, (short) 1, LocalizedText.USE, arg1);
} else if (!Static241.aBoolean302) { } else if (!aBoolean302) {
for (local275 = 7; local275 >= 0; local275--) { for (local275 = 7; local275 >= 0; local275--) {
if (Player.options[local275] != null) { if (Player.options[local275] != null) {
@Pc(291) short local291 = 0; @Pc(291) short local291 = 0;
@ -1503,7 +1511,7 @@ public class MiniMenu {
@OriginalMember(owner = "client!ec", name = "a", descriptor = "(B)V") @OriginalMember(owner = "client!ec", name = "a", descriptor = "(B)V")
public static void method1294() { public static void method1294() {
if (!Static241.aBoolean302) { if (!aBoolean302) {
return; return;
} }
@Pc(19) Component local19 = InterfaceList.method1418(anInt2512, anInt506); @Pc(19) Component local19 = InterfaceList.method1418(anInt2512, anInt506);
@ -1513,8 +1521,27 @@ public class MiniMenu {
local29.source = local19; local29.source = local19;
ScriptRunner.run(local29); ScriptRunner.run(local29);
} }
Static241.aBoolean302 = false; aBoolean302 = false;
anInt1092 = -1; anInt1092 = -1;
InterfaceList.redraw(local19); InterfaceList.redraw(local19);
} }
@OriginalMember(owner = "client!ub", name = "b", descriptor = "(IIIIIII)V")
public static void method4246(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(6) int arg5) {
@Pc(8) Component local8 = InterfaceList.method1418(arg0, arg1);
if (local8 != null && local8.onUse != null) {
@Pc(19) HookRequest local19 = new HookRequest();
local19.source = local8;
local19.arguments = local8.onUse;
ScriptRunner.run(local19);
}
anInt506 = arg1;
anInt3039 = arg3;
anInt2512 = arg0;
anInt4999 = arg2;
aBoolean302 = true;
anInt5393 = arg4;
anInt1092 = arg5;
InterfaceList.redraw(local8);
}
} }

View file

@ -13,6 +13,8 @@ public final class MouseRecorder implements Runnable {
public static boolean enabled = false; public static boolean enabled = false;
@OriginalMember(owner = "client!oe", name = "a", descriptor = "I") @OriginalMember(owner = "client!oe", name = "a", descriptor = "I")
public static int mouseRecorderPrevY = 0; public static int mouseRecorderPrevY = 0;
@OriginalMember(owner = "client!vh", name = "s", descriptor = "I")
public static int mouseRecorderPrevX = 0;
@OriginalMember(owner = "client!jd", name = "e", descriptor = "Z") @OriginalMember(owner = "client!jd", name = "e", descriptor = "Z")
public boolean running = true; public boolean running = true;

View file

@ -44,7 +44,7 @@ public class ObjTypeList {
if (local6 != null) { if (local6 != null) {
return local6; return local6;
} }
@Pc(25) byte[] local25 = archive.fetchFile(Static18.method554(arg0), Static247.method4247(arg0)); @Pc(25) byte[] local25 = archive.fetchFile(method554(arg0), method4247(arg0));
local6 = new ObjType(); local6 = new ObjType();
local6.id = arg0; local6.id = arg0;
if (local25 != null) { if (local25 != null) {
@ -106,4 +106,14 @@ public class ObjTypeList {
public static void clearSprites() { public static void clearSprites() {
objectSpriteCache.clear(); objectSpriteCache.clear();
} }
@OriginalMember(owner = "client!ub", name = "a", descriptor = "(IB)I")
public static int method4247(@OriginalArg(0) int arg0) {
return arg0 & 0xFF;
}
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(IB)I")
public static int method554(@OriginalArg(0) int arg0) {
return arg0 >>> 8;
}
} }

View file

@ -104,6 +104,8 @@ public class Protocol {
public static int anInt4422 = 0; public static int anInt4422 = 0;
@OriginalMember(owner = "client!fe", name = "R", descriptor = "Z") @OriginalMember(owner = "client!fe", name = "R", descriptor = "Z")
public static boolean prevFocus = true; public static boolean prevFocus = true;
@OriginalMember(owner = "client!rm", name = "c", descriptor = "I")
public static int anInt4941 = 1;
@OriginalMember(owner = "client!g", name = "b", descriptor = "(B)V") @OriginalMember(owner = "client!g", name = "b", descriptor = "(B)V")
public static void readLocationPacket() { public static void readLocationPacket() {
@ -132,7 +134,7 @@ public class Protocol {
SceneGraph.objStacks[Player.level][local19][local27] = new LinkedList(); SceneGraph.objStacks[Player.level][local19][local27] = new LinkedList();
} }
SceneGraph.objStacks[Player.level][local19][local27].addTail(new ObjStackNode(local122)); SceneGraph.objStacks[Player.level][local19][local27].addTail(new ObjStackNode(local122));
Static220.spawnGroundObject(local27, local19); spawnGroundObject(local27, local19);
} }
} else if (opcode == ServerProt.LOCATION_PACKET_121) { } else if (opcode == ServerProt.LOCATION_PACKET_121) {
int local15 = inboundBuffer.g1(); int local15 = inboundBuffer.g1();
@ -233,7 +235,7 @@ public class Protocol {
break; break;
} }
} }
Static220.spawnGroundObject(local19, local23); spawnGroundObject(local19, local23);
} }
} }
} else if (opcode == ServerProt.LOCATION_PACKET_135) { } else if (opcode == ServerProt.LOCATION_PACKET_135) {
@ -251,7 +253,7 @@ public class Protocol {
SceneGraph.objStacks[Player.level][local19][local27] = new LinkedList(); SceneGraph.objStacks[Player.level][local19][local27] = new LinkedList();
} }
SceneGraph.objStacks[Player.level][local19][local27].addTail(new ObjStackNode(local812)); SceneGraph.objStacks[Player.level][local19][local27].addTail(new ObjStackNode(local812));
Static220.spawnGroundObject(local27, local19); spawnGroundObject(local27, local19);
} }
} else if (opcode == ServerProt.LOCATION_PACKET_16) { } else if (opcode == ServerProt.LOCATION_PACKET_16) {
int local15 = inboundBuffer.g1(); int local15 = inboundBuffer.g1();
@ -381,7 +383,7 @@ public class Protocol {
if (local1565.head() == null) { if (local1565.head() == null) {
SceneGraph.objStacks[Player.level][local23][local19] = null; SceneGraph.objStacks[Player.level][local23][local19] = null;
} }
Static220.spawnGroundObject(local19, local23); spawnGroundObject(local19, local23);
} }
} }
} }
@ -554,7 +556,7 @@ public class Protocol {
@Pc(106) int local106 = -1; @Pc(106) int local106 = -1;
@Pc(127) JagString message; @Pc(127) JagString message;
if (local35) { if (local35) {
@Pc(112) QuickChatPhrase phrase = Static264.method3568(chatBuffer); @Pc(112) QuickChatPhrase phrase = QuickChatPhraseType.method3568(chatBuffer);
int1 &= 0x7FFF; int1 &= 0x7FFF;
local106 = phrase.id; local106 = phrase.id;
message = phrase.type.decodeMessage(chatBuffer); message = phrase.type.decodeMessage(chatBuffer);
@ -1495,7 +1497,7 @@ public class Protocol {
for (int z = SceneGraph.currentChunkZ; z < SceneGraph.currentChunkZ + 8; z++) { for (int z = SceneGraph.currentChunkZ; z < SceneGraph.currentChunkZ + 8; z++) {
if (SceneGraph.objStacks[Player.level][x][z] != null) { if (SceneGraph.objStacks[Player.level][x][z] != null) {
SceneGraph.objStacks[Player.level][x][z] = null; SceneGraph.objStacks[Player.level][x][z] = null;
Static220.spawnGroundObject(z, x); spawnGroundObject(z, x);
} }
} }
} }
@ -2419,9 +2421,9 @@ public class Protocol {
y = -1; y = -1;
x = -1; x = -1;
} }
if (Static264.mouseRecorderPrevX != x || y != MouseRecorder.mouseRecorderPrevY) { if (MouseRecorder.mouseRecorderPrevX != x || y != MouseRecorder.mouseRecorderPrevY) {
dx = x - Static264.mouseRecorderPrevX; dx = x - MouseRecorder.mouseRecorderPrevX;
Static264.mouseRecorderPrevX = x; MouseRecorder.mouseRecorderPrevX = x;
dy = y - MouseRecorder.mouseRecorderPrevY; dy = y - MouseRecorder.mouseRecorderPrevY;
MouseRecorder.mouseRecorderPrevY = y; MouseRecorder.mouseRecorderPrevY = y;
if (anInt4762 < 8 && dx >= -32 && dx <= 31 && dy >= -32 && dy <= 31) { if (anInt4762 < 8 && dx >= -32 && dx <= 31 && dy >= -32 && dy <= 31) {
@ -2531,7 +2533,7 @@ public class Protocol {
outboundBuffer.p4(Preferences.toInt()); outboundBuffer.p4(Preferences.toInt());
Preferences.sentToServer = true; Preferences.sentToServer = true;
} }
LightingManager.method846(); SceneGraph.method846();
if (client.gameState != 30) { if (client.gameState != 30) {
return; return;
} }
@ -2694,7 +2696,7 @@ public class Protocol {
if (Mouse.pressedButton == 0) { if (Mouse.pressedButton == 0) {
if (Static123.draggingClickedInventoryObject && InterfaceList.clickedInventoryComponentCycle >= 5) { if (Static123.draggingClickedInventoryObject && InterfaceList.clickedInventoryComponentCycle >= 5) {
if (InterfaceList.clickedInventoryComponent == InterfaceList.mouseOverInventoryInterface && Static4.mouseOverInventoryObjectIndex != Static18.clickedInventoryIndex) { if (InterfaceList.clickedInventoryComponent == InterfaceList.mouseOverInventoryInterface && Static4.mouseOverInventoryObjectIndex != MiniMenu.clickedInventoryIndex) {
component = InterfaceList.clickedInventoryComponent; component = InterfaceList.clickedInventoryComponent;
@Pc(1363) byte inserting = 0; @Pc(1363) byte inserting = 0;
@ -2702,19 +2704,19 @@ public class Protocol {
inserting = 1; inserting = 1;
} }
if (component.objTypes[Static18.clickedInventoryIndex] <= 0) { if (component.objTypes[MiniMenu.clickedInventoryIndex] <= 0) {
inserting = 0; inserting = 0;
} }
if (InterfaceList.getServerActiveProperties(component).isObjReplaceEnabled()) { if (InterfaceList.getServerActiveProperties(component).isObjReplaceEnabled()) {
int newIndex = Static4.mouseOverInventoryObjectIndex; int newIndex = Static4.mouseOverInventoryObjectIndex;
int currentIndex = Static18.clickedInventoryIndex; int currentIndex = MiniMenu.clickedInventoryIndex;
component.objTypes[currentIndex] = component.objTypes[newIndex]; component.objTypes[currentIndex] = component.objTypes[newIndex];
component.objCounts[currentIndex] = component.objCounts[newIndex]; component.objCounts[currentIndex] = component.objCounts[newIndex];
component.objTypes[newIndex] = -1; component.objTypes[newIndex] = -1;
component.objCounts[newIndex] = 0; component.objCounts[newIndex] = 0;
} else if (inserting == 1) { } else if (inserting == 1) {
int currentIndex = Static18.clickedInventoryIndex; int currentIndex = MiniMenu.clickedInventoryIndex;
int newIndex = Static4.mouseOverInventoryObjectIndex; int newIndex = Static4.mouseOverInventoryObjectIndex;
while (currentIndex != newIndex) { while (currentIndex != newIndex) {
if (currentIndex > newIndex) { if (currentIndex > newIndex) {
@ -2726,12 +2728,12 @@ public class Protocol {
} }
} }
} else { } else {
component.swapObjs(Static18.clickedInventoryIndex, Static4.mouseOverInventoryObjectIndex); component.swapObjs(MiniMenu.clickedInventoryIndex, Static4.mouseOverInventoryObjectIndex);
} }
outboundBuffer.p1isaac(231); outboundBuffer.p1isaac(231);
outboundBuffer.p2(Static4.mouseOverInventoryObjectIndex); outboundBuffer.p2(Static4.mouseOverInventoryObjectIndex);
outboundBuffer.ip4(InterfaceList.clickedInventoryComponent.id); outboundBuffer.ip4(InterfaceList.clickedInventoryComponent.id);
outboundBuffer.p2add(Static18.clickedInventoryIndex); outboundBuffer.p2add(MiniMenu.clickedInventoryIndex);
outboundBuffer.p1sub(inserting); outboundBuffer.p1sub(inserting);
} }
} else if ((VarpDomain.anInt2952 == 1 || MiniMenu.method4640(MiniMenu.size - 1)) && MiniMenu.size > 2) { } else if ((VarpDomain.anInt2952 == 1 || MiniMenu.method4640(MiniMenu.size - 1)) && MiniMenu.size > 2) {
@ -2892,7 +2894,7 @@ public class Protocol {
anInt3486 = 0; anInt3486 = 0;
modelId = (int) (Math.random() * 8.0D); modelId = (int) (Math.random() * 8.0D);
if ((modelId & 0x4) == 4) { if ((modelId & 0x4) == 4) {
Camera.anInt5161 += Static220.anInt4941; Camera.anInt5161 += anInt4941;
} }
if ((modelId & 0x2) == 2) { if ((modelId & 0x2) == 2) {
Camera.anInt4774 += anInt659; Camera.anInt4774 += anInt659;
@ -2927,13 +2929,13 @@ public class Protocol {
anInt659 = -2; anInt659 = -2;
} }
if (Camera.anInt5161 < -40) { if (Camera.anInt5161 < -40) {
Static220.anInt4941 = 1; anInt4941 = 1;
} }
if (Camera.anInt3291 > 50) { if (Camera.anInt3291 > 50) {
Camera.anInt4229 = -2; Camera.anInt4229 = -2;
} }
if (Camera.anInt5161 > 40) { if (Camera.anInt5161 > 40) {
Static220.anInt4941 = -1; anInt4941 = -1;
} }
if (MiniMap.anInt4130 > 10) { if (MiniMap.anInt4130 > 10) {
MiniMap.anInt4262 = -1; MiniMap.anInt4262 = -1;
@ -3444,4 +3446,47 @@ public class Protocol {
local126.length = local51; local126.length = local51;
return local126; return local126;
} }
@OriginalMember(owner = "client!rm", name = "a", descriptor = "(IBI)V")
public static void spawnGroundObject(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) {
@Pc(9) LinkedList local9 = SceneGraph.objStacks[Player.level][arg1][arg0];
if (local9 == null) {
SceneGraph.method3420(Player.level, arg1, arg0);
return;
}
@Pc(28) int local28 = -99999999;
@Pc(30) ObjStackNode local30 = null;
@Pc(35) ObjStackNode local35;
for (local35 = (ObjStackNode) local9.head(); local35 != null; local35 = (ObjStackNode) local9.next()) {
@Pc(44) ObjType local44 = ObjTypeList.get(local35.value.type);
@Pc(47) int local47 = local44.cost;
if (local44.stackable == 1) {
local47 *= local35.value.anInt5550 + 1;
}
if (local28 < local47) {
local28 = local47;
local30 = local35;
}
}
if (local30 == null) {
SceneGraph.method3420(Player.level, arg1, arg0);
return;
}
local9.addHead(local30);
@Pc(89) ObjStack local89 = null;
@Pc(91) ObjStack local91 = null;
for (local35 = (ObjStackNode) local9.head(); local35 != null; local35 = (ObjStackNode) local9.next()) {
@Pc(103) ObjStack local103 = local35.value;
if (local103.type != local30.value.type) {
if (local89 == null) {
local89 = local103;
}
if (local103.type != local89.type && local91 == null) {
local91 = local103;
}
}
}
@Pc(152) long local152 = (long) ((arg0 << 7) + arg1 + 1610612736);
SceneGraph.method1543(Player.level, arg1, arg0, SceneGraph.getTileHeight(Player.level, arg1 * 128 + 64, arg0 * 128 + 64), local30.value, local152, local89, local91);
}
} }

View file

@ -16,6 +16,8 @@ public final class QuickChatPhraseType extends SecondaryNode {
public static final int[] anIntArray51 = new int[] { 2, 2, 4, 2, 1, 8, 4, 1, 4, 4, 2, 1, 1, 1, 4, 1 }; public static final int[] anIntArray51 = new int[] { 2, 2, 4, 2, 1, 8, 4, 1, 4, 4, 2, 1, 1, 1, 4, 1 };
@OriginalMember(owner = "client!qg", name = "U", descriptor = "Lclient!na;") @OriginalMember(owner = "client!qg", name = "U", descriptor = "Lclient!na;")
public static final JagString aClass100_891 = JagString.parse(""); public static final JagString aClass100_891 = JagString.parse("");
@OriginalMember(owner = "client!vh", name = "p", descriptor = "[I")
public static final int[] anIntArray412 = new int[] { 1, 0, 0, 0, 1, 0, 2, 1, 1, 1, 0, 2, 0, 0, 1, 0 };
@OriginalMember(owner = "client!cb", name = "L", descriptor = "[I") @OriginalMember(owner = "client!cb", name = "L", descriptor = "[I")
private int[] anIntArray71; private int[] anIntArray71;
@ -31,7 +33,15 @@ public final class QuickChatPhraseType extends SecondaryNode {
@OriginalMember(owner = "client!cb", name = "O", descriptor = "Z") @OriginalMember(owner = "client!cb", name = "O", descriptor = "Z")
public boolean aBoolean60 = true; public boolean aBoolean60 = true;
@OriginalMember(owner = "client!cb", name = "a", descriptor = "(Lclient!wa;[IZ)V") @OriginalMember(owner = "client!vh", name = "a", descriptor = "(ILclient!wa;)Lclient!bd;")
public static QuickChatPhrase method3568(@OriginalArg(1) Buffer arg0) {
@Pc(3) QuickChatPhrase local3 = new QuickChatPhrase();
local3.id = arg0.g2();
local3.type = QuickChatPhraseTypeList.get(local3.id);
return local3;
}
@OriginalMember(owner = "client!cb", name = "a", descriptor = "(Lclient!wa;[IZ)V")
public final void encodeMessage(@OriginalArg(0) Buffer arg0, @OriginalArg(1) int[] arg1) { public final void encodeMessage(@OriginalArg(0) Buffer arg0, @OriginalArg(1) int[] arg1) {
if (this.anIntArray71 == null) { if (this.anIntArray71 == null) {
return; return;
@ -106,8 +116,8 @@ public final class QuickChatPhraseType extends SecondaryNode {
for (local42 = 0; local42 < local32; local42++) { for (local42 = 0; local42 < local32; local42++) {
@Pc(49) int local49 = arg0.g2(); @Pc(49) int local49 = arg0.g2();
this.anIntArray71[local42] = local49; this.anIntArray71[local42] = local49;
this.anIntArrayArray5[local42] = new int[Static264.anIntArray412[local49]]; this.anIntArrayArray5[local42] = new int[anIntArray412[local49]];
for (@Pc(64) int local64 = 0; local64 < Static264.anIntArray412[local49]; local64++) { for (@Pc(64) int local64 = 0; local64 < anIntArray412[local49]; local64++) {
this.anIntArrayArray5[local42][local64] = arg0.g2(); this.anIntArrayArray5[local42][local64] = arg0.g2();
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -232,9 +232,9 @@ public final class ScriptRunner {
if (Static176.customCameraActive[4] && Camera.cameraAmplitude[4] + 128 > local59) { if (Static176.customCameraActive[4] && Camera.cameraAmplitude[4] + 128 > local59) {
local59 = Camera.cameraAmplitude[4] + 128; local59 = Camera.cameraAmplitude[4] + 128;
} }
Static18.method555(Camera.cameraX, arg0, SceneGraph.getTileHeight(Player.level, PlayerList.self.xFine, PlayerList.self.zFine) - 50, Camera.ZOOM - -(local59 * 3), local57, Camera.cameraZ, local59); Camera.method555(Camera.cameraX, arg0, SceneGraph.getTileHeight(Player.level, PlayerList.self.xFine, PlayerList.self.zFine) - 50, Camera.ZOOM - -(local59 * 3), local57, Camera.cameraZ, local59);
} }
local57 = Static5.anInt40; local57 = Camera.anInt40;
local59 = Camera.renderX; local59 = Camera.renderX;
@Pc(121) int local121 = Camera.renderZ; @Pc(121) int local121 = Camera.renderZ;
@Pc(123) int local123 = Camera.cameraPitch; @Pc(123) int local123 = Camera.cameraPitch;
@ -260,7 +260,7 @@ public final class ScriptRunner {
Camera.renderZ += local171; Camera.renderZ += local171;
} }
if (local127 == 1) { if (local127 == 1) {
Static5.anInt40 += local171; Camera.anInt40 += local171;
} }
if (local127 == 0) { if (local127 == 0) {
Camera.renderX += local171; Camera.renderX += local171;
@ -307,9 +307,9 @@ public final class ScriptRunner {
} }
LightingManager.method2394(client.loop, !Preferences.flickeringEffectsOn); LightingManager.method2394(client.loop, !Preferences.flickeringEffectsOn);
GlRenderer.clearColorAndDepthBuffers(local171); GlRenderer.clearColorAndDepthBuffers(local171);
MaterialManager.method2731(Camera.cameraPitch, Camera.renderZ, Static5.anInt40, Camera.renderX, Camera.cameraYaw); MaterialManager.method2731(Camera.cameraPitch, Camera.renderZ, Camera.anInt40, Camera.renderX, Camera.cameraYaw);
GlRenderer.anInt5323 = client.loop; GlRenderer.anInt5323 = client.loop;
Static156.method2954(Camera.renderX, Static5.anInt40, Camera.renderZ, Camera.cameraPitch, Camera.cameraYaw, aByteArrayArrayArray15, anIntArray205, anIntArray338, anIntArray518, anIntArray134, anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); SceneGraph.method2954(Camera.renderX, Camera.anInt40, Camera.renderZ, Camera.cameraPitch, Camera.cameraYaw, aByteArrayArrayArray15, anIntArray205, anIntArray338, anIntArray518, anIntArray134, anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7);
aBoolean299 = true; aBoolean299 = true;
LightingManager.method2390(); LightingManager.method2390();
MaterialManager.method2731(0, 0, 0, 0, 0); MaterialManager.method2731(0, 0, 0, 0, 0);
@ -319,7 +319,7 @@ public final class ScriptRunner {
Static233.method4000(arg3, arg2, arg0, anInt5029, anInt5029, arg4); Static233.method4000(arg3, arg2, arg0, anInt5029, anInt5029, arg4);
} else { } else {
SoftwareRaster.fillRect(arg2, arg4, arg3, arg0, 0); SoftwareRaster.fillRect(arg2, arg4, arg3, arg0, 0);
Static156.method2954(Camera.renderX, Static5.anInt40, Camera.renderZ, Camera.cameraPitch, Camera.cameraYaw, aByteArrayArrayArray15, anIntArray205, anIntArray338, anIntArray518, anIntArray134, anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); SceneGraph.method2954(Camera.renderX, Camera.anInt40, Camera.renderZ, Camera.cameraPitch, Camera.cameraYaw, aByteArrayArrayArray15, anIntArray205, anIntArray338, anIntArray518, anIntArray134, anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7);
client.audioLoop(); client.audioLoop();
method3858(); method3858();
method2726(arg4, arg3, arg2, 256, arg0, 256); method2726(arg4, arg3, arg2, 256, arg0, 256);
@ -329,7 +329,7 @@ public final class ScriptRunner {
Player.method2310(arg3, arg4, arg0, arg2); Player.method2310(arg3, arg4, arg0, arg2);
Camera.cameraPitch = local123; Camera.cameraPitch = local123;
Camera.renderZ = local121; Camera.renderZ = local121;
Static5.anInt40 = local57; Camera.anInt40 = local57;
Camera.renderX = local59; Camera.renderX = local59;
Camera.cameraYaw = local125; Camera.cameraYaw = local125;
if (aBoolean43 && client.js5NetQueue.getUrgentRequestCount() == 0) { if (aBoolean43 && client.js5NetQueue.getUrgentRequestCount() == 0) {
@ -1236,7 +1236,7 @@ public final class ScriptRunner {
} }
@Pc(38) int local38 = SceneGraph.getTileHeight(Player.level, arg5, arg2) - arg3; @Pc(38) int local38 = SceneGraph.getTileHeight(Player.level, arg5, arg2) - arg3;
@Pc(42) int local42 = arg2 - Camera.renderZ; @Pc(42) int local42 = arg2 - Camera.renderZ;
@Pc(46) int local46 = local38 - Static5.anInt40; @Pc(46) int local46 = local38 - Camera.anInt40;
@Pc(50) int local50 = arg5 - Camera.renderX; @Pc(50) int local50 = arg5 - Camera.renderX;
@Pc(54) int local54 = MathUtils.sin[Camera.cameraPitch]; @Pc(54) int local54 = MathUtils.sin[Camera.cameraPitch];
@Pc(58) int local58 = MathUtils.cos[Camera.cameraPitch]; @Pc(58) int local58 = MathUtils.cos[Camera.cameraPitch];
@ -5283,7 +5283,7 @@ public final class ScriptRunner {
@Pc(10247) WorldInfo local10247; @Pc(10247) WorldInfo local10247;
@Pc(10191) World world; @Pc(10191) World world;
if (opcode == Cs2Opcodes.getFirstWorldData) { if (opcode == Cs2Opcodes.getFirstWorldData) {
world = Static18.getFirstWorld(); world = WorldList.getFirstWorld();
if (world == null) { if (world == null) {
intStack[isp++] = -1; intStack[isp++] = -1;
intStack[isp++] = 0; intStack[isp++] = 0;

View file

@ -9,10 +9,7 @@ public final class Static121 {
@OriginalMember(owner = "client!jg", name = "a", descriptor = "I") @OriginalMember(owner = "client!jg", name = "a", descriptor = "I")
public static int anInt3038; public static int anInt3038;
@OriginalMember(owner = "client!jg", name = "b", descriptor = "I") @OriginalMember(owner = "client!jg", name = "e", descriptor = "Z")
public static int anInt3039;
@OriginalMember(owner = "client!jg", name = "e", descriptor = "Z")
public static boolean qaOpTest = false; public static boolean qaOpTest = false;
@OriginalMember(owner = "client!jg", name = "a", descriptor = "(IBIII)V") @OriginalMember(owner = "client!jg", name = "a", descriptor = "(IBIII)V")

View file

@ -1,8 +1,6 @@
package rt4; package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember; import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static146 { public final class Static146 {
@ -12,15 +10,4 @@ public final class Static146 {
@OriginalMember(owner = "client!lg", name = "b", descriptor = "Z") @OriginalMember(owner = "client!lg", name = "b", descriptor = "Z")
public static boolean aBoolean174 = false; public static boolean aBoolean174 = false;
@OriginalMember(owner = "client!lg", name = "a", descriptor = "(I)V")
public static void method2750(@OriginalArg(0) int arg0) {
Static156.anInt5276 = arg0;
for (@Pc(3) int local3 = 0; local3 < SceneGraph.width; local3++) {
for (@Pc(8) int local8 = 0; local8 < SceneGraph.length; local8++) {
if (SceneGraph.tiles[arg0][local3][local8] == null) {
SceneGraph.tiles[arg0][local3][local8] = new Tile(arg0, local3, local8);
}
}
}
}
} }

View file

@ -1,9 +1,6 @@
package rt4; package rt4;
import com.jogamp.opengl.GL2;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember; import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static156 { public final class Static156 {
@ -16,310 +13,4 @@ public final class Static156 {
@OriginalMember(owner = "client!rc", name = "p", descriptor = "I") @OriginalMember(owner = "client!rc", name = "p", descriptor = "I")
public static int anInt1142 = 0; public static int anInt1142 = 0;
@OriginalMember(owner = "client!mf", name = "a", descriptor = "(IIIII[[[B[I[I[I[I[IIBII)V")
public static void method2954(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) byte[][][] arg5, @OriginalArg(6) int[] arg6, @OriginalArg(7) int[] arg7, @OriginalArg(8) int[] arg8, @OriginalArg(9) int[] arg9, @OriginalArg(10) int[] arg10, @OriginalArg(11) int arg11, @OriginalArg(12) byte arg12, @OriginalArg(13) int arg13, @OriginalArg(14) int arg14) {
if (arg0 < 0) {
arg0 = 0;
} else if (arg0 >= SceneGraph.width * 128) {
arg0 = SceneGraph.width * 128 - 1;
}
if (arg2 < 0) {
arg2 = 0;
} else if (arg2 >= SceneGraph.length * 128) {
arg2 = SceneGraph.length * 128 - 1;
}
Static160.anInt2886 = MathUtils.sin[arg3];
Static121.anInt3038 = MathUtils.cos[arg3];
Static231.anInt5205 = MathUtils.sin[arg4];
Static81.anInt2222 = MathUtils.cos[arg4];
Static123.anInt3555 = arg0;
Static123.anInt3947 = arg1;
Static217.anInt4903 = arg2;
Static123.anInt4069 = arg0 / 128;
Static193.anInt4539 = arg2 / 128;
LightingManager.anInt987 = Static123.anInt4069 - SceneGraph.visibility;
if (LightingManager.anInt987 < 0) {
LightingManager.anInt987 = 0;
}
LightingManager.anInt4698 = Static193.anInt4539 - SceneGraph.visibility;
if (LightingManager.anInt4698 < 0) {
LightingManager.anInt4698 = 0;
}
LightingManager.anInt15 = Static123.anInt4069 + SceneGraph.visibility;
if (LightingManager.anInt15 > SceneGraph.width) {
LightingManager.anInt15 = SceneGraph.width;
}
LightingManager.anInt4866 = Static193.anInt4539 + SceneGraph.visibility;
if (LightingManager.anInt4866 > SceneGraph.length) {
LightingManager.anInt4866 = SceneGraph.length;
}
@Pc(99) short local99;
if (GlRenderer.enabled) {
local99 = (short)GlobalConfig.VIEW_DISTANCE;
} else {
local99 = 3500;
}
@Pc(104) int local104;
@Pc(113) int local113;
for (local104 = 0; local104 < SceneGraph.visibility + SceneGraph.visibility + 2; local104++) {
for (local113 = 0; local113 < SceneGraph.visibility + SceneGraph.visibility + 2; local113++) {
@Pc(130) int local130 = (local104 - SceneGraph.visibility << 7) - (Static123.anInt3555 & 0x7F);
@Pc(140) int local140 = (local113 - SceneGraph.visibility << 7) - (Static217.anInt4903 & 0x7F);
@Pc(146) int local146 = Static123.anInt4069 + local104 - SceneGraph.visibility;
@Pc(152) int local152 = Static193.anInt4539 + local113 - SceneGraph.visibility;
if (local146 >= 0 && local152 >= 0 && local146 < SceneGraph.width && local152 < SceneGraph.length) {
@Pc(176) int local176;
if (SceneGraph.underwaterTileHeights == null) {
local176 = SceneGraph.surfaceTileHeights[0][local146][local152] + 128 - Static123.anInt3947;
} else {
local176 = SceneGraph.underwaterTileHeights[0][local146][local152] + 128 - Static123.anInt3947;
}
@Pc(201) int local201 = SceneGraph.surfaceTileHeights[3][local146][local152] - Static123.anInt3947 - 1000;
SceneGraph.aBooleanArrayArray3[local104][local113] = Static160.method3049(local130, local201, local176, local140, local99);
} else {
SceneGraph.aBooleanArrayArray3[local104][local113] = false;
}
}
}
for (local104 = 0; local104 < SceneGraph.visibility + SceneGraph.visibility + 1; local104++) {
for (local113 = 0; local113 < SceneGraph.visibility + SceneGraph.visibility + 1; local113++) {
SceneGraph.aBooleanArrayArray1[local104][local113] = SceneGraph.aBooleanArrayArray3[local104][local113] || SceneGraph.aBooleanArrayArray3[local104 + 1][local113] || SceneGraph.aBooleanArrayArray3[local104][local113 + 1] || SceneGraph.aBooleanArrayArray3[local104 + 1][local113 + 1];
}
}
Static8.anIntArray8 = arg6;
Static123.anIntArray292 = arg7;
Static96.anIntArray234 = arg8;
Static123.anIntArray454 = arg9;
Static123.anIntArray427 = arg10;
Static123.method2419();
if (SceneGraph.underWaterGroundTiles != null) {
SceneGraph.setUnderwater(true);
method3292(arg0, arg1, arg2, null, 0, (byte) 0, arg13, arg14);
if (GlRenderer.enabled) {
MaterialManager.renderingUnderwater = false;
MaterialManager.setMaterial(0, 0);
FogManager.method3066(null);
LightingManager.method2390();
}
SceneGraph.setUnderwater(false);
}
method3292(arg0, arg1, arg2, arg5, arg11, arg12, arg13, arg14);
}
@OriginalMember(owner = "client!mf", name = "a", descriptor = "(BLclient!wa;)Lclient!ta;")
public static TextureOp29SubOp4 method2960(@OriginalArg(1) Buffer arg0) {
return new TextureOp29SubOp4(arg0.g2b(), arg0.g2b(), arg0.g2b(), arg0.g2b(), arg0.g3(), arg0.g3(), arg0.g1());
}
@OriginalMember(owner = "client!uc", name = "a", descriptor = "(III[[[BIBII)V")
public static void method3292(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) byte[][][] arg3, @OriginalArg(4) int arg4, @OriginalArg(5) byte arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7) {
anInt437++;
anInt1142 = 0;
@Pc(9) int local9 = arg6 - 16;
@Pc(13) int local13 = arg6 + 16;
@Pc(17) int local17 = arg7 - 16;
@Pc(21) int local21 = arg7 + 16;
@Pc(32) int local32;
@Pc(37) int local37;
@Pc(183) int local183;
for (@Pc(23) int local23 = anInt5276; local23 < SceneGraph.levels; local23++) {
@Pc(30) Tile[][] local30 = SceneGraph.tiles[local23];
for (local32 = LightingManager.anInt987; local32 < LightingManager.anInt15; local32++) {
for (local37 = LightingManager.anInt4698; local37 < LightingManager.anInt4866; local37++) {
@Pc(46) Tile local46 = local30[local32][local37];
if (local46 != null) {
if (SceneGraph.aBooleanArrayArray1[local32 + SceneGraph.visibility - Static123.anInt4069][local37 + SceneGraph.visibility - Static193.anInt4539] && (arg3 == null || local23 < arg4 || arg3[local23][local32][local37] != arg5)) {
local46.aBoolean45 = true;
local46.aBoolean46 = true;
if (local46.sceneryLen > 0) {
local46.aBoolean47 = true;
} else {
local46.aBoolean47 = false;
}
anInt1142++;
} else {
local46.aBoolean45 = false;
local46.aBoolean46 = false;
local46.anInt663 = 0;
if (local32 >= local9 && local32 <= local13 && local37 >= local17 && local37 <= local21) {
if (local46.wall != null) {
@Pc(103) Wall local103 = local46.wall;
local103.primary.method4545(0, local23, local103.anInt3051, local103.xFine, local103.zFine);
if (local103.secondary != null) {
local103.secondary.method4545(0, local23, local103.anInt3051, local103.xFine, local103.zFine);
}
}
if (local46.wallDecor != null) {
@Pc(134) WallDecor local134 = local46.wallDecor;
local134.primary.method4545(local134.anInt1388, local23, local134.anInt1391, local134.anInt1390, local134.anInt1393);
if (local134.secondary != null) {
local134.secondary.method4545(local134.anInt1388, local23, local134.anInt1391, local134.anInt1390, local134.anInt1393);
}
}
if (local46.groundDecor != null) {
@Pc(167) GroundDecor local167 = local46.groundDecor;
local167.entity.method4545(0, local23, local167.anInt733, local167.xFine, local167.zFine);
}
if (local46.scenery != null) {
for (local183 = 0; local183 < local46.sceneryLen; local183++) {
@Pc(192) Scenery local192 = local46.scenery[local183];
local192.entity.method4545(local192.anInt1714, local23, local192.anInt1706, local192.anInt1699, local192.anInt1703);
}
}
}
}
}
}
}
}
@Pc(240) boolean local240 = SceneGraph.tileHeights == SceneGraph.underwaterTileHeights;
if (GlRenderer.enabled) {
@Pc(244) GL2 gl = GlRenderer.gl;
gl.glPushMatrix();
gl.glTranslatef((float) -arg0, (float) -arg1, (float) -arg2);
if (local240) {
UnderwaterMaterialRenderer.applyFogFade();
MaterialManager.setMaterial(-1, 3);
MaterialManager.renderingUnderwater = true;
UnderwaterMaterialRenderer.method4609();
Static152.anInt3604 = -1;
Static247.anInt730 = -1;
for (local32 = 0; local32 < SceneGraph.underwaterHdTiles[0].length; local32++) {
@Pc(285) GlTile local285 = SceneGraph.underwaterHdTiles[0][local32];
@Pc(294) float local294 = 251.5F - (local285.blend ? 1.0F : 0.5F);
if (local285.underwaterColor != Static152.anInt3604) {
Static152.anInt3604 = local285.underwaterColor;
WaterMaterialRenderer.method619(local285.underwaterColor);
FogManager.method3066(WaterMaterialRenderer.method2422());
}
local285.method1944(SceneGraph.tiles, local294, false);
}
UnderwaterMaterialRenderer.method4608();
} else {
local32 = anInt5276;
while (true) {
if (local32 >= SceneGraph.levels) {
LightingManager.method2402(Static123.anInt4069, Static193.anInt4539, SceneGraph.tiles);
break;
}
for (local37 = 0; local37 < SceneGraph.underwaterHdTiles[local32].length; local37++) {
@Pc(336) GlTile local336 = SceneGraph.underwaterHdTiles[local32][local37];
@Pc(350) float local350 = 201.5F - (float) local32 * 50.0F - (local336.blend ? 1.0F : 0.5F);
if (local336.texture != -1 && Rasteriser.textureProvider.getMaterialType(local336.texture) == MaterialManager.WATER && Preferences.highWaterDetail) {
WaterMaterialRenderer.method619(local336.underwaterColor);
}
local336.method1944(SceneGraph.tiles, local350, false);
}
if (local32 == 0 && Preferences.sceneryShadowsType > 0) {
GlRenderer.method4159(101.5F);
ShadowManager.method4198(Static123.anInt4069, Static193.anInt4539, SceneGraph.visibility, arg1, SceneGraph.aBooleanArrayArray1, SceneGraph.tileHeights[0]);
}
local32++;
}
}
gl.glPopMatrix();
}
@Pc(434) int local434;
@Pc(438) int local438;
@Pc(450) Tile local450;
@Pc(399) int local399;
@Pc(406) Tile[][] local406;
@Pc(415) int local415;
@Pc(428) int local428;
for (local399 = anInt5276; local399 < SceneGraph.levels; local399++) {
local406 = SceneGraph.tiles[local399];
for (local37 = -SceneGraph.visibility; local37 <= 0; local37++) {
local415 = Static123.anInt4069 + local37;
local183 = Static123.anInt4069 - local37;
if (local415 >= LightingManager.anInt987 || local183 < LightingManager.anInt15) {
for (local428 = -SceneGraph.visibility; local428 <= 0; local428++) {
local434 = Static193.anInt4539 + local428;
local438 = Static193.anInt4539 - local428;
if (local415 >= LightingManager.anInt987) {
if (local434 >= LightingManager.anInt4698) {
local450 = local406[local415][local434];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, true);
}
}
if (local438 < LightingManager.anInt4866) {
local450 = local406[local415][local438];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, true);
}
}
}
if (local183 < LightingManager.anInt15) {
if (local434 >= LightingManager.anInt4698) {
local450 = local406[local183][local434];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, true);
}
}
if (local438 < LightingManager.anInt4866) {
local450 = local406[local183][local438];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, true);
}
}
}
if (anInt1142 == 0) {
if (!local240) {
MiniMenu.aBoolean187 = false;
}
return;
}
}
}
}
}
for (local399 = anInt5276; local399 < SceneGraph.levels; local399++) {
local406 = SceneGraph.tiles[local399];
for (local37 = -SceneGraph.visibility; local37 <= 0; local37++) {
local415 = Static123.anInt4069 + local37;
local183 = Static123.anInt4069 - local37;
if (local415 >= LightingManager.anInt987 || local183 < LightingManager.anInt15) {
for (local428 = -SceneGraph.visibility; local428 <= 0; local428++) {
local434 = Static193.anInt4539 + local428;
local438 = Static193.anInt4539 - local428;
if (local415 >= LightingManager.anInt987) {
if (local434 >= LightingManager.anInt4698) {
local450 = local406[local415][local434];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, false);
}
}
if (local438 < LightingManager.anInt4866) {
local450 = local406[local415][local438];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, false);
}
}
}
if (local183 < LightingManager.anInt15) {
if (local434 >= LightingManager.anInt4698) {
local450 = local406[local183][local434];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, false);
}
}
if (local438 < LightingManager.anInt4866) {
local450 = local406[local183][local438];
if (local450 != null && local450.aBoolean45) {
Static247.method4245(local450, false);
}
}
}
if (anInt1142 == 0) {
if (!local240) {
MiniMenu.aBoolean187 = false;
}
return;
}
}
}
}
}
MiniMenu.aBoolean187 = false;
}
} }

View file

@ -1,78 +0,0 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static18 {
@OriginalMember(owner = "client!bh", name = "t", descriptor = "I")
public static int clickedInventoryIndex = 0;
@OriginalMember(owner = "client!bh", name = "C", descriptor = "Lclient!na;")
public static final JagString COMPLETE_PERCENT = JagString.parse("<br>(X100(U(Y");
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(IB)I")
public static int method554(@OriginalArg(0) int arg0) {
return arg0 >>> 8;
}
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(IIIIIIII)V")
public static void method555(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5, @OriginalArg(7) int arg6) {
@Pc(5) int local5;
@Pc(29) int local29;
if (GlRenderer.enabled) {
local5 = arg1 - 334;
if (local5 < 0) {
local5 = 0;
} else if (local5 > 100) {
local5 = 100;
}
local29 = local5 * (ScriptRunner.aShort27 - ScriptRunner.aShort30) / 100 + ScriptRunner.aShort30;
arg3 = local29 * arg3 >> 8;
}
local5 = 2048 - arg6 & 0x7FF;
local29 = 2048 - arg4 & 0x7FF;
@Pc(55) int local55 = 0;
@Pc(57) int local57 = arg3;
@Pc(59) int local59 = 0;
@Pc(72) int local72;
@Pc(68) int local68;
if (local5 != 0) {
local68 = MathUtils.cos[local5];
local72 = MathUtils.sin[local5];
local59 = local72 * -arg3 >> 16;
local57 = local68 * arg3 >> 16;
}
if (local29 != 0) {
local72 = MathUtils.sin[local29];
local68 = MathUtils.cos[local29];
local55 = local72 * local57 >> 16;
local57 = local57 * local68 >> 16;
}
Camera.cameraPitch = arg6;
Camera.cameraYaw = arg4;
Camera.renderZ = arg5 - local57;
Camera.renderX = arg0 - local55;
Static5.anInt40 = arg2 - local59;
}
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(B)Lclient!ba;")
public static World getFirstWorld() {
WorldList.worldPos = 0;
return WorldList.getNextWorld();
}
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(IIII)V")
public static void method559(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
@Pc(7) Tile local7 = SceneGraph.tiles[arg0][arg1][arg2];
if (local7 == null) {
return;
}
@Pc(13) WallDecor local13 = local7.wallDecor;
if (local13 != null) {
local13.anInt1394 = local13.anInt1394 * arg3 / 16;
local13.anInt1392 = local13.anInt1392 * arg3 / 16;
}
}
}

View file

@ -1,35 +0,0 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static185 {
@OriginalMember(owner = "client!p", name = "e", descriptor = "I")
public static int anInt4370;
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(IIIILclient!th;Lclient!th;IIIIJ)V")
public static void method1880(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) Entity arg4, @OriginalArg(5) Entity arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7, @OriginalArg(8) int arg8, @OriginalArg(9) int arg9, @OriginalArg(10) long arg10) {
if (arg4 == null) {
return;
}
@Pc(6) WallDecor local6 = new WallDecor();
local6.key = arg10;
local6.anInt1390 = arg1 * 128 + 64;
local6.anInt1393 = arg2 * 128 + 64;
local6.anInt1391 = arg3;
local6.primary = arg4;
local6.secondary = arg5;
local6.anInt1395 = arg6;
local6.anInt1388 = arg7;
local6.anInt1394 = arg8;
local6.anInt1392 = arg9;
for (@Pc(46) int local46 = arg0; local46 >= 0; local46--) {
if (SceneGraph.tiles[local46][arg1][arg2] == null) {
SceneGraph.tiles[local46][arg1][arg2] = new Tile(local46, arg1, arg2);
}
}
SceneGraph.tiles[arg0][arg1][arg2].wallDecor = local6;
}
}

View file

@ -56,7 +56,7 @@ public final class Static217 {
local154 = arg0[local159]; local154 = arg0[local159];
} }
} }
LoginManager.method3397(arg1, !arg7, arg1, arg7, local154, local7, local68, local120, local137, local72 + arg4 & 0x3); SceneGraph.method3397(arg1, !arg7, arg1, arg7, local154, local7, local68, local120, local137, local72 + arg4 & 0x3);
} }
} }
} }

View file

@ -1,69 +0,0 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static220 {
@OriginalMember(owner = "client!rm", name = "c", descriptor = "I")
public static int anInt4941 = 1;
@OriginalMember(owner = "client!rm", name = "i", descriptor = "Lclient!na;")
public static final JagString aClass100_930 = JagString.parse("(Z");
@OriginalMember(owner = "client!rm", name = "a", descriptor = "(IBI)V")
public static void spawnGroundObject(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) {
@Pc(9) LinkedList local9 = SceneGraph.objStacks[Player.level][arg1][arg0];
if (local9 == null) {
method3420(Player.level, arg1, arg0);
return;
}
@Pc(28) int local28 = -99999999;
@Pc(30) ObjStackNode local30 = null;
@Pc(35) ObjStackNode local35;
for (local35 = (ObjStackNode) local9.head(); local35 != null; local35 = (ObjStackNode) local9.next()) {
@Pc(44) ObjType local44 = ObjTypeList.get(local35.value.type);
@Pc(47) int local47 = local44.cost;
if (local44.stackable == 1) {
local47 *= local35.value.anInt5550 + 1;
}
if (local28 < local47) {
local28 = local47;
local30 = local35;
}
}
if (local30 == null) {
method3420(Player.level, arg1, arg0);
return;
}
local9.addHead(local30);
@Pc(89) ObjStack local89 = null;
@Pc(91) ObjStack local91 = null;
for (local35 = (ObjStackNode) local9.head(); local35 != null; local35 = (ObjStackNode) local9.next()) {
@Pc(103) ObjStack local103 = local35.value;
if (local103.type != local30.value.type) {
if (local89 == null) {
local89 = local103;
}
if (local103.type != local89.type && local91 == null) {
local91 = local103;
}
}
}
@Pc(152) long local152 = (long) ((arg0 << 7) + arg1 + 1610612736);
Static69.method1543(Player.level, arg1, arg0, SceneGraph.getTileHeight(Player.level, arg1 * 128 + 64, arg0 * 128 + 64), local30.value, local152, local89, local91);
}
@OriginalMember(owner = "client!pb", name = "b", descriptor = "(III)Lclient!jj;")
public static ObjStackEntity method3420(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2) {
@Pc(7) Tile local7 = SceneGraph.tiles[arg0][arg1][arg2];
if (local7 == null) {
return null;
} else {
@Pc(14) ObjStackEntity local14 = local7.aClass79_1;
local7.aClass79_1 = null;
return local14;
}
}
}

View file

@ -15,9 +15,6 @@ public final class Static241 {
@OriginalMember(owner = "client!th", name = "i", descriptor = "[I") @OriginalMember(owner = "client!th", name = "i", descriptor = "[I")
public static final int[] anIntArray520 = new int[14]; public static final int[] anIntArray520 = new int[14];
@OriginalMember(owner = "client!th", name = "n", descriptor = "Z")
public static boolean aBoolean302 = false;
@OriginalMember(owner = "client!th", name = "a", descriptor = "(IIBIIII)I") @OriginalMember(owner = "client!th", name = "a", descriptor = "(IIBIIII)I")
public static int method4541(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5) { public static int method4541(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5) {
if ((arg4 & 0x1) == 1) { if ((arg4 & 0x1) == 1) {

View file

@ -36,803 +36,7 @@ public final class Static247 {
} }
} }
@OriginalMember(owner = "client!ub", name = "a", descriptor = "(Lclient!bj;Z)V") @OriginalMember(owner = "client!ke", name = "a", descriptor = "(Lclient!rh;IIIIIIIZ)V")
public static void method4245(@OriginalArg(0) Tile arg0, @OriginalArg(1) boolean arg1) {
Static7.aClass69_32.addTail(arg0);
while (true) {
@Pc(8) Tile local8;
@Pc(18) int local18;
@Pc(21) int local21;
@Pc(24) int local24;
@Pc(27) int local27;
@Pc(31) Tile[][] local31;
@Pc(65) int local65;
@Pc(115) int local115;
@Pc(894) int local894;
@Pc(899) int local899;
@Pc(904) int local904;
@Pc(153) Tile local153;
@Pc(1332) int local1332;
do {
do {
do {
do {
do {
do {
while (true) {
@Pc(44) int var9;
@Pc(48) int var10;
@Pc(907) int var17;
@Pc(916) int var18;
@Pc(363) Wall var22;
@Pc(469) boolean var24;
@Pc(425) Scenery var25;
@Pc(1179) Tile var32;
while (true) {
do {
local8 = (Tile) Static7.aClass69_32.removeHead();
if (local8 == null) {
return;
}
} while (!local8.aBoolean46);
local18 = local8.anInt669;
local21 = local8.anInt666;
local24 = local8.anInt672;
local27 = local8.anInt668;
local31 = SceneGraph.tiles[local24];
@Pc(33) float local33 = 0.0F;
if (GlRenderer.enabled) {
if (SceneGraph.underwaterTileHeights == SceneGraph.tileHeights) {
var9 = SceneGraph.anIntArrayArray11[local18][local21];
var10 = var9 & 0xFFFFFF;
if (var10 != Static152.anInt3604) {
Static152.anInt3604 = var10;
WaterMaterialRenderer.method619(var10);
FogManager.method3066(WaterMaterialRenderer.method2422());
}
local65 = var9 >>> 24 << 3;
if (local65 != anInt730) {
anInt730 = local65;
Static147.method2761(local65);
}
local115 = SceneGraph.surfaceTileHeights[0][local18][local21] + SceneGraph.surfaceTileHeights[0][local18 + 1][local21] + SceneGraph.surfaceTileHeights[0][local18][local21 + 1] + SceneGraph.surfaceTileHeights[0][local18 + 1][local21 + 1] >> 2;
MaterialManager.setMaterial(-local115, 3);
local33 = 201.5F;
GlRenderer.method4159(local33);
} else {
local33 = 201.5F - (float) (local27 + 1) * 50.0F;
GlRenderer.method4159(local33);
}
}
if (!local8.aBoolean45) {
break;
}
if (arg1) {
if (local24 > 0) {
local153 = SceneGraph.tiles[local24 - 1][local18][local21];
if (local153 != null && local153.aBoolean46) {
continue;
}
}
if (local18 <= Static123.anInt4069 && local18 > LightingManager.anInt987) {
local153 = local31[local18 - 1][local21];
if (local153 != null && local153.aBoolean46 && (local153.aBoolean45 || (local8.allInteriorFlags & 0x1) == 0)) {
continue;
}
}
if (local18 >= Static123.anInt4069 && local18 < LightingManager.anInt15 - 1) {
local153 = local31[local18 + 1][local21];
if (local153 != null && local153.aBoolean46 && (local153.aBoolean45 || (local8.allInteriorFlags & 0x4) == 0)) {
continue;
}
}
if (local21 <= Static193.anInt4539 && local21 > LightingManager.anInt4698) {
local153 = local31[local18][local21 - 1];
if (local153 != null && local153.aBoolean46 && (local153.aBoolean45 || (local8.allInteriorFlags & 0x8) == 0)) {
continue;
}
}
if (local21 >= Static193.anInt4539 && local21 < LightingManager.anInt4866 - 1) {
local153 = local31[local18][local21 + 1];
if (local153 != null && local153.aBoolean46 && (local153.aBoolean45 || (local8.allInteriorFlags & 0x2) == 0)) {
continue;
}
}
} else {
arg1 = true;
}
local8.aBoolean45 = false;
if (local8.aClass3_Sub5_1 != null) {
local153 = local8.aClass3_Sub5_1;
if (GlRenderer.enabled) {
GlRenderer.method4159(201.5F - (float) (local153.anInt668 + 1) * 50.0F);
}
if (local153.plainTile == null) {
if (local153.shapedTile != null) {
if (Static9.method187(0, local18, local21)) {
Static147.method2762(local153.shapedTile, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, true);
} else {
Static147.method2762(local153.shapedTile, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, false);
}
}
} else if (Static9.method187(0, local18, local21)) {
method2610(local153.plainTile, 0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, true);
} else {
method2610(local153.plainTile, 0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, false);
}
var22 = local153.wall;
if (var22 != null) {
if (GlRenderer.enabled) {
if ((var22.anInt3049 & local8.anInt670) == 0) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
} else {
LightingManager.method2388(var22.anInt3049, Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local27, local18, local21);
}
}
var22.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, var22.xFine - Static123.anInt3555, var22.anInt3051 - Static123.anInt3947, var22.zFine - Static217.anInt4903, var22.key, local24, null);
}
for (local65 = 0; local65 < local153.sceneryLen; local65++) {
var25 = local153.scenery[local65];
if (var25 != null) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
var25.entity.render(var25.anInt1714, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, var25.anInt1699 - Static123.anInt3555, var25.anInt1706 - Static123.anInt3947, var25.anInt1703 - Static217.anInt4903, var25.key, local24, null);
}
}
if (GlRenderer.enabled) {
GlRenderer.method4159(local33);
}
}
var24 = false;
if (local8.plainTile == null) {
if (local8.shapedTile != null) {
if (Static9.method187(local27, local18, local21)) {
Static147.method2762(local8.shapedTile, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, true);
} else {
var24 = true;
Static147.method2762(local8.shapedTile, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, false);
}
}
} else if (Static9.method187(local27, local18, local21)) {
method2610(local8.plainTile, local27, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, true);
} else {
var24 = true;
if (local8.plainTile.anInt4865 != 12345678 || MiniMenu.aBoolean187 && local24 <= MiniMenu.anInt3902) {
method2610(local8.plainTile, local27, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local18, local21, false);
}
}
if (var24) {
@Pc(549) GroundDecor local549 = local8.groundDecor;
if (local549 != null && (local549.key & 0x80000000L) != 0L) {
if (GlRenderer.enabled && local549.aBoolean49) {
GlRenderer.method4159(local33 + 50.0F - 1.5F);
}
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local549.entity.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local549.xFine - Static123.anInt3555, local549.anInt733 - Static123.anInt3947, local549.zFine - Static217.anInt4903, local549.key, local24, null);
if (GlRenderer.enabled && local549.aBoolean49) {
GlRenderer.method4159(local33);
}
}
}
var10 = 0;
local65 = 0;
@Pc(616) Wall local616 = local8.wall;
@Pc(619) WallDecor local619 = local8.wallDecor;
if (local616 != null || local619 != null) {
if (Static123.anInt4069 == local18) {
var10++;
} else if (Static123.anInt4069 < local18) {
var10 += 2;
}
if (Static193.anInt4539 == local21) {
var10 += 3;
} else if (Static193.anInt4539 > local21) {
var10 += 6;
}
local65 = anIntArray324[var10];
local8.anInt670 = Static191.anIntArray386[var10];
}
if (local616 != null) {
if ((local616.anInt3049 & anIntArray215[var10]) == 0) {
local8.anInt663 = 0;
} else if (local616.anInt3049 == 16) {
local8.anInt663 = 3;
local8.anInt665 = anIntArray294[var10];
local8.anInt667 = 3 - local8.anInt665;
} else if (local616.anInt3049 == 32) {
local8.anInt663 = 6;
local8.anInt665 = anIntArray489[var10];
local8.anInt667 = 6 - local8.anInt665;
} else if (local616.anInt3049 == 64) {
local8.anInt663 = 12;
local8.anInt665 = anIntArray211[var10];
local8.anInt667 = 12 - local8.anInt665;
} else {
local8.anInt663 = 9;
local8.anInt665 = anIntArray307[var10];
local8.anInt667 = 9 - local8.anInt665;
}
if ((local616.anInt3049 & local65) != 0 && !method3850(local27, local18, local21, local616.anInt3049)) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local616.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local616.xFine - Static123.anInt3555, local616.anInt3051 - Static123.anInt3947, local616.zFine - Static217.anInt4903, local616.key, local24, null);
}
if ((local616.anInt3052 & local65) != 0 && !method3850(local27, local18, local21, local616.anInt3052)) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local616.secondary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local616.xFine - Static123.anInt3555, local616.anInt3051 - Static123.anInt3947, local616.zFine - Static217.anInt4903, local616.key, local24, null);
}
}
if (local619 != null && !method4611(local27, local18, local21, local619.primary.getMinY())) {
if (GlRenderer.enabled) {
GlRenderer.method4159(local33 - 0.5F);
}
if ((local619.anInt1395 & local65) != 0) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local619.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local619.anInt1390 + local619.anInt1394 - Static123.anInt3555, local619.anInt1391 - Static123.anInt3947, local619.anInt1393 + local619.anInt1392 - Static217.anInt4903, local619.key, local24, null);
} else if (local619.anInt1395 == 256) {
local894 = local619.anInt1390 - Static123.anInt3555;
local899 = local619.anInt1391 - Static123.anInt3947;
local904 = local619.anInt1393 - Static217.anInt4903;
var17 = local619.anInt1388;
if (var17 == 1 || var17 == 2) {
var18 = -local894;
} else {
var18 = local894;
}
@Pc(928) int local928;
if (var17 == 2 || var17 == 3) {
local928 = -local904;
} else {
local928 = local904;
}
if (local928 < var18) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local619.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local894 + local619.anInt1394, local899, local904 + local619.anInt1392, local619.key, local24, null);
} else if (local619.secondary != null) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local619.secondary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local894, local899, local904, local619.key, local24, null);
}
}
if (GlRenderer.enabled) {
GlRenderer.method4159(local33);
}
}
if (var24) {
@Pc(1001) GroundDecor local1001 = local8.groundDecor;
if (local1001 != null && (local1001.key & 0x80000000L) == 0L) {
if (GlRenderer.enabled && local1001.aBoolean49) {
GlRenderer.method4159(local33 + 50.0F - 1.5F);
}
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local1001.entity.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1001.xFine - Static123.anInt3555, local1001.anInt733 - Static123.anInt3947, local1001.zFine - Static217.anInt4903, local1001.key, local24, null);
if (GlRenderer.enabled && local1001.aBoolean49) {
GlRenderer.method4159(local33);
}
}
@Pc(1064) ObjStackEntity local1064 = local8.aClass79_1;
if (local1064 != null && local1064.anInt3063 == 0) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
if (local1064.aClass8_7 != null) {
local1064.aClass8_7.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1064.anInt3064 - Static123.anInt3555, local1064.anInt3057 - Static123.anInt3947, local1064.anInt3061 - Static217.anInt4903, local1064.aLong108, local24, null);
}
if (local1064.aClass8_8 != null) {
local1064.aClass8_8.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1064.anInt3064 - Static123.anInt3555, local1064.anInt3057 - Static123.anInt3947, local1064.anInt3061 - Static217.anInt4903, local1064.aLong108, local24, null);
}
if (local1064.aClass8_9 != null) {
local1064.aClass8_9.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1064.anInt3064 - Static123.anInt3555, local1064.anInt3057 - Static123.anInt3947, local1064.anInt3061 - Static217.anInt4903, local1064.aLong108, local24, null);
}
}
}
local894 = local8.allInteriorFlags;
if (local894 != 0) {
if (local18 < Static123.anInt4069 && (local894 & 0x4) != 0) {
var32 = local31[local18 + 1][local21];
if (var32 != null && var32.aBoolean46) {
Static7.aClass69_32.addTail(var32);
}
}
if (local21 < Static193.anInt4539 && (local894 & 0x2) != 0) {
var32 = local31[local18][local21 + 1];
if (var32 != null && var32.aBoolean46) {
Static7.aClass69_32.addTail(var32);
}
}
if (local18 > Static123.anInt4069 && (local894 & 0x1) != 0) {
var32 = local31[local18 - 1][local21];
if (var32 != null && var32.aBoolean46) {
Static7.aClass69_32.addTail(var32);
}
}
if (local21 > Static193.anInt4539 && (local894 & 0x8) != 0) {
var32 = local31[local18][local21 - 1];
if (var32 != null && var32.aBoolean46) {
Static7.aClass69_32.addTail(var32);
}
}
}
break;
}
if (local8.anInt663 != 0) {
var24 = true;
for (var10 = 0; var10 < local8.sceneryLen; var10++) {
if (local8.scenery[var10].anInt1707 != Static156.anInt437 && (local8.interiorFlags[var10] & local8.anInt663) == local8.anInt665) {
var24 = false;
break;
}
}
if (var24) {
var22 = local8.wall;
if (!method3850(local27, local18, local21, var22.anInt3049)) {
if (GlRenderer.enabled) {
label882: {
if ((var22.key & 0xFC000L) == 16384L) {
local65 = var22.xFine - Static123.anInt3555;
local115 = var22.zFine - Static217.anInt4903;
local1332 = (int) (var22.key >> 20 & 0x3L);
if (local1332 == 0) {
local65 -= 64;
local115 += 64;
if (local115 < local65 && local18 > 0 && local21 < SceneGraph.length - 1) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18 - 1, local21 + 1);
break label882;
}
} else if (local1332 == 1) {
local65 += 64;
local115 += 64;
if (local115 < -local65 && local18 < SceneGraph.width - 1 && local21 < SceneGraph.length - 1) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18 + 1, local21 + 1);
break label882;
}
} else if (local1332 == 2) {
local65 += 64;
local115 -= 64;
if (local115 > local65 && local18 < SceneGraph.width - 1 && local21 > 0) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18 + 1, local21 - 1);
break label882;
}
} else if (local1332 == 3) {
local65 -= 64;
local115 -= 64;
if (local115 > -local65 && local18 > 0 && local21 > 0) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18 - 1, local21 - 1);
break label882;
}
}
}
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
}
var22.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, var22.xFine - Static123.anInt3555, var22.anInt3051 - Static123.anInt3947, var22.zFine - Static217.anInt4903, var22.key, local24, null);
}
local8.anInt663 = 0;
}
}
if (!local8.aBoolean47) {
break;
}
try {
var9 = local8.sceneryLen;
local8.aBoolean47 = false;
var10 = 0;
label767: for (local65 = 0; local65 < var9; local65++) {
var25 = local8.scenery[local65];
if (var25.anInt1707 != Static156.anInt437) {
for (local1332 = var25.xMin; local1332 <= var25.xMax; local1332++) {
for (local894 = var25.zMin; local894 <= var25.zMax; local894++) {
var32 = local31[local1332][local894];
if (var32.aBoolean45) {
local8.aBoolean47 = true;
continue label767;
}
if (var32.anInt663 != 0) {
local904 = 0;
if (local1332 > var25.xMin) {
local904++;
}
if (local1332 < var25.xMax) {
local904 += 4;
}
if (local894 > var25.zMin) {
local904 += 8;
}
if (local894 < var25.zMax) {
local904 += 2;
}
if ((local904 & var32.anInt663) == local8.anInt667) {
local8.aBoolean47 = true;
continue label767;
}
}
}
}
SceneGraph.aClass31Array2[var10++] = var25;
local1332 = Static123.anInt4069 - var25.xMin;
local894 = var25.xMax - Static123.anInt4069;
if (local894 > local1332) {
local1332 = local894;
}
local899 = Static193.anInt4539 - var25.zMin;
local904 = var25.zMax - Static193.anInt4539;
if (local904 > local899) {
var25.anInt1705 = local1332 + local904;
} else {
var25.anInt1705 = local1332 + local899;
}
}
}
while (var10 > 0) {
local65 = -50;
local115 = -1;
for (local1332 = 0; local1332 < var10; local1332++) {
@Pc(1628) Scenery local1628 = SceneGraph.aClass31Array2[local1332];
if (local1628.anInt1707 != Static156.anInt437) {
if (local1628.anInt1705 > local65) {
local65 = local1628.anInt1705;
local115 = local1332;
} else if (local1628.anInt1705 == local65) {
local899 = local1628.anInt1699 - Static123.anInt3555;
local904 = local1628.anInt1703 - Static217.anInt4903;
var17 = SceneGraph.aClass31Array2[local115].anInt1699 - Static123.anInt3555;
var18 = SceneGraph.aClass31Array2[local115].anInt1703 - Static217.anInt4903;
if (local899 * local899 + local904 * local904 > var17 * var17 + var18 * var18) {
local115 = local1332;
}
}
}
}
if (local115 == -1) {
break;
}
@Pc(1697) Scenery local1697 = SceneGraph.aClass31Array2[local115];
local1697.anInt1707 = Static156.anInt437;
if (!SceneGraph.method1599(local27, local1697.xMin, local1697.xMax, local1697.zMin, local1697.zMax, local1697.entity.getMinY())) {
if (GlRenderer.enabled) {
if ((local1697.key & 0xFC000L) == 147456L) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
local894 = local1697.anInt1699 - Static123.anInt3555;
local899 = local1697.anInt1703 - Static217.anInt4903;
local904 = (int) (local1697.key >> 20 & 0x3L);
if (local904 == 1 || local904 == 3) {
if (local899 > -local894) {
LightingManager.method2397(local24, local18, local21 - 1, local18 - 1, local21);
} else {
LightingManager.method2397(local24, local18, local21 + 1, local18 + 1, local21);
}
} else if (local899 > local894) {
LightingManager.method2397(local24, local18, local21 - 1, local18 + 1, local21);
} else {
LightingManager.method2397(local24, local18, local21 + 1, local18 - 1, local21);
}
} else {
LightingManager.method2391(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local1697.xMin, local1697.zMin, local1697.xMax, local1697.zMax);
}
}
local1697.entity.render(local1697.anInt1714, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1697.anInt1699 - Static123.anInt3555, local1697.anInt1706 - Static123.anInt3947, local1697.anInt1703 - Static217.anInt4903, local1697.key, local24, null);
}
for (local894 = local1697.xMin; local894 <= local1697.xMax; local894++) {
for (local899 = local1697.zMin; local899 <= local1697.zMax; local899++) {
@Pc(1863) Tile local1863 = local31[local894][local899];
if (local1863.anInt663 != 0) {
Static7.aClass69_32.addTail(local1863);
} else if ((local894 != local18 || local899 != local21) && local1863.aBoolean46) {
Static7.aClass69_32.addTail(local1863);
}
}
}
}
if (!local8.aBoolean47) {
break;
}
} catch (@Pc(1895) Exception local1895) {
local8.aBoolean47 = false;
break;
}
}
} while (!local8.aBoolean46);
} while (local8.anInt663 != 0);
if (local18 > Static123.anInt4069 || local18 <= LightingManager.anInt987) {
break;
}
local153 = local31[local18 - 1][local21];
} while (local153 != null && local153.aBoolean46);
if (local18 < Static123.anInt4069 || local18 >= LightingManager.anInt15 - 1) {
break;
}
local153 = local31[local18 + 1][local21];
} while (local153 != null && local153.aBoolean46);
if (local21 > Static193.anInt4539 || local21 <= LightingManager.anInt4698) {
break;
}
local153 = local31[local18][local21 - 1];
} while (local153 != null && local153.aBoolean46);
if (local21 < Static193.anInt4539 || local21 >= LightingManager.anInt4866 - 1) {
break;
}
local153 = local31[local18][local21 + 1];
} while (local153 != null && local153.aBoolean46);
local8.aBoolean46 = false;
Static156.anInt1142--;
@Pc(1999) ObjStackEntity local1999 = local8.aClass79_1;
if (local1999 != null && local1999.anInt3063 != 0) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
if (local1999.aClass8_7 != null) {
local1999.aClass8_7.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1999.anInt3064 - Static123.anInt3555, local1999.anInt3057 - Static123.anInt3947 - local1999.anInt3063, local1999.anInt3061 - Static217.anInt4903, local1999.aLong108, local24, null);
}
if (local1999.aClass8_8 != null) {
local1999.aClass8_8.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1999.anInt3064 - Static123.anInt3555, local1999.anInt3057 - Static123.anInt3947 - local1999.anInt3063, local1999.anInt3061 - Static217.anInt4903, local1999.aLong108, local24, null);
}
if (local1999.aClass8_9 != null) {
local1999.aClass8_9.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local1999.anInt3064 - Static123.anInt3555, local1999.anInt3057 - Static123.anInt3947 - local1999.anInt3063, local1999.anInt3061 - Static217.anInt4903, local1999.aLong108, local24, null);
}
}
if (local8.anInt670 != 0) {
@Pc(2109) WallDecor local2109 = local8.wallDecor;
if (local2109 != null && !method4611(local27, local18, local21, local2109.primary.getMinY())) {
if ((local2109.anInt1395 & local8.anInt670) != 0) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local2109.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local2109.anInt1390 + local2109.anInt1394 - Static123.anInt3555, local2109.anInt1391 - Static123.anInt3947, local2109.anInt1393 + local2109.anInt1392 - Static217.anInt4903, local2109.key, local24, null);
} else if (local2109.anInt1395 == 256) {
local65 = local2109.anInt1390 - Static123.anInt3555;
local115 = local2109.anInt1391 - Static123.anInt3947;
local1332 = local2109.anInt1393 - Static217.anInt4903;
local894 = local2109.anInt1388;
if (local894 == 1 || local894 == 2) {
local899 = -local65;
} else {
local899 = local65;
}
if (local894 == 2 || local894 == 3) {
local904 = -local1332;
} else {
local904 = local1332;
}
if (local904 >= local899) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local2109.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local65 + local2109.anInt1394, local115, local1332 + local2109.anInt1392, local2109.key, local24, null);
} else if (local2109.secondary != null) {
if (GlRenderer.enabled) {
LightingManager.method2393(Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local24, local18, local21);
}
local2109.secondary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local65, local115, local1332, local2109.key, local24, null);
}
}
}
@Pc(2275) Wall local2275 = local8.wall;
if (local2275 != null) {
if ((local2275.anInt3052 & local8.anInt670) != 0 && !method3850(local27, local18, local21, local2275.anInt3052)) {
if (GlRenderer.enabled) {
LightingManager.method2388(local2275.anInt3052, Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local27, local18, local21);
}
local2275.secondary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local2275.xFine - Static123.anInt3555, local2275.anInt3051 - Static123.anInt3947, local2275.zFine - Static217.anInt4903, local2275.key, local24, null);
}
if ((local2275.anInt3049 & local8.anInt670) != 0 && !method3850(local27, local18, local21, local2275.anInt3049)) {
if (GlRenderer.enabled) {
LightingManager.method2388(local2275.anInt3049, Static123.anInt3555, Static123.anInt3947, Static217.anInt4903, local27, local18, local21);
}
local2275.primary.render(0, Static160.anInt2886, Static121.anInt3038, Static231.anInt5205, Static81.anInt2222, local2275.xFine - Static123.anInt3555, local2275.anInt3051 - Static123.anInt3947, local2275.zFine - Static217.anInt4903, local2275.key, local24, null);
}
}
}
@Pc(2388) Tile local2388;
if (local24 < SceneGraph.levels - 1) {
local2388 = SceneGraph.tiles[local24 + 1][local18][local21];
if (local2388 != null && local2388.aBoolean46) {
Static7.aClass69_32.addTail(local2388);
}
}
if (local18 < Static123.anInt4069) {
local2388 = local31[local18 + 1][local21];
if (local2388 != null && local2388.aBoolean46) {
Static7.aClass69_32.addTail(local2388);
}
}
if (local21 < Static193.anInt4539) {
local2388 = local31[local18][local21 + 1];
if (local2388 != null && local2388.aBoolean46) {
Static7.aClass69_32.addTail(local2388);
}
}
if (local18 > Static123.anInt4069) {
local2388 = local31[local18 - 1][local21];
if (local2388 != null && local2388.aBoolean46) {
Static7.aClass69_32.addTail(local2388);
}
}
if (local21 > Static193.anInt4539) {
local2388 = local31[local18][local21 - 1];
if (local2388 != null && local2388.aBoolean46) {
Static7.aClass69_32.addTail(local2388);
}
}
}
}
@OriginalMember(owner = "client!ub", name = "b", descriptor = "(IIIIIII)V")
public static void method4246(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(6) int arg5) {
@Pc(8) Component local8 = InterfaceList.method1418(arg0, arg1);
if (local8 != null && local8.onUse != null) {
@Pc(19) HookRequest local19 = new HookRequest();
local19.source = local8;
local19.arguments = local8.onUse;
ScriptRunner.run(local19);
}
MiniMenu.anInt506 = arg1;
Static121.anInt3039 = arg3;
MiniMenu.anInt2512 = arg0;
MiniMenu.anInt4999 = arg2;
Static241.aBoolean302 = true;
MiniMenu.anInt5393 = arg4;
MiniMenu.anInt1092 = arg5;
InterfaceList.redraw(local8);
}
@OriginalMember(owner = "client!ub", name = "a", descriptor = "(IB)I")
public static int method4247(@OriginalArg(0) int arg0) {
return arg0 & 0xFF;
}
@OriginalMember(owner = "client!wh", name = "a", descriptor = "(IIII)Z")
public static boolean method4611(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
if (Static9.method187(arg0, arg1, arg2)) {
@Pc(10) int local10 = arg1 << 7;
@Pc(14) int local14 = arg2 << 7;
return SceneGraph.method4394(local10 + 1, SceneGraph.tileHeights[arg0][arg1][arg2] + arg3, local14 + 1) && SceneGraph.method4394(local10 + 128 - 1, SceneGraph.tileHeights[arg0][arg1 + 1][arg2] + arg3, local14 + 1) && SceneGraph.method4394(local10 + 128 - 1, SceneGraph.tileHeights[arg0][arg1 + 1][arg2 + 1] + arg3, local14 + 128 - 1) && SceneGraph.method4394(local10 + 1, SceneGraph.tileHeights[arg0][arg1][arg2 + 1] + arg3, local14 + 128 - 1);
} else {
return false;
}
}
@OriginalMember(owner = "client!vd", name = "b", descriptor = "(IIII)Z")
public static boolean method3850(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
if (!Static9.method187(arg0, arg1, arg2)) {
return false;
}
@Pc(10) int local10 = arg1 << 7;
@Pc(14) int local14 = arg2 << 7;
@Pc(24) int local24 = SceneGraph.tileHeights[arg0][arg1][arg2] - 1;
@Pc(28) int local28 = local24 - 120;
@Pc(32) int local32 = local24 - 230;
@Pc(36) int local36 = local24 - 238;
if (arg3 < 16) {
if (arg3 == 1) {
if (local10 > Static123.anInt3555) {
if (!SceneGraph.method4394(local10, local24, local14)) {
return false;
}
if (!SceneGraph.method4394(local10, local24, local14 + 128)) {
return false;
}
}
if (arg0 > 0) {
if (!SceneGraph.method4394(local10, local28, local14)) {
return false;
}
if (!SceneGraph.method4394(local10, local28, local14 + 128)) {
return false;
}
}
if (!SceneGraph.method4394(local10, local32, local14)) {
return false;
}
if (!SceneGraph.method4394(local10, local32, local14 + 128)) {
return false;
}
return true;
}
if (arg3 == 2) {
if (local14 < Static217.anInt4903) {
if (!SceneGraph.method4394(local10, local24, local14 + 128)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local24, local14 + 128)) {
return false;
}
}
if (arg0 > 0) {
if (!SceneGraph.method4394(local10, local28, local14 + 128)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local28, local14 + 128)) {
return false;
}
}
if (!SceneGraph.method4394(local10, local32, local14 + 128)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local32, local14 + 128)) {
return false;
}
return true;
}
if (arg3 == 4) {
if (local10 < Static123.anInt3555) {
if (!SceneGraph.method4394(local10 + 128, local24, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local24, local14 + 128)) {
return false;
}
}
if (arg0 > 0) {
if (!SceneGraph.method4394(local10 + 128, local28, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local28, local14 + 128)) {
return false;
}
}
if (!SceneGraph.method4394(local10 + 128, local32, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local32, local14 + 128)) {
return false;
}
return true;
}
if (arg3 == 8) {
if (local14 > Static217.anInt4903) {
if (!SceneGraph.method4394(local10, local24, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local24, local14)) {
return false;
}
}
if (arg0 > 0) {
if (!SceneGraph.method4394(local10, local28, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local28, local14)) {
return false;
}
}
if (!SceneGraph.method4394(local10, local32, local14)) {
return false;
}
if (!SceneGraph.method4394(local10 + 128, local32, local14)) {
return false;
}
return true;
}
}
if (!SceneGraph.method4394(local10 + 64, local36, local14 + 64)) {
return false;
} else if (arg3 == 16) {
return SceneGraph.method4394(local10, local32, local14 + 128);
} else if (arg3 == 32) {
return SceneGraph.method4394(local10 + 128, local32, local14 + 128);
} else if (arg3 == 64) {
return SceneGraph.method4394(local10 + 128, local32, local14);
} else if (arg3 == 128) {
return SceneGraph.method4394(local10, local32, local14);
} else {
return true;
}
}
@OriginalMember(owner = "client!ke", name = "a", descriptor = "(Lclient!rh;IIIIIIIZ)V")
public static void method2610(@OriginalArg(0) PlainTile arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7, @OriginalArg(8) boolean arg8) { public static void method2610(@OriginalArg(0) PlainTile arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7, @OriginalArg(8) boolean arg8) {
@Pc(6) int local6; @Pc(6) int local6;
@Pc(7) int local7 = local6 = (arg6 << 7) - Static123.anInt3555; @Pc(7) int local7 = local6 = (arg6 << 7) - Static123.anInt3555;

View file

@ -34,7 +34,7 @@ public final class Static252 {
} }
if (Camera.cameraType != 1) { if (Camera.cameraType != 1) {
local33 = SceneGraph.getTileHeight(Player.level, Camera.renderX, Camera.renderZ); local33 = SceneGraph.getTileHeight(Player.level, Camera.renderX, Camera.renderZ);
if (local33 - Static5.anInt40 < 800 && (SceneGraph.tileFlags[Player.level][Camera.renderX >> 7][Camera.renderZ >> 7] & 0x4) != 0) { if (local33 - Camera.anInt40 < 800 && (SceneGraph.tileFlags[Player.level][Camera.renderX >> 7][Camera.renderZ >> 7] & 0x4) != 0) {
ScriptRunner.method4348(false, Camera.renderX >> 7, Camera.renderZ >> 7, SceneGraph.tiles, 1); ScriptRunner.method4348(false, Camera.renderX >> 7, Camera.renderZ >> 7, SceneGraph.tiles, 1);
} }
return; return;

View file

@ -1,51 +0,0 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static264 {
@OriginalMember(owner = "client!vh", name = "p", descriptor = "[I")
public static final int[] anIntArray412 = new int[] { 1, 0, 0, 0, 1, 0, 2, 1, 1, 1, 0, 2, 0, 0, 1, 0 };
@OriginalMember(owner = "client!vh", name = "s", descriptor = "I")
public static int mouseRecorderPrevX = 0;
@OriginalMember(owner = "client!vh", name = "a", descriptor = "(ILclient!wa;)Lclient!bd;")
public static QuickChatPhrase method3568(@OriginalArg(1) Buffer arg0) {
@Pc(3) QuickChatPhrase local3 = new QuickChatPhrase();
local3.id = arg0.g2();
local3.type = QuickChatPhraseTypeList.get(local3.id);
return local3;
}
@OriginalMember(owner = "client!vh", name = "a", descriptor = "(Lclient!th;III)V")
public static void method3574(@OriginalArg(0) Entity arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
@Pc(12) Tile local12;
if (arg2 < SceneGraph.width) {
local12 = SceneGraph.tiles[arg1][arg2 + 1][arg3];
if (local12 != null && local12.groundDecor != null && local12.groundDecor.entity.method4543()) {
arg0.method4544(local12.groundDecor.entity, 128, 0, 0, true);
}
}
if (arg3 < SceneGraph.width) {
local12 = SceneGraph.tiles[arg1][arg2][arg3 + 1];
if (local12 != null && local12.groundDecor != null && local12.groundDecor.entity.method4543()) {
arg0.method4544(local12.groundDecor.entity, 0, 0, 128, true);
}
}
if (arg2 < SceneGraph.width && arg3 < SceneGraph.length) {
local12 = SceneGraph.tiles[arg1][arg2 + 1][arg3 + 1];
if (local12 != null && local12.groundDecor != null && local12.groundDecor.entity.method4543()) {
arg0.method4544(local12.groundDecor.entity, 128, 0, 128, true);
}
}
if (arg2 < SceneGraph.width && arg3 > 0) {
local12 = SceneGraph.tiles[arg1][arg2 + 1][arg3 - 1];
if (local12 != null && local12.groundDecor != null && local12.groundDecor.entity.method4543()) {
arg0.method4544(local12.groundDecor.entity, 128, 0, -128, true);
}
}
}
}

View file

@ -99,7 +99,7 @@ public final class Static49 {
@OriginalMember(owner = "client!dm", name = "a", descriptor = "(Lclient!be;III)V") @OriginalMember(owner = "client!dm", name = "a", descriptor = "(Lclient!be;III)V")
public static void method1207(@OriginalArg(0) Component arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2) { public static void method1207(@OriginalArg(0) Component arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2) {
if (MiniMenu.size < 2 && MiniMenu.anInt5014 == 0 && !Static241.aBoolean302) { if (MiniMenu.size < 2 && MiniMenu.anInt5014 == 0 && !MiniMenu.aBoolean302) {
return; return;
} }
@Pc(24) JagString local24 = MiniMenu.method471(); @Pc(24) JagString local24 = MiniMenu.method471();

View file

@ -6,9 +6,6 @@ import org.openrs2.deob.annotation.Pc;
public final class Static5 { public final class Static5 {
@OriginalMember(owner = "client!af", name = "d", descriptor = "I")
public static int anInt40;
@OriginalMember(owner = "client!af", name = "l", descriptor = "[S") @OriginalMember(owner = "client!af", name = "l", descriptor = "[S")
public static final short[] aShortArray2 = new short[] { 30, 6, 31, 29, 10, 44, 37, 57 }; public static final short[] aShortArray2 = new short[] { 30, 6, 31, 29, 10, 44, 37, 57 };

View file

@ -24,80 +24,6 @@ public final class Static69 {
} }
} }
@OriginalMember(owner = "client!fh", name = "a", descriptor = "(IIIILclient!th;JLclient!th;Lclient!th;)V")
public static void method1543(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) Entity arg4, @OriginalArg(5) long arg5, @OriginalArg(6) Entity arg6, @OriginalArg(7) Entity arg7) {
@Pc(3) ObjStackEntity local3 = new ObjStackEntity();
local3.aClass8_9 = arg4;
local3.anInt3064 = arg1 * 128 + 64;
local3.anInt3061 = arg2 * 128 + 64;
local3.anInt3057 = arg3;
local3.aLong108 = arg5;
local3.aClass8_7 = arg6;
local3.aClass8_8 = arg7;
@Pc(34) int local34 = 0;
@Pc(42) Tile local42 = SceneGraph.tiles[arg0][arg1][arg2];
if (local42 != null) {
for (@Pc(46) int local46 = 0; local46 < local42.sceneryLen; local46++) {
@Pc(55) Scenery local55 = local42.scenery[local46];
if ((local55.key & 0x400000L) == 4194304L) {
@Pc(66) int local66 = local55.entity.getMinY();
if (local66 != -32768 && local66 < local34) {
local34 = local66;
}
}
}
}
local3.anInt3063 = -local34;
if (SceneGraph.tiles[arg0][arg1][arg2] == null) {
SceneGraph.tiles[arg0][arg1][arg2] = new Tile(arg0, arg1, arg2);
}
SceneGraph.tiles[arg0][arg1][arg2].aClass79_1 = local3;
}
@OriginalMember(owner = "client!fh", name = "a", descriptor = "(Lclient!th;IIIII)V")
public static void method1544(@OriginalArg(0) Entity arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
@Pc(1) boolean local1 = true;
@Pc(3) int local3 = arg2;
@Pc(7) int local7 = arg2 + arg4;
@Pc(11) int local11 = arg3 - 1;
@Pc(15) int local15 = arg3 + arg5;
for (@Pc(17) int local17 = arg1; local17 <= arg1 + 1; local17++) {
if (local17 != SceneGraph.levels) {
for (@Pc(28) int local28 = local3; local28 <= local7; local28++) {
if (local28 >= 0 && local28 < SceneGraph.width) {
for (@Pc(39) int local39 = local11; local39 <= local15; local39++) {
if (local39 >= 0 && local39 < SceneGraph.length && (!local1 || local28 >= local7 || local39 >= local15 || local39 < arg3 && local28 != arg2)) {
@Pc(71) Tile local71 = SceneGraph.tiles[local17][local28][local39];
if (local71 != null) {
@Pc(158) int local158 = (SceneGraph.tileHeights[local17][local28][local39] + SceneGraph.tileHeights[local17][local28 + 1][local39] + SceneGraph.tileHeights[local17][local28][local39 + 1] + SceneGraph.tileHeights[local17][local28 + 1][local39 + 1]) / 4 - (SceneGraph.tileHeights[arg1][arg2][arg3] + SceneGraph.tileHeights[arg1][arg2 + 1][arg3] + SceneGraph.tileHeights[arg1][arg2][arg3 + 1] + SceneGraph.tileHeights[arg1][arg2 + 1][arg3 + 1]) / 4;
@Pc(161) Wall local161 = local71.wall;
if (local161 != null) {
if (local161.primary.method4543()) {
arg0.method4544(local161.primary, (local28 - arg2) * 128 + (1 - arg4) * 64, local158, (local39 - arg3) * 128 + (1 - arg5) * 64, local1);
}
if (local161.secondary != null && local161.secondary.method4543()) {
arg0.method4544(local161.secondary, (local28 - arg2) * 128 + (1 - arg4) * 64, local158, (local39 - arg3) * 128 + (1 - arg5) * 64, local1);
}
}
for (@Pc(232) int local232 = 0; local232 < local71.sceneryLen; local232++) {
@Pc(241) Scenery local241 = local71.scenery[local232];
if (local241 != null && local241.entity.method4543() && (local28 == local241.xMin || local28 == local3) && (local39 == local241.zMin || local39 == local11)) {
@Pc(270) int local270 = local241.xMax + 1 - local241.xMin;
@Pc(278) int local278 = local241.zMax + 1 - local241.zMin;
arg0.method4544(local241.entity, (local241.xMin - arg2) * 128 + (local270 - arg4) * 64, local158, (local241.zMin - arg3) * 128 + (local278 - arg5) * 64, local1);
}
}
}
}
}
}
}
local3--;
local1 = false;
}
}
}
@OriginalMember(owner = "client!fh", name = "a", descriptor = "(BLclient!ek;)V") @OriginalMember(owner = "client!fh", name = "a", descriptor = "(BLclient!ek;)V")
public static void method1545(@OriginalArg(1) SoftwareIndexedSprite arg0) { public static void method1545(@OriginalArg(1) SoftwareIndexedSprite arg0) {
@Pc(5) int local5; @Pc(5) int local5;

View file

@ -29,7 +29,7 @@ public final class Static79 {
if (arg0 >= 0) { if (arg0 >= 0) {
@Pc(92) boolean local92 = Preferences.showGroundDecorations; @Pc(92) boolean local92 = Preferences.showGroundDecorations;
Preferences.showGroundDecorations = true; Preferences.showGroundDecorations = true;
LoginManager.method3397(local39, false, arg2, false, PathFinder.collisionMaps[arg2], arg0, arg5, arg1, arg4, arg3); SceneGraph.method3397(local39, false, arg2, false, PathFinder.collisionMaps[arg2], arg0, arg5, arg1, arg4, arg3);
Preferences.showGroundDecorations = local92; Preferences.showGroundDecorations = local92;
} }
} }

View file

@ -244,7 +244,7 @@ public final class Static87 {
local556 = local276 * color + local270 * cardMemory >> 11; local556 = local276 * color + local270 * cardMemory >> 11;
local563 = PlayerList.self.xFine + local556 >> 7; local563 = PlayerList.self.xFine + local556 >> 7;
local571 = PlayerList.self.zFine - objId >> 7; local571 = PlayerList.self.zFine - objId >> 7;
if (Static241.aBoolean302 && (MiniMenu.anInt4999 & 0x40) != 0) { if (MiniMenu.aBoolean302 && (MiniMenu.anInt4999 & 0x40) != 0) {
@Pc(583) Component local583 = InterfaceList.method1418(MiniMenu.anInt2512, MiniMenu.anInt506); @Pc(583) Component local583 = InterfaceList.method1418(MiniMenu.anInt2512, MiniMenu.anInt506);
if (local583 == null) { if (local583 == null) {
MiniMenu.method1294(); MiniMenu.method1294();
@ -416,7 +416,7 @@ public final class Static87 {
if (arg0 < x + 32 && x < arg4 && arg6 < y + 32 && y < arg7 || component == InterfaceList.clickedInventoryComponent && Static4.mouseOverInventoryObjectIndex == local270) { if (arg0 < x + 32 && x < arg4 && arg6 < y + 32 && y < arg7 || component == InterfaceList.clickedInventoryComponent && Static4.mouseOverInventoryObjectIndex == local270) {
@Pc(1476) Sprite sprite; @Pc(1476) Sprite sprite;
if (MiniMenu.anInt5014 == 1 && Static185.anInt4370 == local270 && component.id == MiniMap.anInt5062) { if (MiniMenu.anInt5014 == 1 && MiniMenu.anInt4370 == local270 && component.id == MiniMap.anInt5062) {
sprite = Inv.getObjectSprite(2, objId, component.objDrawText, component.objCounts[local270], 0); sprite = Inv.getObjectSprite(2, objId, component.objDrawText, component.objCounts[local270], 0);
} else { } else {
sprite = Inv.getObjectSprite(1, objId, component.objDrawText, component.objCounts[local270], 3153952); sprite = Inv.getObjectSprite(1, objId, component.objDrawText, component.objCounts[local270], 3153952);

View file

@ -9,6 +9,8 @@ public class StringUtils {
public static final JagString aClass100_17 = JagString.parse("0"); public static final JagString aClass100_17 = JagString.parse("0");
@OriginalMember(owner = "client!ca", name = "cb", descriptor = "Lclient!na;") @OriginalMember(owner = "client!ca", name = "cb", descriptor = "Lclient!na;")
public static final JagString nonBreakingSpace = JagString.getNbsp(); public static final JagString nonBreakingSpace = JagString.getNbsp();
@OriginalMember(owner = "client!rm", name = "i", descriptor = "Lclient!na;")
public static final JagString aClass100_930 = JagString.parse("(Z");
@OriginalMember(owner = "client!gj", name = "a", descriptor = "(II)Z") @OriginalMember(owner = "client!gj", name = "a", descriptor = "(II)Z")
public static boolean isAlphaNumeric(@OriginalArg(0) int arg0) { public static boolean isAlphaNumeric(@OriginalArg(0) int arg0) {
@ -44,7 +46,7 @@ public class StringUtils {
@OriginalMember(owner = "client!vf", name = "a", descriptor = "(IB)Lclient!na;") @OriginalMember(owner = "client!vf", name = "a", descriptor = "(IB)Lclient!na;")
public static JagString method4510(@OriginalArg(0) int arg0) { public static JagString method4510(@OriginalArg(0) int arg0) {
return arg0 >= 999999999 ? Static220.aClass100_930 : JagString.parseInt(arg0); return arg0 >= 999999999 ? aClass100_930 : JagString.parseInt(arg0);
} }
@OriginalMember(owner = "client!ld", name = "a", descriptor = "(IB)I") @OriginalMember(owner = "client!ld", name = "a", descriptor = "(IB)I")

View file

@ -79,7 +79,7 @@ public final class TextureOp29 extends TextureOp {
} else if (local24 == 1) { } else if (local24 == 1) {
this.aClass18Array1[local11] = TextureOp29SubOp3.create(arg1); this.aClass18Array1[local11] = TextureOp29SubOp3.create(arg1);
} else if (local24 == 2) { } else if (local24 == 2) {
this.aClass18Array1[local11] = Static156.method2960(arg1); this.aClass18Array1[local11] = TextureOp29SubOp4.method2960(arg1);
} else if (local24 == 3) { } else if (local24 == 3) {
this.aClass18Array1[local11] = TextureOp29SubOp2.method2664(arg1); this.aClass18Array1[local11] = TextureOp29SubOp2.method2664(arg1);
} }

View file

@ -142,7 +142,12 @@ public final class TextureOp29SubOp4 extends TextureOp29SubOp {
} }
} }
@OriginalMember(owner = "client!ta", name = "a", descriptor = "(IZI)V") @OriginalMember(owner = "client!mf", name = "a", descriptor = "(BLclient!wa;)Lclient!ta;")
public static TextureOp29SubOp4 method2960(@OriginalArg(1) Buffer arg0) {
return new TextureOp29SubOp4(arg0.g2b(), arg0.g2b(), arg0.g2b(), arg0.g2b(), arg0.g3(), arg0.g3(), arg0.g1());
}
@OriginalMember(owner = "client!ta", name = "a", descriptor = "(IZI)V")
@Override @Override
public final void method4009(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) { public final void method4009(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) {
@Pc(10) int local10 = arg1 * this.anInt5238 >> 12; @Pc(10) int local10 = arg1 * this.anInt5238 >> 12;

View file

@ -13,22 +13,22 @@ public final class WallDecor {
public Entity secondary; public Entity secondary;
@OriginalMember(owner = "client!df", name = "e", descriptor = "I") @OriginalMember(owner = "client!df", name = "e", descriptor = "I")
public int anInt1390; public int xFine;
@OriginalMember(owner = "client!df", name = "f", descriptor = "I") @OriginalMember(owner = "client!df", name = "f", descriptor = "I")
public int anInt1391; public int anInt1391;
@OriginalMember(owner = "client!df", name = "g", descriptor = "I") @OriginalMember(owner = "client!df", name = "g", descriptor = "I")
public int anInt1392; public int zOffset;
@OriginalMember(owner = "client!df", name = "h", descriptor = "I") @OriginalMember(owner = "client!df", name = "h", descriptor = "I")
public int anInt1393; public int zFine;
@OriginalMember(owner = "client!df", name = "j", descriptor = "Lclient!th;") @OriginalMember(owner = "client!df", name = "j", descriptor = "Lclient!th;")
public Entity primary; public Entity primary;
@OriginalMember(owner = "client!df", name = "k", descriptor = "I") @OriginalMember(owner = "client!df", name = "k", descriptor = "I")
public int anInt1394; public int xOffset;
@OriginalMember(owner = "client!df", name = "m", descriptor = "I") @OriginalMember(owner = "client!df", name = "m", descriptor = "I")
public int anInt1395; public int anInt1395;

View file

@ -254,4 +254,10 @@ public class WorldList {
method1697(arg0, arg1, local15 - 1, arg3, arg4, arg5); method1697(arg0, arg1, local15 - 1, arg3, arg4, arg5);
method1697(arg0, arg1, arg2, arg3, local15 + 1, arg5); method1697(arg0, arg1, arg2, arg3, local15 + 1, arg5);
} }
@OriginalMember(owner = "client!bh", name = "a", descriptor = "(B)Lclient!ba;")
public static World getFirstWorld() {
worldPos = 0;
return getNextWorld();
}
} }

View file

@ -547,7 +547,7 @@ public final class client extends GameShell {
PlayerList.size = 0; PlayerList.size = 0;
MiniMap.state = 0; MiniMap.state = 0;
Camera.anInt4774 = (int) (Math.random() * 110.0D) - 55; Camera.anInt4774 = (int) (Math.random() * 110.0D) - 55;
Static241.aBoolean302 = false; MiniMenu.aBoolean302 = false;
MiniMap.anInt4130 = (int) (Math.random() * 30.0D) - 20; MiniMap.anInt4130 = (int) (Math.random() * 30.0D) - 20;
SoundPlayer.size = 0; SoundPlayer.size = 0;
LoginManager.mapFlagX = 0; LoginManager.mapFlagX = 0;