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

[L4D2] Infected Hud Health Bar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Plugin ID:
6947
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Show HP bar of infecteds on instructor hint hud
    Unapprover:
    Reason for Unapproving:
    Author no longer supports this plugin
    Old 02-17-2020 , 00:12   [L4D2] Infected Hud Health Bar
    Reply With Quote #1

    Intro
    This plugin is inspired by Infected Health Gauge plugin, this will allow to give relative knowledge of the health of the infected through a health bar
    Details
    The health bar is shown on the hud "env_instructor_hint", through a text within it, you can change the size of the bar width, as well as the text that represents the points of damage and health.

    Cvars:
    PHP Code:
    // 0:Disable , 1:Enable Plugin
    // -
    // Default: "1"
    l4d2_infected_hudhpbar_activated "1"

    // 0:Disable, 1:Enable Show Hud HP Bar for Boomer
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_boomer "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Charger
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_charger "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Hunter
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_hunter "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Jockey
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_jockey "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Smoker
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_smoker "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Spitter
    // -
    // Default: "0"
    l4d2_infected_hudhpbar_on_spitter "0"

    // 0:Disable, 1:Enable Show Hud HP Bar for Witch
    // -
    // Default: "1"
    l4d2_infected_hudhpbar_on_witch "1"

    // 0:Disable, 1:Enable Show Hud HP Bar for Tank
    // -
    // Default: "1"
    l4d2_infected_hudhpbar_on_tank "1"

    // Set range Instuctor Hint For Tank (0 = infinite range)
    // -
    // Default: "750.0"
    // Minimum: "0.000000"
    // Maximum: "750.000000"
    l4d2_infected_hudhpbar_range "750.0"

    // Set time out in seconds HP Bar (0 = no time out)
    // -
    // Default: "3.0"
    // Minimum: "0.000000"
    l4d2_infected_hudhpbar_showtime "3.0"

    // Set width size for health bar
    // -
    // Default: "10"
    // Minimum: "2.000000"
    // Maximum: "100.000000"
    l4d2_infected_hudhpbar_size "10"

    // Set text for damage point
    // -
    // Default: "··"
    l4d2_infected_hudhpbar_textdmg " "

    // Set text for health point
    // -
    // Default: "-"
    l4d2_infected_hudhpbar_texthp "-"

    // Set text for dead hint ("" = no dead hint)
    // -
    // Default: ""
    l4d2_infected_hudhpbar_textdead ""

    // Set RGB color for full HP
    // -
    // Default: "0,255,0"
    l4d2_infected_hudhpbar_colorfull "0,255,0"

    // Set RGB color for half HP
    // -
    // Default: "255,255,0"
    l4d2_infected_hudhpbar_colorhalf "255,255,0"

    // Set RGB color for critic HP
    // -
    // Default: "255,0,0"
    l4d2_infected_hudhpbar_colorcritic "255,0,0" 
    Credits:
    MasterMind420: for his code [L4D2]Infected Hud plugin
    BHaType: for his code Hint plugin
    Silvers: for his useful tips [TUT]SourcePawn Scripting - Tips, Basics to Advanced


    Changelog:
    Code:
    2020-10-14 (v1.2)
    * Added new cvar for enabling HP Bar on Witch
    * Added CFG file for customize HP Bar for each Special Infected
    
    2020-02-22 (v1.1)
    * Fixed set custom characters in cvars text points
    * Added new cvar for hint on infected dead
    * Added new cvars for custom colors on HP Bar
    
    2020-02-17 (v1.0)
    * Initial release.
    Rant:
    -put l4d2_infected_hudhpbar_config.cfg in "/addons/sourcemod/data/" folder if this file is not autogenerated.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_infected_hudhpbar.sp - 1925 views - 20.5 KB)

    Last edited by xZk; 10-14-2020 at 20:39. Reason: v1.2
    xZk 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 15:47.


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