Garry's Mod

Garry's Mod

模组之巅
探索插件、游戏存档、录像以及更多内容。只需轻松一点即可将它们添加至 Garry's Mod 游戏中。想要创建并分享属于您的创作品吗?点击这里以了解更多。
[ADDON HELP] How to render glow text/Get npc nickname
Hello every OG addon coder
I'm currently coding my add-on: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3536446803

The only problem is: I need to make my text have a glow or bloom effect & normally get npc nickname
If the text is no glow or bloom and it is not so focused.

https://imgur.com/a/0JMMb9O

Like the killfeed in Battlefield 4, the text have a soft glow and make it more natural.
I tried to ask ChatGPT (w/ web search) but not found any perfect solutions.

Just wonder which API in GLua or other way to render glow text
and how to get npc nickname after some1 kill it
最后由 We got history. 编辑于; 10 月 3 日 上午 9:57
< >
正在显示第 1 - 3 条,共 3 条留言
lordkeker31 23 10 月 3 日 下午 12:01 
i didnt checked that but you possible can use draw.TextShadow (https://wiki.facepunch.com/gmod/draw.TextShadow)

Also if you make something like this "#npc_citizen" then gmod can automaticaly translate it into "Citizen" and you have language.GetPhrase("npc_citizen") in client side

sorry for my english
lordkeker31 23 10 月 3 日 下午 12:03 
so you can just emulate bloom effect in ♥♥♥♥♥♥ way with draw.TextShadow or possible use specific material on text somehow
引用自 lordkeker31
i didnt checked that but you possible can use draw.TextShadow (https://wiki.facepunch.com/gmod/draw.TextShadow)

Also if you make something like this "#npc_citizen" then gmod can automaticaly translate it into "Citizen" and you have language.GetPhrase("npc_citizen") in client side

sorry for my english

draw.TextShadow not working for bloom, although I was able to simulate bloom with TextShadow on a csgo cheat before, but gmod is different, it just shadow

and about npc nick, i prefer want to show their nickname in spawn menu (e.g: an NPC called "Miyu (Enemy)" and i killed him the killfeed will show "We got history. killed Miyu (Enemy)")
I know localization can solve this problem. But..
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50