mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-17 08:25:10 -06:00
More texture stuff
Separated out Player + NPC rendering
This commit is contained in:
parent
c1efb2a344
commit
ff62177237
129 changed files with 5036 additions and 5147 deletions
|
|
@ -8,7 +8,7 @@ public final class Class131 {
|
|||
static RSString password = TextCore.emptyJagexString;
|
||||
static RSString username = TextCore.emptyJagexString;
|
||||
static int anInt1719 = -1;
|
||||
static CacheIndex aClass153_1723;
|
||||
static CacheIndex skeletonsReferenceIndex;
|
||||
public short[] aShortArray1718;
|
||||
public int anInt1720;
|
||||
public RSString[] aClass94Array1721;
|
||||
|
|
@ -29,58 +29,6 @@ public final class Class131 {
|
|||
}
|
||||
}
|
||||
|
||||
static void addLocalPlayers() {
|
||||
try {
|
||||
while (true) {
|
||||
if (GraphicDefinition.incomingBuffer.method815(Unsorted.incomingPacketLength) >= 11) {
|
||||
int index = GraphicDefinition.incomingBuffer.getBits(11);
|
||||
if (index != 2047) {
|
||||
boolean var2 = false;
|
||||
if (null == TextureOperation0.players[index]) {
|
||||
TextureOperation0.players[index] = new Player();
|
||||
var2 = true;
|
||||
if (null != Class65.aClass3_Sub30Array986[index]) {
|
||||
TextureOperation0.players[index].parseAppearance(-54, Class65.aClass3_Sub30Array986[index]);
|
||||
}
|
||||
}
|
||||
|
||||
Class56.localPlayerIndexes[Class159.localPlayerCount++] = index;
|
||||
Player var3 = TextureOperation0.players[index];
|
||||
var3.anInt2838 = Class44.anInt719;
|
||||
int var4 = GraphicDefinition.incomingBuffer.getBits(1);
|
||||
if (var4 == 1) {
|
||||
Class21.maskUpdateIndexes[Unsorted.maskUpdateCount++] = index;
|
||||
}
|
||||
|
||||
int var5 = GraphicDefinition.incomingBuffer.getBits(5);
|
||||
int var6 = Class27.anIntArray510[GraphicDefinition.incomingBuffer.getBits(3)];
|
||||
if (var5 > 15) {
|
||||
var5 -= 32;
|
||||
}
|
||||
|
||||
if (var2) {
|
||||
var3.anInt2806 = var3.anInt2785 = var6;
|
||||
}
|
||||
|
||||
int var7 = GraphicDefinition.incomingBuffer.getBits(1);
|
||||
int var8 = GraphicDefinition.incomingBuffer.getBits(5);
|
||||
if (var8 > 15) {
|
||||
var8 -= 32;
|
||||
}
|
||||
|
||||
var3.method1981(var5 + Class102.player.anIntArray2767[0], var7 == 1, Class102.player.anIntArray2755[0] + var8);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
GraphicDefinition.incomingBuffer.method818();
|
||||
return;
|
||||
}
|
||||
} catch (RuntimeException var9) {
|
||||
throw ClientErrorException.clientError(var9, "se.D(" + -59 + ')');
|
||||
}
|
||||
}
|
||||
|
||||
static int method1788(int var0, int var1, int var2, int var3, boolean var4) {
|
||||
try {
|
||||
if (var4) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue