Raised This Month: $ Target: $400
 0% 

L4D - Display Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Plugin ID:
663
Plugin Version:
1.2
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Display the damage that the player did.
    Old 12-07-2008 , 18:17   L4D - Display Damage
    Reply With Quote #1

    Displays the damage that the player did in 3 modes and resets the count when he dies.

    ConVars:
    sm_display_damage_ads : Enables Display Damage to advertise to players.
    sm_display_damage_enabled : Enables Display Damage to players.
    sm_display_damage_default : Default Display Damage mode. 1 = all; 2 = damage done; 3 = damage token; any other = no display.
    sm_display_damage_delay : Minimum delay between damage displays.
    sm_display_damage_mode : Mode to display damage to players. 1=Hint Text; 2=Center Text; 3=Chat Text;
    sm_display_damage_version : Version of Display Damage plugin.

    Player Commands:
    sm_displaymode <0/1/2/3> (If not set goes to sm_display_damage_default)

    V1.2:
    Convar Added: sm_display_damage_delay and sm_display_damage_mode.
    Ads Fix: Now it says only "Say !displaymode <0/1/2/3> to change the damage display mode.".
    V1.1:
    BugFix: Tank kill extra dmg.
    ConVar Added: sm_display_damage_ads
    Improve: sm_displaymode is announced with ads.
    V1.0:
    Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (displaydamage.sp - 13294 views - 5.9 KB)

    Last edited by Sammy-ROCK!; 12-13-2008 at 16:52. Reason: Update
    Sammy-ROCK! is offline
    meeek
    Junior Member
    Join Date: Dec 2008
    Old 12-07-2008 , 22:30   Re: L4D - Display Damage
    Reply With Quote #2

    Works as should. So far have seen 1 glitched value with tank. Once The tank died my damage to it suddenly increased by about 5k. Then after I killed a hunter it showed that damage + previous tank damage.

    EDIT: I also noticed melee damage isn't instantly shown or sometimes ignored if horde is killed by just melee.




    Last edited by meeek; 12-07-2008 at 22:42.
    meeek is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 12-08-2008 , 00:51   Re: L4D - Display Damage
    Reply With Quote #3

    Sick. I actually coded a similar script in ES for our CSS:ZM server a while back so human players shooting zombies would see how much health dmg they did and zombies as they are getting hit would be shown their current health as well.

    Seems cool will have to try it out.
    retsam is offline
    meeek
    Junior Member
    Join Date: Dec 2008
    Old 12-08-2008 , 02:13   Re: L4D - Display Damage
    Reply With Quote #4

    This plugin has way too many bugs and bad ways its coded. It seems the damage to enemy is calculated with the damage done to the horde when switching teams. It creates damage of the tens to hundreds of thousands.

    Also, the announcing of the plugin and that its made by you is fucking annoying and pointless. There is no need for extra credit and ego points for it to be there. Once is fine, but every 5 mins is really annoying.
    meeek is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-08-2008 , 16:02   Re: L4D - Display Damage
    Reply With Quote #5

    The tank's detah animation actualy restore his hp and fires the hurt event naming the killer. I'll try to fix it. Also Bashing it doesn't damage unless you do it to much. If you don't belive play as boomer and go to front of survivors. Survivors will bash you away and you won't take the dmg unless they shot or if they bash to much you explode.

    Edit: Adding CVar to make ads optional

    Last edited by Sammy-ROCK!; 12-08-2008 at 17:22.
    Sammy-ROCK! is offline
    DemonSeed
    New Member
    Join Date: Dec 2008
    Old 12-09-2008 , 18:24   Re: L4D - Display Damage
    Reply With Quote #6

    Hi there! I was just wondering, is there a way to get it to display in another box instead of using PrintHintText. For example, when one of the other characters kills a special infected, there is a little box on the left hand side, something like "Bill killed smoker". Can we somehow get it to display in that box or at least somewhere on the left or right of the screen?
    DemonSeed is offline
    meeek
    Junior Member
    Join Date: Dec 2008
    Old 12-10-2008 , 01:25   Re: L4D - Display Damage
    Reply With Quote #7

    Quote:
    Originally Posted by DemonSeed View Post
    Hi there! I was just wondering, is there a way to get it to display in another box instead of using PrintHintText. For example, when one of the other characters kills a special infected, there is a little box on the left hand side, something like "Bill killed smoker". Can we somehow get it to display in that box or at least somewhere on the left or right of the screen?
    Change the PrintHintText to either PrintToChat or PrintCenterText. I preferably use center for all horde.
    meeek is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-10-2008 , 06:49   Re: L4D - Display Damage
    Reply With Quote #8

    Actualy it'd spam Chat if you use PrintToChat. Also PrintCenterText would be small and the feeling wouldn't be the same of as HintText.
    Sammy-ROCK! is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 12-11-2008 , 17:53   Re: L4D - Display Damage
    Reply With Quote #9

    Displaying damage on every hurt event will always spam. You should increment a damage variable and only display the damage done in longer intervals using a timer. Then clear the damage variable in the callback for the next display.

    Not sure if that would work better or not, but would lessen the spam.
    Antithasys is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-12-2008 , 18:03   Re: L4D - Display Damage
    Reply With Quote #10

    I could make it display damage only if it hasn't been displayed in the last second or w/e. That's not hard.

    Edit: I did it and added admin the choice of how it'll display damage.
    sm_display_damage_mode : Mode to display damage to players. 1=Hint Text; 2=Center Text; 3=Chat Text;

    Last edited by Sammy-ROCK!; 12-12-2008 at 19:33.
    Sammy-ROCK! 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:37.


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