Raised This Month: $ Target: $400
 0% 

[TF2] Player-Following Annotations Snippet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
Old 12-30-2013 , 12:31   Re: [TF2] Player-Following Annotations Snippet
Reply With Quote #1

Quote:
Originally Posted by Mitchell View Post
Mind explaining how the visibility Field works?
I'm not really sure how, that's more or less Friagram's area of expertise. The code was taken from his gravestone plugin, and modified so it didn't use a convar. For some reason though, the annotations would stay visible even if you were to noclip WAY out into the void of a map.

The original visibility bitstring code that is commented out at the bottom, I believe that worked.

I'm no expert in this annotation and bitstring stuff, but I just love the idea of it. I mean, it could be used in plugins like VS Saxton Hale/Freak Fortress 2 (i.e. when the boss is visible to a player, have an annotation follow the boss that says the bosses name, such as "Saxton Hale!" or "Horsemann Jr!")

EDIT: Oh, and as mentioned in the main post, my code is a tad wonky, so if an admin spawns, the tag becomes visible to people. But if an admin dies (with the player_death code uncommented) all the annotations on every admin disappear. From there, an admin has to respawn for the tag to become visible. I have no clue how to make annotations with differential IDs so that if Admin A dies, the annotations on Admin B/C/etc don't disappear from everyone's view.

Last edited by 404UserNotFound; 12-30-2013 at 12:39.
404UserNotFound is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode