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

[L4D2] Health Glows (1.0.1, 07/02-2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Plugin ID:
2708
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives the Survivors a health glow around them
    Old 12-15-2011 , 09:39   [L4D2] Health Glows (1.0.1, 07/02-2011)
    Reply With Quote #1

    Health Glows

    About:
    A much requested plugin by many player and owners from my community server.
    Its simple yet useful for servers with increased survivors.

    I always said I had no intention of releasing it. Not because I want to keep the code a secret (please its like 300 lines or less and I have posted many, many times on how to do it yourself) but rather because it was "not up to code" if you pardon the pun, with the rules around here.
    However it is Christmas only once a year so what the hell. I spend a few mins to clean up the code so everybody could enjoy it

    Straight forward plugin, it uses the glow functions from L4D2 in order to show the other survivors what your current health by the color of your glow.

    By default its green glow for more than 39 hp, yellow for more than 24 hp, red for 24 or less hp and white glow for survivors that are black and white.

    Description:
    Gives the Survivors a health glow around them.

    Known Problems / Things to Notice:
    • To change the colors of the glows or their type, you will have to recompile. I could have put cvars for each and every glow state, type, color, flashing, range and min range but that would mean the plugin would produce around 30 or so cvars to do something as simple as displaying glows.

      I felt it was a bit unnecessary so instead they are easy to edit in the source file. Open the healthglow.sp source file and you will find in the top all of the defines required to change the glow color and so on.
    • Currently there is a bug with Versus mode. Infected players will sometime show a health glow despite many player team checks. Reason why is not known at this moment, however a quick fix for this would be to recompile the plugin without green health glows.
    • L4DStocks is required if you wish to compile a version yourself. You can get it here.

    Changelog:
    Code:
    Version 1.0.1 - 07/02-2011
    ~ Fixed yellow and red glow being displayed to early. Yellow glow is now displayed at 39 HP and red at 24 HP.
    ~ Fixed invalid client index on update glow event.
    ~ Reordered the script a bit.
    ~ Updated glow function calls to the newest L4DStocks version
    
    Version 1.0.0 - 15/12-2011
    Initial release
    The ZIP file is for the source of the plugin, not required for running the plugin.
    Attached Files
    File Type: smx l4d2healthglow.smx (7.5 KB, 2950 views)
    File Type: zip L4D2 Health Glow.zip (23.3 KB, 3384 views)

    Last edited by Mr. Zero; 02-22-2012 at 04:21.
    Mr. Zero is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 12-15-2011 , 10:29   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #2

    Сool, are you reading my mind?))) I wanted to do something like that. Nice job thanks, like it)
    __________________
    disawar1 is offline
    Zbeer
    SourceMod Donor
    Join Date: Aug 2010
    Old 12-15-2011 , 12:20   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #3

    Thank you!
    Zbeer is offline
    h401019
    New Member
    Join Date: Oct 2011
    Old 12-19-2011 , 22:54   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #4

    i want a plugins can clear see Health Glows in realism...,Thx
    h401019 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 12-19-2011 , 23:13   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #5

    There's a cvar to turn on and off the glow in realism, do a google search and look through the cvar lists...
    MasterMind420 is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 12-22-2011 , 13:45   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #6

    looks like those stocks need L4D2_RemoveEntGlow and L4D2_IsPlayerSurvivorGlowEnable in order for someone to compile the plugin
    adrianman is offline
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 12-22-2011 , 23:17   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #7

    Quote:
    Originally Posted by adrianman View Post
    looks like those stocks need L4D2_RemoveEntGlow and L4D2_IsPlayerSurvivorGlowEnable in order for someone to compile the plugin
    Doh, my bad.

    Updated the stocks with the functions needed.
    Mr. Zero is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 12-23-2011 , 19:01   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #8

    thanks,very much appreciated
    adrianman is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 12-23-2011 , 20:49   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #9

    one bug i found,infected ghosts are shown too,i was able to see a green ghost shape of a bot hunter as he was about to spawn there
    adrianman is offline
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 12-24-2011 , 18:13   Re: [L4D2] Health Glows (1.0.0, 15/12-2011)
    Reply With Quote #10

    Quote:
    Originally Posted by adrianman View Post
    one bug i found,infected ghosts are shown too,i was able to see a green ghost shape of a bot hunter as he was about to spawn there
    Infected should never be colored, versus mode?

    I have had a bug where the glow sticks around after the player leaves, leaving a glow hunter silhouette. Not sure how to fix it as removing glow on OnClientDisconnect throws a error about net prop not existing.
    Mr. Zero is offline
    Reply



    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 01:12.


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