A small simple script
This is a simple and relatively small script that displays text above players, showing if they are unfocused from the game right now or not.
Can be turned off and on with cl_unfocused_tags
Unfocused Tags allows you to disable the text rendering on specific or all individuals by using a clientside hook on clients named ShouldDrawUnfocus
.
This hook passes a Player
as it's first argument and returning false
stops the rendering on all or a specific individual.
Two shared functions exists named PLAYER:GetFocus()
and PLAYER:HasFocus()
returning true or false.
A serverside function named PLAYER:SetFocused()
exists, however it's pointless as it's overriden almost instantly unless stopped and mainly used for debugging
Feel free to create a Pull request for anything odd / bad / whatever.