That's exactly what it is. Nametags.
Was requested by a friend of mine but got a little carried away and kept addding to it. After a few failed tries and hours of bugfixing it's finally releaseworthy. It's nothing big, but I thought it was worth it.
[code]
# Update 1.3
Added option to not show invisible players.
# Update 1.2
Sort of fixed the lag issue. Look in the settings for more information.
# Update 1.1
Fixed bug when player's tags entered the margin, making it visible no matter the distance[/code]
There's really not much to say about it, pictures speak for themselves.
[img]http://garrysmod.org/img/cache/3/9/9/4/3/b0e6e37dc3edd0c5c8e98338edc1e363.jpg[/img] [img]http://garrysmod.org/img/cache/3/9/9/4/3/5e8b93296afd5f1eb03018dfcbcec2cb.jpg[/img]
[B]Garrysmod.org[/B]
[url=http://www.garrysmod.org/downloads/?a=view&id=40788][img]http://www.garrysmod.org/img/?t=dll&id=40788[/img][/url]
[B]Mirror[/B]
[URL=http://errur.com/f/download/4880_Nametags.zip]Nametags 1.3 (0.01mb)[/URL]
There's also an easy-to-use settings file that lets you edit some key variables without getting you hands dirty.
[lua]
NAMETAG_MAX_VISIBLE_RANGE = 1000 -- Anything less than 255 might fuck up the script. There's no reason to go lower.
-- Default is 1000
NAMETAG_MARGIN = 150 -- This is the area all around the screen in which box will start to fade.
-- Default is 150
-- Recommended is between 50 and 200.
NAMETAG_MINIMUM_WIDTH = 150 -- Minimum width of the tag itself.
--Default is 150
NAMETAG_FONT = "Verdana" -- Font used for the nametags.
-- Default is "Verdana".
-- Use "gm_clearfonts" in the console, or restart the game for changes to take affect.
NAMETAG_MISSING_MATERIAL = "Nametag/missing" -- The material that will be shown for people without avatars. As far as I'm aware, this is only for Bots.
NAMETAG_LAZYNESS = 10 -- Number between 1 and 100. The lazier it is, the more readable it is when players are moving, but as the name suggests it also makes it "Lazy", meaning it takes longer time to reach it's target.
-- Default is 10.
-- Setting this to 1 will put it the way it was before.
-- Setting this to 0 will cause errors, as it's used in division.[/lua]
Lots of thanks to CapsAdmin for the idea, help with debugging and overall helpfulness :v:
Any comments/suggestions/flaming is welcome. Enjoy.
Nice release :D
Damn that's pretty damn cool!
I like a lot. Wonderful work and idea. :D
Very, very awesome.
Works Great!
Sex!
Is it client side?
No, it needs the servers script to detect when a player joins and stuff.
Downloaded and Uploaded :)
Nice release, something useful for once :downs:
I was thinking of making the avatar border and nametag border the same color as the user's team, like in Steam friends. I'm not sure if it'll look good though.
Yay or nay?
They really are friggin' awesome, good job guy.
[QUOTE=The Mathias]I was thinking of making the avatar border and nametag border the same color as the user's team, like in Steam friends. I'm not sure if it'll look good though.
Yay or nay?[/QUOTE]
Yay.
how can i spawm a bot like you?
@topic: looks cool! i`ll download it later
Type "bot" into the console with sv_cheats enabled.
On-topic: Very cool, but would be cooler still if it was clientside. I wouldn't mind losing the caption if it meant you could do that.
Going on my server :D
Superawesomeness.
Mmmmm it would be cool if you could make it appear when you actually look at the person instead of it being above the persons head ;)
[QUOTE=BomBom]Mmmmm it would be cool if you could make it appear when you actually look at the person instead of it being above the persons head ;)[/QUOTE]
Like the text that shows now?
<Playername>
<Health %>
Great release.
[QUOTE=The Mathias]Like the text that shows now?
<Playername>
<Health %>[/QUOTE]
Yeah that would be cool just overwriding the existing info that displays :)
Thing is that almost half the script is the positioning of the tag. Would almost require a complete rewrite :(
There is 1 thing in this addon that annoys me...
If you move your mouse so a person is at the edge of your screen, but further away than the visible radius, their name tag will appear and fade out.
This is the only thing that made me remove this from my server, If you fix this bug (maybe even removing the whole screen edge fade feature) I'll re-add it to my server, because it was awesome.
[B]UPDATE 1.1[/B]
Fixed bug when player's tags entered the margin, making it visible no matter the distance
[QUOTE=rieda1589]There is 1 thing in this addon that annoys me...
If you move your mouse so a person is at the edge of your screen, but further away than the visible radius, their name tag will appear and fade out.
This is the only thing that made me remove this from my server, If you fix this bug (maybe even removing the whole screen edge fade feature) I'll re-add it to my server, because it was awesome.[/QUOTE]
Done :)
Why is this so..laggy? Not like net lag or FPS lag, more like skipping around..it seems to do this a lot on my server.
Thanks :D
Lyoko, It's probably the way the script sets the positions of the nametags, The positions probably don't update every frame.
[QUOTE=Lyoko774]Why is this so..laggy? Not like net lag or FPS lag, more like skipping around..it seems to do this a lot on my server.[/QUOTE]
I know, but there's no way to fix it. It's because I'm using VGUI elements, and every time I set the position, it has to set the position of all it's children. as far as I know, there's no way around this.
Ah.
It's great, by the way. Makes finding players easier. :v:
[QUOTE=The Mathias]I know, but there's no way to fix it. It's becasue I'm using VGUI elements, and every time I set the position, it has to set the position of all it's children. as far as I know, there's no way around this.[/QUOTE]
Don't use VGUI :D
[QUOTE=Conna]Don't use VGUI :D[/QUOTE]
Then how do I include the AvatarImage?
I have thought of this, but without the Avatar, it's just a regular nametag. The avatar was the whole "selling point" of this.
Do you think you can put some extras into it? If so, then can you atleast make it like we could change the teams they are on to a different one. Also, does this require anything but a server, mines a "L" server according to my friends when they jion?
What do you mean? This isn't meant as an admin tool or anything at all, it's just what it says it is, a nametag. If you change the team of a player, the team and color of the nametag will change too. And a server is all you need.
The L stands for "Listen" which just means it's hosted via the menu, and not on a dedicated server.
Sorry, you need to Log In to post a reply to this thread.