daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public void readValues(Stream stream) {
  2.         do {
  3.             int opcode = stream.readUByte();
  4.             if (opcode == 0)
  5.                 return;
  6.             if (opcode == 1)
  7.                 modelID = stream.readUShort();
  8.             else if (opcode == 2) {
  9.                 animationID = stream.readUShort();
  10.                 if (Animation.anims != null
  11.                         && animationID < Animation.anims.length)
  12.                     animationSeq = Animation.anims[animationID];
  13.             } else if (opcode == 4)
  14.                 resizeXY = stream.readUShort();
  15.             else if (opcode == 5)
  16.                 resizeZ = stream.readUShort();
  17.             else if (opcode == 6)
  18.                 rotation = stream.readUShort();
  19.             else if (opcode == 7)
  20.                 modelBrightness = stream.readUByte();
  21.             else if (opcode == 8)
  22.                 modelShadow = stream.readUByte();
  23.             else if (opcode == 10) {
  24.                 aBoolean625 = true;
  25.             } else if (opcode == 14) {
  26.                 anInt620 = 256 * stream.readUByte();
  27.             } else if (opcode == 15) {
  28.                 anInt620 = stream.readUShort();
  29.             } else if (opcode == 16) {
  30.                 anInt620 = stream.readDWord();
  31.             } else if (opcode == 40) {
  32.                 int j = stream.readUByte();
  33.                 originalModelColors = new short[j];
  34.                 modifiedModelColors = new short[j];
  35.                 for (int k = 0; k < j; k++) {
  36.                     originalModelColors[k] = (short) stream.readUShort();
  37.                     modifiedModelColors[k] = (short) stream.readUShort();
  38.                 }
  39.             } else if (opcode == 41) {
  40.                 int j = stream.readUByte();
  41.                 aShortArray622 = new short[j];
  42.                 aShortArray624 = new short[j];
  43.                 for (int k = 0; k < j; k++) {
  44.                     aShortArray622[k] = (short) stream.readUShort();
  45.                     aShortArray624[k] = (short) stream.readUShort();
  46.                 }
  47.  
  48.             } else
  49.                 System.out.println("Error unrecognised spotanim config code: "
  50.                         + opcode);
  51.         } while (true);
  52.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top