Advertisement
SoulHacks

Untitled

Jul 6th, 2020
14,845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Venge.io Hack by Soul
  3. // @version 1.0
  4. // @description Venge.io HACKS
  5. // @author https://www.youtube.com/channel/UC8jK3lcsz8iPmCHlKA_DX4w?view_as=subscriber
  6. // @match https://venge.io/
  7. // @grant none
  8. // @run-at document-start
  9. // @namespace Soul
  10. // ==/UserScript==
  11.  
  12. var Hack = function() {
  13. this.settings = {
  14. infAmmo: false,
  15. infJump: false,
  16. autoKill: false,
  17. speedMlt: 0,
  18. esp: true,
  19. aimbot: false,
  20. };
  21. this.hooks = {
  22. network: null,
  23. movement: null,
  24. anticheat: null
  25. };
  26.  
  27. this.setupHooks = function() {
  28. this.waitForProp("Movement").then(this.hookMovement).catch(e => console.log(e));
  29. this.waitForProp("NetworkManager").then(this.hookNetwork).catch(e => console.log(e));
  30. this.waitForProp("VengeGuard").then(this.hookAnticheat).catch(e => console.log(e));
  31. this.waitForProp("Label").then(this.hookLabel).catch(e => console.log(e));
  32. };
  33.  
  34. this.setupBinds = function() {
  35. window.addEventListener("keydown", (e) => {
  36. switch(e.keyCode) {
  37. case 190: // PERIOD
  38. this.settings.autoKill = !this.settings.autoKill;
  39. this.hooks.network.app.fire("Chat:Message", "Hacks", "Kill on Respawn - " + (this.settings.autoKill?"Enabled":"Disabled"), !0)
  40. break;
  41. case 188: // COMMA
  42. this.settings.infAmmo = !this.settings.infAmmo;
  43. this.hooks.network.app.fire("Chat:Message", "Hacks", "Infinite Ammo - " + (this.settings.infAmmo?"Enabled":"Disabled"), !0)
  44. break;
  45. case 186: // SEMI COL
  46. this.settings.aimbot = !this.settings.aimbot;
  47. this.hooks.network.app.fire("Chat:Message", "Hacks", "Aimbot - " + (this.settings.aimbot?"Enabled":"Disabled"), !0)
  48. break;
  49. case 222: // QUOTE
  50. this.settings.infJump = !this.settings.infJump;
  51. this.hooks.network.app.fire("Chat:Message", "Hacks", "Infinite Jump - " + (this.settings.infJump?"Enabled":"Disabled"), !0)
  52. break;
  53. case 191: // SLASH
  54. this.settings.speedMlt++;
  55. if (this.settings.speedMlt > 4) this.settings.speedMlt = 0;
  56. this.hooks.network.app.fire("Chat:Message", "Hacks", "Speed Multiplier - " + (this.settings.speedMlt + 1) + "x", !0)
  57. break;
  58. case 219: // [
  59. this.hooks.network.app.fire("Chat:Message", "Hacks", "Teleporting you to Safety", !0);
  60. this.hooks.movement.app.fire("Player:Respawn", !0);
  61. break;
  62. case 221: // ]
  63. this.settings.esp = !this.settings.esp;
  64. this.hooks.network.app.fire("Chat:Message", "Hacks", "ESP - " + (this.settings.esp?"Enabled":"Disabled"), !0)
  65. break;
  66. default: return;
  67. }
  68. });
  69. };
  70.  
  71. this.waitForProp = async function(val) {
  72. while(!window.hasOwnProperty(val))
  73. await new Promise(resolve => setTimeout(resolve, 1000));
  74. };
  75.  
  76. this.hookMovement = function() {
  77. const update = Movement.prototype.update;
  78. var defaultSpeeds = [];
  79. Movement.prototype.update = function (t) {
  80. if (!FakeGuard.hooks.movement) {
  81. FakeGuard.hooks.movement = this;
  82. defaultSpeeds = [this.defaultSpeed, this.strafingSpeed];
  83. }
  84. FakeGuard.onTick();
  85. update.apply(this, [t]);
  86. if (FakeGuard.settings.infAmmo) {
  87. this.setAmmoFull();
  88. this.isHitting = false;
  89. }
  90. if (FakeGuard.settings.infJump) {
  91. this.isLanded = true;
  92. this.bounceJumpTime = 0;
  93. this.isJumping = false;
  94. }
  95.  
  96. this.defaultSpeed = defaultSpeeds[0] * (FakeGuard.settings.speedMlt + 1);
  97. this.strafingSpeed = defaultSpeeds[1] * (FakeGuard.settings.speedMlt + 1);
  98. };
  99. console.log("Movement Hooked");
  100. };
  101.  
  102. this.hookNetwork = function() {
  103. var manager = NetworkManager.prototype.initialize;
  104. NetworkManager.prototype.initialize = function() {
  105. if (!FakeGuard.hooks.network) {
  106. FakeGuard.hooks.network = this;
  107. }
  108. manager.call(this);
  109. };
  110.  
  111. var ogRespawn = NetworkManager.prototype.respawn;
  112. NetworkManager.prototype.respawn = function(e) {
  113. ogRespawn.apply(this, [e]);
  114. if (e && e.length > 0 && FakeGuard.settings.autoKill) {
  115. var t = e[0], i = this.getPlayerById(t);
  116. if (i&& t!=this.playerid) {
  117. var scope = this;
  118. setTimeout(function() {
  119. scope.send(["da", t, 100, 1, i.position.x, i.position.y, i.position.z])
  120. }, 3500);
  121. }
  122. }
  123. }
  124. console.log("Network Hooked");
  125. };
  126.  
  127. this.hookAnticheat = function() {
  128. VengeGuard.prototype.onCheck = function() {
  129. this.app.fire("Network:Guard", 1)
  130. }
  131. console.log("Anticheat Hooked");
  132. };
  133.  
  134. this.hookLabel = function() {
  135. Label.prototype.update = function(t) {
  136. if (this.player.isDeath)
  137. return this.labelEntity.enabled = !1,
  138. !1;
  139. if (Date.now() - this.player.lastDamage > 1800 && !FakeGuard.settings.esp)
  140. return this.labelEntity.enabled = !1,
  141. !1;
  142. var i = new pc.Vec3
  143. , e = this.app.systems.camera.cameras[0]
  144. , a = this.app.graphicsDevice.maxPixelRatio
  145. , s = this.screenEntity.screen.scale
  146. , l = this.app.graphicsDevice;
  147. e.worldToScreen(this.headPoint.getPosition(), i),
  148. i.x *= a,
  149. i.y *= a,
  150. i.x > 0 && i.x < this.app.graphicsDevice.width && i.y > 0 && i.y < this.app.graphicsDevice.height && i.z > 0 ? (this.labelEntity.setLocalPosition(i.x / s, (l.height - i.y) / s, 0),
  151. this.labelEntity.enabled = !0) : this.labelEntity.enabled = !1
  152. };
  153. console.log("Label Hooked");
  154. };
  155.  
  156. this.onTick = function() {
  157. if (FakeGuard.settings.aimbot) {
  158. var closest;
  159. var rec;
  160.  
  161. var players = FakeGuard.hooks.network.players;
  162. for (var i = 0; i < players.length; i++) {
  163. var target = players[i];
  164. var t = FakeGuard.hooks.movement.entity.getPosition();
  165. let calcDist = Math.sqrt( (target.position.y-t.y)**2 + (target.position.x-t.x)**2 + (target.position.z-t.z)**2 );
  166. if (calcDist < rec || !rec) {
  167. closest = target;
  168. rec = calcDist;
  169. }
  170. }
  171.  
  172. FakeGuard.closestp = closest;
  173. let rayCastList = pc.app.systems.rigidbody.raycastAll(FakeGuard.hooks.movement.entity.getPosition(), FakeGuard.closestp.getPosition()).map(x=>x.entity.tags._list.toString())
  174. let rayCastCheck = rayCastList.length === 1 && rayCastList[0] === "Player";
  175. if (closest && rayCastCheck) {
  176. t = FakeGuard.hooks.movement.entity.getPosition()
  177. , e = Utils.lookAt(closest.position.x, closest.position.z, t.x, t.z);
  178. FakeGuard.hooks.movement.lookX = e * 57.29577951308232 + Math.random()/10 - Math.random()/10;
  179. FakeGuard.hooks.movement.lookY = -1 * (this.getXDire(closest.position.x, closest.position.y, closest.position.z, t.x, t.y+0.9, t.z)) * 57.29577951308232;
  180. FakeGuard.hooks.movement.leftMouse = true;
  181. FakeGuard.hooks.movement.setShooting(FakeGuard.hooks.movement.lastDelta);
  182. } else {
  183. FakeGuard.hooks.movement.leftMouse = false;
  184. }
  185. }
  186. };
  187.  
  188. this.getD3D = function(a, b, c, d, e, f) {
  189. let g = a - d, h = b - e, i = c - f;
  190. return Math.sqrt(g * g + h * h + i * i);
  191. };
  192. this.getXDire = function(a, b, c, d, e, f) {
  193. let g = Math.abs(b - e), h = this.getD3D(a, b, c, d, e, f);
  194. return Math.asin(g / h) * (b > e ? -1 : 1);
  195. };
  196.  
  197. this.setupHooks();
  198. this.setupBinds();
  199. };
  200. FakeGuard = new(Hack)();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement