Mechanikas 1 Posted October 13, 2019 Report Share Posted October 13, 2019 Any ideas how to fix? Only some animations flickering like this. Link to comment Share on other sites More sharing options...
Valentino 2 Posted November 12, 2019 Report Share Posted November 12, 2019 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); } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now