Facebook
From Groif, 6 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 237
  1. // ==UserScript==
  2. // @name         Legacy Default Weapon Skins
  3. // @version      0.1
  4. // @description  Return the legacy default weapons
  5. // @author       Grif
  6. // @match        https://shellshock.io/
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. let oldLog = console.log;
  11. const patch = () => {
  12.     let x = [3000, 3100, 3400, 3600, 3800,4000, 4200];
  13.     x.forEach((i) => {
  14.         let item = extern.catalog.findItemById(i);
  15.         if (!item.item_data.meshName.includes("_Legacy")) {
  16.             item.item_data.meshName += "_Legacy";
  17.             console.log(`Patched ${item.name}`, item);
  18.         }
  19.     })
  20. }
  21.  
  22. console.log = function() {
  23.     if (arguments[0].includes("sounds loaded")) {patch();}
  24.     oldLog.apply(this, arguments);
  25. }