Advertisement
Guest User

Deob

a guest
Oct 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.58 KB | None | 0 0
  1. (function(_0x19610f, _0x5dfbb1) {
  2. var _0x319fbd = function(_0x5714f8) {
  3. while (--_0x5714f8) {
  4. _0x19610f['push'](_0x19610f['shift']());
  5. }
  6. };
  7. _0x319fbd(++_0x5dfbb1);
  8. }(_0x2627, 0x88));
  9. var _0x1f7e = function(_0x5ec887, _0x4fa0d1) {
  10. _0x5ec887 = _0x5ec887 - 0x0;
  11. var _0x61044a = _0x2627[_0x5ec887];
  12. return _0x61044a;
  13. };
  14. var obfuscation = {
  15. 'baseModule': 'Tt',
  16. 'gameUpdate': 'l',
  17. 'playerClass': 'Ie',
  18. 'playerPool': 'it',
  19. 'buildingPool': 'ot',
  20. 'pool': 'de',
  21. 'map': 'Ce',
  22. 'input': 'ge',
  23. 'circleClass': 'He',
  24. 'emoteClass': '$e',
  25. 'obstaclePool': 'Y',
  26. 'gameInitBase': 'a',
  27. 'gameEndBase': 'o',
  28. 'smokeClass': 'Ve',
  29. 'smokePool': 'e',
  30. 'gameClass': 'xe',
  31. 'carepackageClass': 'Ne',
  32. 'carepackagePool': 'B',
  33. 'aimClass': 'Se',
  34. 'cameraClass': 'N',
  35. 'localPlayer': 'mt',
  36. 'InputBase': 'K'
  37. };
  38. var settings = {
  39. 'no_ceilings': !![],
  40. 'see_through_smoke': !![],
  41. 'see_through_obstacles': {
  42. 'trees': !![],
  43. 'bushes': !![],
  44. 'river_bushes': !![],
  45. 'tables': !![]
  46. },
  47. 'spin_bot': ![],
  48. 'aim_bot': !![],
  49. 'auto_fire': !![],
  50. 'debugging': ![]
  51. };
  52. var vars = {
  53. 'game': null,
  54. 'MouseIsDown': ![],
  55. 'TeamId': null,
  56. 'aim_bot': {
  57. 'closest_target': null
  58. }
  59. };
  60. var circleIndex = 0x0;
  61.  
  62. function SpinBotCircleFunction(_0x3c1ff2, _0x56725d) {
  63. if (circleIndex == Math['PI'] * 0x2) circleIndex = 0x0;
  64. circleIndex += 0.5;
  65. var _0x221347 = _0x3c1ff2 + 0x64 * Math[_0x1f7e('0x0')](circleIndex);
  66. var _0x41507c = _0x56725d + 0x64 * Math['sin'](circleIndex);
  67. return {
  68. 'x': _0x221347,
  69. 'y': _0x41507c
  70. };
  71. }
  72.  
  73. function InitializeGameUpdateHooks(_0x571d2e) {
  74. var _0x1cd8c1 = _0x571d2e[obfuscation[_0x1f7e('0x1')]];
  75. var _0x54bdfb = _0x571d2e[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0x2')];
  76. _0x571d2e[obfuscation[_0x1f7e('0x1')]]['onMouseMove'] = function(_0x3418a7) {
  77. if (settings[_0x1f7e('0x3')] && _0x571d2e[obfuscation['localPlayer']] != null && _0x571d2e[obfuscation[_0x1f7e('0x4')]]['anim'][_0x1f7e('0x5')] != 'none' && !vars[_0x1f7e('0x6')]) return ![];
  78. if (settings[_0x1f7e('0x7')] && vars['aim_bot'][_0x1f7e('0x8')] != null) return ![];
  79. _0x54bdfb[_0x1f7e('0x9')](_0x1cd8c1, _0x3418a7);
  80. };
  81. var _0x4c098d = _0x571d2e[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xa')][_0x1f7e('0xb')];
  82. _0x571d2e[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xa')][_0x1f7e('0xb')] = function(_0x438d15) {
  83. vars[_0x1f7e('0x6')] = !![];
  84. if (settings[_0x1f7e('0x3')]) {
  85. _0x571d2e[obfuscation[_0x1f7e('0x1')]]['mousePos']['x'] = _0x438d15[_0x1f7e('0xc')];
  86. _0x571d2e[obfuscation['input']][_0x1f7e('0xd')]['y'] = _0x438d15['clientY'];
  87. }
  88. _0x4c098d[_0x1f7e('0x9')](_0x1cd8c1, _0x438d15);
  89. };
  90. var _0x11c3a9 = _0x571d2e[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xa')][_0x1f7e('0xe')];
  91. _0x571d2e[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xa')][_0x1f7e('0xe')] = function(_0xf371e8) {
  92. vars[_0x1f7e('0x6')] = ![];
  93. _0x11c3a9[_0x1f7e('0x9')](_0x1cd8c1, _0xf371e8);
  94. };
  95. }
  96. var initializedGameUpdateHooks = ![];
  97.  
  98. function getDistance(_0xd83038, _0x46cf8e) {
  99. var _0x151152 = _0x46cf8e['x'] - _0xd83038['x'],
  100. _0x316fe5 = _0x46cf8e['y'] - _0xd83038['y'];
  101. return Math[_0x1f7e('0xf')](_0x151152 * _0x151152 + _0x316fe5 * _0x316fe5);
  102. };
  103.  
  104. function isTeammate(_0x4cbe42, _0x5c8d23) {
  105. if (_0x4cbe42[obfuscation[_0x1f7e('0x10')]]['At'][_0x5c8d23[_0x1f7e('0x11')]][_0x1f7e('0x12')] == vars['TeamId']) return !![];
  106. return ![];
  107. }
  108.  
  109. function GameUpdate(_0x161ca3) {
  110. if (settings[_0x1f7e('0x13')]) {
  111. vars[_0x1f7e('0x14')] = _0x161ca3;
  112. }
  113. if (vars[_0x1f7e('0x15')] == null) {
  114. var _0x33c6b6 = _0x161ca3[obfuscation[_0x1f7e('0x4')]][_0x1f7e('0x11')];
  115. vars[_0x1f7e('0x15')] = _0x161ca3[obfuscation[_0x1f7e('0x10')]]['At'][_0x33c6b6]['teamId'];
  116. }
  117. _0x161ca3[obfuscation[_0x1f7e('0x10')]][obfuscation['playerPool']][obfuscation['pool']][_0x1f7e('0x16')](_0x313d9a => {
  118. if (settings[_0x1f7e('0x7')]) {
  119. if (isTeammate(_0x161ca3, _0x313d9a)) return;
  120. if (_0x313d9a['q']['dead']) return;
  121. if (_0x313d9a['q'][_0x1f7e('0x17')]) return;
  122. var _0x4ed51a = getDistance(_0x161ca3[obfuscation['localPlayer']]['pos'], _0x313d9a[_0x1f7e('0x18')]);
  123. if (_0x4ed51a != 0x0 && _0x4ed51a < 0x1e) {
  124. if (vars[_0x1f7e('0x7')][_0x1f7e('0x8')] != null) {
  125. if (getDistance(_0x161ca3[obfuscation[_0x1f7e('0x4')]][_0x1f7e('0x18')], vars['aim_bot'][_0x1f7e('0x8')][_0x1f7e('0x18')]) > _0x4ed51a) vars[_0x1f7e('0x7')][_0x1f7e('0x8')] = _0x313d9a;
  126. } else {
  127. vars[_0x1f7e('0x7')][_0x1f7e('0x8')] = _0x313d9a;
  128. }
  129. }
  130. }
  131. });
  132. if (settings[_0x1f7e('0x7')] && vars[_0x1f7e('0x7')]['closest_target'] != null) {
  133. if (vars[_0x1f7e('0x7')][_0x1f7e('0x8')]['q'][_0x1f7e('0x19')] || !vars[_0x1f7e('0x7')][_0x1f7e('0x8')][_0x1f7e('0x1a')] || vars[_0x1f7e('0x7')][_0x1f7e('0x8')][_0x1f7e('0x17')] || getDistance(_0x161ca3[obfuscation[_0x1f7e('0x4')]][_0x1f7e('0x18')], vars[_0x1f7e('0x7')][_0x1f7e('0x8')][_0x1f7e('0x18')]) > 0x1e) vars[_0x1f7e('0x7')]['closest_target'] = null;
  134. }
  135. if (settings[_0x1f7e('0x7')] && vars[_0x1f7e('0x7')][_0x1f7e('0x8')] != null) {
  136. var _0x1b71cb = _0x161ca3[obfuscation['cameraClass']][_0x1f7e('0x1b')](vars[_0x1f7e('0x7')]['closest_target'][_0x1f7e('0x18')]);
  137. _0x161ca3[obfuscation['input']]['mousePos']['x'] = _0x1b71cb['x'];
  138. _0x161ca3[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xd')]['y'] = _0x1b71cb['y'];
  139. }
  140. if (_0x161ca3[obfuscation['localPlayer']] != null && _0x161ca3[obfuscation[_0x1f7e('0x4')]][_0x1f7e('0x1c')][_0x1f7e('0x5')] != _0x1f7e('0x1d') && !vars[_0x1f7e('0x6')] && settings['spin_bot']) {
  141. var _0x1cac1e = SpinBotCircleFunction(_0x161ca3[_0x1f7e('0x1e')][_0x1f7e('0x1f')][_0x1f7e('0x20')][_0x1f7e('0x21')] / 0x2, _0x161ca3[_0x1f7e('0x1e')][_0x1f7e('0x1f')][_0x1f7e('0x20')][_0x1f7e('0x22')] / 0x2);
  142. _0x161ca3[obfuscation['input']][_0x1f7e('0xd')]['x'] = _0x1cac1e['x'];
  143. _0x161ca3[obfuscation[_0x1f7e('0x1')]][_0x1f7e('0xd')]['y'] = _0x1cac1e['y'];
  144. }
  145. _0x161ca3[obfuscation[_0x1f7e('0x23')]][obfuscation[_0x1f7e('0x24')]][obfuscation['pool']]['forEach'](_0x25ac36 => {
  146. if (!_0x25ac36[_0x1f7e('0x25')] && !settings[_0x1f7e('0x26')]) return;
  147. switch (_0x25ac36[_0x1f7e('0x25')]) {
  148. case 'map-tree-03.img':
  149. if (settings[_0x1f7e('0x26')][_0x1f7e('0x27')]) _0x25ac36[_0x1f7e('0x28')]['alpha'] = 0.5;
  150. break;
  151. case _0x1f7e('0x29'):
  152. if (settings[_0x1f7e('0x26')][_0x1f7e('0x2a')]) _0x25ac36[_0x1f7e('0x28')][_0x1f7e('0x2b')] = 0.5;
  153. break;
  154. case _0x1f7e('0x2c'):
  155. if (settings[_0x1f7e('0x26')]['river_bushes']) _0x25ac36[_0x1f7e('0x28')][_0x1f7e('0x2b')] = 0.5;
  156. break;
  157. case 'map-table-01.img':
  158. if (settings[_0x1f7e('0x26')]['tables']) _0x25ac36[_0x1f7e('0x28')][_0x1f7e('0x2b')] = 0.5;
  159. break;
  160. case _0x1f7e('0x2d'):
  161. if (settings[_0x1f7e('0x26')][_0x1f7e('0x2a')]) _0x25ac36[_0x1f7e('0x28')][_0x1f7e('0x2b')] = 0.5;
  162. break;
  163. }
  164. });
  165. _0x161ca3[obfuscation[_0x1f7e('0x23')]][obfuscation[_0x1f7e('0x2e')]][obfuscation[_0x1f7e('0x2f')]][_0x1f7e('0x16')](_0x291f7f => {
  166. _0x291f7f[_0x1f7e('0x30')][_0x1f7e('0x31')] = 0x0;
  167. });
  168. if (settings[_0x1f7e('0x32')]) {
  169. _0x161ca3[obfuscation['smokeClass']][obfuscation[_0x1f7e('0x33')]][obfuscation[_0x1f7e('0x2f')]][_0x1f7e('0x16')](_0x19211f => {
  170. if (!_0x19211f['particle']) return;
  171. _0x19211f['particle'][_0x1f7e('0x28')][_0x1f7e('0x2b')] = 0.1;
  172. });
  173. }
  174. };
  175.  
  176. function GameInit(_0x307faf) {}
  177.  
  178. function GameEnd(_0x3edc8a) {
  179. vars[_0x1f7e('0x15')] = null;
  180. vars[_0x1f7e('0x7')][_0x1f7e('0x8')] = null;
  181. }
  182. window[_0x1f7e('0x34')]([0x0], {
  183. 'webpack_inject': function(_0x14aa27, _0x320bda, _0x4a943c) {
  184. var _0x44ccbe = _0x4a943c('9b5f96fd')[obfuscation[_0x1f7e('0x35')]];
  185. var _0x91d968 = _0x44ccbe[_0x1f7e('0x36')][obfuscation[_0x1f7e('0x37')]];
  186. _0x44ccbe[_0x1f7e('0x36')][obfuscation['gameUpdate']] = function() {
  187. _0x91d968[_0x1f7e('0x38')](this, arguments);
  188. if (!initializedGameUpdateHooks) {
  189. initializedGameUpdateHooks = !![];
  190. InitializeGameUpdateHooks(this);
  191. }
  192. GameUpdate(this);
  193. };
  194. var _0x18d47e = _0x44ccbe[_0x1f7e('0x36')][obfuscation[_0x1f7e('0x39')]];
  195. _0x44ccbe[_0x1f7e('0x36')][obfuscation[_0x1f7e('0x39')]] = function(_0x396c1e, _0x361ad7) {
  196. if (vars[_0x1f7e('0x6')] && settings[_0x1f7e('0x3a')]) _0x361ad7['shootStart'] = !![];
  197. return _0x18d47e['call'](this, _0x396c1e, _0x361ad7);
  198. };
  199. var _0x2fd49e = _0x44ccbe['prototype'][obfuscation[_0x1f7e('0x3b')]];
  200. _0x44ccbe[_0x1f7e('0x36')][obfuscation[_0x1f7e('0x3b')]] = function() {
  201. _0x2fd49e[_0x1f7e('0x38')](this, arguments);
  202. GameInit(this);
  203. };
  204. var _0x3c37af = _0x44ccbe[_0x1f7e('0x36')][obfuscation['gameEndBase']];
  205. _0x44ccbe[_0x1f7e('0x36')][obfuscation[_0x1f7e('0x3c')]] = function() {
  206. _0x3c37af[_0x1f7e('0x38')](this, arguments);
  207. GameEnd(this);
  208. };
  209. }
  210. }, [_0x1f7e('0x3d')]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement