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

[L4D] Infected HUD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Durzel
Member
Join Date: Aug 2008
Plugin ID:
708
Plugin Version:
1.0.0.4
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides info to the Infected team about the status of their teammates, how long left til they spawn, how long tank has left to live when on fire
    Unapprover:
    Reason for Unapproving:
    Unapproved per author's request, implemented by Valve
    Old 01-07-2009 , 05:29   [L4D] Infected HUD
    Reply With Quote #1

    Requires: SM 1.2+ (as it's for L4D)

    What it does:
    This plugin is designed to make it easier for those on the Infected team to work together without the current near total dependancy on teamspeak or checking the scoreboard every few seconds to see the status of your teammates. I figured since the survivors have a HUD, the Infected team should too.

    This plugin - when active - will present a HUD in the form of a menu (only way I could see of doing it without loads of information scrolling up the screen) which gives the current status of your teammates, specifically:
    • How much HP (%) they have
    • What class they're playing as
    • How much time (seconds) they have left until they spawn
    • Their status (Alive, Dead, Spawning)
    In addition - if you are playing as the Tank and you end up on fire it will tell you how long you have left before you die automatically from the flames.

    Configuration:
    There is no pre-configuration required, just install the plugin and it will be active when loaded.

    cvars:
    • infhud_version - tells you the current version of the plugin
    • infhud_enable - switches plugin on or off server-wide (0 = disabled, 1 = enabled)
    • infhud_announce - toggles whether plugin announces itself to clients that join the infected team
    Commands:
    Type !infhud during the game to toggle the HUD on (default) or off for yourself, for the duration of your time on the server.

    Version history:
    1.0.0.0 - Initial release
    1.0.0.1 - Removed "vote/menu active" debug message, modified cvar names as per plugin approval thread
    1.0.0.2 - Added client preference for showing HUD, cvar to toggle whether plugin announces itself to clients
    1.0.0.3 - Interim version released to testers
    1.0.0.4 -
    • HUD on/off setting is preserved across map changes for all clients.
    • Removed hard-coded infected HP values - the plugin will now correctly monitor the various cvars that control special infected HP and adjust the HUD HP % accordingly.
    • Tank burn duration no longer hard-coded (uses cvar)
    • Plugin will now detect what game mode (COOP or VERSUS) a server is running in and disable or enable itself accordingly.
    • Various bugfixes, timer optimisations & code cleanup

    Screenshot:




    TODO:
    • Optimisations (this is my first SourceMod - comments/suggestions welcome)
    • Customisable repositioning of HUD (not sure this is possible given how I am kludging a menu-panel to get it to work now)
    • (IDEA) Infected team "awards" at end of round - e.g. MVP, highest pounces, etc.
    Attached Files
    File Type: sp Get Plugin or Get Source (infhud.sp - 1932 views - 26.1 KB)

    Last edited by Durzel; 01-11-2009 at 16:36. Reason: Plugin update
    Durzel is offline
     



    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 07:03.


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