Quote:
Originally Posted by Mitchell
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.