Garry's Mod

Garry's Mod

74 ratings
SprayMesh Extended
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
91.285 KB
4 Nov, 2023 @ 1:26pm
19 Feb @ 1:22pm
5 Change Notes ( view )

Subscribe to download
SprayMesh Extended

Description
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
Popular Discussions View All (1)
1
12 Jan @ 11:14am
Files?
sun lamp idk I don't play tf2
37 Comments
bol 16 Jul @ 2:01pm 
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
bol 16 Jul @ 1:39pm 
Alright, thanks
Chev  [author] 16 Jul @ 1:05pm 
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.
bol 16 Jul @ 7:50am 
Are sv_allowupload and sv_allowdownload still exploitable? Wondering if I need this addon
juliusern3st 23 Jun @ 10:50pm 
⢤⣄⣀⠀⠀⠀⠀⣾⢫⢤⡠⣄⣤⢤⠀⠀
⠀⠀⢸⣀⠏⠘⢻⡂⠒⠒⢻⣷⡿⠯⣋⡹⡬⡇⠀
⠀⠀⢸⢬⡂⠀⢀⠜⠀⢀⠀⠈⠉⠂⢌⣹⡇⡇⠀
⠀⠀⢸⣄⣤⣆⢅⠀⠀⡎⠀⠀⠸⡄⠈⠑⠾⡧⠀
⠀⢰⠃⢀⢞⡴⠏⠀⡘⢇⠀⢠⣀⠷⡀⣦⡗⡽⠀
⠀⠏⠀⢸⠈⢠⠊⡏⠉⠉⠳⣮⠛⡏⠉⠙⠀⢹⡇
⠸⢲⠀⢸⡀⠈⣦⣱⠄⣀⠔⠙⢦⣇⡠⣾⠀⢸⢼
⠀⠀⠷⢆⣣⣸⠹⣦⡀⠑⠒⠁⢊⣠⠔⡹⢄⣼⠀
⢀⣀⡀⠀⠈⠁⢓⡽⡎⠻⠭⠏⢳⡞⠘⠁⠀⠀⠀
⠇⢀⡗⠀⠀⢠⠎⠀⡀⠀⠀⠀⠸⠙⢄⠀⠀⠀⠀
⡇⠘⣄⣀⡠⠧⣄⣠⡇⠀⠀⠀⠀⢇⡼⠒⢤⡀⠀
⠈⠢⢠⡇⠀⠀⠘⡽⢅⣀⣀⠀⢠⡾⣅⡀⣀⠇⠀
⠀⠀⠀⠻⠦⠄⠴⢁⣀⠁⠀⡀⠀⣀⠙⠙⠁⠀⠀
⠀⠀⠀⠀⠀⠀⠀⡼⢿⠟⠉⡸⠿⡇⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣸⣓⣸⠀⢸⢗⣺⡗⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢠⠇⠀⠘⠀⢨⣄⠀⠙⠆⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠸⣀⣀⡄⠀⠀⠀⠑⠒⠃⠀⠀⠀⠀
Original_Prydwen 8 Jun @ 12:24pm 
nvm
Original_Prydwen 8 Jun @ 12:18pm 
I put in accepted URLS and it doesnt work, any fix?
EntranceJew 26 Feb @ 6:47pm 
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].
Chev  [author] 26 Feb @ 2:50pm 
For bmp files, that should be straightforward to support. For VTF and TGA however, they're a little trickier as they wouldn't use the web rendering system, but they might still be doable. I'll look into it.
EntranceJew 24 Feb @ 8:38pm 
It would be nice if this supported tga/bmp/vtf files out of the box so that people with traditional sprays including funny mipmap tricks could still use them.