Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Venge.io Hack by Soul
- // @version 1.0
- // @description Venge.io HACKS
- // @author https://www.youtube.com/channel/UC8jK3lcsz8iPmCHlKA_DX4w?view_as=subscriber
- // @match https://venge.io/
- // @grant none
- // @run-at document-start
- // @namespace Soul
- // ==/UserScript==
- var Hack = function() {
- this.settings = {
- infAmmo: false,
- infJump: false,
- autoKill: false,
- speedMlt: 0,
- esp: true,
- aimbot: false,
- };
- this.hooks = {
- network: null,
- movement: null,
- anticheat: null
- };
- this.setupHooks = function() {
- this.waitForProp("Movement").then(this.hookMovement).catch(e => console.log(e));
- this.waitForProp("NetworkManager").then(this.hookNetwork).catch(e => console.log(e));
- this.waitForProp("VengeGuard").then(this.hookAnticheat).catch(e => console.log(e));
- this.waitForProp("Label").then(this.hookLabel).catch(e => console.log(e));
- };
- this.setupBinds = function() {
- window.addEventListener("keydown", (e) => {
- switch(e.keyCode) {
- case 190: // PERIOD
- this.settings.autoKill = !this.settings.autoKill;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Kill on Respawn - " + (this.settings.autoKill?"Enabled":"Disabled"), !0)
- break;
- case 188: // COMMA
- this.settings.infAmmo = !this.settings.infAmmo;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Infinite Ammo - " + (this.settings.infAmmo?"Enabled":"Disabled"), !0)
- break;
- case 186: // SEMI COL
- this.settings.aimbot = !this.settings.aimbot;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Aimbot - " + (this.settings.aimbot?"Enabled":"Disabled"), !0)
- break;
- case 222: // QUOTE
- this.settings.infJump = !this.settings.infJump;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Infinite Jump - " + (this.settings.infJump?"Enabled":"Disabled"), !0)
- break;
- case 191: // SLASH
- this.settings.speedMlt++;
- if (this.settings.speedMlt > 4) this.settings.speedMlt = 0;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Speed Multiplier - " + (this.settings.speedMlt + 1) + "x", !0)
- break;
- case 219: // [
- this.hooks.network.app.fire("Chat:Message", "Hacks", "Teleporting you to Safety", !0);
- this.hooks.movement.app.fire("Player:Respawn", !0);
- break;
- case 221: // ]
- this.settings.esp = !this.settings.esp;
- this.hooks.network.app.fire("Chat:Message", "Hacks", "ESP - " + (this.settings.esp?"Enabled":"Disabled"), !0)
- break;
- default: return;
- }
- });
- };
- this.waitForProp = async function(val) {
- while(!window.hasOwnProperty(val))
- await new Promise(resolve => setTimeout(resolve, 1000));
- };
- this.hookMovement = function() {
- const update = Movement.prototype.update;
- var defaultSpeeds = [];
- Movement.prototype.update = function (t) {
- if (!FakeGuard.hooks.movement) {
- FakeGuard.hooks.movement = this;
- defaultSpeeds = [this.defaultSpeed, this.strafingSpeed];
- }
- FakeGuard.onTick();
- update.apply(this, [t]);
- if (FakeGuard.settings.infAmmo) {
- this.setAmmoFull();
- this.isHitting = false;
- }
- if (FakeGuard.settings.infJump) {
- this.isLanded = true;
- this.bounceJumpTime = 0;
- this.isJumping = false;
- }
- this.defaultSpeed = defaultSpeeds[0] * (FakeGuard.settings.speedMlt + 1);
- this.strafingSpeed = defaultSpeeds[1] * (FakeGuard.settings.speedMlt + 1);
- };
- console.log("Movement Hooked");
- };
- this.hookNetwork = function() {
- var manager = NetworkManager.prototype.initialize;
- NetworkManager.prototype.initialize = function() {
- if (!FakeGuard.hooks.network) {
- FakeGuard.hooks.network = this;
- }
- manager.call(this);
- };
- var ogRespawn = NetworkManager.prototype.respawn;
- NetworkManager.prototype.respawn = function(e) {
- ogRespawn.apply(this, [e]);
- if (e && e.length > 0 && FakeGuard.settings.autoKill) {
- var t = e[0], i = this.getPlayerById(t);
- if (i&& t!=this.playerid) {
- var scope = this;
- setTimeout(function() {
- scope.send(["da", t, 100, 1, i.position.x, i.position.y, i.position.z])
- }, 3500);
- }
- }
- }
- console.log("Network Hooked");
- };
- this.hookAnticheat = function() {
- VengeGuard.prototype.onCheck = function() {
- this.app.fire("Network:Guard", 1)
- }
- console.log("Anticheat Hooked");
- };
- this.hookLabel = function() {
- Label.prototype.update = function(t) {
- if (this.player.isDeath)
- return this.labelEntity.enabled = !1,
- !1;
- if (Date.now() - this.player.lastDamage > 1800 && !FakeGuard.settings.esp)
- return this.labelEntity.enabled = !1,
- !1;
- var i = new pc.Vec3
- , e = this.app.systems.camera.cameras[0]
- , a = this.app.graphicsDevice.maxPixelRatio
- , s = this.screenEntity.screen.scale
- , l = this.app.graphicsDevice;
- e.worldToScreen(this.headPoint.getPosition(), i),
- i.x *= a,
- i.y *= a,
- 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),
- this.labelEntity.enabled = !0) : this.labelEntity.enabled = !1
- };
- console.log("Label Hooked");
- };
- this.onTick = function() {
- if (FakeGuard.settings.aimbot) {
- var closest;
- var rec;
- var players = FakeGuard.hooks.network.players;
- for (var i = 0; i < players.length; i++) {
- var target = players[i];
- var t = FakeGuard.hooks.movement.entity.getPosition();
- let calcDist = Math.sqrt( (target.position.y-t.y)**2 + (target.position.x-t.x)**2 + (target.position.z-t.z)**2 );
- if (calcDist < rec || !rec) {
- closest = target;
- rec = calcDist;
- }
- }
- FakeGuard.closestp = closest;
- let rayCastList = pc.app.systems.rigidbody.raycastAll(FakeGuard.hooks.movement.entity.getPosition(), FakeGuard.closestp.getPosition()).map(x=>x.entity.tags._list.toString())
- let rayCastCheck = rayCastList.length === 1 && rayCastList[0] === "Player";
- if (closest && rayCastCheck) {
- t = FakeGuard.hooks.movement.entity.getPosition()
- , e = Utils.lookAt(closest.position.x, closest.position.z, t.x, t.z);
- FakeGuard.hooks.movement.lookX = e * 57.29577951308232 + Math.random()/10 - Math.random()/10;
- 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;
- FakeGuard.hooks.movement.leftMouse = true;
- FakeGuard.hooks.movement.setShooting(FakeGuard.hooks.movement.lastDelta);
- } else {
- FakeGuard.hooks.movement.leftMouse = false;
- }
- }
- };
- this.getD3D = function(a, b, c, d, e, f) {
- let g = a - d, h = b - e, i = c - f;
- return Math.sqrt(g * g + h * h + i * i);
- };
- this.getXDire = function(a, b, c, d, e, f) {
- let g = Math.abs(b - e), h = this.getD3D(a, b, c, d, e, f);
- return Math.asin(g / h) * (b > e ? -1 : 1);
- };
- this.setupHooks();
- this.setupBinds();
- };
- FakeGuard = new(Hack)();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement