Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.43 KB | None | 0 0
  1. package com.client.definitions;
  2.  
  3. import com.client.Animation;
  4. import com.client.Stream;
  5. //import com.client.ByteBuf;
  6. import com.client.StreamLoader;
  7.  
  8. public final class AnimationDefinition {
  9.  
  10. public static void unpackConfig(StreamLoader streamLoader) {
  11. Stream stream = new Stream(streamLoader.getDataForName("seq.dat"));
  12. int length = stream.readUnsignedShort();
  13. if (anims == null)
  14. anims = new AnimationDefinition[length];
  15. for (int j = 0; j < length; j++) {
  16. if (anims[j] == null)
  17. anims[j] = new AnimationDefinition();
  18. anims[j].readValues(stream);
  19. if (j == 719) {
  20. anims[j].playerMainhand = 28232;
  21. anims[j].priority = 6;
  22. anims[j].playerOffhand = 0;
  23. anims[j].replayMode = 1;
  24. anims[j].loopOffset = -1;
  25. anims[j].stretches = false;
  26. anims[j].priority = 5;
  27. anims[j].maxLoops = 99;
  28. anims[j].animatingPrecedence = -1;
  29. anims[j].walkingPrecedence = -1;
  30. }
  31. switch (j) {
  32.  
  33. case 7156:
  34. anims[j] = new AnimationDefinition();
  35. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 4,
  36. 4, 4, 4, 3, 3, 3, };
  37. anims[j].primaryFrames = new int[] { 158990394, 158990411, 158990398, 158990429, 158990418, 158990393,
  38. 158990407, 158990402, 158990397, 158990428, 158990409, 158990401, 158990425, 158990406,
  39. 158990417, 158990403, 158990420, 158990395, 158990399, 158990435, 158990414, 158990405,
  40. 158990432, 158990410, 158990415, 158990426, 158990430, 158990394, };
  41. anims[j].frameCount = 28;
  42. anims[j].stretches = false;
  43. anims[j].priority = 10;
  44. anims[j].maxLoops = 99;
  45. anims[j].replayMode = 2;
  46. break;
  47.  
  48. case 7155:
  49. anims[j] = new AnimationDefinition();
  50. anims[j].durations = new int[] { 18, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1,
  51. 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 6, 4, 1, 1, 1, 1, 1, 1, 1, 1, };
  52. anims[j].primaryFrames = new int[] { 168558682, 168558693, 168558686, 168558670, 168558665, 168558702,
  53. 168558703, 168558669, 168558690, 168558705, 168558692, 168558694, 168558671, 168558679,
  54. 168558672, 168558667, 168558675, 168558683, 168558706, 168558681, 168558704, 168558673,
  55. 168558698, 168558680, 168558695, 168558677, 168558700, 168558701, 168558699, 168558668,
  56. 168558689, 168558684, 168558678, 168558696, 168558688, 168558666, 168558687, 168558674,
  57. 168558691, 168558676, 168558685, 168558697, };
  58. anims[j].frameCount = 42;
  59. anims[j].stretches = false;
  60. anims[j].priority = 5;
  61. anims[j].maxLoops = 99;
  62. anims[j].replayMode = 2;
  63. break;
  64.  
  65. case 7154:
  66. // fileID = 1845
  67. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  68. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  69. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, };
  70. anims[j].primaryFrames = new int[] { 120913948, 120913967, 120913935, 120913942, 120913982, 120913929,
  71. 120913947, 120913937, 120913951, 120913932, 120913966, 120913931, 120913960, 120913924,
  72. 120913973, 120913976, 120913972, 120913936, 120913920, 120913981, 120913921, 120913945,
  73. 120913964, 120913968, 120913943, 120913944, 120913954, 120913970, 120913939, 120913949,
  74. 120913963, 120913974, 120913983, 120913938, 120913926, 120913956, 120913940, 120913923,
  75. 120913958, 120913965, 120913946, 120913971, 120913953, 120913969, 120913977, 120913980,
  76. 120913930, 120913975, 120913978, 120913928, 120913961, 120913952, 120913955, 120913950,
  77. 120913925, 120913959, 120913957, 120913962, 120913922, 120913934, 120913927, 120913979,
  78. 120913941, 120913933, };
  79. anims[j].frameCount = 64;
  80. anims[j].stretches = false;
  81. anims[j].priority = 5;
  82. anims[j].maxLoops = 99;
  83. anims[j].replayMode = 2;
  84. anims[j].loopOffset = 64;
  85. break;
  86.  
  87. case 1134:
  88. // fileID = 464
  89. anims[j].frameCount = 3;
  90. anims[j].primaryFrames = new int[] { 30408704, 30408708, 30408707, };
  91. anims[j].durations = new int[] { 14, 14, 12, };
  92. break;
  93.  
  94. case 1674:
  95. // fileID = 472
  96. anims[j].frameCount = 4;
  97. anims[j].primaryFrames = new int[] { 30932992, 30932995, 30932994, 30932993, };
  98. anims[j].durations = new int[] { 9, 9, 9, 9, };
  99. break;
  100.  
  101. case 1675:
  102. // fileID = 470
  103. anims[j].frameCount = 4;
  104. anims[j].primaryFrames = new int[] { 30801923, 30801922, 30801920, 30801921, };
  105. anims[j].durations = new int[] { 10, 9, 11, 10, };
  106. break;
  107.  
  108. case 1676:
  109. // fileID = 474
  110. anims[j].frameCount = 13;
  111. anims[j].primaryFrames = new int[] { 31064066, 31064073, 31064070, 31064075, 31064071, 31064068,
  112. 31064074, 31064065, 31064072, 31064064, 31064069, 31064067, 31064076, };
  113. anims[j].durations = new int[] { 9, 8, 5, 7, 7, 12, 4, 17, 12, 9, 10, 16, 11, };
  114. anims[j].loopOffset = 1;
  115. anims[j].priority = 10;
  116. break;
  117.  
  118. case 1677:
  119. // fileID = 466
  120. anims[j].frameCount = 8;
  121. anims[j].primaryFrames = new int[] { 30539776, 30539782, 30539783, 30539779, 30539778, 30539781,
  122. 30539780, 30539777, };
  123. anims[j].durations = new int[] { 8, 7, 7, 7, 7, 7, 7, 10, };
  124. break;
  125.  
  126. case 1678:
  127. // fileID = 471
  128. anims[j].frameCount = 8;
  129. anims[j].primaryFrames = new int[] { 30867457, 30867459, 30867458, 30867456, 30867463, 30867460,
  130. 30867461, 30867462, };
  131. anims[j].durations = new int[] { 11, 16, 12, 14, 18, 17, 17, 15, };
  132. break;
  133.  
  134. case 1679:
  135. // fileID = 465
  136. anims[j].frameCount = 7;
  137. anims[j].primaryFrames = new int[] { 30474245, 30474240, 30474246, 30474243, 30474241, 30474242,
  138. 30474244, };
  139. anims[j].durations = new int[] { 7, 8, 17, 8, 6, 6, 8, };
  140. anims[j].priority = 6;
  141. break;
  142.  
  143. case 1682:
  144. // fileID = 462
  145. anims[j].frameCount = 5;
  146. anims[j].primaryFrames = new int[] { 30277634, 30277635, 30277633, 30277636, 30277632, };
  147. anims[j].durations = new int[] { 8, 8, 11, 8, 8, };
  148. anims[j].priority = 6;
  149. break;
  150.  
  151. case 1683:
  152. // fileID = 467
  153. anims[j].frameCount = 6;
  154. anims[j].primaryFrames = new int[] { 30605316, 30605313, 30605317, 30605315, 30605314, 30605312, };
  155. anims[j].durations = new int[] { 8, 4, 6, 7, 9, 6, };
  156. anims[j].priority = 6;
  157. break;
  158.  
  159. case 1684:
  160. // fileID = 463
  161. anims[j].frameCount = 9;
  162. anims[j].primaryFrames = new int[] { 30343170, 30343168, 30343171, 30343175, 30343173, 30343176,
  163. 30343177, 30343174, 30343172, };
  164. anims[j].durations = new int[] { 10, 10, 10, 10, 10, 10, 10, 10, 10, };
  165. break;
  166.  
  167. case 1685:
  168. // fileID = 469
  169. anims[j].frameCount = 4;
  170. anims[j].primaryFrames = new int[] { 30736384, 30736385, 30736386, 30736387, };
  171. anims[j].durations = new int[] { 5, 5, 5, 5, };
  172. break;
  173.  
  174. case 1687:
  175. // fileID = 461
  176. anims[j].frameCount = 5;
  177. anims[j].primaryFrames = new int[] { 30212100, 30212097, 30212099, 30212098, 30212096, };
  178. anims[j].durations = new int[] { 5, 8, 9, 9, 9, };
  179. break;
  180.  
  181. case 1688:
  182. // fileID = 475
  183. anims[j].frameCount = 8;
  184. anims[j].primaryFrames = new int[] { 31129606, 31129605, 31129601, 31129607, 31129604, 31129602,
  185. 31129603, 31129600, };
  186. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, };
  187. break;
  188.  
  189. case 1689:
  190. // fileID = 476
  191. anims[j].frameCount = 14;
  192. anims[j].primaryFrames = new int[] { 31195148, 31195150, 31195144, 31195139, 31195136, 31195143,
  193. 31195145, 31195147, 31195137, 31195142, 31195151, 31195140, 31195146, 31195138, };
  194. anims[j].durations = new int[] { 5, 5, 5, 5, 4, 4, 4, 3, 8, 8, 8, 8, 12, 12, };
  195. break;
  196.  
  197. case 5061:
  198. anims[j].frameCount = 13;
  199. anims[j].primaryFrames = new int[] { 19267601, 19267602, 19267603, 19267604, 19267605, 19267606,
  200. 19267607, 19267606, 19267605, 19267604, 19267603, 19267602, 19267601, };
  201. anims[j].durations = new int[] { 4, 3, 3, 4, 10, 10, 15, 10, 10, 4, 3, 3, 4, };
  202. // anims[j].anIntArray357 = new int[] { 1, 2, 9, 11, 13, 15, 17,
  203. // 19, 37, 39, 41, 43, 45, 164, 166, 168, 170, 172, 174, 176,
  204. // 178, 180, 182, 183, 185, 191, 192, 9999999, };
  205. anims[j].priority = 6;
  206. anims[j].playerOffhand = 0;
  207. anims[j].playerMainhand = 13438;
  208. anims[j].replayMode = 1;
  209. anims[j].loopOffset = -1;
  210. anims[j].stretches = false;
  211. anims[j].priority = 5;
  212. anims[j].maxLoops = 99;
  213. anims[j].animatingPrecedence = -1;
  214. anims[j].walkingPrecedence = -1;
  215. break;
  216.  
  217. case 5460:
  218. anims[j].frameCount = 19;
  219. anims[j].primaryFrames = new int[] { 93650945, 93650955, 93650956, 93650957, 93650958, 93650959,
  220. 93650960, 93650961, 93650962, 93650944, 93650946, 93650947, 93650948, 93650949, 93650950,
  221. 93650951, 93650952, 93650953, 93650954, };
  222. anims[j].durations = new int[] { 15, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, };
  223. break;
  224.  
  225. case 5461:
  226. anims[j].frameCount = 8;
  227. anims[j].primaryFrames = new int[] { 93716480, 93716481, 93716482, 93716483, 93716484, 93716485,
  228. 93716486, 93716487, };
  229. anims[j].durations = new int[] { 4, 4, 4, 4, 4, 4, 4, 4, };
  230. break;
  231.  
  232. case 5462:
  233. anims[j].frameCount = 8;
  234. anims[j].primaryFrames = new int[] { 93782016, 93782017, 93782018, 93782019, 93782020, 93782021,
  235. 93782022, 93782023, };
  236. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, };
  237. break;
  238.  
  239. case 2406:
  240. anims[j].primaryFrames = new int[] { 12058690, 12058638, 12058631, 12058683, 12058655, 12058660,
  241. 12058710, 12058634, 12058680, 12058706, };
  242. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  243. anims[j].frameCount = 10;
  244. break;
  245.  
  246. case 2407:
  247. anims[j].primaryFrames = new int[] { 12058713, 12058717, 12058647, 12058643, 12058651, 12058687,
  248. 12058700, 12058716, 12058699, 12058667, };
  249. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  250. anims[j].frameCount = 10;
  251. break;
  252.  
  253. case 1741:// Block
  254. anims[j].primaryFrames = new int[] { 12058703, 12058695, 12058666, 12058719, 12058665, 12058632,
  255. 12058669, 12058718, 12058689, 12058721, };
  256. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  257. anims[j].frameCount = 10;
  258. break;
  259.  
  260. case 2413:// Spawn
  261. anims[j].primaryFrames = new int[] { 12058654, 12058649, 12058673, 12058633, 12058626, 12058664,
  262. 12058653, 12058694, 12058705, 12058624, 12058691, 12058696, 12058662, };
  263. anims[j].durations = new int[] { 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, };
  264. anims[j].frameCount = 13;
  265. break;
  266.  
  267. case 2408:// death
  268. anims[j].primaryFrames = new int[] { 12058672, 12058709, 12058639, 12058688, 12058641, 12058677,
  269. 12058671, 12058659, 12058657, 12058668, 12058676, 12058663, 12058645, 12058650, 12058625,
  270. 12058644, 12058720, 12058707, };
  271. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 3, 3, 3, 3, 3, };
  272. anims[j].frameCount = 18;
  273. break;
  274.  
  275. case 2405:
  276. anims[j].primaryFrames = new int[] { 12058670, 12058674, 12058636, 12058701, 12058678, 12058704,
  277. 12058640, 12058629, 12058681, 12058697, };
  278. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  279. anims[j].frameCount = 10;
  280. break;
  281.  
  282. case 1721:
  283. anims[j].primaryFrames = new int[] { 12058711, 12058684, 12058635, 12058658, 12058715, 12058628,
  284. 12058630, 12058675, };
  285. anims[j].durations = new int[] { 3, 4, 3, 4, 4, 4, 4, 4, };
  286. anims[j].frameCount = 8;
  287. break;
  288.  
  289. case 5358:
  290. anims[j].frameCount = 8;
  291. anims[j].primaryFrames = new int[] { 4390912, 4390913, 4390914, 4390915, 4390916, 4390915, 4390914,
  292. 4390913, };
  293. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, };
  294. anims[j].loopOffset = 8;
  295. break;
  296.  
  297. case 6648:
  298. anims[j].frameCount = 6;
  299. anims[j].primaryFrames = new int[] { 110755840, 110755841, 110755842, 110755843, 110755844,
  300. 110755845, };
  301. anims[j].durations = new int[] { 2, 2, 2, 2, 2, 2, };
  302. break;
  303.  
  304. case 5068:
  305. // fileID = 182
  306. anims[j].primaryFrames = new int[] { 11927613, 11927599, 11927574, 11927659, 11927676, 11927562,
  307. 11927626, 11927628, 11927684, 11927647, 11927602, 11927576, 11927586, 11927653, 11927616,
  308. 11927653, 11927586, 11927576, 11927602, 11927576, 11927586, 11927653, 11927616, 11927653,
  309. 11927586, 11927576, 11927602, 11927576, 11927586, 11927653, 11927616, 11927653, 11927586,
  310. 11927576, 11927554, 11927602, };
  311. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  312. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, };
  313. anims[j].frameCount = 36;
  314. break;
  315.  
  316. case 5069:
  317. // fileID = 182
  318. anims[j].primaryFrames = new int[] { 11927613, 11927599, 11927574, 11927659, 11927676, 11927562,
  319. 11927626, 11927628, 11927684, 11927647, 11927602, 11927576, 11927586, 11927653, 11927616, };
  320. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, };
  321. anims[j].frameCount = 15;
  322. break;
  323.  
  324. case 5070:
  325. // fileID = 182
  326. anims[j].primaryFrames = new int[] { 11927608, 11927625, 11927598, 11927678, 11927582, 11927600,
  327. 11927669, 11927597, 11927678, };
  328. anims[j].durations = new int[] { 5, 4, 4, 4, 5, 5, 5, 4, 4, };
  329. anims[j].frameCount = 9;
  330. break;
  331.  
  332. case 5071:
  333. // fileID = 182
  334. anims[j].primaryFrames = new int[] { 11927640, 11927643, 11927695, 11927630, 11927556, 11927667,
  335. 11927692, 11927588, 11927555, 11927624, 11927633, 11927673, 11927661, 11927666, 11927664,
  336. 11927579, 11927670, 11927636, 11927685, 11927595, 11927623, };
  337. anims[j].durations = new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, };
  338. anims[j].frameCount = 21;
  339. break;
  340.  
  341. case 5072:
  342. // fileID = 182
  343. anims[j].primaryFrames = new int[] { 11927623, 11927595, 11927685, 11927636, 11927670, 11927579,
  344. 11927664, 11927666, 11927661, 11927673, 11927633, 11927624, 11927555, 11927588, 11927692,
  345. 11927667, 11927556, 11927630, 11927695, 11927643, 11927640, };
  346. anims[j].durations = new int[] { 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  347. anims[j].frameCount = 21;
  348. break;
  349.  
  350. case 5073:
  351. // fileID = 182
  352. anims[j].primaryFrames = new int[] { 11927640, 11927643, 11927695, 11927630, 11927556, 11927667,
  353. 11927692, 11927588, 11927555, 11927624, 11927633, 11927673, 11927661, 11927666, 11927664,
  354. 11927579, 11927670, 11927636, 11927685, 11927595, 11927623, };
  355. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, };
  356. anims[j].frameCount = 21;
  357. break;
  358.  
  359. case 5804:
  360. // fileID = 182
  361. anims[j].primaryFrames = new int[] { 11927638, 11927632, 11927590, 11927580, 11927568, 11927641,
  362. 11927652, 11927594, 11927620, 11927646, 11927658, 11927679, 11927585, 11927596, 11927559,
  363. 11927565, 11927593, 11927584, 11927665, 11927553, 11927587, 11927682, 11927566, 11927645,
  364. 11927592, 11927650, 11927634, 11927674, 11927689, 11927686, 11927671, 11927609, 11927603,
  365. 11927663, 11927619, 11927572, 11927589, 11927581, 11927570, 11927662, 11927558, 11927631,
  366. 11927617, 11927655, 11927561, 11927642, 11927575, 11927578, 11927648, };
  367. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  368. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, };
  369. anims[j].frameCount = 49;
  370. break;
  371.  
  372. case 5806:
  373. // fileID = 182
  374. anims[j].primaryFrames = new int[] { 11927612, 11927677, 11927615, 11927573, 11927618, 11927567,
  375. 11927564, 11927606, 11927675, 11927657, 11927690, 11927583, 11927672, 11927552, 11927563,
  376. 11927683, 11927639, 11927635, 11927668, 11927614, 11927627, 11927610, 11927693, 11927644,
  377. 11927656, 11927660, 11927629, 11927635, 11927668, 11927614, 11927627, 11927610, 11927693,
  378. 11927644, 11927656, 11927660, 11927635, 11927668, 11927614, 11927560, 11927687, 11927577,
  379. 11927569, 11927557, 11927569, 11927577, 11927687, 11927560, 11927651, 11927611, 11927680,
  380. 11927622, 11927691, 11927571, 11927601, };
  381. anims[j].durations = new int[] { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  382. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4,
  383. 3, };
  384. anims[j].frameCount = 55;
  385. break;
  386.  
  387. case 5807:
  388. // fileID = 182
  389. anims[j].primaryFrames = new int[] { 11927612, 11927677, 11927615, 11927573, 11927618, 11927567,
  390. 11927564, 11927606, 11927675, 11927657, 11927690, 11927583, 11927672, 11927552, 11927563,
  391. 11927683, 11927639, 11927635, 11927668, 11927614, 11927627, 11927610, 11927693, 11927644,
  392. 11927656, 11927660, 11927629, 11927635, 11927668, 11927614, 11927627, 11927610, 11927693,
  393. 11927644, 11927656, 11927604, 11927637, 11927688, 11927696, 11927681, 11927605, 11927681,
  394. 11927696, 11927688, 11927637, 11927604, 11927656, 11927611, 11927680, 11927622, 11927691,
  395. 11927571, 11927601, };
  396. anims[j].durations = new int[] { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  397. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, };
  398. anims[j].frameCount = 53;
  399. break;
  400.  
  401. case 5808:
  402. // fileID = 182
  403. anims[j].primaryFrames = new int[] { 11927694, 11927654, 11927591, 11927649, 11927607, 11927649,
  404. 11927591, 11927654, 11927694, };
  405. anims[j].durations = new int[] { 3, 3, 3, 3, 6, 3, 3, 3, 3, };
  406. anims[j].frameCount = 9;
  407. break;
  408.  
  409. /*
  410. * case 7156: anims[j].anIntArray355 = new int[] { 3, 3, 3, 3, 3, 3,
  411. * 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 4, 4, 4, 4, 3, 3, 3,
  412. * }; anims[j].anIntArray353 = new int[] { 158990394, 158990411,
  413. * 158990398, 158990429, 158990418, 158990393, 158990407, 158990402,
  414. * 158990397, 158990428, 158990409, 158990401, 158990425, 158990406,
  415. * 158990417, 158990403, 158990420, 158990395, 158990399, 158990435,
  416. * 158990414, 158990405, 158990432, 158990410, 158990415, 158990426,
  417. * 158990430, 158990394, }; anims[j].anInt352 = 28;
  418. * anims[j].anInt356 = -1; anims[j].aBoolean358 = false;
  419. * anims[j].anInt359 = 5; anims[j].anInt360 = -1; anims[j].anInt361
  420. * = -1; anims[j].anInt362 = 99; anims[j].anInt363 = -1;
  421. * anims[j].anInt364 = -1; anims[j].anInt365 = 2; break;
  422. */
  423.  
  424. case 7291:
  425. // fileID = 2572
  426. anims[j].durations = new int[] { 18, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1,
  427. 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 6, 4, 1, 1, 1, 1, 1, 1, 1, 1, };
  428. anims[j].primaryFrames = new int[] { 168558682, 168558693, 168558686, 168558670, 168558665, 168558702,
  429. 168558703, 168558669, 168558690, 168558705, 168558692, 168558694, 168558671, 168558679,
  430. 168558672, 168558667, 168558675, 168558683, 168558706, 168558681, 168558704, 168558673,
  431. 168558698, 168558680, 168558695, 168558677, 168558700, 168558701, 168558699, 168558668,
  432. 168558689, 168558684, 168558678, 168558696, 168558688, 168558666, 168558687, 168558674,
  433. 168558691, 168558676, 168558685, 168558697, };
  434. anims[j].frameCount = 42;
  435. anims[j].loopOffset = -1;
  436. anims[j].stretches = false;
  437. anims[j].priority = 5;
  438. anims[j].playerOffhand = -1;
  439. anims[j].playerMainhand = -1;
  440. anims[j].maxLoops = 99;
  441. anims[j].animatingPrecedence = -1;
  442. anims[j].walkingPrecedence = -1;
  443. anims[j].replayMode = 2;
  444. break;
  445.  
  446. case 7292:
  447. // fileID = 2572
  448. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  449. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  450. anims[j].primaryFrames = new int[] { 168558648, 168558597, 168558594, 168558633, 168558664, 168558599,
  451. 168558645, 168558615, 168558595, 168558636, 168558640, 168558607, 168558658, 168558647,
  452. 168558631, 168558628, 168558655, 168558656, 168558613, 168558611, 168558633, 168558664,
  453. 168558599, 168558645, 168558615, 168558595, 168558636, 168558640, 168558607, 168558658,
  454. 168558647, 168558631, 168558619, 168558643, 168558652, 168558638, 168558637, 168558637, };
  455. anims[j].frameCount = 38;
  456. anims[j].loopOffset = -1;
  457. anims[j].stretches = false;
  458. anims[j].priority = 5;
  459. anims[j].playerOffhand = -1;
  460. anims[j].playerMainhand = -1;
  461. anims[j].maxLoops = 99;
  462. anims[j].animatingPrecedence = -1;
  463. anims[j].walkingPrecedence = -1;
  464. anims[j].replayMode = 2;
  465. break;
  466.  
  467. case 7293:
  468. // fileID = 2572
  469. anims[j].durations = new int[] { 24, 3, 3, 2, 2, 2, 2, 2, 2, 2, };
  470. anims[j].primaryFrames = new int[] { 168558612, 168558616, 168558592, 168558660, 168558600, 168558662,
  471. 168558617, 168558614, 168558624, 168558644, };
  472. anims[j].frameCount = 10;
  473. anims[j].loopOffset = -1;
  474. anims[j].stretches = false;
  475. anims[j].priority = 5;
  476. anims[j].playerOffhand = -1;
  477. anims[j].playerMainhand = -1;
  478. anims[j].maxLoops = 99;
  479. anims[j].animatingPrecedence = -1;
  480. anims[j].walkingPrecedence = -1;
  481. anims[j].replayMode = 2;
  482. break;
  483.  
  484. case 7294:
  485. // fileID = 2571
  486. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  487. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  488. anims[j].primaryFrames = new int[] { 168493151, 168493160, 168493066, 168493116, 168493073, 168493202,
  489. 168493179, 168493140, 168493166, 168493161, 168493157, 168493154, 168493099, 168493212,
  490. 168493172, 168493096, 168493215, 168493190, 168493163, 168493066, 168493116, 168493073,
  491. 168493202, 168493179, 168493140, 168493166, 168493161, 168493157, 168493154, 168493099,
  492. 168493212, 168493172, 168493096, 168493215, 168493190, 168493163, 168493056, 168493151, };
  493. anims[j].frameCount = 38;
  494. anims[j].loopOffset = -1;
  495. anims[j].stretches = false;
  496. anims[j].priority = 5;
  497. anims[j].playerOffhand = -1;
  498. anims[j].playerMainhand = -1;
  499. anims[j].maxLoops = 99;
  500. anims[j].animatingPrecedence = -1;
  501. anims[j].walkingPrecedence = -1;
  502. anims[j].replayMode = 2;
  503. break;
  504.  
  505. case 7295:
  506. // fileID = 2571
  507. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, };
  508. anims[j].primaryFrames = new int[] { 168493102, 168493119, 168493200, 168493113, 168493153, 168493194,
  509. 168493134, 168493213, 168493149, 168493122, 168493098, 168493170, 168493170, 168493188,
  510. 168493205, 168493196, 168493165, 168493102, };
  511. anims[j].frameCount = 18;
  512. anims[j].loopOffset = -1;
  513. anims[j].stretches = false;
  514. anims[j].priority = 5;
  515. anims[j].playerOffhand = -1;
  516. anims[j].playerMainhand = -1;
  517. anims[j].maxLoops = 99;
  518. anims[j].animatingPrecedence = -1;
  519. anims[j].walkingPrecedence = -1;
  520. anims[j].replayMode = 2;
  521. break;
  522.  
  523. case 7296:
  524. // fileID = 2571
  525. anims[j].durations = new int[] { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, };
  526. anims[j].primaryFrames = new int[] { 168493148, 168493076, 168493137, 168493077, 168493086, 168493081,
  527. 168493121, 168493126, 168493143, 168493176, 168493109, 168493131, 168493063, 168493080,
  528. 168493217, 168493189, 168493093, 168493199, 168493106, 168493175, 168493148, };
  529. anims[j].frameCount = 21;
  530. anims[j].loopOffset = -1;
  531. anims[j].stretches = false;
  532. anims[j].priority = 5;
  533. anims[j].playerOffhand = -1;
  534. anims[j].playerMainhand = -1;
  535. anims[j].maxLoops = 99;
  536. anims[j].animatingPrecedence = -1;
  537. anims[j].walkingPrecedence = -1;
  538. anims[j].replayMode = 2;
  539.  
  540. break;
  541. }
  542. }
  543. }
  544.  
  545. public int method258(int i) {
  546. int j = durations[i];
  547. if (j == 0) {
  548. Animation class36 = Animation.forId(primaryFrames[i]);
  549. if (class36 != null)
  550. j = durations[i] = class36.anInt636;
  551. }
  552. if (j == 0)
  553. j = 1;
  554. return j;
  555. }
  556.  
  557. private void readValues(Stream stream) {
  558. int i;
  559. int last = 0;
  560. while ((i = stream.readUnsignedByte()) != 0) {
  561.  
  562. if (i == 1) {
  563. frameCount = stream.readUnsignedShort();
  564. primaryFrames = new int[frameCount];
  565. secondaryFrames = new int[frameCount];
  566. durations = new int[frameCount];
  567.  
  568. for (int j = 0; j < frameCount; j++)
  569. durations[j] = stream.readUnsignedShort();
  570.  
  571.  
  572. for (int j = 0; j < frameCount; j++) {
  573. primaryFrames[j] = stream.readUnsignedShort();
  574. secondaryFrames[j] = -1;
  575. }
  576.  
  577.  
  578. for (int j = 0; j < frameCount; j++) {
  579. primaryFrames[j] += stream.readUnsignedShort() << 16;
  580. }
  581. } else if (i == 2)
  582. loopOffset = stream.readUnsignedShort();
  583. else if (i == 3) {
  584. int count = stream.readUnsignedByte();
  585. interLeaveOrder = new int[count + 1];
  586. for (int l = 0; l < count; l++)
  587. interLeaveOrder[l] = stream.readUnsignedByte();
  588. interLeaveOrder[count] = 9999999;
  589. } else if (i == 4)
  590. stretches = true;
  591. else if (i == 5)
  592. priority = stream.readUnsignedByte();
  593. else if (i == 6)
  594. playerOffhand = stream.readUnsignedShort();
  595. else if (i == 7)
  596. playerMainhand = stream.readUnsignedShort();
  597. else if (i == 8)
  598. maxLoops = stream.readUnsignedByte();
  599. else if (i == 9)
  600. animatingPrecedence = stream.readUnsignedByte();
  601. else if (i == 10)
  602. walkingPrecedence = stream.readUnsignedByte();
  603. else if (i == 11)
  604. replayMode = stream.readUnsignedByte();
  605. else if (i == 12) {
  606. int len = stream.readUnsignedByte();
  607. otherFrames = new int[len];
  608. for (int i2 = 0; i2 < len; i2++) {
  609. otherFrames[i2] = stream.readUnsignedShort();
  610. }
  611.  
  612. for (int i2 = 0; i2 < len; i2++) {
  613. otherFrames[i2] += stream.readUnsignedShort() << 16;
  614. }
  615. } else if(i == 13) {
  616. int count = stream.readUnsignedByte();
  617. stream.currentOffset += (3 * count);
  618. }
  619. else {
  620. System.out.println("Error unrecognised seq config code: " + i + " last? " + last);
  621. continue;
  622. }
  623. last = i;
  624. }
  625.  
  626.  
  627. /* private void readValues(Stream buffer) {
  628. while(true) {
  629. final int opcode = buffer.readUnsignedByte();
  630.  
  631. if (opcode == 0) {
  632. break;
  633. } else if (opcode == 1) {
  634. frameCount = buffer.readShort();
  635. primaryFrames = new int[frameCount];
  636. secondaryFrames = new int[frameCount];
  637. durations = new int[frameCount];
  638.  
  639. for (int i = 0; i < frameCount; i++) {
  640. durations[i] = buffer.readShort();
  641. }
  642.  
  643. for (int i = 0; i < frameCount; i++) {
  644. primaryFrames[i] = buffer.readShort();
  645. secondaryFrames[i] = -1;
  646. }
  647.  
  648. for (int i = 0; i < frameCount; i++) {
  649. primaryFrames[i] += buffer.readShort() << 16;
  650. }
  651. } else if (opcode == 2) {
  652. loopOffset = buffer.readShort();
  653. } else if (opcode == 3) {
  654. int len = buffer.readUnsignedByte();
  655. interLeaveOrder = new int[len + 1];
  656. for (int i = 0; i < len; i++) {
  657. interLeaveOrder[i] = buffer.readUnsignedByte();
  658. }
  659. interLeaveOrder[len] = 9999999;
  660. } else if (opcode == 4) {
  661. stretches = true;
  662. } else if (opcode == 5) {
  663. priority = buffer.readUnsignedByte();
  664. } else if (opcode == 6) {
  665. playerOffhand = buffer.readShort();
  666. } else if (opcode == 7) {
  667. playerMainhand = buffer.readShort();
  668. } else if (opcode == 8) {
  669. maxLoops = buffer.readUnsignedByte();
  670. } else if (opcode == 9) {
  671. animatingPrecedence = buffer.readUnsignedByte();
  672. } else if (opcode == 10) {
  673. priority = buffer.readUnsignedByte();
  674. } else if (opcode == 11) {
  675. replayMode = buffer.readUnsignedByte();
  676. } else if (opcode == 12) {
  677. int len = buffer.readUnsignedByte();
  678.  
  679. for (int i = 0; i < len; i++) {
  680. buffer.readShort();
  681. }
  682.  
  683. for (int i = 0; i < len; i++) {
  684. buffer.readShort();
  685. }
  686. } else if (opcode == 13) {
  687. int len = buffer.readUnsignedByte();
  688.  
  689. for (int i = 0; i < len; i++) {
  690. buffer.readTriByte();
  691. }*/
  692.  
  693.  
  694. if (frameCount == 0) {
  695. frameCount = 1;
  696. primaryFrames = new int[1];
  697. primaryFrames[0] = -1;
  698. secondaryFrames = new int[1];
  699. secondaryFrames[0] = -1;
  700. durations = new int[1];
  701. durations[0] = -1;
  702. }
  703. if (animatingPrecedence == -1)
  704. if (interLeaveOrder != null)
  705. animatingPrecedence = 2;
  706. else
  707. animatingPrecedence = 0;
  708. if (walkingPrecedence == -1) {
  709. if (interLeaveOrder != null) {
  710. walkingPrecedence = 2;
  711. return;
  712. }
  713. walkingPrecedence = 0;
  714. }
  715. }
  716.  
  717. public AnimationDefinition() {
  718. loopOffset = -1;
  719. stretches = false;
  720. priority = 5;
  721. playerOffhand = -1;
  722. playerMainhand = -1;
  723. maxLoops = 99;
  724. animatingPrecedence = -1;
  725. walkingPrecedence = -1;
  726. replayMode = 2;
  727. }
  728.  
  729. public int[] otherFrames;
  730. public static AnimationDefinition anims[];
  731. public int frameCount;
  732. public int primaryFrames[];
  733. public int secondaryFrames[];
  734. public int[] durations;
  735. public int loopOffset;
  736. public int interLeaveOrder[];
  737. public boolean stretches;
  738. public int priority;
  739. public int playerOffhand;
  740. public int playerMainhand;
  741. public int maxLoops;
  742. public int animatingPrecedence;
  743. public int walkingPrecedence;
  744. public int replayMode;
  745. public static int anInt367;
  746. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement