Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Vertix.io Mod
- // @namespace https://greasyfork.org/en/users/129328-snowlord7
- // @version 2.8
- // @description Press 'o' to turn on aimbot and 'f' to turn it off. Jump to shoot, middle click to shoot all your bullets at once and right click to double shoot. Press 'alt' to see controls.
- // @author Copyright 2017, iomods.weebly.com, All rights reserved.
- // @match http://vertix.io/*
- // @supportURL http://iomods.weebly.com/
- // @icon http://i.imgur.com/HtuQwpq.png
- // @grant GM_addStyle
- // ==/UserScript==
- //© SnowLord7 / iomods.weebly.com
- //Random Helpfull Stuff (1)
- document.getElementById("mainTitleText").style.color = "#f00";
- //Random Helpfull Stuff (2)
- var para2 = document.createElement("p");
- var node2 = document.createTextNode("Red = off, Green = on");
- para2.appendChild(node2);
- var element2 = document.getElementById("mainTitleText");
- element2.appendChild(para2);
- //Weapon Length
- function wepLength() {
- setTimeout(wepLength, 1);
- if (player.onScreen) {
- setTimeout(player.weapons["0"].length = 5000,100);
- player.weapons["0"].width = 15;
- player.weapons["0"].shake = 0;
- }
- }
- wepLength();
- //Vertix.IO Title (1)
- mainTitleText.innerHTML=("VERTIX.IO MOD");
- //Vertix.IO Title (2)
- document.title = "Vertix.io Mod";
- //Notification For Saying "thanks"
- document.addEventListener('DOMContentLoaded', function () {
- if (Notification.permission !== "granted")
- Notification.requestPermission();
- });
- if (Notification.permission !== "granted")
- Notification.requestPermission();
- else {
- var notification = new Notification('Hey,', {
- icon: 'https://greasyfork.org/assets/blacklogo16-bc64b9f7afdc9be4cbfa58bdd5fc2e5c098ad4bca3ad513a27b15602083fd5bc.png',
- body: "Thanks for using Vertix.Io Mod!",
- });
- notification.onclick = function () {
- window.open("http://bit.ly/vertixmod");
- };
- }
- //Faster Mini-Map
- drawMiniMapFPS = 0;
- chatInput.maxLength = 153049; //type longer in chat
- //Loading Text
- loadText.innerHTML=("LOADING MODS & CONNECTING");
- //Loading Tips
- var element = document.createElement("div");
- element.appendChild(document.createTextNode('TIP: RED TITLE TEXT = OFF, GREEN TITLE TEXT = ON'));
- document.getElementById('loadSpinner').appendChild(element);
- element.idName = "loadText2";
- //Press "Ctrl" to Auto Join Games
- document.addEventListener("keydown", function(a) {
- if (a.keyCode == 17) {
- startGame("player");
- socket.emit("respawn");
- }
- }, false);
- //Thank You Text
- var para = document.createElement("p");
- var node = document.createTextNode("Thank you for using the Vertix.io Mod!");
- para.appendChild(node);
- var element = document.getElementById("messageWrap");
- element.appendChild(para);
- alert("Press 'o' to turn on aimbot and press 'p' to stop it. Press 'alt' to see controls. Press 'ctrl' to join the match. Jump to jumpshoot. -SnowLord7");
- var active = false;
- var interval = void 0;
- function activate(event) {
- event.preventDefault();
- if (event.keyCode === 79 && !active) {
- c.removeEventListener("mousemove", gameInput, false);
- active = true;
- document.getElementById("mainTitleText").style.color = "#0f0";
- interval = setInterval(aimClosestPlayer, 10);
- }
- }
- function deactivate(event) {
- event.preventDefault();
- if (event.keyCode === 80) {
- active = false;
- document.getElementById("mainTitleText").style.color = "#f00";
- clearInterval(interval);
- c.addEventListener("mousemove", gameInput, false);
- }
- }
- window.onkeydown = function(event) {
- if (event.keyCode === 18) {
- alert("Press 'o' to turn on aimbot and press 'p' to stop it. Press 'alt' to see controls. Press 'ctrl' to join the match. Jump to jumpshoot. -SnowLord7");
- }
- };
- c.addEventListener("keydown", activate, false);
- c.addEventListener("keyup", deactivate, false);
- function getOtherPlayers(gameObjects, myTeam) {
- return gameObjects.filter(function (o) {
- return o.type === 'player' && o.dead === false && o.name !== player.name && o.team !== myTeam;
- });
- }
- function getMyPlayer(gameObjects) {
- return gameObjects.filter(function (o) {
- return o.name === player.name;
- })[0];
- }
- function distance(x1, y1, x2, y2) {
- return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
- }
- function getClosestPlayer(gameObjects) {
- var myTeam = getMyPlayer(gameObjects).team;
- var otherPlayers = getOtherPlayers(gameObjects, myTeam);
- var closestDistance = Infinity;
- var closestPlayer = void 0;
- otherPlayers.forEach(function (p) {
- var d = distance(player.x, player.y, p.x, p.y);
- if (d < closestDistance) {
- closestPlayer = p;
- closestDistance = d;
- }
- });
- return closestPlayer;
- }
- function getAngle(x1, y1, x2, y2) {
- return Math.atan2(y1 - y2, x1 - x2);
- }
- function setTarget(angle, distance) {
- target.f = angle;
- target.d = distance;
- }
- function aimClosestPlayer() {
- var closestPlayer = getClosestPlayer(gameObjects);
- if (!closestPlayer) {
- return;
- }
- var angle = getAngle(player.x, player.y, closestPlayer.x, closestPlayer.y);
- var distance = 100;
- setTarget(angle, distance);
- targetChanged = true;
- }
- //Right Click to Double Shoot
- $("#cvs").mousedown(function(ev){
- if(ev.which == 3)
- {
- playerSwapWeapon(player, 1);
- setTimeout(shootBullet(player), 10);
- playerSwapWeapon(player, 1);
- }
- });
- //Machine Gun
- $("#cvs").mousedown(function(ev){
- if(ev.which == 3)
- {
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- shootBullet(player);
- }
- });
- //Ememy Radar
- $(document).ready(function() {
- window.drawMiniMap = function() {
- mapCanvas.width = mapCanvas.width, mapContext.globalAlpha = 1;
- for (var a = 0; a < gameObjects.length; ++a)
- "player" == gameObjects[a].type &&
- gameObjects[a].onScreen &&
- (gameObjects[a].index == player.index ||
- gameObjects[a].team !== player.team ||
- gameObjects[a].isBoss) &&
- (mapContext.fillStyle = gameObjects[a].index == player.index ? "#fff" : gameObjects[a].isBoss ? "#db4fcd" : "#d20d12",
- mapContext.beginPath(),
- mapContext.arc(gameObjects[a].x / gameWidth * mapScale, gameObjects[a].y / gameHeight * mapScale, pingScale, 0, 2 * mathPI, !0),
- mapContext.closePath(),
- mapContext.fill());
- if (null !== gameMap) {
- for (mapContext.globalAlpha = 1, a = 0; a < gameMap.pickups.length; ++a)
- gameMap.pickups[a].active &&
- ("lootcrate" == gameMap.pickups[a].type ? mapContext.fillStyle = "#ffd100" : "healthpack" == gameMap.pickups[a].type &&
- (mapContext.fillStyle = "#5ed951"),
- mapContext.beginPath(),
- mapContext.arc(gameMap.pickups[a].x / gameWidth * mapScale, gameMap.pickups[a].y / gameHeight * mapScale, pingScale, 0, 2 * mathPI, !0),
- mapContext.closePath(),
- mapContext.fill());
- mapContext.globalAlpha = 1.0,
- a = getCachedMiniMap(),
- null !== a &&
- mapContext.drawImage(a, 0, 0, mapScale, mapScale),
- delete a;
- }
- };
- });
- $("#cvs").keydown(function(c){32==c.which&&shootBullet(player)});
- var b=0;
- setTimeout(function() {
- ShowCurrentWeaponAll();
- document.getElementById("charWpn").addEventListener("click",function bzero() {b=0;}, false);
- document.getElementById("charWpn2").addEventListener("click",function bone() {b=1;}, false);
- document.getElementById("camoList").addEventListener("click",ShowCurrentWeapon, false);
- document.getElementById("classList").addEventListener("click",ShowCurrentWeaponAll, false);
- },6000);
- function ShowCurrentWeaponAll() {
- b=0;
- ShowCurrentWeapon();
- b=1;
- ShowCurrentWeapon();
- }
- function ShowCurrentWeapon() {
- var a = characterClasses[currentClassID].weaponIndexes[b]; /* get the weapon id */
- var x=0;
- if(getCookie("wpnSkn"+a) !=getCookie("wpnSknundefined")) { /* if the default weapon is NOT selected */
- while(camoDataList[a][x].id != getCookie("wpnSkn"+a)) { /* find the proper id of the camo */
- x=x+1;
- }
- }
- else { /* if the defualt weapon is selected */
- if(camoDataList[a][x].name != "Art of War") { /* this is a work around to the bug in vertix, Art of War and default have the same id */
- if(b===0) { characterWepnDisplay.innerHTML = "<b>Primary:</b><div class='hatSelectItem' style='display:inline-block'>" + characterClasses[currentClassID].pWeapon + "</div>"; }
- else { characterWepnDisplay2.innerHTML = "<b>Secondary:</b><div class='hatSelectItem' style='display:inline-block'>" + characterClasses[currentClassID].sWeapon + "</div>"; }
- return;
- }
- }
- if(b===0) { characterWepnDisplay.innerHTML = "<b>Primary:</b><div class='hatSelectItem' style='display:inline-block; color:" + getItemRarityColor(camoDataList[a][x].chance) + ";'>" + camoDataList[a][x].name + " x" + (parseInt(camoDataList[a][x].count) + 1) + "<div class='hoverTooltip'><div style='float:left; margin-top:10px; margin-right:10px; width:62px; height:62px; background:url(" + getCamoURL(camoDataList[a][x].id) + "); background-size:cover; background-repeat:no-repeat; background-position:50% 50%;'></div><div style='color:" + getItemRarityColor(camoDataList[a][x].chance) + "; font-size:16px; margin-top:5px;'>" + camoDataList[a][x].name + "</div><div style='color:#ffd100; font-size:12px; margin-top:0px;'>droprate " + camoDataList[a][x].chance + "%</div><div style='font-size:8px; color:#d8d8d8; margin-top:1px;'><i>weapon camo</i></div><div style='font-size:12px; margin-top:5px;'>" + characterClasses[currentClassID].pWeapon + " weapon skin.</div><div style='font-size:8px; color:#d8d8d8; margin-top:5px;'><i></i></div></div></div>"; }
- else { characterWepnDisplay2.innerHTML = "<b>Secondary:</b><div class='hatSelectItem' style='display:inline-block; color:" + getItemRarityColor(camoDataList[a][x].chance) + ";'>" + camoDataList[a][x].name + " x" + (parseInt(camoDataList[a][x].count) + 1) + "<div class='hoverTooltip'><div style='float:left; margin-top:10px; margin-right:10px; width:62px; height:62px; background:url(" + getCamoURL(camoDataList[a][x].id) + "); background-size:cover; background-repeat:no-repeat; background-position:50% 50%;'></div><div style='color:" + getItemRarityColor(camoDataList[a][x].chance) + "; font-size:16px; margin-top:5px;'>" + camoDataList[a][x].name + "</div><div style='color:#ffd100; font-size:12px; margin-top:0px;'>droprate " + camoDataList[a][x].chance + "%</div><div style='font-size:8px; color:#d8d8d8; margin-top:1px;'><i>weapon camo</i></div><div style='font-size:12px; margin-top:5px;'>" + characterClasses[currentClassID].sWeapon + " weapon skin.</div><div style='font-size:8px; color:#d8d8d8; margin-top:5px;'><i></i></div></div></div>"; }
- }
- //01110011 01101110 01101111 01110111 01101100 01101111 01110010 01100100 00110111
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement