Raised This Month: $100 Target: $400
 25% 

[L4D/L4D2] HP Rewards


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: ♫ Harmony ♫
Plugin ID:
5138
Plugin Version:
2.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Rewards full health after killing Tanks and Witches, and additional health for other SI.
    Old 04-15-2016 , 04:55   [L4D/L4D2] HP Rewards
    Reply With Quote #1

    Hi, everyone. It's been so long since I shared many modified plugins. This time, I made a simple one (Yes, it's original) which only can be done with simple coding.

    So what this plugin does is in events like Tank fights, killing the Tank will grant all survivors full HP and their "m_currentReviveCount" entprops revert to 0, giving them more chance to live, in witch spawns, the one who kills the Witch will be granted with rewards, and for killing SI, only additional health is rewarded.

    Yup, health rewards for every player (including bots) but it's such a waste for those who are incapacitated as I excluded them so they can't be granted with these special rewards.

    This is great for those servers who are running Expert Coop/Realism. It really makes sense if players get rewards instead of nothing.

    Quote:
    Changelog: 04-15-16
    - First release.
    - Minor code correction.
    - Silly me again, I forgot that "m_zombieClass" entprop for tanks in two games are different. [FIX] Please download hp_rewards-l4d for L4D server owners/gamers.

    04-19-16
    - Added some of my [L4D/2] Black And White Notifier coding because it doesn't remove the glows from players after killing Tanks.

    05-21-16 and 05-29-16
    - Major updates in last post.
    If you ever encountered any bugs, have any reports or feedbacks, please let me know.
    Attached Files
    File Type: sp Get Plugin or Get Source (hp_rewards.sp - 650 views - 8.0 KB)
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"

    Last edited by cravenge; 06-04-2016 at 03:28.
    cravenge is offline
    Sectus
    Junior Member
    Join Date: May 2016
    Old 05-19-2016 , 15:16   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #2

    Hi there. Should I use them both or one is for left 2 and another for left 1? Thank you
    Sectus is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: ♫ Harmony ♫
    Old 05-20-2016 , 01:48   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #3

    The one with -l4d is for L4D only. The other one without is for L4D2.
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: ♫ Harmony ♫
    Old 05-21-2016 , 07:06   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #4

    Major update to 1.3:

    ==> Killing other special infected will grant you additional health only: 3 for smokers, spitters, and, jockeys. 1 for boomers, and 5 for hunters and chargers.
    ==> When granting additional health, the distance between the SI and the one who killed it is included.

    TO DO:
    1. Add convars for any modifications of the values that suits one's liking,
    2. Add convars to enable/disable additional health granting for specified SI.
    3. (Optional) Add hint box notifications to show how much additional health you received.
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"

    Last edited by cravenge; 05-21-2016 at 10:02.
    cravenge is offline
    KillerBudgie
    Junior Member
    Join Date: Apr 2015
    Location: United Kingdom
    Old 05-24-2016 , 08:10   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #5

    This reminds me of the Vampire Death Card used in Call of Duty:World at War.
    "Steal life from your prey. Recharge your health by getting kills."
    KillerBudgie is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: ♫ Harmony ♫
    Old 05-29-2016 , 07:33   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #6

    Hello, I'm back! Majorly updated to 2.0:

    ==> Distance calculation now fixed and improved.
    ==> Added cvars to toggle things to the way you like.
    ==> Added notifications to see how much health you earned.
    ==> Added L4D support. No longer separate.
    ==> Thoroughly tested, working flawlessly.
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"

    Last edited by cravenge; 05-29-2016 at 07:34.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: ♫ Harmony ♫
    Old 06-04-2016 , 03:27   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #7

    Distance now reduced to 10000 because I discovered when testing even if your target is so so far away, you will be awarded with ranging from 20 to 50. Weird? Maybe, 20000 wasn't the right distance.
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"
    cravenge is offline
    KillerBudgie
    Junior Member
    Join Date: Apr 2015
    Location: United Kingdom
    Old 06-12-2016 , 12:04   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #8

    Is there a way to change how much HP you receive after killing the Tank? As I think that restoring it to full makes the game too easy.
    KillerBudgie is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: ♫ Harmony ♫
    Old 06-13-2016 , 00:53   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #9

    Yes. I'll make it ETA 5 hours from now because I'm at work.
    __________________

    "Juunen go no watashi e, ima wa shiawase de shou ka?"
    cravenge is offline
    Crasher_3637
    Senior Member
    Join Date: May 2012
    Location: United States
    Old 11-18-2017 , 18:03   Re: [L4D/L4D2] HP Rewards
    Reply With Quote #10

    Updated under Sourcemod v1.8.x.

    - Converted to new syntax.
    - Added the prefix "l4d_" to each cvar and the config filename.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_hp_rewards.sp - 22 views - 7.8 KB)
    __________________
    Crasher_3637 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 17:45.


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