Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void readValues(Stream stream) {
- do {
- int opcode = stream.readUByte();
- if (opcode == 0)
- return;
- if (opcode == 1)
- modelID = stream.readUShort();
- else if (opcode == 2) {
- animationID = stream.readUShort();
- if (Animation.anims != null
- && animationID < Animation.anims.length)
- animationSeq = Animation.anims[animationID];
- } else if (opcode == 4)
- resizeXY = stream.readUShort();
- else if (opcode == 5)
- resizeZ = stream.readUShort();
- else if (opcode == 6)
- rotation = stream.readUShort();
- else if (opcode == 7)
- modelBrightness = stream.readUByte();
- else if (opcode == 8)
- modelShadow = stream.readUByte();
- else if (opcode == 10) {
- aBoolean625 = true;
- } else if (opcode == 14) {
- anInt620 = 256 * stream.readUByte();
- } else if (opcode == 15) {
- anInt620 = stream.readUShort();
- } else if (opcode == 16) {
- anInt620 = stream.readDWord();
- } else if (opcode == 40) {
- int j = stream.readUByte();
- originalModelColors = new short[j];
- modifiedModelColors = new short[j];
- for (int k = 0; k < j; k++) {
- originalModelColors[k] = (short) stream.readUShort();
- modifiedModelColors[k] = (short) stream.readUShort();
- }
- } else if (opcode == 41) {
- int j = stream.readUByte();
- aShortArray622 = new short[j];
- aShortArray624 = new short[j];
- for (int k = 0; k < j; k++) {
- aShortArray622[k] = (short) stream.readUShort();
- aShortArray624[k] = (short) stream.readUShort();
- }
- } else
- System.out.println("Error unrecognised spotanim config code: "
- + opcode);
- } while (true);
- }
Add Comment
Please, Sign In to add comment