Garry's Mod

Garry's Mod

253 ratings
Glowing Player Halos
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
1.688 KB
7 Mar, 2014 @ 12:02am
19 Jun, 2014 @ 2:43pm
10 Change Notes ( view )

Subscribe to download
Glowing Player Halos

Description
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~
Popular Discussions View All (1)
0
28 May, 2019 @ 8:38pm
NPC Glow Colors
Pyri
66 Comments
Ready 2 Oct, 2024 @ 1:23pm 
is it compatible with lambdaplayers?
iceman_twitch 1 Oct, 2024 @ 10:46am 
@Zsonal use something to remove minimize from code. He used minize to do this. Like in Javascript and etc.
Zsonal 11 Sep, 2023 @ 5:46am 
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 22 Jul, 2023 @ 10:42am 
y'all didn't even read the description, all your answers are there.
Cooler 6 Apr, 2023 @ 10:58am 
can you activate only in 1 player ?
Lazarus_VladTTV 2 Jun, 2022 @ 3:02am 
could you help me to set this to See Team Mates Only please??
我他喵射爆 19 Apr, 2022 @ 9:18am 
so so so so fucking nice desc!!!!!!!!!!!!!!
Lazarus_VladTTV 15 Apr, 2022 @ 9:35pm 
is there a way I could always see Halos except through walls?
76561198887954172 28 Jan, 2021 @ 3:21am 
thank you so much!
i was realy looking for this!
i want glow 2 ragdolls with each other and this do my work!
☠Simon☠ 29 Mar, 2020 @ 9:39pm 
FPS R.I.P