Raised This Month: $70 Target: $400
 17% 

[L4D2] Infected Hud Health Bar


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    9 
    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 - 452 views - 20.5 KB)

    Last edited by xZk; 10-14-2020 at 20:39. Reason: v1.2
    xZk is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 02-17-2020 , 01:47   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #2

    Quote:
    Plugin failed to compile! Please try contacting the author.
    strikeraot is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 02-17-2020 , 12:06   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #3

    The plugin uses sdktools and sdkhooks.
    You need to compile the plugin locally.
    BloodyBlade is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 02-17-2020 , 12:09   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #4

    @xZk, please download the compiled version in your post.
    BloodyBlade is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 02-17-2020 , 15:14   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #5

    fixed, had been changed to the v1.0 compiler...changed to 1.9
    xZk is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 02-17-2020 , 18:25   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #6

    nice plugin xZk,

    I did a similar one, but didn't share here yet, because I want to make it playable for versus making it visibility team-based, Mastermind had given me some tips but I didn't have time to implement by now.

    As a suggestion, for future releases, add the hud also to the witch.
    __________________
    Marttt is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 02-18-2020 , 12:55   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #7

    Thanks, I did not want to share it before because it was in conflict with the Infected Hud Mastermind plugin, but the 2 work well , about the witch possibly in the next update I will add it, in addition to other things to better customize the hp bar for each class of infected
    xZk is offline
    MasterMind420
    Veteran Member
    Join Date: Nov 2010
    Old 02-18-2020 , 17:05   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #8

    Quote:
    Originally Posted by xZk View Post
    Thanks, I did not want to share it before because it was in conflict with the Infected Hud Mastermind plugin, but the 2 work well , about the witch possibly in the next update I will add it, in addition to other things to better customize the hp bar for each class of infected
    Honestly if you wanted to add numbers as well as an option I would take no offense, merge the 2 if you want. I don't code as much as I used to so it's all good.
    MasterMind420 is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 02-22-2020 , 15:19   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #9

    Quote:
    Originally Posted by MasterMind420 View Post
    Honestly if you wanted to add numbers as well as an option I would take no offense, merge the 2 if you want. I don't code as much as I used to so it's all good.
    I think I explained myself badly, what I meant was that this plugin did not know how to make it compatible with yours before, without conflicts, since if one worked the other did not, but now both plugins could work together independently of each other

    Last edited by xZk; 02-22-2020 at 15:37. Reason: my english is ...:s
    xZk is offline
    Voevoda
    Senior Member
    Join Date: Aug 2016
    Old 04-16-2020 , 16:34   Re: [L4D2] Infected Hud Health Bar
    Reply With Quote #10

    does not work
    Voevoda 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 05:02.


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