Player Status Icons

If you liked this item, please rate it up on Steam Workshop page.

Author: Haaax

Last revision: 16 May, 2022 at 21:10 UTC

File size: 36.86 KB

On Steam Workshop

Description:
What is this?

This addon will show what players are doing in the form of an icon above their heads.

Features

Only the server is required to have this addon, it will work properly for any player that joins – Contains no additional models or sounds, it’s just a script.
(The icons (Silk icons[www.famfamfam.com]) are built into the game.)

A client settings menu can be found under Spawnmenu/Utilities/User/Player Status Icons where you can set which icons you want to see, and more.

Icons
In hierarchical order (increasing):

  • | Is AFK (A timestamp will also appear)
  • | Is using any kind of VGUI
  • | Is typing in chat (Might not work with custom chatboxes)
  • | Is in Spawnmenu
  • | Is in main menu
  • | Is Alt-tabbed (game window out of focus) (doesn’t work on macOS clients)
  • | Is timing out (lost connection to the server)

Icons fade away when they are too small for recognition. (e.g. You’re too far away.)

Convars

Server:

  • psi_sv_enabled 1/0 – Main power switch for the addon
  • psi_afk_timelimit 3 – [minutes] Sets the timelimit for the AFK flag to activate and the timestamp to appear

Client:

  • psi_cl_enabled 1/0 – Clientside power switch
  • psi_privacy_mode 1/0 – Only report AFK status to other players
  • psi_show_**** 1/0 – These convars will toggle specific icons
  • psi_height_offset 15 [source units] – Sets the overhead offset distance of the icons

Good to know
  • It logs nothing at all.
  • Supports cloaking for ULX and Maestro (might work with other admin mods too).
  • Works best with humanoid playermodels, though it will try to render icons somewhere over the player if it can’t find a head attachment.
  • Currently there is no efficient way of detecting if a player is in Steam overlay, so that is not indicated.
  • For obvious reasons, this addon doesn’t load in singleplayer.
  • There are no status messages – This addon doesn’t spam your chatbox.
  • This addon was tested and made for Sandbox, I have no idea how / if it will work in other gamemodes.


Thanks to Phulax for assisting in the workshop icon design.
Thanks to Abuyin for helping me shoot some pictures for workshop.
Thanks to Pr0Face40 for helping me test the addon.

Report bugs, or request features on GitHub[github.com]