Garry's Mod

Garry's Mod

263 个评价
Glowing Player Halos
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
1.688 KB
2014 年 3 月 7 日 上午 12:02
2014 年 6 月 19 日 下午 2:43
10 项改动说明 ( 查看 )

订阅以下载
Glowing Player Halos

描述
This addon is now unmaintained, but open source! View Source[github.com]

I looked and looked and couldn't find any way to put a L4D style glow around other players for some reason! So I decided I would try to make my first add-on. It's kinda simple, and it took me forever to figure out, but I think it turned out working pretty well!

Installing this addon
Multiplayer: Only your host / server needs this addon installed. Players don't need to subscribe.
Single player: Just subscribe.

Configuration
For now, you hafta change your settings via server console commands. I tried looking at how to make settings menus, and I think they're too complicated for me for now!

Main settings:

player_halos 1 by default
Draw player halos around players. Make this 0 to disable them, 1 to enable them some of the time (according to your other settings), 2 to keep them always on, and 3 to always have them on as long as 'disallow' conditions aren't met.

player_halos_npcs 0
Set this to a color in the r g b format of "[0-1] [0-1] [0-1]" to make halos be drawn around NPCs as well. For example, to make them a dark greenish yellow: "player_halos_npcs .25 .3 0"

player_halos_color 0
Sets color for player halos. Set this to 0 to use each player's personal colors. Set this to 1 to use team colors.

Disallow settings:

player_halos_team_only 0
Player halos will only appear around team members.

Show halo settings:

player_halos_obstructed 1
Player halos will appear for people blocked by something else (like walls).

player_halos_unobstructed_dist 1000
Halos will appear around players farther than this distance, even if there is nothing obstructing them. Set this to 0 if halos should never appear because of this.

player_halos_flashlight 1
Other players' halos will appear when your flashlight is on.

player_halos_flashlight_them 0
Everyone will see your halo when your flashlight is on.

player_halos_vehicle 0
Player halos will appear when you are in a vehicle.

Hooks
If you're a lua writer yourself, you can actually add extra conditions in!

PlayerHalosShouldNotDraw function( player, personGettingGlow )
PlayerHalosShouldDraw function( player, personGettingGlow )

If you return true to either of those, my add-on will go ahead and disable drawing halos or decide to draw halos! "ShouldNotDraw" takes precedence over "ShouldDraw," so if you send true to it, it won't even use its ShouldDraw hook. If you do decide my add-on is fun enough that you want to write some, make sure you tell me about it! I might even add it into here, with your name in your command's help text~
热门讨论 查看全部(1)
0
2019 年 5 月 28 日 下午 8:38
NPC Glow Colors
Pyri
67 条留言
Don torillo fideitos 8 月 31 日 下午 12:35 
how do i do that only me can see it
Ready the Rabbit 2024 年 10 月 2 日 下午 1:23 
is it compatible with lambdaplayers?
twitch.tv/icemanoffline 2024 年 10 月 1 日 上午 10:46 
@Zsonal use something to remove minimize from code. He used minize to do this. Like in Javascript and etc.
Zsonal 2023 年 9 月 11 日 上午 5:46 
I opened the code to this addon and you sir are a psycho. 4000+ characters in one single fucking line? Are you crazy???
goo gunk farmer 2023 年 7 月 22 日 上午 10:42 
y'all didn't even read the description, all your answers are there.
KillerBane 2023 年 4 月 6 日 上午 10:58 
can you activate only in 1 player ?
Lazarus_VladTTV 2022 年 6 月 2 日 上午 3:02 
could you help me to set this to See Team Mates Only please??
我他喵射爆 2022 年 4 月 19 日 上午 9:18 
so so so so fucking nice desc!!!!!!!!!!!!!!
Lazarus_VladTTV 2022 年 4 月 15 日 下午 9:35 
is there a way I could always see Halos except through walls?
76561198887954172 2021 年 1 月 28 日 上午 3:21 
thank you so much!
i was realy looking for this!
i want glow 2 ragdolls with each other and this do my work!