Raised This Month: $32 Target: $400
 8% 

[L4D/L4D2] high damage calculate kill enemy


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sk@.@
Senior Member
Join Date: Feb 2010
Location: Hong Kong
Plugin ID:
3075
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 07-09-2012 , 10:53   [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #1

    This is L4D/L4D2 plug-in

    You tried give the zombie high damage,
    but your team man give the zombie last attack??

    This plug-in can eliminate this situation....
    This plug-in will high damage calculate kill enemy

    Sorry from my bad English

    Download link: https://docs.google.com/file/d/0B0aF...tuUWc2N0E/edit

    My Blog (If you like): http://hsk-game.blogspot.hk/
    __________________
    This is my Game-Blog:
    http://hsk-game.blogspot.hk/
    sk@.@ is offline
    Send a message via MSN to sk@.@
    yokomo
    Surprise Ascot!
    Join Date: May 2010
    Location: Malaysia
    Old 07-09-2012 , 11:58   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #2

    Damage multiplier?
    1. With SDK Hook -- https://forums.alliedmods.net/showthread.php?p=1184761
    2. Without SDK Hook -- https://forums.alliedmods.net/showthread.php?p=1066911
    __________________
    Team-MMG CS1.6 Servers:
    ✅ MultiMod -- 103.179.44.152:27016
    ✅ Zombie Plague -- 103.179.44.152:27015
    ✅ Zombie Escape -- 103.179.44.152:27017
    ✅ Klassik Kombat -- 103.179.44.152:27018
    ✅ Boss-Battle -- 103.179.44.152:27019
    yokomo is offline
    sk@.@
    Senior Member
    Join Date: Feb 2010
    Location: Hong Kong
    Old 07-09-2012 , 13:19   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #3

    Quote:
    Originally Posted by yokomo View Post
    This is not set weapon damage....

    If you damage the zombie 500 health
    I damage the zombie 20 health But I last victim the zombie...
    This will I kill the Zombie...

    If you use this plug-in
    This will you kill the Zombie..
    __________________
    This is my Game-Blog:
    http://hsk-game.blogspot.hk/
    sk@.@ is offline
    Send a message via MSN to sk@.@
    yokomo
    Surprise Ascot!
    Join Date: May 2010
    Location: Malaysia
    Old 07-09-2012 , 13:31   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #4

    Oh something like kill assist? ok nice idea too.
    __________________
    Team-MMG CS1.6 Servers:
    ✅ MultiMod -- 103.179.44.152:27016
    ✅ Zombie Plague -- 103.179.44.152:27015
    ✅ Zombie Escape -- 103.179.44.152:27017
    ✅ Klassik Kombat -- 103.179.44.152:27018
    ✅ Boss-Battle -- 103.179.44.152:27019
    yokomo is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 07-09-2012 , 14:06   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #5

    I think I see what this does.

    Spitter has 100 health, right? Let's say I shoot the spitter once in the body with the sniper rifle, which will do 90 damage. The spitter now has 10 health left. And then one of the stupid bots shoots the spitter with a pistol, finishing her off. The bot will get credit for the kill because the bot finished the spitter off, even though I did 90% of the damage to the spitter.

    I believe this plugin will fix that problem, and give me credit for killing the spitter, even though the killing blow was dealt by the bot.

    I imagine this correctly fixes the scoreboard in between chapters, but I have doubts that it affects the final "stats crawl" at the end of the campaign.
    dcx2 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-09-2012 , 14:37   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #6

    Quote:
    Originally Posted by dcx2 View Post
    I imagine this correctly fixes the scoreboard in between chapters, but I have doubts that it affects the final "stats crawl" at the end of the campaign.
    Yeah agreed, this should be made into an SDKHooks version which would properly deal with the damage.

    Nice plugin, always wanted this just never bothered to write.
    __________________
    Silvers is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 07-09-2012 , 14:44   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #7

    Yeah, but you'd want it to work with the "Assist" plugin that announces damages. In fact, I dare say this feature could be wholly integrated into the Assist plugin.

    I'm thinking...in OnTakeDamage, if it would be the killing blow (damage >= health), and the killer hasn't done the most damage, set SI health to (killing blow's damage + 1). This would let the killing blow do full damage to the SI, so that it's counted correctly. Then, in OnTakeDamagePost (after the killing blow's damage would have been dealt), call TakeDamage for 1 point with the attacker set to whoever has done the most damage. This would give them proper credit for killing the SI, and the Assist plugin would still track damage correctly.
    dcx2 is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 07-09-2012 , 21:26   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #8

    In one sentence can conclude what his plugin does....

    The one who did the most damage is the killer
    __________________

    Last edited by alexip121093; 07-09-2012 at 21:26.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 07-09-2012 , 21:33   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #9

    Quote:
    Originally Posted by dcx2 View Post
    Yeah, but you'd want it to work with the "Assist" plugin that announces damages. In fact, I dare say this feature could be wholly integrated into the Assist plugin.

    I'm thinking...in OnTakeDamage, if it would be the killing blow (damage >= health), and the killer hasn't done the most damage, set SI health to (killing blow's damage + 1). This would let the killing blow do full damage to the SI, so that it's counted correctly. Then, in OnTakeDamagePost (after the killing blow's damage would have been dealt), call TakeDamage for 1 point with the attacker set to whoever has done the most damage. This would give them proper credit for killing the SI, and the Assist plugin would still track damage correctly.
    why you need to set the SI health + 1 ? You can simply change the damage to health - 1
    __________________

    Last edited by alexip121093; 07-09-2012 at 21:34.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    sk@.@
    Senior Member
    Join Date: Feb 2010
    Location: Hong Kong
    Old 07-10-2012 , 00:48   Re: [L4D/L4D2] high damage calculate kill enemy
    Reply With Quote #10

    sorry, my English is very bad....

    That will affects the final "stats crawl" at the end of the campaign.

    I have testing..
    __________________
    This is my Game-Blog:
    http://hsk-game.blogspot.hk/
    sk@.@ is offline
    Send a message via MSN to sk@.@
    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 02:38.


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