Garry's Mod

Garry's Mod

107 个评价
SprayMesh Extended
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
92.735 KB
2023 年 11 月 4 日 下午 1:26
4 月 19 日 下午 10:38
8 项改动说明 ( 查看 )

订阅以下载
SprayMesh Extended

描述
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=394091909

Additionally, shoutout to Sony for making Spray Manager V2, which inspired SprayMesh Extended's own manager: https://psteamcommunity.yuanyoumao.com/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
热门讨论 查看全部(2)
1
1 月 7 日 上午 6:51
Can you do please that you can place spray on props?
Foxxie
1
2024 年 1 月 12 日 上午 11:14
Files?
gopro
65 条留言
YaboyAJ0223 9 月 13 日 下午 8:36 
Yeah this shit doesn't work
GoogolPlex 8 月 16 日 下午 7:49 
Howdy, I've been having an issue where the sprays simply don't work in multiplayer (tested on both dedicated and P2P servers). The sound plays, and the active player sprays menu indicates that the sprays do exist to some extent, but they simply won't render. x86-64 branch is enabled. Works just fine in singleplayer however. Mod works great otherwise, love it!
Anya~ 8 月 16 日 上午 1:20 
Would be nicer if it had a stand alone github so it's easier to pull from there. ^^;
Chev  [作者] 7 月 17 日 下午 3:32 
I haven't tested that, but I don't think so.
birdLover8968 7 月 16 日 下午 3:25 
Do they stay in saves?
Zepp Thunderbolt 6 月 26 日 上午 11:40 
I'm currently using my own domain name running a Spring boot webapp, I'm pretty much just testing images put into the static directory.

(this makes them accessible from the base path followed by the actual file, like a public folder of any real website)

It seems to do this for such cases.
Chev  [作者] 6 月 25 日 下午 7:46 
I've noticed in my testing that Discord in particular seems to handle image URLs in a peculiar way, and so they usually won't load. I've been meaning to get it to work, but it's been a low priority. Try using test images on some other websites and see if they work.
Zepp Thunderbolt 6 月 25 日 下午 3:08 
I have a similar issue to the comments below.

I've customized a whitelist for spraymesh, the custom domain URL is registered as valid & debug seems to be successful. However seemingly it will not display. It pops up as "loading" for a second for me as well & then is invisible.
The_Music_Man 6 月 10 日 下午 9:53 
discord doesn't work
frog 6 月 5 日 上午 3:37 
unfortunately, that did not help, I assume it's a network issue, since I am in Russia and we have a lot of sites blocked here :steamsad: