Garry's Mod

Garry's Mod

222 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
Mar 7, 2014 @ 12:02am
Jun 19, 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
May 28, 2019 @ 8:38pm
NPC Glow Colors
Pyri
65 Comments
Zsonal Sep 11, 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???
popeyeschickensandwich Jul 22, 2023 @ 10:42am 
y'all didn't even read the description, all your answers are there.
KillerBane Apr 6, 2023 @ 10:58am 
can you activate only in 1 player ?
PopcornDaddy102 Jun 2, 2022 @ 3:02am 
could you help me to set this to See Team Mates Only please??
solomon Apr 23, 2022 @ 9:57am 
uhhh i might just be a retard, but how do you get this to work at all?
我他喵射爆 Apr 19, 2022 @ 9:18am 
so so so so fucking nice desc!!!!!!!!!!!!!!
PopcornDaddy102 Apr 15, 2022 @ 9:35pm 
is there a way I could always see Halos except through walls?
76561198887954172 Jan 28, 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☠ Mar 29, 2020 @ 9:39pm 
FPS R.I.P
Bob Saget Feb 2, 2020 @ 4:01pm 
Having an issue with this.
Players who arent on a team still glow a solid white and can be seen through walls.
So it's counting no team as a team.