Greasy Fork镜像 支持简体中文。

Venge.io HACKS INF AMMO AIMBOT NOCLIP INVISIBILITY FLY INFJUMP {Venge Hacked Client}

The best hacks for VENGE IO (z to open modmenu)

目前為 2023-07-25 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Venge.io HACKS INF AMMO AIMBOT NOCLIP INVISIBILITY FLY INFJUMP {Venge Hacked Client}
  3. // @namespace http://akncreations.com/
  4. // @version 20230725.1.2.0
  5. // @description The best hacks for VENGE IO (z to open modmenu)
  6. // @author ExplodIng_Andrey
  7. // @match https://*.venge.io/*
  8. // @license https://creativecommons.org/licenses/by-nd/4.0/
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. // https://www.youtube.com/@exploding_andrey
  14. // https://www.akncreations.com/vhc.html
  15. // https://github.com/AndreyNesterenko2020/
  16.  
  17. addEventListener("load", function(){
  18.  
  19. //VHC designed by ExplodIng_Andrey
  20. //dispose of old client (if any)
  21. if(client) {
  22. client.dispose();
  23. };
  24. var client = {
  25. Hacks: [],
  26. version: "1.2.0",
  27. keyBinds: {},
  28. inGame: false,
  29. };
  30. client.Hack = class {
  31. constructor(enable, mainLoop, disable, name, description, key, delay, configurationDefinition){
  32. this.enable = function(){try {enable(this_);}catch(e){}; this.isEnabled = true};
  33. this.mainLoop = mainLoop;
  34. this.disable = function(){try {disable(this_);}catch(e){}; this.isEnabled = false};
  35. this.name = name;
  36. this.description = description;
  37. this.isEnabled = false;
  38. this.key = key;
  39. this.configurationDefinition = configurationDefinition;
  40. this.config = {};
  41. setTimeout(function() {
  42. this_.configurationDefinition && Object.keys(this_.configurationDefinition).forEach(function (e) {
  43. this_.config[e] = localStorage[this_.name] && JSON.parse(localStorage[this_.name]).config[e] ? JSON.parse(localStorage[this_.name]).config[e] : this_.configurationDefinition[e].defaultValue != undefined ? this_.configurationDefinition[e].defaultValue : (this_.configurationDefinition[e].possibleValues && this_.configurationDefinition[e].possibleValues[0] != undefined) ? this_.configurationDefinition[e].possibleValues[0] : false;
  44. });
  45. }, 1);
  46. client.keyBinds[this.key] = this.name;
  47. var this_ = this;
  48. if(!delay){
  49. delay = 10;
  50. };
  51. function loop(){
  52. if(this_.isEnabled && client){
  53. this_.mainLoop(this_);
  54. };
  55. setTimeout(loop, delay);
  56. };
  57. setTimeout(loop, 100);
  58. client.Hacks.push(this);
  59. };
  60. };
  61. client.MenuElement = class {
  62. constructor(Hacks, title, left, top){
  63. var menuElement = document.createElement("div");
  64. menuElement.style = "left:"+left+"; color: rgba(0, 0, 0, 1) !important; top:"+top+"; margin: 25px; text-align: center; background: rgba(114, 154, 232, 1) !important; font-family: inherit; width:20%; height: 60%; position: absolute; border: solid black 4px";
  65. menuElement.id = title;
  66. menuElement.innerHTML = "<div style='border-bottom: solid black 4px; height: 2.5%; padding: 5%; background-color: rgba(149, 180, 240, 1); font-size: 200%' id="+title+"header >"+title+"</div>";
  67. client.menuElement.appendChild(menuElement);
  68. for(let i = 0; i < Hacks.length; i++) {
  69. var part = document.createElement("div");
  70. part.style = 'border-bottom: solid black 4px; font-size: 200%';
  71. part.id = Hacks[i].name;
  72. if(Hacks[i].configurationDefinition) {
  73. let random = Math.floor(Math.random()*1000000);
  74. part.innerHTML = "<null>"+Hacks[i].name+"</null><img style='width: 25px;float:right;cursor:pointer' onmouseover='this.style.filter=`brightness(0.5)`' onmouseleave='this.style.filter=`brightness(1)`' id="+random+" src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAu1JREFUeJzt2L1qFFEAhuEv0Ub8KawsBBuDVqK9pBS8g9yGhY2VVyEItl6AYqmdipb2NoJFEAOCXTDEwh+yyv7Nzu45c+Z54FS7xcfMvDuwCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBOlR4ww6Ukd5LcSrKd5EvZOSzgdJLbSXaTXE6yn+Sw6KIGnUnyKMmPJMcnzrsk1wvuYra7ST5l8p59T3IvyVbBXU3ZTvIikxf55DlIcrPYOqbZS3KU6fftYbFljdnL9IsskjrNi+P49+c7pQa25FnmByKSeiwSx5/zoNDGpnzIYhdbJOUtE8dxkidlZq5mu/SAfxws8d2LSV5FJCXsJXma5Z6fr2vaMir3s/gvkjdJGcu+Of6c3RJjW3MuyceIpFZd43gef/X25mqSzxFJbbrG8TbJhQJ7m7YTkdREHBUSSR3EUTGRlCWOARBJGeIYEJFsljgGSCSbIY4BE8l6iaMBIlkPcTREJP0SR4NE0g9xNEwkqxHHCIikG3GMiEiW0zWONxHHYIlkMeIYMZHMJg5EMoU4+Eskk8TBf0TyiziYauyRiIO5xhqJOFjY2CIRB0sbSyTioLPWIxEHK2s1EnHQm9YiEQe9ayUScbA2Q49klTjOF9jLAA01EnGwMUOLRBxs3FAiEQfF1B6JOCiu1kjEQTVqi0QcVKeWSMRBtUpHIg6qVyoScTAYm45EHAzOpiIRB4O17kjEweCtKxJx0Iy+I+kax+uIg0r1FYk4aNaqkYiD5nWN5FvEwUh0jUQcjMa6IxEHg7euSMRBM/qORBw0p69IxEGzVo1EHDSvayTiYDSWjUQcjM6ikYiD0ZoXiTgYvStJXmYyjKMkj5OcLbiLKbZKDxipa0luJDlM8j7Jftk5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzwEyaMP2qlEyFaAAAAAElFTkSuQmCC'>";
  75. setTimeout(function () {
  76. document.getElementById(random).onclick = function (event,element) {
  77. client.renderConfig(Hacks[i]);
  78. }
  79. document.getElementById(random).onmouseover = function () {
  80. client.followText = Hacks[i].name+" options";
  81. }
  82. document.getElementById(random).onmouseleave = function () {
  83. client.followText = "";
  84. }
  85. }, 10);
  86. } else {
  87. part.innerHTML = "<null>"+Hacks[i].name+"</null>";
  88. }
  89. document.getElementById(title).appendChild(part);
  90. document.getElementById(Hacks[i].name).addEventListener("mousedown", function (event){
  91. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  92. return;
  93. }
  94. if(!pc.controls || !client.inGame) {client.error("You must be in a game to enable hacks!"); return};
  95. if(!Hacks[i].isEnabled){
  96. Hacks[i].enable();
  97. document.getElementById(Hacks[i].name).style.backgroundColor = "white";
  98. } else {
  99. Hacks[i].disable();
  100. document.getElementById(Hacks[i].name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  101. };
  102. });
  103. document.getElementById(Hacks[i].name).addEventListener("mouseover", function (event){
  104. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  105. return;
  106. }
  107. client.followText = Hacks[i].description;
  108. });
  109. document.getElementById(Hacks[i].name).addEventListener("mouseleave", function (event){
  110. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  111. return;
  112. }
  113. client.followText = "";
  114. });
  115. };
  116. };
  117. };
  118. client.menuToggled = 0;
  119. client.menuElement = document.createElement("div");
  120. document.body.appendChild(client.menuElement);
  121. client.menuElement.id = "vhc-menu";
  122. client.menuElement.style.width = "100%";
  123. client.menuElement.style.height = "100%";
  124. client.menuElement.style.background = "rgba(0, 0, 0, 0.5)";
  125. client.menuElement.style.position = "absolute";
  126. client.menuElement.style.zIndex = 100;
  127. client.hackList = document.createElement("h1");
  128. document.body.appendChild(client.hackList);
  129. client.hackList.style.color = "#fff";
  130. client.hackList.style.position = "fixed";
  131. client.hackList.style.top = "40%";
  132. client.hackList.innerHTML = "VHC version "+client.version+"<br>";
  133. client.menuElement.style.zIndex = 100;
  134. client.keyBindElement = document.createElement("h1");
  135. document.body.appendChild(client.keyBindElement);
  136. client.keyBindElement.style.color = "#fff";
  137. client.keyBindElement.style.position = "fixed";
  138. client.keyBindElement.style.top = "40%";
  139. client.keyBindElement.style.fontSize = "132%";
  140. client.keyBindElement.style.left = "80%";
  141. client.keyBindElement.innerHTML = "Keybinds:<br>z - open menu<br><br>";
  142. client.menuElement.style.zIndex = 100;
  143. client.errorElement = document.createElement("h1");
  144. document.body.appendChild(client.errorElement);
  145. client.errorElement.style.color = "#fff";
  146. client.errorElement.style.position = "absolute";
  147. client.errorElement.style.top = "10%";
  148. client.errorElement.style.width = "10%";
  149. client.errorElement.style.fontSize = "100%";
  150. client.errorElement.style.left = "40%";
  151. client.errorElement.style.border = "solid red 1px";
  152. client.errorElement.style.borderRadius = "7px";
  153. client.errorElement.style.backgroundColor = "red";
  154. client.errorElement.innerHTML = "client.errorElement";
  155. client.errorElement.style.opacity = 0;
  156. client.errorElement.style.transition = "all 0.3s";
  157. client.errorElement.style.zIndex = "100";
  158. client.followText = "";
  159. client.follow = document.createElement("div");
  160. client.follow.style.pointerEvents = "none";
  161. client.follow.style.position = "absolute";
  162. client.follow.style.minWidth = "10em";
  163. client.follow.style.maxWidth = "20em";
  164. client.follow.style.zIndex = "9999";
  165. client.follow.style.backgroundColor = "#f5f5f5";
  166. document.body.appendChild(client.follow);
  167. document.body.addEventListener("mousemove", function (e){
  168. client.follow.innerHTML = client.followText;
  169. client.followText ? client.follow.style.border = "solid black 1px" : client.follow.style.border = "";
  170. x = e.pageX;
  171. y = e.pageY;
  172. client.follow.style.left = (x+10)+"px";
  173. client.follow.style.top = (y+10)+"px";
  174. if(x+10 > innerWidth-client.follow.getBoundingClientRect().width) client.follow.style.left = (innerWidth-client.follow.getBoundingClientRect().width)+"px"
  175. });
  176. client.error = function (text) {
  177. var audio = document.createElement("Audio");
  178. audio.src = "files/assets/31197478/1/Error-UI.mp3";
  179. audio.play();
  180. client.errorElement.innerHTML = text;
  181. client.errorElement.style.opacity = 1;
  182. setTimeout(function(){client.errorElement.style.opacity = 0;}, 1000)
  183. };
  184. document.addEventListener("keydown", function(event) {
  185. if (event.key == "z") {
  186. client.menuToggled = !client.menuToggled;
  187. !client.menuToggled && pc.app.fire("Mouse:Lock");
  188. };
  189. if (client.keyBinds[event.key]) {
  190. try {
  191. if(pc.app.root.findByName("Game").findByName("Overlay").findByName("ChatWrapper").findByName("Chat").script.scripts[0].isFocused) return;
  192. } catch (e) {}
  193. if(!pc.controls || !client.inGame) {client.error("You must be in a game to enable hacks!"); return};
  194. for(let i = 0; i < client.Hacks.length; i++){
  195. if(client.Hacks[i].name == client.keyBinds[event.key]){
  196. if(client.Hacks[i].isEnabled){
  197. client.Hacks[i].disable();
  198. document.getElementById(client.Hacks[i].name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  199. } else {
  200. client.Hacks[i].enable();
  201. document.getElementById(client.Hacks[i].name).style.backgroundColor = "white";
  202. };
  203. };
  204. };
  205. };
  206. });
  207. client.MAIN = function() {
  208. try {
  209. client.inGame = !!pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.ws;
  210. } catch (e) {
  211. client.inGame && stophacks.enable();
  212. client.inGame = false;
  213. }
  214. client.hackList.innerHTML = "VHC version "+client.version+"<br>";
  215. client.keyBindElement.innerHTML = "Keybinds:<br>z - open menu<br><br>";
  216. for(let i = 0; i < client.Hacks.length; i++){
  217. if(client.Hacks[i].isEnabled){
  218. client.hackList.innerHTML += client.Hacks[i].name+(client.Hacks[i].type ? " <b style='color: skyblue'>["+client.Hacks[i].type+"]</b>" : " ")+"<br>";
  219. };
  220. if(client.Hacks[i].key == "no keybind") continue;
  221. client.keyBindElement.innerHTML += client.Hacks[i].key+" - "+client.Hacks[i].name+"<br>";
  222. };
  223. if (client.menuToggled) {
  224. document.exitPointerLock();
  225. client.menuElement.style.display = "block";
  226. } else {
  227. client.menuElement.style.display = "none";
  228. }
  229. setTimeout(client.MAIN, 10);
  230. };
  231. client.dispose = function () {
  232. console.log("disposing of client version "+client.version);
  233. client.Hacks.forEach(hack => {
  234. if(hack.isEnabled) {
  235. hack.disable();
  236. };
  237. });
  238. for (element in client) {
  239. client[element].outerHTML = "";
  240. delete client[element];
  241. };
  242. client = undefined;
  243. };
  244. client.renderConfig = function (hack) {
  245. var elem = document.getElementById(hack.name);
  246. if(!elem.children[2]) {
  247. var config = document.createElement("div");
  248. config.style.background = "rgba(149, 180, 240, 1)";
  249. config.style.border = "solid black 4px";
  250. config.style.position = "fixed";
  251. config.style.width = "20%";
  252. config.style.marginLeft = "-4px";
  253. config.innerHTML = "<div style='border-bottom:4px solid black'>Settings</div><div></div>";
  254. elem.appendChild(config);
  255. var list = config.children[1];
  256. list.style.fontSize = "25px";
  257. //render configs
  258. Object.values(hack.configurationDefinition).forEach(function(config, index){
  259. switch(config.type) {
  260. case 0:
  261. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <input type='checkbox' id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></input><br>";
  262. setTimeout(function(){
  263. document.getElementById(Object.keys(hack.configurationDefinition)[index]).checked = hack.config[Object.keys(hack.configurationDefinition)[index]];
  264. }, 10);
  265. break
  266. case 1:
  267. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <select id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></select><br>";
  268. config.possibleValues.forEach(function(possibleValue) {
  269. document.getElementById(Object.keys(hack.configurationDefinition)[index]).innerHTML += "<option value='"+possibleValue+"'>"+possibleValue+"</option>";
  270. });
  271. setTimeout(function(){
  272. document.getElementById(Object.keys(hack.configurationDefinition)[index]).value = hack.config[Object.keys(hack.configurationDefinition)[index]];
  273. }, 10);
  274. break
  275. case 2:
  276. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <input id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></input><br>";
  277. setTimeout(function(){
  278. document.getElementById(Object.keys(hack.configurationDefinition)[index]).value = hack.config[Object.keys(hack.configurationDefinition)[index]];
  279. }, 10);
  280. break
  281. }
  282. });
  283. }
  284. if(elem.children[2].style.display == "block") {
  285. elem.children[2].style.display = "none";
  286. elem.children[1].style.transform = "rotate(0deg)";
  287. } else {
  288. elem.children[2].style.display = "block";
  289. elem.children[1].style.transform = "rotate(180deg)";
  290. }
  291. }
  292. client.processConfigChange = function (hack,index) {
  293. var value = this.type == "checkbox" ? this.checked : this.value;
  294. var configName = Object.keys(hack.config)[index];
  295. hack.config[configName]=value;
  296. localStorage[hack.name] = localStorage[hack.name] || "{\"config\":{}}";
  297. var newData = JSON.parse(localStorage[hack.name]);
  298. newData.config[configName] = value;
  299. localStorage[hack.name] = JSON.stringify(newData);
  300. }
  301. client.init = function() {
  302. console.log(client.version+" running on "+navigator.platform);
  303. //hacks
  304. var fly = new client.Hack(function (){
  305. platform = new pc.Entity();
  306. platform.addComponent("collision");
  307. platform.addComponent("rigidbody");
  308. platform.collision.halfExtents.x = 5;
  309. platform.collision.halfExtents.y = 1;
  310. platform.collision.halfExtents.z = 5;
  311. newplatform = new pc.Entity();
  312. }, function (){
  313. if(window.platform){
  314. newplatform.destroy();
  315. newplatform = platform.clone();
  316. pc.app.root.addChild(newplatform);
  317. platform.rigidbody.teleport(pc.app.root.findByName("Game").findByName("Player").localPosition.x, pc.app.root.findByName("Game").findByName("Player").localPosition.y-2, pc.app.root.findByName("Game").findByName("Player").localPosition.z);
  318. };
  319. }, function (){
  320. platform.destroy();
  321. newplatform.destroy();
  322. }, "Flight", "Fly around.", "c");
  323. var infJump = new client.Hack(function (){
  324. pc.controls.jump = function() {
  325. if (Date.now() - this.player.lastGlidingTime < 1e3)
  326. return !1;
  327. if (this.player.cancelGliding(),
  328. !this.isLanded && !this.isCollided)
  329. if (this.playerAbilities.isDashing)
  330. return !1;
  331. if (this.bounceJumpTime > this.timestamp)
  332. return !1;
  333. if (this.jumpingTime > this.timestamp)
  334. return !1;
  335. if (this.jumpingTime = this.timestamp + this.jumpDuration,
  336. this.isJumping = !0,
  337. this.isLanded = !1,
  338. this.airTime = this.now(),
  339. this.randomDirection = Math.random() > .5 ? -1 : 1,
  340. this.previousVelocity,
  341. this.now() - this.lastImpactTime > 3e3) {
  342. var t = "Jump-" + (Math.round(1 * Math.random()) + 1);
  343. this.app.fire("Character:Sound", t, .1 * Math.random()),
  344. this.entity.sound.play("Only-Jump"),
  345. this.entity.sound.slots["Only-Jump"].pitch = .1 * Math.random() + 1.1
  346. }
  347. if (this.dynamicGravity = 0,
  348. this.app.fire("Overlay:Jump", !0),
  349. this.isShooting > this.timestamp)
  350. return !1;
  351. this.app.tween(this.animation).to({
  352. jumpAngle: -11
  353. }, .15, pc.BackOut).start()
  354. }
  355. }, function (){
  356. }, function (){
  357. pc.controls.jump = function() {
  358. if (Date.now() - this.player.lastGlidingTime < 1e3)
  359. return !1;
  360. if (this.player.cancelGliding(),
  361. !this.isLanded && !this.isCollided)
  362. return !1;
  363. if (this.playerAbilities.isDashing)
  364. return !1;
  365. if (this.bounceJumpTime > this.timestamp)
  366. return !1;
  367. if (this.jumpingTime > this.timestamp)
  368. return !1;
  369. if (this.jumpingTime = this.timestamp + this.jumpDuration,
  370. this.isJumping = !0,
  371. this.isLanded = !1,
  372. this.airTime = this.now(),
  373. this.randomDirection = Math.random() > .5 ? -1 : 1,
  374. this.previousVelocity,
  375. this.now() - this.lastImpactTime > 3e3) {
  376. var t = "Jump-" + (Math.round(1 * Math.random()) + 1);
  377. this.app.fire("Character:Sound", t, .1 * Math.random()),
  378. this.entity.sound.play("Only-Jump"),
  379. this.entity.sound.slots["Only-Jump"].pitch = .1 * Math.random() + 1.1
  380. }
  381. if (this.dynamicGravity = 0,
  382. this.app.fire("Overlay:Jump", !0),
  383. this.player.fireNetworkEvent("j"),
  384. this.isShooting > this.timestamp)
  385. return !1;
  386. this.app.tween(this.animation).to({
  387. jumpAngle: -11
  388. }, .15, pc.BackOut).start()
  389. }
  390. }, "infJump", "Jump around indefinitely.", "m");
  391. var speedHacks = new client.Hack(function (){
  392. speed = 120;
  393. speedElement = document.createElement("h1");
  394. document.body.appendChild(speedElement);
  395. speedElement.style.color = "#fff";
  396. speedElement.style.position = "fixed";
  397. speedElement.style.top = "25px";
  398. speedElement.style.right = "25px";
  399. speedElement.style.background = "#222";
  400. speedElement.style.borderRadius = "15px";
  401. speedElement.style.transform = "translate(-50%, -50%)";
  402. document.body.onkeydown = function(event) {
  403. if (event.keyCode == 38) {
  404. speed += 25;
  405. } else if (event.keyCode == 40) {
  406. if (speed - 25 > 99) {
  407. speed -= 25;
  408. }
  409. }
  410. };
  411. }, function (){
  412. pc.app.fire("Admin:Speed", speed);
  413. speedElement.innerHTML = "&#11014; Speed: " + speed+" &#11015;";
  414. }, function(){
  415. speedElement.outerHTML = "";
  416. pc.app.fire("Admin:Speed", 120);
  417. }, "SpeedHacks", "Use up and down arrows to change your speed!", "t");
  418. var playerTeleport = new client.Hack(function (this_){
  419. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  420. playerId = 2;
  421. playerName = document.createElement("h1");
  422. teleportToggled = 0;
  423. document.body.appendChild(playerName);
  424. playerName.style.color = "#fff";
  425. playerName.style.width = "35%";
  426. playerName.style.padding = "15px";
  427. playerName.style.textAlign = "center";
  428. playerName.style.background = "#222";
  429. playerName.style.borderRadius = "15px";
  430. playerName.style.position = "fixed";
  431. playerName.style.bottom = "0px";
  432. playerName.style.left = "50%";
  433. playerName.style.transform = "translate(-50%, -50%)";
  434. playerName.innerHTML = "An error has occured, Or there are no other players. Restart hack.";
  435. document.body.onkeydown = function(event) {
  436. if(pc.app.root.findByName("Game").findByName("Overlay").findByName("ChatWrapper").findByName("Chat").script.scripts[0].isFocused) return;
  437. try {
  438. if (event.keyCode == 39 && pc.app.root.findByName("Game").findByName("PlayerHolder").children.length - 2 >= playerId) {
  439. playerId += 1;
  440. };
  441. if (event.keyCode == 37 && playerId - 1 > 1) {
  442. playerId -= 1;
  443. };
  444. if (event.keyCode == 86 && this_.isEnabled) {
  445. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(
  446. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().x - 1,
  447. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().y + 10,
  448. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().z
  449. );
  450. };
  451. if (event.keyCode == 66 && this_.isEnabled) {
  452. if (teleportToggled == 0) {
  453. teleportToggled = 1;
  454. } else {
  455. teleportToggled = 0;
  456. };
  457. };
  458. } catch (e) {}
  459. };
  460. }, function (){
  461. playerName.innerHTML = "&#11013; Selected: " + pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].script.scripts[0].username + " &#10145;<br>'V' to teleport once...<br>'B' to constantly follow them!";
  462. if (teleportToggled == 1) {
  463. try {
  464. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(
  465. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().x - 1,
  466. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().y + 10,
  467. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().z
  468. );
  469. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "static";
  470. } catch (e) {pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic"};
  471. } else {
  472. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  473. };
  474. }, function (){
  475. playerName.outerHTML = "";
  476. teleportToggled = 0;
  477. if(!noclip.isEnabled) pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  478. }, "playerTeleport", "Use left and right arrow keys to cycle players and teleport", "g");
  479. var bulletHacks = new client.Hack(function (){
  480. pc.controls.setShooting = function(t) {
  481. if (!this.isMouseLocked)
  482. return !1;
  483. var closest = Infinity;
  484. var closestPlayer = new pc.Entity();
  485. for(var i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  486. var dist = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.distance(pc.app.root.findByName("Game").findByName("Player").localPosition)
  487. if(dist < closest && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].health != 0){
  488. if((pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == pc.currentTeam) && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team != "none") continue
  489. closest = dist;
  490. closestPlayer = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i];
  491. };
  492. };
  493. if ("Melee" == this.currentWeapon.type && this.setMeleeShoot(),
  494. "Throwable" == this.currentWeapon.type && this.setThrowShoot(),
  495. "Launcher" == this.currentWeapon.type && this.setLauncherShoot(t),
  496. this.player.checkShooting(),
  497. !this.currentWeapon.isShootable)
  498. return !1;
  499. if (this.leftMouse || this.isShootingLocked || this.isFireStopped || (this.stopFiring(),
  500. 0 === this.currentWeapon.ammo && this.reload()),
  501. this.leftMouse && !this.isWeaponHidden && !this.isShootingLocked && !this.playerAbilities.isThrowing && this.isReloading < this.timestamp && this.playerAbilities.isHitting < this.timestamp && (this.currentWeapon.ammo > 0 ? this.isShooting = this.currentWeapon.shootTime + this.timestamp : this.reload()),
  502. this.isShooting > this.timestamp && !this.isShootingLocked) {
  503. this.currentWeapon.recoil,
  504. this.currentWeapon.cameraShake,
  505. Math.random(),
  506. Math.random(),
  507. this.currentWeapon.spread;
  508. var i = Math.cos(110 * this.spreadCount);
  509. this.currentWeapon.spread;
  510. this.cancelInspect(!0),
  511. this.isFocusing && "Rifle" == this.currentWeapon.type && (-.05,
  512. .5,
  513. -.2,
  514. .5,
  515. .05,
  516. this.currentWeapon.focusSpread,
  517. this.currentWeapon.focusSpread * i),
  518. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (this.spreadNumber = this.currentWeapon.spread,
  519. this.isFocusing && (this.spreadNumber = this.currentWeapon.focusSpread),
  520. -5,
  521. 5.2),
  522. this.currentWeapon.shoot(),
  523. this.currentWeapon.isAutomatic || (this.isMouseReleased = !1,
  524. this.leftMouse = !1);
  525. var e = this.currentWeapon.bulletPoint.getPosition().clone()
  526. , s = this.currentWeapon.bulletPoint.getEulerAngles().clone();
  527. "Sniper" == this.currentWeapon.type && this.isFocusing || (this.app.fire("EffectManager:Bullet", e, s),
  528. this.entity.script.weaponManager.triggerShooting());
  529. var o = this.currentWeapon.muzzlePoint.getPosition().clone()
  530. , n = this.raycastShootFrom
  531. , a = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  532. , h = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  533. , r = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  534. , p = new pc.Vec3(closestPlayer.position.x, closestPlayer.position.y+1.5+Math.random()/10, closestPlayer.position.z)
  535. , c = this.currentWeapon.damage
  536. , m = this.currentWeapon.distanceMultiplier;
  537. if ("Shotgun" == this.currentWeapon.type) {
  538. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m);
  539. for (var u = 1, l = 0; l < 10; l++)
  540. l > 5 && (u = .5),
  541. a = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  542. h = Math.sin(l / 3 * Math.PI) * this.spreadNumber * u,
  543. r = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  544. p = new pc.Vec3(closestPlayer.position.x, closestPlayer.position.y+2+Math.random()/10, closestPlayer.position.z),
  545. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m)
  546. } else
  547. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c);
  548. this.setShakeAnimation(t),
  549. this.isShootingLocked = !0,
  550. this.isFireStopped = !1
  551. }
  552. this.isShooting < this.timestamp && this.isShootingLocked && (this.isShootingLocked = !1),
  553. this.updateShakeAnimation(t)
  554. }
  555. }, function(){
  556. }, function (){
  557. pc.controls.setShooting = function(t) {
  558. if (!this.isMouseLocked)
  559. return !1;
  560. if ("Melee" == this.currentWeapon.type && this.setMeleeShoot(),
  561. "Throwable" == this.currentWeapon.type && this.setThrowShoot(),
  562. "Launcher" == this.currentWeapon.type && this.setLauncherShoot(t),
  563. this.player.checkShooting(),
  564. !this.currentWeapon.isShootable)
  565. return !1;
  566. if (this.leftMouse || this.isShootingLocked || this.isFireStopped || (this.stopFiring(),
  567. 0 === this.currentWeapon.ammo && this.reload()),
  568. this.leftMouse && !this.isWeaponHidden && !this.isShootingLocked && !this.playerAbilities.isThrowing && this.isReloading < this.timestamp && this.playerAbilities.isHitting < this.timestamp && (this.currentWeapon.ammo > 0 ? this.isShooting = this.currentWeapon.shootTime + this.timestamp : this.reload()),
  569. this.isShooting > this.timestamp && !this.isShootingLocked) {
  570. this.currentWeapon.recoil,
  571. this.currentWeapon.cameraShake,
  572. Math.random(),
  573. Math.random(),
  574. this.currentWeapon.spread;
  575. var i = Math.cos(110 * this.spreadCount);
  576. this.currentWeapon.spread;
  577. this.cancelInspect(!0),
  578. this.isFocusing && "Rifle" == this.currentWeapon.type && (-.05,
  579. .5,
  580. -.2,
  581. .5,
  582. .05,
  583. this.currentWeapon.focusSpread,
  584. this.currentWeapon.focusSpread * i),
  585. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (this.spreadNumber = this.currentWeapon.spread,
  586. this.isFocusing && (this.spreadNumber = this.currentWeapon.focusSpread),
  587. -5,
  588. 5.2),
  589. this.currentWeapon.shoot(),
  590. this.currentWeapon.isAutomatic || (this.isMouseReleased = !1,
  591. this.leftMouse = !1);
  592. var e = this.currentWeapon.bulletPoint.getPosition().clone()
  593. , s = this.currentWeapon.bulletPoint.getEulerAngles().clone();
  594. "Sniper" == this.currentWeapon.type && this.isFocusing || (this.app.fire("EffectManager:Bullet", e, s),
  595. this.entity.script.weaponManager.triggerShooting());
  596. var o = this.currentWeapon.muzzlePoint.getPosition().clone()
  597. , n = this.raycastShootFrom
  598. , a = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  599. , h = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  600. , r = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  601. , p = this.raycastTo.clone().add(new pc.Vec3(a,h,r))
  602. , c = this.currentWeapon.damage
  603. , m = this.currentWeapon.distanceMultiplier;
  604. if ("Shotgun" == this.currentWeapon.type) {
  605. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m);
  606. for (var u = 1, l = 0; l < 10; l++)
  607. l > 5 && (u = .5),
  608. a = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  609. h = Math.sin(l / 3 * Math.PI) * this.spreadNumber * u,
  610. r = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  611. p = this.raycastTo.clone().add(new pc.Vec3(a,h,r)),
  612. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m)
  613. } else
  614. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c);
  615. this.setShakeAnimation(t),
  616. this.isShootingLocked = !0,
  617. this.isFireStopped = !1
  618. }
  619. this.isShooting < this.timestamp && this.isShootingLocked && (this.isShootingLocked = !1),
  620. this.updateShakeAnimation(t)
  621. }
  622. }, "aimBot", "Homing bullets that target headshots", "l");
  623. var infAmmo = new client.Hack(function (){
  624. }, function (){
  625. pc.controls.currentWeapon.ammo=Infinity;
  626. }, function (){
  627. pc.controls.setAmmoFull();
  628. }, "infAmmo", "Infinite ammo - no reloading needed", "k", 1);
  629. var ESP = new client.Hack(function (){
  630. nearestPlayer = document.createElement("h1");
  631. document.body.appendChild(nearestPlayer);
  632. nearestPlayer.style.color = "#fff";
  633. nearestPlayer.style.width = "35%";
  634. nearestPlayer.style.padding = "15px";
  635. nearestPlayer.style.textAlign = "center";
  636. nearestPlayer.style.background = "#222";
  637. nearestPlayer.style.borderRadius = "15px";
  638. nearestPlayer.style.position = "fixed";
  639. nearestPlayer.style.bottom = "0px";
  640. nearestPlayer.style.left = "50%";
  641. nearestPlayer.style.transform = "translate(-50%, -50%)";
  642. nearestPlayer.innerHTML = "An error has occured, Or there are no other players. Restart hack.";
  643. window._a = 0;
  644. }, function (){
  645. window._a++;
  646. var closest = Infinity;
  647. var closestPlayer = new pc.Entity();
  648. closestPlayer.script = {scripts:[{username:"none"}]};
  649. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  650. var dist = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.distance(pc.app.root.findByName("Game").findByName("Player").localPosition)
  651. if(dist < closest && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].health != 0){
  652. closest = dist;
  653. closestPlayer = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i];
  654. };
  655. };
  656. nearestPlayer.innerHTML = "Nearest Player: "+closestPlayer.script.scripts[0].username+"<br>Distance: "+closest;
  657. if(closest<6) nearestPlayer.style.color = "red"
  658. if(closest>6) nearestPlayer.style.color = "white"
  659. if(window._a < 10) return;
  660. window._a = 0;
  661. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  662. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.isEnabled=true
  663. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.alwaysShow=true
  664. if(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == "none"){
  665. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.RED, false);
  666. } else {
  667. if(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == pc.currentTeam) {
  668. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.GREEN, false);
  669. } else {
  670. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.RED, false);
  671. };
  672. };
  673. };
  674. }, function (){
  675. nearestPlayer.outerHTML = "";
  676. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  677. console.log(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].render);
  678. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].removeComponent("render");
  679. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.isEnabled=false
  680. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.alwaysShow=false
  681. };
  682. }, "ESP", "Always know where players are.", ";");
  683. var spamChat = new client.Hack(function () {
  684. }, function () {
  685. function uuid (){
  686. const ho = (n, p) => n.toString(16).padStart(p, 0); /// Return the hexadecimal text representation of number `n`, padded with zeroes to be of length `p`
  687. const data = crypto.getRandomValues(new Uint8Array(16)); /// Fill the buffer with random data
  688. data[6] = (data[6] & 0xf) | 0x40; /// Patch the 6th byte to reflect a version 4 UUID
  689. data[8] = (data[8] & 0x3f) | 0x80; /// Patch the 8th byte to reflect a variant 1 UUID (version 4 UUIDs are)
  690. const view = new DataView(data.buffer); /// Create a view backed by a 16-byte buffer
  691. return `${ho(view.getUint32(0), 8)}-${ho(view.getUint16(4), 4)}-${ho(view.getUint16(6), 4)}-${ho(view.getUint16(8), 4)}-${ho(view.getUint32(10), 8)}${ho(view.getUint16(14), 4)}`; /// Compile the canonical textual form from the array data
  692. };
  693. pc.app.fire("Network:Chat", uuid());
  694. }, function (){
  695. }, "spamChat", "Spam the game's chat", "no keybind", 200);
  696. var serverKill = new client.Hack(function (this_){
  697. pc.controls.setCameraAngle = function(t,a) {
  698. this.lookY = Math.max(-90, this.lookY),
  699. this.lookY = Math.min(90, this.lookY),
  700. this.isLanded ? this.currentLook = this.lookX + this.animation.cameraImpact : this.currentLook = pc.math.lerpAngle(this.currentLook, this.lookX + this.animation.cameraImpact, .01),
  701. this.angleEntity.setLocalEulerAngles(0, this.currentLook, 0),
  702. this.isReloading > this.timestamp && (this.isFocusing = !1)
  703. };
  704. var pos = pc.app.root.findByName("Game").findByName("Player").position;
  705. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  706. setTimeout(function(){pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(new pc.Vec3(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.x-2, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.y, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.z));pc.controls.lookEntity.lookAt(new pc.Vec3(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.x, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.y, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.z));pc.controls.leftMouse=true;}, 1000*i);
  707. setTimeout(function(){pc.controls.triggerKeyE();pc.controls.setMouseState(true);
  708. pc.controls.currentWeapon.ammo = 50}, 950*i);
  709. setTimeout(function(){console.log(i == pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1);if(i == pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1){
  710. document.getElementById(serverKill.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  711. serverKill.disable();
  712. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(pos.x, pos.y, pos.z);
  713. }}, 1200*i);
  714. };
  715. }, function (){
  716. }, function (){
  717. pc.controls.leftMouse=false;
  718. pc.controls.setCameraAngle = function(t) {
  719. this.lookY = Math.max(-90, this.lookY),
  720. this.lookY = Math.min(90, this.lookY),
  721. this.lookEntity.setLocalEulerAngles(this.lookY + this.animation.cameraBounce + this.animation.cameraImpact, this.lookX + this.animation.cameraImpact, 0),
  722. this.lookXEntity.setLocalEulerAngles(0, this.lookX + this.animation.cameraImpact, 0),
  723. this.isLanded ? this.currentLook = this.lookX + this.animation.cameraImpact : this.currentLook = pc.math.lerpAngle(this.currentLook, this.lookX + this.animation.cameraImpact, .01),
  724. this.angleEntity.setLocalEulerAngles(0, this.currentLook, 0),
  725. this.isReloading > this.timestamp && (this.isFocusing = !1)
  726. };
  727. }, "serverKill", "instantly kill the server", "no keybind");
  728. var emergencyTeleport = new client.Hack(function (){
  729. pc.app.fire("Network:Respawn", false);
  730. }, function() {
  731. document.getElementById(emergencyTeleport.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  732. emergencyTeleport.disable();
  733. }, function () {
  734. }, "emergencyTeleport", "teleport away in times of crisis", "q");
  735. var opGun = new client.Hack(function (){
  736. window.oldStats = window.oldStats || {};
  737. window.oldStats[pc.controls.currentWeapon.entity.name] = [pc.controls.currentWeapon.shootTime, pc.controls.currentWeapon.isAutomatic];
  738. }, function() {
  739. pc.controls.currentWeapon.shootTime = 0.01;
  740. pc.controls.currentWeapon.isAutomatic = true;
  741. }, function () {
  742. pc.controls.currentWeapon.shootTime = window.oldStats[pc.controls.currentWeapon.entity.name][0];
  743. pc.controls.currentWeapon.isAutomatic = window.oldStats[pc.controls.currentWeapon.entity.name][1];
  744. delete window.oldStats[pc.controls.currentWeapon.entity.name][1];
  745. }, "opGun", "makes every gun behave like a machine gun (tip: use with sniper)", "no keybind");
  746. var noRecoil = new client.Hack(function (){
  747. pc.controls.setShakeAnimation = function(t) {
  748. this.currentWeapon.ammo--;
  749. this.app.fire("Overlay:Shoot", !0);
  750. }
  751. }, function () {
  752. }, function (){
  753. pc.controls.setShakeAnimation = function(t) {
  754. var i = this.currentWeapon.recoil
  755. , e = this.currentWeapon.cameraShake
  756. , s = .03 * Math.random() - .03 * Math.random()
  757. , o = -.15 * i
  758. , n = 6 * i
  759. , a = -1.2
  760. , h = 2
  761. , r = this.currentWeapon.spread
  762. , p = Math.cos(110 * this.spreadCount)
  763. , c = this.currentWeapon.spread * p;
  764. this.isFocusing && "Rifle" == this.currentWeapon.type && (o = -.05,
  765. n = .5,
  766. a = -.2,
  767. e *= .5,
  768. h = .05,
  769. r = this.currentWeapon.focusSpread,
  770. c = this.currentWeapon.focusSpread * p),
  771. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (a = -5,
  772. h = 5.2),
  773. this.lookY += .04 * e,
  774. this.spreadNumber = pc.math.lerp(this.spreadNumber, r, .1),
  775. this.spreadCount += t,
  776. this.currentWeapon.ammo--,
  777. this.app.fire("Overlay:Shoot", !0),
  778. this.app.tween(this.animation).to({
  779. bounceX: s,
  780. bounceZ: o,
  781. bounceAngle: n,
  782. shootSwing: h
  783. }, .03, pc.BackOut).start(),
  784. this.app.tween(this.animation).to({
  785. cameraShootBounce: a,
  786. cameraBounce: this.animation.cameraBounce + .025 * e
  787. }, .09, pc.BackOut).start(),
  788. this.animation.activeBounce = pc.math.lerp(this.animation.activeBounce, -e, .05),
  789. this.animation.horizantalSpread = pc.math.lerp(this.animation.horizantalSpread, .04 * c, .1)
  790. }
  791. }, "noRecoil", "no recoil", "no keybind");
  792. var instaRespawn = new client.Hack(function (){
  793. }, function () {
  794. if(pc.controls.player.isDeath) {
  795. pc.app.fire("Network:Respawn", false);
  796. }
  797. }, function (){
  798. }, "instaRespawn", "respawn instantly", "no keybind");
  799. var serverCrash = new client.Hack(function (this_){
  800. window.allow = false;
  801. if(this_.config.type == "countdown") {
  802. pc.app.fire("Network:Chat", "Crashing server in 10 seconds");
  803. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 9 seconds");}, 1000);
  804. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 8 seconds");}, 2000);
  805. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 7 seconds");}, 3000);
  806. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 6 seconds");}, 4000);
  807. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 5 seconds");}, 5000);
  808. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 4 seconds");}, 6000);
  809. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 3 seconds");}, 7000);
  810. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 2 seconds");}, 8000);
  811. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 1 seconds");}, 9000);
  812. setTimeout(function(){pc.app.fire("Network:Chat", "Have a great day :)");}, 9900);
  813. setTimeout(function(){window.allow=true}, 10000);
  814. } else {
  815. window.allow = true;
  816. }
  817. }, function () {
  818. this.type = this.config.type;
  819. if(window.allow) {
  820. for(var a = 0; a < 52; a++) {
  821. var killString = "";
  822. for(var i = 0; i < 2048; i++){
  823. killString += "I_am_a_monkey_and_I_love_bananas\n";
  824. };
  825. pc.app.root.findByName("Game").findByName("NetworkManager").script.scripts[0].ws.send({monkey:killString, monkey2: killString});
  826. };
  827. };
  828. }, function (){
  829. }, "serverCrash", "Crash the server", "no keybind", false, {type:{type:1,defaultValue:"countdown",possibleValues:["countdown","instant"]}});
  830. var instantWeaponSwitch = new client.Hack(function (){
  831. pc.controls.player.setWeapon = function(t) {
  832. this.movement.disableZoom(),
  833. this.weaponManager.setWeapon(t),
  834. this.weaponIndex = this.weapons.indexOf(t),
  835. this.lastWeapon = t,
  836. this.lastWeaponChange = Date.now()
  837. }
  838. pc.controls.player.weaponManager.setWeapon = function(e, t) {
  839. if (this.currentWeaponName == e)
  840. return this.app.fire("Overlay:CircularSelect", e),
  841. !1;
  842. if (!t) {
  843. if (this.movement.isReloading > this.movement.timestamp)
  844. return !1;
  845. if (pc.isFinished)
  846. return !1
  847. }
  848. this.app.fire("Player:Focus", !1),
  849. t || this.app.fire("Network:Weapon", e),
  850. this.movement.hideWeapon(),
  851. this.currentWeapon ? (clearTimeout(this.takeOutTimer),
  852. this.takeOutTimer = setTimeout((function(a) {
  853. a.setWeaponModel(e, t),
  854. a.movement.takeout()
  855. }
  856. ), 0, this)) : this.setWeaponModel(e, t),
  857. this.app.fire("Overlay:CircularSelect", e),
  858. this.app.fire("Overlay:Weapon", e),
  859. this.currentWeaponName = e
  860. }
  861. }, function () {
  862. }, function (){
  863. pc.controls.player.setWeapon = function(t) {
  864. if (pc.currentModeOptions && !0 === pc.currentModeOptions.noWeaponChange)
  865. return !1;
  866. if (this.lastWeapon == t)
  867. return !1;
  868. if (Date.now() - this.lastWeaponChange > 2e3 || this.isDeath) {
  869. if (this.movement.isShooting > this.movement.timestamp && !this.isDeath)
  870. return !1;
  871. if (this.movement.isReloading > this.movement.timestamp && !this.isDeath)
  872. return !1;
  873. this.movement.disableZoom(),
  874. this.weaponManager.setWeapon(t),
  875. this.weaponIndex = this.weapons.indexOf(t),
  876. this.lastWeapon = t,
  877. this.lastWeaponChange = Date.now()
  878. } else
  879. this.app.fire("Chat:Message", "Console", "Please wait 2 seconds to change weapon."),
  880. this.weaponIndex = this.weapons.indexOf(this.lastWeapon)
  881. }
  882. pc.controls.player.weaponManager.setWeapon = function(e, t) {
  883. if (this.currentWeaponName == e)
  884. return this.app.fire("Overlay:CircularSelect", e),
  885. !1;
  886. if (!t) {
  887. if (this.movement.isReloading > this.movement.timestamp)
  888. return !1;
  889. if (pc.isFinished)
  890. return !1
  891. }
  892. this.app.fire("Player:Focus", !1),
  893. t || this.app.fire("Network:Weapon", e),
  894. this.movement.hideWeapon(),
  895. this.currentWeapon ? (clearTimeout(this.takeOutTimer),
  896. this.takeOutTimer = setTimeout((function(a) {
  897. a.setWeaponModel(e, t),
  898. a.movement.takeout()
  899. }
  900. ), 300, this)) : this.setWeaponModel(e, t),
  901. this.app.fire("Overlay:CircularSelect", e),
  902. this.app.fire("Overlay:Weapon", e),
  903. this.currentWeaponName = e
  904. }
  905. }, "instantWeaponSwitch", "No more weapon switch cooldown", "no keybind");
  906. var noDrown = new client.Hack(function (this_){
  907. pc.app.off("Network:Drown");
  908. }, function () {
  909. }, function (this_){
  910. pc.app.on("Network:Drown",pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.setDrown,pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager);
  911. }, "noDrown", "Disabled drowning", "no keybind");
  912. var noclip = new client.Hack(function () {
  913. pc.controls.setMovement = function() {
  914. pc.app.root.findByName("Game").findByName("Player").rigidbody.type="static";
  915. var t = this.lookEntity.forward
  916. , i = this.lookEntity.right
  917. , e = 1
  918. , s = this.defaultSpeed
  919. , o = this.strafingSpeed;
  920. e *= this.animation.movementFactor,
  921. this.isFocusing && (e = this.focusSpeedFactor),
  922. this.currentWeapon && "Heavy" == this.currentWeapon.weight ? (e *= .75,
  923. this.animation.movementFactorStatic = .65) : this.animation.movementFactorStatic = 1,
  924. this.force.x = 0,
  925. this.force.z = 0,
  926. !this.isForward || this.isLeft || this.isRight ? this.isForward && (this.force.x += t.x * o * e,
  927. this.force.z += t.z * o * e) : (this.force.x += t.x * s * e,
  928. this.force.z += t.z * s * e),
  929. this.isBackward && (this.force.x -= t.x * o * e,
  930. this.force.z -= t.z * o * e),
  931. this.isLeft && (this.force.x -= i.x * o * e,
  932. this.force.z -= i.z * o * e),
  933. this.isRight && (this.force.x += i.x * o * e,
  934. this.force.z += i.z * o * e)
  935. if(this.isDown) {
  936. this.force.y = -120;
  937. } else {
  938. if(this.isUp) {
  939. this.force.y = 120;
  940. } else {
  941. this.force.y = 0;
  942. }
  943. }
  944. if(this.isForward == this.isBackward) {this.isForward = this.isBackward = false}
  945. if(this.isLeft == this.isRight) {this.isLeft = this.isRight = false}
  946. var e = new pc.Vec3().copy(this.entity.localPosition).add(new pc.Vec3(this.force.x/120,this.force.y/120,this.force.z/120))
  947. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(e);
  948. this.app.fire("EffectManager:PlayerPosition", this.entity.getPosition().clone());
  949. }
  950. pc.controls.setKeyboard = function() {
  951. if(!pc.app.keyboard.isPressed(pc.KEY_UP) && this.isForward) this.isForward = false;
  952. if(!pc.app.keyboard.isPressed(pc.KEY_DOWN) && this.isBackward) this.isBackward = false;
  953. if(!pc.app.keyboard.isPressed(pc.KEY_LEFT) && this.isLeft) this.isLeft = false;
  954. if(!pc.app.keyboard.isPressed(pc.KEY_RIGHT) && this.isRight) this.isRight = false;
  955. if(!pc.app.keyboard.isPressed(pc.KEY_W) && this.isForward) this.isForward = false;
  956. if(!pc.app.keyboard.isPressed(pc.KEY_S) && this.isBackward) this.isBackward = false;
  957. if(!pc.app.keyboard.isPressed(pc.KEY_A) && this.isLeft) this.isLeft = false;
  958. if(!pc.app.keyboard.isPressed(pc.KEY_D) && this.isRight) this.isRight = false;
  959. if(!pc.app.keyboard.isPressed(pc.KEY_SHIFT) && this.isDown) this.isDown = false;
  960. if(!pc.app.keyboard.isPressed(pc.KEY_SPACE) && this.isUp) this.isUp = false;
  961. return !this.isFrozen && (!this.player.isDeath && (!pc.isFinished && (!this.locked && ("INPUT" != document.activeElement.tagName && (this.jumpingTime + this.jumpLandTime < this.timestamp && this.currentHeight < this.nearGround && (this.isForward = !1,
  962. this.isBackward = !1,
  963. this.isLeft = !1,
  964. this.isRight = !1),
  965. (this.app.keyboard.isPressed(pc.KEY_UP) || this.app.keyboard.isPressed(pc.KEY_W) || this.isMobileForward) && (this.isForward = !0),
  966. (this.app.keyboard.isPressed(pc.KEY_DOWN) || this.app.keyboard.isPressed(pc.KEY_S) || this.isMobileBackward) && (this.isBackward = !0),
  967. (this.app.keyboard.isPressed(pc.KEY_LEFT) || this.app.keyboard.isPressed(pc.KEY_A) || this.isMobileLeft) && (this.isLeft = !0),
  968. (this.app.keyboard.isPressed(pc.KEY_RIGHT) || this.app.keyboard.isPressed(pc.KEY_D) || this.isMobileRight) && (this.isRight = !0),
  969. this.app.keyboard.wasPressed(pc.KEY_SPACE) && this.jump(),
  970. this.app.keyboard.wasPressed(pc.KEY_R) && this.reload(),
  971. this.app.keyboard.wasPressed(pc.KEY_F) && this.triggerKeyF(),
  972. this.app.keyboard.wasPressed(pc.KEY_E) && this.triggerKeyE(),
  973. this.app.keyboard.wasPressed(pc.KEY_V) && this.player.spray(),
  974. this.app.keyboard.wasPressed(pc.KEY_X) && (this.leftMouse = !0,
  975. this.isMouseReleased = !0),
  976. this.app.keyboard.wasReleased(pc.KEY_X) && (this.leftMouse = !1),
  977. this.app.keyboard.wasPressed(pc.KEY_L) && (this.app.fire("Mouse:Lock"),
  978. this.app.fire("Overlay:Pause", !1)),
  979. this.app.keyboard.wasPressed(pc.KEY_M),
  980. this.app.keyboard.wasPressed(pc.KEY_J) && this.inspect(),
  981. this.app.keyboard.wasPressed(pc.KEY_SHIFT) && (this.isDown = !0),
  982. this.app.keyboard.wasPressed(pc.KEY_SPACE) && (this.isUp = !0),
  983. this.app.keyboard.wasReleased(pc.KEY_SPACE) && (this.isUp = !1),
  984. void (this.app.keyboard.wasReleased(pc.KEY_SHIFT) && (this.isDown = !1)))))))
  985. }
  986. pc.controls.checkGlitches = function (){}
  987. }, function () {
  988. }, function () {
  989. pc.app.root.findByName("Game").findByName("Player").rigidbody.type="dynamic";
  990. pc.controls.setMovement = function() {
  991. if (this.player.isDeath)
  992. return !1;
  993. if (pc.isFinished)
  994. return !1;
  995. if (this.playerAbilities.isDashing)
  996. return !1;
  997. var t = this.angleEntity.forward
  998. , i = this.angleEntity.right
  999. , e = 1
  1000. , s = this.defaultSpeed
  1001. , o = this.strafingSpeed;
  1002. e *= this.animation.movementFactor,
  1003. this.isFocusing && (e = this.focusSpeedFactor),
  1004. this.currentWeapon && "Heavy" == this.currentWeapon.weight ? (e *= .75,
  1005. this.animation.movementFactorStatic = .65) : this.animation.movementFactorStatic = 1,
  1006. this.force.x = 0,
  1007. this.force.z = 0,
  1008. !this.isForward || this.isLeft || this.isRight ? this.isForward && (this.force.x += t.x * o * e,
  1009. this.force.z += t.z * o * e) : (this.force.x += t.x * s * e,
  1010. this.force.z += t.z * s * e),
  1011. this.isBackward && (this.force.x -= t.x * o * e,
  1012. this.force.z -= t.z * o * e),
  1013. this.isLeft && (this.force.x -= i.x * o * e,
  1014. this.force.z -= i.z * o * e),
  1015. this.isRight && (this.force.x += i.x * o * e,
  1016. this.force.z += i.z * o * e),
  1017. this.entity.rigidbody.applyForce(this.currentForce),
  1018. this.app.fire("EffectManager:PlayerPosition", this.entity.getPosition().clone())
  1019. }
  1020. pc.controls.setKeyboard = function() {
  1021. return !this.isFrozen && (!this.player.isDeath && (!pc.isFinished && (!this.locked && ("INPUT" != document.activeElement.tagName && (this.jumpingTime + this.jumpLandTime < this.timestamp && this.currentHeight < this.nearGround && (this.isForward = !1,
  1022. this.isBackward = !1,
  1023. this.isLeft = !1,
  1024. this.isRight = !1),
  1025. (this.app.keyboard.isPressed(pc.KEY_UP) || this.app.keyboard.isPressed(pc.KEY_W) || this.isMobileForward) && (this.isForward = !0),
  1026. (this.app.keyboard.isPressed(pc.KEY_DOWN) || this.app.keyboard.isPressed(pc.KEY_S) || this.isMobileBackward) && (this.isBackward = !0),
  1027. (this.app.keyboard.isPressed(pc.KEY_LEFT) || this.app.keyboard.isPressed(pc.KEY_A) || this.isMobileLeft) && (this.isLeft = !0),
  1028. (this.app.keyboard.isPressed(pc.KEY_RIGHT) || this.app.keyboard.isPressed(pc.KEY_D) || this.isMobileRight) && (this.isRight = !0),
  1029. this.app.keyboard.wasPressed(pc.KEY_SPACE) && this.jump(),
  1030. this.app.keyboard.wasPressed(pc.KEY_R) && this.reload(),
  1031. this.app.keyboard.wasPressed(pc.KEY_F) && this.triggerKeyF(),
  1032. this.app.keyboard.wasPressed(pc.KEY_E) && this.triggerKeyE(),
  1033. this.app.keyboard.wasPressed(pc.KEY_V) && this.player.spray(),
  1034. this.app.keyboard.wasPressed(pc.KEY_X) && (this.leftMouse = !0,
  1035. this.isMouseReleased = !0),
  1036. this.app.keyboard.wasReleased(pc.KEY_X) && (this.leftMouse = !1),
  1037. this.app.keyboard.wasPressed(pc.KEY_L) && (this.app.fire("Mouse:Lock"),
  1038. this.app.fire("Overlay:Pause", !1)),
  1039. this.app.keyboard.wasPressed(pc.KEY_M),
  1040. this.app.keyboard.wasPressed(pc.KEY_J) && this.inspect(),
  1041. this.app.keyboard.wasPressed(pc.KEY_SHIFT) && (this.isFocusing = !0),
  1042. void (this.app.keyboard.wasReleased(pc.KEY_SHIFT) && (this.isFocusing = !1)))))))
  1043. }
  1044. pc.controls.checkGlitches = function(t) {
  1045. this.entity.rigidbody.linearVelocity.length() > 300 || this.currentHeight > 100 ? (this.glitchThreshold > 2 && this.app.fire("Network:Respawn", !0),
  1046. this.glitchThreshold += t) : this.glitchThreshold = pc.math.lerp(this.glitchThreshold, 0, .1)
  1047. }
  1048. }, "noclip", "fly around freely without collision", "n");
  1049. var grenadeSpam = new client.Hack(function (){
  1050. }, function () {
  1051. pc.controls.playerAbilities.throwCooldown = (pc.controls.player.characterName == "Echo")*0.5;
  1052. }, function () {
  1053. pc.controls.playerAbilities.throwCooldown = 10;
  1054. }, "grenadeSpam", "No grenade throw cooldown", "no keybind");
  1055. var autoGG = new client.Hack(function () {
  1056. }, function () {
  1057. this.type = this.config.message;
  1058. }, function () {
  1059. }, "autoGG", "say a GG message at the end of every game", "no keybind", false, {message:{type:2,defaultValue:"GG ez no hax"}});
  1060. var antiAFK = new client.Hack(function () {
  1061. }, function () {
  1062. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send(["s","w",true]);
  1063. }, function () {
  1064. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send(["s","w",false]);
  1065. }, "antiAFK", "prevent you from getting kicked for AFK", "no keybind");
  1066. window.stophacks = new client.Hack(function () {
  1067. client.Hacks.forEach(function (hack) {
  1068. if(!hack.isEnabled) return
  1069. hack.disable();
  1070. document.getElementById(hack.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  1071. });
  1072. }, function () {
  1073. stophacks.disable();
  1074. document.getElementById(stophacks.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  1075. }, function () {
  1076. }, "Disable all hacks", "Disable all hacks", "y");
  1077. var invisibility = new client.Hack(function (){
  1078. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send=function(e){if(e[0]=="p"){e=["p",999999999999999999999999999999,0,0,0,0]}this.ws&&this.ws.readyState==this.ws.OPEN&&this.ws.send(this.pack.encode(e))}
  1079. }, function () {
  1080. }, function () {
  1081. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send=function(e){this.ws&&this.ws.readyState==this.ws.OPEN&&this.ws.send(this.pack.encode(e))}
  1082. }, "invisibility", "become invisible and invincible", "u");
  1083. //menu elements
  1084. new client.MenuElement([fly, infJump, speedHacks, playerTeleport, emergencyTeleport, noclip], "Movement", "0%", "0%");
  1085. new client.MenuElement([bulletHacks, infAmmo, serverKill, opGun, grenadeSpam], "Combat", "25%", "0%");
  1086. new client.MenuElement([ESP, spamChat, noRecoil, invisibility], "Render", "50%", "0%");
  1087. new client.MenuElement([instaRespawn, serverCrash, instantWeaponSwitch, noDrown, autoGG, antiAFK, stophacks], "Game", "75%", "0%");
  1088. //win message
  1089. pc.app.on("Game:Finish", function(){if(autoGG.isEnabled){pc.app.fire("Network:Chat", autoGG.type)}; client.inGame = false; stophacks.enable();});
  1090. pc.app.on("Game:Start", function(){
  1091. client.inGame = true;
  1092. try {
  1093. var obj = JSON.parse(localStorage.config);
  1094. client.Hacks.forEach(function (hack) {
  1095. if(hack.name in obj) {
  1096. hack.enable();
  1097. document.getElementById(hack.name).style.backgroundColor = "white";
  1098. }
  1099. });
  1100. } catch (e) {}
  1101. });
  1102. //config
  1103. localStorage.config = localStorage.config || "{\"autoGG\":true}";
  1104. client.MAIN();
  1105. };
  1106. client.init();
  1107.  
  1108. //
  1109. window.client=client;
  1110. });
  1111.  
  1112. //remember run in a userscript environment with @run-at set to document-start
  1113. //venge.io hide playcanvas library bypass (1.2 update)
  1114. //version 2.0
  1115. window._pc = false;
  1116. Object.defineProperty(window, "pc", {
  1117. set (value) {
  1118. if (!window.pc) {
  1119. window._pc = value;
  1120. }
  1121. },
  1122. get () {
  1123. return(window._pc);
  1124. }
  1125. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址