Posted October 13, 20195 yr comment_38902 Any ideas how to fix? Only some animations flickering like this.
November 12, 20195 yr comment_40170 Make sure your read value's are up-to-date , If this doesnt work , it might be the model your using , or the anim definitions of the npc. private void readValues(Stream stream) { while(true) { int i = stream.readUnsignedByte(); if (i == 0) { return; } if (i == 1) { modelId = stream.readUnsignedWord(); } else if (i == 2) { anInt406 = stream.readUnsignedWord(); if (AnimationDefinition.anims != null) { aAnimation_407 = AnimationDefinition.anims[anInt406]; } } else if (i == 4) { anInt410 = stream.readUnsignedWord(); } else if (i == 5) { anInt411 = stream.readUnsignedWord(); } else if (i == 6) { anInt412 = stream.readUnsignedWord(); } else if (i == 7) { anInt413 = stream.readUnsignedWord(); } else if (i == 8) { anInt414 = stream.readUnsignedWord(); } else if (i == 40) { int j = stream.readUnsignedByte(); for (int k = 0; k < j; k++) { anIntArray408[k] = stream.readUnsignedWord(); anIntArray409[k] = stream.readUnsignedWord(); } } else { System.out.println("Error unrecognised spotanim config code: " + i); } } }
Create an account or sign in to comment