Raised This Month: $12 Target: $400
 3% 

[Hidden:Source] ScuzTools Spectator Hidden Trail


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Scuzzy
Senior Member
Join Date: Oct 2007
Plugin ID:
631
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
The Hidden: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows spectators to see the hidden a trail of color that also tells you how healthy the hidden is. It changes from Green with near full health, to Yellow/Orange with mid health, and Red to very little health.
    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 - 3617 views - 5.9 KB)
    File Type: smx scuztools_hdnspec.smx (3.9 KB, 1066 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
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 11-14-2008 , 05:09   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #2

    just so you know, GetMaxClients() in OnPluginStart() is unreliable when the server is re-starting since it returns 0 for some reason.

    console:
    Code:
    ...
    L 11/14/2008 - 11:14:11: -------- Mapchange to hdn_docks --------
    [Trailers] [OnPluginStart] MaxClients: 0
    couldn't exec skill1.cfg
    Executing dedicated server config file
    Error: Material "sprites/bubble" : proxy "AnimatedTexture" not found!
    Error: Material "sprites/glow_test02" : proxy "lampbeam" not found!
    [Trailers] [OnMapStart] MaxClients: 9
    appdatacache.cpp (311) : Assertion Failed: !"Implement me"
    Server logging enabled.
    ...
    hsm_trailers.sp
    Code:
    ...
    public OnPluginStart()
    {
    ...
    
    	g_iMaxClients = GetMaxClients();
    	PrintToServer("[Trailers] [OnPluginStart] MaxClients: %i", g_iMaxClients);
    ...
    }
    
    public OnMapStart()
    {
    	g_iHiddenTrail = PrecacheModel("materials/sprites/crystal_beam1.vmt");
    	g_iMaxClients = GetMaxClients();
    	PrintToServer("[Trailers] [OnMapStart] MaxClients: %i", g_iMaxClients);
    }
    ...
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 11-14-2008 at 05:12.
    paegus is offline
    Scuzzy
    Senior Member
    Join Date: Oct 2007
    Old 11-14-2008 , 06:26   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #3

    Fixed. Thanks!

    Edit: hsm_trailers.sp? Is that a copy of the plugin I saw, or did you start writing own version too after he said no in the hidden-source forums?

    Scuzzy

    Last edited by Scuzzy; 11-14-2008 at 06:35.
    Scuzzy is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 11-14-2008 , 07:42   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #4

    started it ages ago but got stuck on the beams not disappearing on round-start and lost motivation.

    e: you forgot to move the timer array clear as well. though aren't they automatically INVALID_HANDLE when you create them?
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 11-14-2008 at 07:47.
    paegus is offline
    Scuzzy
    Senior Member
    Join Date: Oct 2007
    Old 11-14-2008 , 09:54   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #5

    Quote:
    Originally Posted by paegus View Post
    started it ages ago but got stuck on the beams not disappearing on round-start and lost motivation.

    e: you forgot to move the timer array clear as well. though aren't they automatically INVALID_HANDLE when you create them?
    I didn't move that because it's just the initial run, it doesn't really need to happen on map-change. When a round begins it'll clear out anything that may exist from previous rounds, even after a map change.

    We found in testing last night that the beams usually only when the hidden wins. If the hidden dies, he doesn't get a trail. Gonna try a few ways to get that fixed tonight...

    Scuzzy
    Scuzzy is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 11-14-2008 , 17:54   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #6

    Support for TF2?
    Chris-_- is offline
    Scuzzy
    Senior Member
    Join Date: Oct 2007
    Old 11-14-2008 , 19:17   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #7

    This is fairly game specific to Hidden... not sure what benefit it would give you in TF2. Can you tell me exactly what you'd see this being used for?

    Scuzzy

    Last edited by Scuzzy; 11-14-2008 at 19:20.
    Scuzzy is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 11-14-2008 , 19:19   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #8

    Think he wants the trail with HP-based color.

    Chris, look for the Evil Admin: Trails plugin. It does team color, but you might be able to request an hp-color.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    Grifza
    Junior Member
    Join Date: Jun 2009
    Location: South Africa
    Old 06-07-2009 , 08:58   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #9

    Were the trail issues ever fixed?

    I'd like to run the plugin, but not if there are still the issues mentioned above involved...

    Grifza is offline
    B!PP
    Member
    Join Date: Sep 2009
    Old 09-26-2009 , 10:45   Re: [Hidden:Source] ScuzTools Spectator Hidden Trail
    Reply With Quote #10

    I'm gonna remove the plugin from the FrenchieFresh server, seen that sometimes the trail stays :

    [IMG]http://img43.**************/img43/8990/buguw.jpg[/IMG]
    B!PP is offline
    Reply


    Thread Tools
    Display Modes

    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 06:38.


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