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

[L4D2] Destructive Hunter (Updated: 3/22/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mortiegama
Senior Member
Join Date: Feb 2010
Plugin ID:
4089
Plugin Version:
1.14
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Old 02-08-2014 , 23:05   [L4D2] Destructive Hunter (Updated: 3/22/14)
    Reply With Quote #1

    General

    This plugin requires Sourcemod 1.5 or higher


    Description

    I'm working on new ideas for my Vicious Infected plugin. Rather than edit the entire plugin I've started to make smaller projects to assess just that particular set of abilities. I figured I'd release the small portions as I come up with them. Maybe even incorporate just the abilities for that particular class to ease the overall plugin.

    Destructive Hunter is designed to add some destructive abilities to the stealthy Hunter. With four abilities currently, the Hunter can deal extra damage for long pounces, reduce damage taken after being hit, lash out with its claws while pounced on a victim, and send shuriken from its claws at a range.


    Cvars

    • l4d_dhm_infernoclaw: Enables the Inferno Claw ability, the Hunter deals more damage to Survivors while on fire.
    • l4d_dhm_infernoclawdamage: Amount of extra damage dealt to Survivors. (Def 3)
    • l4d_dhm_kevlarskin: Enables the Kevlar Skin ability, allows the Hunter to be immune to fire damage.
    • l4d_dhm_lashingclaw: Enables the Lashing Claw ability, which lets the Hunter lash out with its claws while pounced to damage and send Survivors flying.
    • l4d_dhm_lashingclawchance: Chance that a Survivor will be struck with a Lashing Claw. (Def 15)(15 = 15%)
    • l4d_dhm_lashingclawrange: Range that the Lashing Claw will reach. (Def 400)
    • l4d_dhm_lashingclawpower: Power that a Survivor is hit with when lashed. (Def 200/300)
    • l4d_dhm_lashingclawdamage: Amount of damage inflicted to the Survivor when they're hit. (Def 7)
    • l4d_dhm_sledgehammer: Enables the Hunter ability Sledgehammer, when jumping from a distance, extra damage is applied to a pounce.
    • l4d_dhm_sledgehammercap: Maximum amount of damage the Sledgehammer will cause. (Should be set to max Survivor HP).
    • l4d_dhm_sledgehammermultiplier: Amount to multiply the damage received from Sledgehammer by for the Survivor.
    • l4d_dhm_shunpo: Enables the Hunter ability Shunpo, when a Hunter takes damage he will increase his evasiveness and reduce damage taken.
    • l4d_dhm_shunpoamount: Multiplier by which to reduce the amount of damage the Hunter takes. (Note: This will not stop melee weapons) (Def 0.2)
    • l4d_dhm_shunpocooldown: Amount of time until the next Shunpo can be activated. (Def 5.0)
    • l4d_dhm_shunpoduration: How long the Hunter is able to keep the Shunpo ability active. (Def 3.0)
    • l4d_dhm_shurikenclaw: Enables the Shuriken Claw ability, allowing the Hunter to attack from a range with its claws.
    • l4d_dhm_shurikenclawrange: Range that the Shuriken Claws are able to reach. (Def 700)
    • l4d_dhm_shurikenclawcooldown: Amount of time until the next Shuriken Claw can be thrown. (Def 1.5)
    • l4d_dhm_shurikenclawdamage: Amount of damage inflicted when a survivor is hit with a Shuriken Claw. (Def 2)
    • l4d_dhm_shurikenclawignite: Enables the Shuriken Claw Ignite ability, when on fire the Hunter's Shuriken Claw has a chance to ignite survivors.
    • l4d_dhm_shurikenclawignitechance: Chance that a Survivor will be ignited. (Def 50)(50 = 50%)
    • l4d_dhm_shurikenclawignitedamage: Amount of damage deal to an ignited Survivor per second. (Def 2)
    • l4d_dhm_shurikenclawigniteduration: Duration of time the Survivor will burn for after being ignited. (Def 6)

    Cvars


    <*>To change these values edit the plugin.L4D2.DestructiveHunter.cfg in the CFG/Sourcemod folder.


    Installation
    • Download and copy L4D2 Destructive Hunter.smx to Addons/Sourcemod/Plugins
    • Download and copy l4d2addresses.txt to Addons/Sourcemod/Gamedata
    • Delete plugin.L4D2.DestructiveHunter.cfg from the CFG/Sourcemod folder.

    Version History


    Version 1.14 - (3/22/14)
    <*>Added a client check on the Shunpo Timer
    Version 1.13 - (2/15/14) - 63 Views
    <*>Added a delayed plugin call to fix CFG not influencing game cvars
    Version 1.12 - (2/14/14) - 19 Views
    <*>Fixed an issue of the plugin calling too often
    <*>Added SDKHooks for Player Hurt
    <*>Reduced Lashing Claw chance
    Version 1.11 - (2/14/14) - 12 Views
    <*>Fixed an issue of the plugin calling too often
    Version 1.1 - (2/13/14) - 15 Views
    <*>Added new ability: Inferno Claw - Increases the damage dealt to Survivors while Hunter is on fire
    <*>Added new ability: Kevlar Skin - Grants the Hunter immunity to fire damage
    <*>Added new ability: Shuriken Claw Ignite - Ignites the Survivor in flames after hit with a Shuriken Claw while the Hunter is on fire
    Version 1.0 - (2/8/14) - 34 Views
    <*>Original launch of the plugin


    Special Thanks

    AtomicStryker - Boomer Bit** Slap:
    https://forums.alliedmods.net/showthread.php?t=97952

    Known Issues

    <*>None
    Attached Files
    File Type: txt l4d2addresses.txt (24.3 KB, 1787 views)
    File Type: sp Get Plugin or Get Source (L4D2 Destructive Hunter.sp - 3238 views - 28.9 KB)

    Last edited by Mortiegama; 03-22-2014 at 10:36.
    Mortiegama is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 02-10-2014 , 10:37   Re: [L4D2] Destructive Hunter
    Reply With Quote #2

    Quote:
    and send shuriken from its claws at a range
    Sounds fun
    __________________
    disawar1 is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 02-12-2014 , 15:44   Re: [L4D2] Destructive Hunter
    Reply With Quote #3

    Add L4D1 fire hunter damage when on fire and im sold.
    Sev is offline
    Ellie
    Senior Member
    Join Date: Apr 2013
    Old 02-12-2014 , 15:59   Re: [L4D2] Destructive Hunter
    Reply With Quote #4

    Quote:
    Originally Posted by disawar1 View Post
    Sounds fun
    This^
    Ellie is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-13-2014 , 16:27   Re: [L4D2] Destructive Hunter
    Reply With Quote #5

    Quote:
    Originally Posted by Sev View Post
    Add L4D1 fire hunter damage when on fire and im sold.
    Added a few new abilities. Now if the Hunter is on fire he deals more damage, he has the ability to be fire immune, and he can ignite survivors with the shuriken claw.
    __________________
    Mortiegama is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 02-13-2014 , 23:13   Re: [L4D2] Destructive Hunter
    Reply With Quote #6

    PHP Code:
    L 02/13/2014 22:59:59SourceMod error session started
    L 02
    /13/2014 22:59:59Info (map "c8m1_apartment") (file "errors_20140213.log")
    L 02/13/2014 22:59:59: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /13/2014 22:59:59: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/13/2014 22:59:59: [SM]   [0]  Line 187, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130565.attach::Event_PlayerHurt()
    L 02/13/2014 23:00:05: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /13/2014 23:00:05: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/13/2014 23:00:05: [SM]   [0]  Line 187, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130565.attach::Event_PlayerHurt()
    L 02/13/2014 23:01:43Error log file session closed
    Sev is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-14-2014 , 09:00   Re: [L4D2] Destructive Hunter
    Reply With Quote #7

    Quote:
    Originally Posted by Sev View Post
    PHP Code:
    L 02/13/2014 22:59:59SourceMod error session started
    L 02
    /13/2014 22:59:59Info (map "c8m1_apartment") (file "errors_20140213.log")
    L 02/13/2014 22:59:59: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /13/2014 22:59:59: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/13/2014 22:59:59: [SM]   [0]  Line 187, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130565.attach::Event_PlayerHurt()
    L 02/13/2014 23:00:05: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /13/2014 23:00:05: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/13/2014 23:00:05: [SM]   [0]  Line 187, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130565.attach::Event_PlayerHurt()
    L 02/13/2014 23:01:43Error log file session closed
    The PlayerHurt was firing too often, I changed the call to hopefully break it up slightly and not pass along as much.
    __________________
    Mortiegama is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 02-14-2014 , 10:26   Re: [L4D2] Destructive Hunter
    Reply With Quote #8

    PHP Code:
    L 02/14/2014 10:21:40Info (map "c8m1_apartment") (file "errors_20140214.log")
    L 02/14/2014 10:21:40: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /14/2014 10:21:40: [SMNative "GetClientEyePosition" reported
    L 02/14/2014 10:21:40: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/14/2014 10:21:40: [SM]   [0]  Line 342, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130592.attach::Damage_InfernoClaw()
    L 02/14/2014 10:21:40: [SM]   [1]  Line 213, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130592.attach::Event_PlayerHurt() 
    Sev is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-14-2014 , 15:42   Re: [L4D2] Destructive Hunter
    Reply With Quote #9

    Quote:
    Originally Posted by Sev View Post
    PHP Code:
    L 02/14/2014 10:21:40Info (map "c8m1_apartment") (file "errors_20140214.log")
    L 02/14/2014 10:21:40: [SMPlugin encountered error 8Not enough space on the stack
    L 02
    /14/2014 10:21:40: [SMNative "GetClientEyePosition" reported
    L 02/14/2014 10:21:40: [SMDisplaying call stack trace for plugin "L4D2 Destructive Hunter.smx":
    L 02/14/2014 10:21:40: [SM]   [0]  Line 342, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130592.attach::Damage_InfernoClaw()
    L 02/14/2014 10:21:40: [SM]   [1]  Line 213, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130592.attach::Event_PlayerHurt() 
    I've been testing it for the past few hours. I did away with Player_Hurt and changed to SDKHooks. I haven't seen a problem and now the Hunter takes reduced damage from melee weapons, so that's a win.
    __________________
    Mortiegama is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 02-15-2014 , 20:51   Re: [L4D2] Destructive Hunter
    Reply With Quote #10

    The problem im now running into, is I seemingly can't turn off certain aspects of the plugin, like at all.

    Changing these, simply do nothing.

    Code:
    // Destructive Hunter in my server.cfg
    
    sm_cvar l4d_dhm_announce 0
    sm_cvar l4d_dhm_infernoclaw 1
    sm_cvar l4d_dhm_kevlarskin 1
    sm_cvar l4d_dhm_lashingclaw 0
    sm_cvar l4d_dhm_shunpo 0
    sm_cvar l4d_dhm_shurikenclaw 0
    sm_cvar l4d_dhm_sledgehammer 0
    sm_cvar l4d_vts_shurikenclawignite 0
    and from the plugin cfg file

    Code:
    // This file was auto-generated by SourceMod (v1.5.3-dev+3954)
    // ConVars for plugin "L4D2 Destructive Hunter.smx"
    
    
    // Will annoucements be made to the Survivors?
    // -
    // Default: "0"
    l4d_dhm_announce "0"
    
    // Enables the ability Inferno Claw which adds extra damage to Survivors when Hunter is on fire. (Def 1)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    l4d_dhm_infernoclaw "1"
    
    // Amount of extra damage caused by Inferno Claw. (Def 3)
    // -
    // Default: "3"
    // Minimum: "0.000000"
    l4d_dhm_infernoclawdamage "3"
    
    // Enables the ability Kevlar Skin, which allows the Hunter to take reduced damage from fire. (Def 1)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    l4d_dhm_kevlarskin "1"
    
    // Enables the ability for the Hunter to lash at nearby survivors while pounced, sending the breaker flying and hurting them. (Def 1)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_lashingclaw "0"
    
    // Chance that a Survivor will be hit from the Hunter's Lashing Claws. (Def 15)(15 = 15%)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_lashingclawchance "0"
    
    // Amount of damage the Lashing Claws will cause. (Def 7)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_lashingclawdamage "0"
    
    // Power behind the Lashing Claws. (Def 200.0)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_lashingclawpower "0"
    
    // Distance the Hunter's Lashing Claws reach while pounced. (Def 400.0)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_lashingclawrange "0"
    
    // Enables the ability for the Hunter to activate Shunpo when taking damage. (Def 1)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shunpo "0"
    
    // Percent of damage the Hunter avoids while using Shunpo. (Def 0.2)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shunpoamount "0"
    
    // Cooldown period after the Shunpo has been used before the next Shunpo. (Def 5.0)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shunpocooldown "0"
    
    // Amount of time the Shunpo will last. (Def 3.0)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shunpoduration "0"
    
    // Enables the ability for the Hunter to throw Shuriken Claws at the Survivor. (Def 1)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shurikenclaw "0"
    
    // Amount of time between Shuriken Claw throws. (Def 1.5)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shurikenclawcooldown "0"
    
    // Amount of damage the Shuriken Claws deal to Survivors that are hit. (Def 2)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shurikenclawdamage "0"
    
    // Distance the Hunter is able to throw the Shuriken Claws. (Def 700)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_shurikenclawrange "0"
    
    // Enables the ability for the Hunter to inflict damage based on the distance of the pounce. (Def 1)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_sledgehammer "0"
    
    // Maximum amount of damage the Hunter can inflict while pouncing. (Should be Survivor health max). (Def 100)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_sledgehammercap "0"
    
    // Amount to multiply the damage dealt by the Hunter when pouncing. (Def 1.0)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_dhm_sledgehammermultiplier "0"
    
    // Destructive Hunter Version
    // -
    // Default: "1.12"
    l4d_dhm_version "1.12"
    
    // Allows the Hunter to ignite Survivors with Shuriken Claw while on fire. (Def 1)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_vts_shurikenclawignite "0"
    
    // Chance that the Shuriken Claw will ignite a Survivor. (50 = 50%). (Def 50)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_vts_shurikenclawignitechance "0"
    
    // How much damage is by the flames each second. (Def 2)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_vts_shurikenclawignitedamage "0"
    
    // For how many seconds will the Survivor remain ignited. (Def 6)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d_vts_shurikenclawigniteduration "0"
    Sev 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 07:02.


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