Shell Shockers Model Injector: Barclay's

Import whatever model URLs you need - template and example code

  1. // ==UserScript==
  2. // @name Shell Shockers Model Injector: Barclay's
  3. // @namespace https://github.com/onlypuppy7/BarclaysShellShockers/
  4. // @license GPL-3.0
  5. // @version 2.1.3
  6. // @author onlypuppy7
  7. // @description Import whatever model URLs you need - template and example code
  8. // @match https://shellshock.io/*
  9. // @grant none
  10. // @run-at document-start
  11. // @icon https://github.com/onlypuppy7/BarclaysShellShockers/blob/main/logo.png?raw=true
  12.  
  13.  
  14. // @require https://update.greatest.deepsurf.us/scripts/526336/user.js?v=2.1.3
  15. // ==/UserScript==
  16.  
  17. //NOTE: to make sure the Barclay's Library updates with your script, you must update the ?v=[version] parameter in the @require line above
  18. // -> otherwise userscript managers will not update the library and keep using the cached version
  19. // -> the actual thing you put is not important, just make sure it is different from the previous version
  20. // -> this is a limitation of userscript managers, not the library
  21.  
  22. //this script is a template for using the Barclays library to import models into Shell Shockers
  23. //please refer to the library's documentation for more information
  24.  
  25. BARCLAYS.modelURLs = [
  26. //put model urls here. glb format ONLY.
  27. //please refer to the library's documentation for more information
  28.  
  29. //examples:
  30. // "https://cdn.onlypuppy7.online/hattestWide2.glb", //makes the top hat WIDE
  31. // "https://cdn.onlypuppy7.online/blendertest7.glb", //replaces castle brick with the blender default cube because why not (screws up lightmap)
  32. "https://cdn.onlypuppy7.online/eggmodeltest.glb", //replaces the egg with the blender default cube
  33. // "https://cdn.onlypuppy7.online/classicguns7.glb", //imports the classic guns (cluck9mm, soldier (brokenish), dozengauge, free ranger)
  34. "https://cdn.onlypuppy7.online/animtest3.glb", //replaces crackshot with legacy crackshot, and replaces the
  35.  
  36. // "/models/full/egg.glb", //replaces the replaced egg with the default egg, useful for reverting changes
  37. ];
  38.  
  39. //as this script has no injection mechanism, we use the library's built in one
  40. BARCLAYS.init();
  41.  
  42. //just to make it obvious
  43. BARCLAYS.log("Example script started.");
  44.  
  45. //if at a stage you would like to make more model changes, you can run code like this:
  46. /* //(uncomment to use)
  47. BARCLAYS.replaceModels([
  48. "https://link.to/your/model.glb",
  49. ]);
  50. */
  51.  
  52. //if you need to restore the original models, you can run this:
  53. // BARCLAYS.restoreModels();
  54. //note: dont run this over and over again, it will cause performance issues
  55.  
  56. //uncomment to expose the BARCLAYS object to the console/window
  57. // window.BARCLAYS = BARCLAYS;