Advertisement
the3picCucumber

Vertix.io Super Mod

Oct 23rd, 2017
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 11.82 KB | None | 0 0
  1. // ==UserScript==
  2. // @name         Vertix.io Mod
  3. // @namespace    https://greasyfork.org/en/users/129328-snowlord7
  4. // @version      2.8
  5. // @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.
  6. // @author       Copyright 2017, iomods.weebly.com, All rights reserved.
  7. // @match        http://vertix.io/*
  8. // @supportURL   http://iomods.weebly.com/
  9. // @icon         http://i.imgur.com/HtuQwpq.png
  10. // @grant        GM_addStyle
  11. // ==/UserScript==
  12. //© SnowLord7 / iomods.weebly.com
  13.  
  14. //Random Helpfull Stuff (1)
  15. document.getElementById("mainTitleText").style.color = "#f00";
  16.  
  17. //Random Helpfull Stuff (2)
  18. var para2 = document.createElement("p");
  19. var node2 = document.createTextNode("Red = off, Green = on");
  20. para2.appendChild(node2);
  21. var element2 = document.getElementById("mainTitleText");
  22. element2.appendChild(para2);
  23.  
  24. //Weapon Length
  25. function wepLength() {
  26.     setTimeout(wepLength, 1);
  27.     if (player.onScreen) {
  28.          setTimeout(player.weapons["0"].length = 5000,100);
  29.     player.weapons["0"].width = 15;
  30.     player.weapons["0"].shake = 0;
  31.     }
  32. }
  33. wepLength();
  34.  
  35. //Vertix.IO Title (1)
  36. mainTitleText.innerHTML=("VERTIX.IO MOD");
  37.  
  38. //Vertix.IO Title (2)
  39. document.title = "Vertix.io Mod";
  40.  
  41. //Notification For Saying "thanks"
  42. document.addEventListener('DOMContentLoaded', function () {
  43.   if (Notification.permission !== "granted")
  44.     Notification.requestPermission();
  45. });
  46.  
  47.   if (Notification.permission !== "granted")
  48.     Notification.requestPermission();
  49.   else {
  50.     var notification = new Notification('Hey,', {
  51.       icon: 'https://greasyfork.org/assets/blacklogo16-bc64b9f7afdc9be4cbfa58bdd5fc2e5c098ad4bca3ad513a27b15602083fd5bc.png',
  52.       body: "Thanks for using Vertix.Io Mod!",
  53.     });
  54.  
  55.     notification.onclick = function () {
  56.       window.open("http://bit.ly/vertixmod");
  57.     };
  58.  
  59.   }
  60.  
  61.  
  62.  
  63. //Faster Mini-Map
  64. drawMiniMapFPS = 0;
  65.  
  66. chatInput.maxLength = 153049; //type longer in chat
  67.  
  68. //Loading Text
  69. loadText.innerHTML=("LOADING MODS & CONNECTING");
  70.  
  71. //Loading Tips
  72. var element = document.createElement("div");
  73. element.appendChild(document.createTextNode('TIP: RED TITLE TEXT = OFF, GREEN TITLE TEXT = ON'));
  74. document.getElementById('loadSpinner').appendChild(element);
  75. element.idName = "loadText2";
  76.  
  77. //Press "Ctrl" to Auto Join Games
  78. document.addEventListener("keydown", function(a) {
  79.     if (a.keyCode == 17) {
  80. startGame("player");
  81. socket.emit("respawn");
  82.     }
  83. }, false);
  84.  
  85. //Thank You Text
  86. var para = document.createElement("p");
  87. var node = document.createTextNode("Thank you for using the Vertix.io Mod!");
  88. para.appendChild(node);
  89. var element = document.getElementById("messageWrap");
  90. element.appendChild(para);
  91.  
  92. 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");
  93.  
  94. var active = false;
  95. var interval = void 0;
  96.  
  97. function activate(event) {
  98.     event.preventDefault();
  99.     if (event.keyCode === 79 && !active) {
  100.        c.removeEventListener("mousemove", gameInput, false);
  101.         active = true;
  102.         document.getElementById("mainTitleText").style.color = "#0f0";
  103.         interval = setInterval(aimClosestPlayer, 10);
  104.     }
  105. }
  106.  
  107. function deactivate(event) {
  108.     event.preventDefault();
  109.     if (event.keyCode === 80) {
  110.         active = false;
  111.         document.getElementById("mainTitleText").style.color = "#f00";
  112.         clearInterval(interval);
  113.         c.addEventListener("mousemove", gameInput, false);
  114.     }
  115. }
  116.  
  117. window.onkeydown = function(event) {
  118.    if (event.keyCode === 18) {
  119.       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");
  120.    }
  121. };
  122.  
  123. c.addEventListener("keydown", activate, false);
  124. c.addEventListener("keyup", deactivate, false);
  125.  
  126. function getOtherPlayers(gameObjects, myTeam) {
  127.     return gameObjects.filter(function (o) {
  128.         return o.type === 'player' && o.dead === false && o.name !== player.name && o.team !== myTeam;
  129.     });
  130. }
  131.  
  132. function getMyPlayer(gameObjects) {
  133.     return gameObjects.filter(function (o) {
  134.         return o.name === player.name;
  135.     })[0];
  136. }
  137.  
  138. function distance(x1, y1, x2, y2) {
  139.     return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
  140. }
  141.  
  142. function getClosestPlayer(gameObjects) {
  143.     var myTeam = getMyPlayer(gameObjects).team;
  144.     var otherPlayers = getOtherPlayers(gameObjects, myTeam);
  145.     var closestDistance = Infinity;
  146.     var closestPlayer = void 0;
  147.     otherPlayers.forEach(function (p) {
  148.         var d = distance(player.x, player.y, p.x, p.y);
  149.         if (d < closestDistance) {
  150.            closestPlayer = p;
  151.            closestDistance = d;
  152.        }
  153.    });
  154.    return closestPlayer;
  155. }
  156.  
  157. function getAngle(x1, y1, x2, y2) {
  158.    return Math.atan2(y1 - y2, x1 - x2);
  159. }
  160.  
  161. function setTarget(angle, distance) {
  162.    target.f = angle;
  163.    target.d = distance;
  164. }
  165.  
  166. function aimClosestPlayer() {
  167.    var closestPlayer = getClosestPlayer(gameObjects);
  168.    if (!closestPlayer) {
  169.        return;
  170.    }
  171.    var angle = getAngle(player.x, player.y, closestPlayer.x, closestPlayer.y);
  172.    var distance = 100;
  173.    setTarget(angle, distance);
  174.    targetChanged = true;
  175. }
  176.  
  177. //Right Click to Double Shoot
  178.  
  179. $("#cvs").mousedown(function(ev){
  180.    if(ev.which == 3)
  181.    {
  182.  
  183.        playerSwapWeapon(player, 1);
  184.        setTimeout(shootBullet(player), 10);
  185.        playerSwapWeapon(player, 1);
  186.  
  187.    }
  188. });
  189.  
  190. //Machine Gun
  191.  
  192. $("#cvs").mousedown(function(ev){
  193.    if(ev.which == 3)
  194.    {
  195.        shootBullet(player);
  196.        shootBullet(player);
  197.        shootBullet(player);
  198.        shootBullet(player);
  199.        shootBullet(player);
  200.        shootBullet(player);
  201.        shootBullet(player);
  202.        shootBullet(player);
  203.        shootBullet(player);
  204.        shootBullet(player);
  205.        shootBullet(player);
  206.        shootBullet(player);
  207.        shootBullet(player);
  208.        shootBullet(player);
  209.        shootBullet(player);
  210.        shootBullet(player);
  211.        shootBullet(player);
  212.        shootBullet(player);
  213.        shootBullet(player);
  214.        shootBullet(player);
  215.        shootBullet(player);
  216.        shootBullet(player);
  217.        shootBullet(player);
  218.        shootBullet(player);
  219.    }
  220. });
  221.  
  222.  
  223. //Ememy Radar
  224.  
  225. $(document).ready(function() {
  226.    window.drawMiniMap = function() {
  227.        mapCanvas.width = mapCanvas.width, mapContext.globalAlpha = 1;
  228.        for (var a = 0; a < gameObjects.length; ++a)
  229.            "player" == gameObjects[a].type &&
  230.                gameObjects[a].onScreen &&
  231.                (gameObjects[a].index == player.index ||
  232.                 gameObjects[a].team !== player.team ||
  233.                 gameObjects[a].isBoss) &&
  234.                (mapContext.fillStyle = gameObjects[a].index == player.index ? "#fff" : gameObjects[a].isBoss ? "#db4fcd" : "#d20d12",
  235.                 mapContext.beginPath(),
  236.                 mapContext.arc(gameObjects[a].x / gameWidth * mapScale, gameObjects[a].y / gameHeight * mapScale, pingScale, 0, 2 * mathPI, !0),
  237.                 mapContext.closePath(),
  238.                 mapContext.fill());
  239.        if (null !== gameMap) {
  240.            for (mapContext.globalAlpha = 1, a = 0; a < gameMap.pickups.length; ++a)
  241.                gameMap.pickups[a].active &&
  242.                    ("lootcrate" == gameMap.pickups[a].type ? mapContext.fillStyle = "#ffd100" : "healthpack" == gameMap.pickups[a].type &&
  243.                     (mapContext.fillStyle = "#5ed951"),
  244.                     mapContext.beginPath(),
  245.                     mapContext.arc(gameMap.pickups[a].x / gameWidth * mapScale, gameMap.pickups[a].y / gameHeight * mapScale, pingScale, 0, 2 * mathPI, !0),
  246.                     mapContext.closePath(),
  247.                     mapContext.fill());
  248.            mapContext.globalAlpha = 1.0,
  249.                a = getCachedMiniMap(),
  250.                null !== a &&
  251.                mapContext.drawImage(a, 0, 0, mapScale, mapScale),
  252.                delete a;
  253.        }
  254.    };
  255. });
  256.  
  257. $("#cvs").keydown(function(c){32==c.which&&shootBullet(player)});
  258.  
  259. var b=0;
  260.  
  261. setTimeout(function() {
  262.    ShowCurrentWeaponAll();
  263.  
  264.    document.getElementById("charWpn").addEventListener("click",function bzero() {b=0;}, false);
  265.    document.getElementById("charWpn2").addEventListener("click",function bone() {b=1;}, false);
  266.    document.getElementById("camoList").addEventListener("click",ShowCurrentWeapon, false);
  267.    document.getElementById("classList").addEventListener("click",ShowCurrentWeaponAll, false);
  268.  
  269. },6000);
  270.  
  271. function ShowCurrentWeaponAll() {
  272.    b=0;
  273.    ShowCurrentWeapon();
  274.    b=1;
  275.    ShowCurrentWeapon();
  276. }
  277.  
  278. function ShowCurrentWeapon() {
  279.    var a = characterClasses[currentClassID].weaponIndexes[b]; /* get the weapon id */
  280.    var x=0;
  281.    if(getCookie("wpnSkn"+a) !=getCookie("wpnSknundefined")) { /* if the default weapon is NOT selected */
  282.        while(camoDataList[a][x].id != getCookie("wpnSkn"+a)) { /* find the proper id of the camo */
  283.            x=x+1;
  284.        }
  285.    }
  286.    else { /* if the defualt weapon is selected */
  287.        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 */
  288.            if(b===0) { characterWepnDisplay.innerHTML = "<b>Primary:</b><div class='hatSelectItem' style='display:inline-block'>" + characterClasses[currentClassID].pWeapon + "</div>"; }
  289.             else { characterWepnDisplay2.innerHTML = "<b>Secondary:</b><div class='hatSelectItem' style='display:inline-block'>" + characterClasses[currentClassID].sWeapon + "</div>"; }
  290.             return;
  291.         }
  292.     }
  293.     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>"; }
  294.     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>"; }
  295.  
  296. }
  297. //01110011 01101110 01101111 01110111 01101100 01101111 01110010 01100100 00110111
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement