Garry's Mod

Garry's Mod

79 beoordelingen
SprayMesh Extended
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
Bestandsgrootte
Geplaatst op
Bijgewerkt op
91.297 KB
4 nov 2023 om 13:26
29 okt om 12:08
6 wijzigingsnotities (weergeven)

Abonneren om te downloaden
SprayMesh Extended

Omschrijving
This is my modified version of the addon "SprayMesh" with various new features, bug fixes and optimizations.

If you are not familiar with SprayMesh: It is a replacement/improvement to the default Garry's Mod player sprays, allowing players to set image URLs as their spray. The sprays use map-conforming meshes to allow them to wrap around surfaces.

SprayMesh Extended is designed to be a replacement to SprayMesh--using both will cause issues!

The menu can be accessed either by typing /spraymesh, typing "spraymesh_settings" in console, or by using the Sandbox context (C) menu.

Improvements & changes:
  • A built-in menu for SprayMesh Extended:
    • Comes with a settings panel to adjust some SprayMesh Extended settings.
    • Comes with a spray manager to save, name & search sprays.
    • Has a pop-up menu to view all active sprays on the server.
    • Has a pop-up menu which contains a guide to using SprayMesh Extended, as well as viewing what spray types (like image & video extensions) are whitelisted.
  • Sprays can be rotated on floors and ceilings.
  • Sprays are now easier to see in dark areas.
  • Sprays render in the order they're sprayed (so that players can spray over each others' sprays).
  • Sprays will be kept when a player re-joins the server (however, sprays will still reset upon a server shutdown/restart).
  • A cleaner codebase, and optimized code a bit.
  • Config (and Lua hooks) for developers and server owners to customize SprayMesh Extended to their liking.
  • Support for CatBox & LitterBox natively included.
  • Removed YouTube video spray support.

The addon's source code can be found on GitHub: https://github.com/chev2/gmod-addons

For this addon to work, you most likely need to use the x86-64 beta branch of Garry's Mod, as the sprays internally use web rendering which usually work better (or possibly only work) on that beta branch.

Credits

Shoutout to SprayMesh's original author Bletotum for making such an awesome addon: https://steamproxy.net/sharedfiles/filedetails/?id=394091909

Additionally, shoutout to Sony for making Spray Manager V2, which inspired SprayMesh Extended's own manager: https://steamproxy.net/sharedfiles/filedetails/?id=1805554541

Configuration
For server owners & developers looking to change the configuration of SprayMesh Extended, such as the default fallback spray, spray sizes, whitelisted domains, etc. check out this Lua file:
lua/spraymesh/sh_config.lua
Ideally you shouldn't have to edit any other Lua file to edit SprayMesh's functionality--if there's something you'd like to be customizable, leave a suggestion.

Documentation
If you are a server owner/developer looking to extend SprayMesh's functionality, you can find some basic documentation on it here: https://github.com/chev2/gmod-addons/wiki/SprayMesh-Extended
Populaire discussies Alles weergeven (1)
1
12 jan om 11:14
Files?
bad horseless headless horsemann
39 opmerkingen
Chev  [auteur] 15 sep om 11:46 
By default, SprayMesh Extended only whitelists specific websites, namely Imgur and Catbox. Try uploading a test image to Imgur or Catbox (Catbox seems to be down at this moment in time, however) and then copying and pasting the image URL into the spray manager. The outline of the input should turn green, meaning it is allowed to be used as a spray.

Also, the URL has to be a direct image URL, meaning it has to end in ".jpg", ".jpeg", ".png" etc.

You can see what websites and image URL suffixes are whitelisted by clicking the "Help & Info" button in the spray manager. The whitelist will vary from server-to-server.
samter 14 sep om 20:36 
I cant put links in the thing, I don't know why it just always rejects any links, can I get some help?
sanfo 16 jul om 14:01 
ServerDL
Using ServerDL is rather simple, you need to have sv_allowdownload enabled and you need to mark the files that you want to be downloadable with resource.AddFile and resource.AddSingleFile after that clients will automatically download the content when they join your server. However this is considered obsolete as its incredibly slow at 64kb/s and you should avoid using it.

From what it seems, without a backdoor the only files that will be downloadable are the ones that are "marked" with resource add file. Which is nice! Seems the exploit is not as bad as it was
sanfo 16 jul om 13:39 
Alright, thanks
Chev  [auteur] 16 jul om 13:05 
I've seen mixed reports on sv_allowupload and sv_allowdownload still being exploitable. Some say yes, some say no (according to the Garry's Mod Discord, anyway). When it comes to my own servers, I always keep them disabled, as I don't need them for any functionality, and I don't even want to take the risk.
sanfo 16 jul om 7:50 
Are sv_allowupload and sv_allowdownload still exploitable? Wondering if I need this addon
juliusern3st 23 jun om 22:50 
⢤⣄⣀⠀⠀⠀⠀⣾⢫⢤⡠⣄⣤⢤⠀⠀
⠀⠀⢸⣀⠏⠘⢻⡂⠒⠒⢻⣷⡿⠯⣋⡹⡬⡇⠀
⠀⠀⢸⢬⡂⠀⢀⠜⠀⢀⠀⠈⠉⠂⢌⣹⡇⡇⠀
⠀⠀⢸⣄⣤⣆⢅⠀⠀⡎⠀⠀⠸⡄⠈⠑⠾⡧⠀
⠀⢰⠃⢀⢞⡴⠏⠀⡘⢇⠀⢠⣀⠷⡀⣦⡗⡽⠀
⠀⠏⠀⢸⠈⢠⠊⡏⠉⠉⠳⣮⠛⡏⠉⠙⠀⢹⡇
⠸⢲⠀⢸⡀⠈⣦⣱⠄⣀⠔⠙⢦⣇⡠⣾⠀⢸⢼
⠀⠀⠷⢆⣣⣸⠹⣦⡀⠑⠒⠁⢊⣠⠔⡹⢄⣼⠀
⢀⣀⡀⠀⠈⠁⢓⡽⡎⠻⠭⠏⢳⡞⠘⠁⠀⠀⠀
⠇⢀⡗⠀⠀⢠⠎⠀⡀⠀⠀⠀⠸⠙⢄⠀⠀⠀⠀
⡇⠘⣄⣀⡠⠧⣄⣠⡇⠀⠀⠀⠀⢇⡼⠒⢤⡀⠀
⠈⠢⢠⡇⠀⠀⠘⡽⢅⣀⣀⠀⢠⡾⣅⡀⣀⠇⠀
⠀⠀⠀⠻⠦⠄⠴⢁⣀⠁⠀⡀⠀⣀⠙⠙⠁⠀⠀
⠀⠀⠀⠀⠀⠀⠀⡼⢿⠟⠉⡸⠿⡇⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣸⣓⣸⠀⢸⢗⣺⡗⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢠⠇⠀⠘⠀⢨⣄⠀⠙⠆⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠸⣀⣀⡄⠀⠀⠀⠑⠒⠃⠀⠀⠀⠀
Knightfall 8 jun om 12:24 
nvm
Knightfall 8 jun om 12:18 
I put in accepted URLS and it doesnt work, any fix?
EntranceJew 26 feb om 18:47 
it looks like TGAImage [github.com] loads a TGA into a base64 encoded png, which might be low-fi enough for awesomeium. I tried to compile https://gist.github.com/EntranceJew/7dfc6230ba028db3f2644a92bc1995e1 to test but I got an error [gist.github.com] -- but whatever this page is doing [rafradek.github.io] probably has it figured out [github.com].