View Single Post
Author Message
Scuzzy
Senior Member
Join Date: Oct 2007
Old 11-13-2008 , 22:49   [Hidden:Source] ScuzTools Spectator Hidden Trail
Reply With Quote #1

Written for Hidden:Source Beta 4b

Code:
/*
 * [Hidden:Source] ScuzTools Hidden Color Trail v1.0 
 *
 * Description:
 *  Makes Subject 617 visible to the spectator team as a color trail which also tells them the health of the hidden.  Green=good, yellow/orange=not so good, red=almost dead.
 *
 * Changelog
 *  v1.0.0
 *   Initial release.
 *  v1.0.1
 *   Moved max client call to mapstart.
 *  v1.0.2
 *   Reorganized Clean Client to try and fix trail bug.
*/
Saw something like this on a private server and was turned down by the author to be allowed to use it. So, I wrote my own. Big time thanks to SAMURAI16 for all his help in learning to use the BeamFollow command.

The hidden will be Green when they have little to no damage, yellow/orange when they have take around half to 60%, and Red when things are getting bad.



Known Bugs:
(Might be fixed) Occasionally the trail will follow a player after they are hidden and become Iris. I've tried to combat this by using the KillPlayerAttachments function, but even though the Timer creating the trail is toast and the trail really should fade, it does not. It eventually does go away, but can be a distraction sometimes.
Example Picture (ovr_docks, with one damaged hidden and one not so damaged hidden):
Attached Files
File Type: sp Get Plugin or Get Source (scuztools_hdnspec.sp - 3628 views - 5.9 KB)
File Type: smx scuztools_hdnspec.smx (3.9 KB, 1081 views)

Last edited by psychonic; 03-23-2010 at 12:17. Reason: Reason: changed "game" field to newly created category "The Hidden"
Scuzzy is offline