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

[L4D2] Unstoppable Charger


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mortiegama
Senior Member
Join Date: Feb 2010
Plugin ID:
4067
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Allows for unique Charger abilities to bring fear to this titan.
    Old 01-28-2014 , 11:39   [L4D2] Unstoppable Charger
    Reply With Quote #1

    L4D2 - Unstoppable Charger

    General

    This plugin requires Sourcemod 1.7 or higher
    This plugin requires the attached Gamedata file


    Description

    The Charger aspect of my Vicious Infected plugin, I have decided to split off the specific Infected Class into their own plugins. Changes will be made to this smaller plugin before being applied to the Vicious Infected plugin. It also allows servers to run specific infected abilities without having to have the entire Vicious Infected plugin. Vicious Infected will continue to have more overall features as it is easier to cross check abilities within a plugin than across plugins.

    Unstoppable Charger is designed to give some nice additions to the mighty titan that is the Charger. With three abilities currently, the Charger can pummel survivors and knock them back as well as knock them further when charging, run faster and longer, and use the survivor he's carrying as an aegis to prevent damage.

    • Broken Ribs: Due to the Charger's crushing grip, Survivors may have their ribs broken as a result of pummeling.
    • Extinguishing Wind: The force of wind the Charger creates while charging is capable of extinguishing flames on his body.
    • Inertia Vault: While charging the Charger has the ability to leap into the air and travel a short distance.
    • Locomotive: While charging, the Charger is able to increase speed and duration the longer it doesn't hit anything.
    • Meteor Fist: Utilizing his overally muscular arm, when the Charger strikes a Survivor while charging or with his fist, they are sent flying.
    • Snapped Leg: When the Charger collides with a Survivor, it snaps their leg causing them to move slower.
    • Stowaway: The longer the Charger has a Survivor, the more damage adds the Charger will deal when the charge comes to an end.
    • Survivor Aegis: While charging, the Charger will use the Survivor as an Aegis to absorb damage it would receive.
    • Void Chamber: When starting a charge, the force is so powerful it sucks nearby Survivors in the void left behind.


    Cvars

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

    PHP Code:
    // Enables Broken Ribs ability: Due to the  Charger's crushing grip, Survivors may have their ribs broken as a  result of pummeling. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_brokenribs "1"

    // Chance that after a pummel ends the Survivor takes damage over time (100 = 100%). (Def 100)
    // -
    // Default: "100"
    l4d_ucm_brokenribschance "100"

    // How much damage is inflicted by Broken Ribs each second. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_brokenribsdamage "1"

    // For how many seconds should the Broken Ribs cause damage. (Def 10)
    // -
    // Default: "10"
    l4d_ucm_brokenribsduration "10"

    //  Enables Extinguish Wind ability: The force of wind the Charger creates  while charging is capable of extinguishing flames on his body. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_extinguishingwind "1"

    //  Enables Inertia Vault ability: While charging the Charger has the  ability to leap into the air and travel a short distance. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_inertiavault "1"

    // Power behind the Charger's jump. (Def 400.0)
    // -
    // Default: "400.0"
    l4d_ucm_inertiavaultpower "400.0"

    //  Enables Locomotive ability: While charging, the Charger is able to  increase speed and duration the longer it doesn't hit anything. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_locomotive "1"

    // Amount of time for which the Charger continues to run. (Def 4.0)
    // -
    // Default: "4.0"
    l4d_ucm_locomotiveduration "4.0"

    // Multiplier for increase in Charger speed. (Def 1.4)
    // -
    // Default: "1.4"
    l4d_ucm_locomotivespeed "1.4"

    //  Enables Meteor Fist ability: Utilizing his overally muscular arm, when  the Charger strikes a Survivor while charging or with his fist, they are  sent flying. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_meteorfist "1"

    // Amount of time between Meteor Fists. (Def 10.0)
    // -
    // Default: "10.0"
    l4d_ucm_meteorfistcooldown "10.0"

    // Power behind the Charger's Meteor Fist. (Def 200.0)
    // -
    // Default: "200.0"
    l4d_ucm_meteorfistpower "200.0"

    //  Enables Snapped Leg ability: When the Charger collides with a Survivor,  it snaps their leg causing them to move slower. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_snappedleg "1"

    // Chance that after a charger collision movement speed is reduced. (Def 1)
    // -
    // Default: "100"
    l4d_ucm_snappedlegchance "100"

    // For how many seconds will the Snapped Leg reduce movement speed (100 = 100%). (Def 100)
    // -
    // Default: "5"
    l4d_ucm_snappedlegduration "5"

    // How much does Snapped Leg reduce movement speed. (Def 0.5)
    // -
    // Default: "0.5"
    l4d_ucm_snappedlegspeed "0.5"

    //  Enables Stowaway ability: The longer the Charger has a Survivor, the  more damage adds the Charger will deal when the charge comes to an end.  (Def 1)
    // -
    // Default: "1"
    l4d_ucm_stowaway "1"

    // How much damage is inflicted by Stowaway for each second carried. (Def 5)
    // -
    // Default: "5"
    l4d_ucm_stowawaydamage "5"

    //  Enables Survivor Aegis ability: While charging, the Charger will use  the Survivor as an Aegis to absorb damage it would receive.  (Def 1)
    // -
    // Default: "1"
    l4d_ucm_survivoraegis "1"

    // Percent of damage the Charger avoids using a Survivor as an Aegis. (Def 0.2)
    // -
    // Default: "0.2"
    l4d_ucm_survivoraegisamount "0.2"

    // How much damage is inflicted to the Survivor being used as an Aegis. (Def 5)
    // -
    // Default: "5"
    l4d_ucm_survivoraegisdamage "5"

    //  Enables Void Chamber ability: When starting a charge, the force is so  powerful it sucks nearby Survivors in the void left behind. (Def 1)
    // -
    // Default: "1"
    l4d_ucm_voidchamber "1"

    // Damage the force of the roar causes to nearby survivors. (Def 10)
    // -
    // Default: "10"
    l4d_ucm_voidchamberdamage "10"

    // Power behind the inner range of Methane Blast. (Def 150.0)
    // -
    // Default: "150.0"
    l4d_ucm_voidchamberpower "150.0"

    // Area around the Tank the bellow will reach. (Def 200.0)
    // -
    // Default: "200.0"
    l4d_ucm_voidchamberrange "200.0" 


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


    Recommended Plugins



    Version History

    Code:
    Version 1.2 (2/6/17)
    
    - Edited significant amount of code - Added in six new abilities: Broken Ribs, Extinguishing Wind, Snapped Leg, Stowaway, Survivor Aegis, and Void Chamber
    Version 1.11 (2/20/14) - 1043 Views
    - Fixed an issue where an array was called for the wrong player - Removed a message to printtochat that wasn't removed earlier
    Version 1.1 (2/19/14) - 12 Views
    - Added new ability Inertia Vault: Allows the Charger to jump while charging - Added SDK Hooks for the damage portion, now prevents melee damage
    Version 1.0 - (1/28/14) - 63 Views
    - Original launch of the plugin
    Special Thanks

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

    AtomicStryker - Damage Mod (SDK Hooks):
    https://forums.alliedmods.net/showthread.php?p=1184761


    Known Issues

    <*>None



    Attached Files
    File Type: sp Get Plugin or Get Source (L4D2 Unstoppable Charger.sp - 4772 views - 32.3 KB)
    File Type: txt l4d2_viciousplugins.txt (23.8 KB, 2789 views)

    Last edited by Mortiegama; 02-06-2017 at 11:49. Reason: Updated to Version 1.2, added new Gamedata file.
    Mortiegama is offline
    hjm5838
    Junior Member
    Join Date: Feb 2014
    Old 02-05-2014 , 16:22   Re: [L4D2] Unstoppable Charger
    Reply With Quote #2

    Show me videos(youtube or...) I do not speak English. Thank you.
    hjm5838 is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-19-2014 , 13:55   Re: [L4D2] Unstoppable Charger
    Reply With Quote #3

    Got a new ability added and updated to SDK Hooks. The new ability is one I've wanted for a while and finally implemented. It allows the Charger to jump while charging.
    __________________
    Mortiegama is offline
    DeathChaos25
    Senior Member
    Join Date: Jan 2014
    Location: Puerto Rico
    Old 02-19-2014 , 14:48   Re: [L4D2] Unstoppable Charger
    Reply With Quote #4

    Quote:
    Originally Posted by Mortiegama View Post
    Got a new ability added and updated to SDK Hooks. The new ability is one I've wanted for a while and finally implemented. It allows the Charger to jump while charging.
    I LOVE YOU.

    The guys will have a blast later today after I test this out on my server.

    Have some bacon good sir, you deserve it
    DeathChaos25 is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 02-20-2014 , 16:42   Re: [L4D2] Unstoppable Charger
    Reply With Quote #5

    After the Version 1.1 (2/19/14) update getting error.

    L 02/20/2014 - 140:06: SourceMod error session started
    L 02/20/2014 - 140:06: Info (map "survivor") (file "errors_20140220.log")
    L 02/20/2014 - 140:06: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/20/2014 - 140:06: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/20/2014 - 140:06: [SM] [0] Line 162, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130758.attach::OnTakeDamage()
    L 02/20/2014 - 1460: Error log file session closed.
    Krufftys Killers is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-20-2014 , 22:22   Re: [L4D2] Unstoppable Charger
    Reply With Quote #6

    Quote:
    Originally Posted by Krufftys Killers View Post
    After the Version 1.1 (2/19/14) update getting error.

    L 02/20/2014 - 140:06: SourceMod error session started
    L 02/20/2014 - 140:06: Info (map "survivor") (file "errors_20140220.log")
    L 02/20/2014 - 140:06: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/20/2014 - 140:06: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/20/2014 - 140:06: [SM] [0] Line 162, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130758.attach::OnTakeDamage()
    L 02/20/2014 - 1460: Error log file session closed.
    One of those "derp" moments. I called the array for the attacker rather than the victim and I called it before validating the attacker as a ValidClient. It should be fixed, also removed a stupid PrintToChat message.
    __________________
    Mortiegama is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 02-21-2014 , 21:59   Re: [L4D2] Unstoppable Charger
    Reply With Quote #7

    Hving some trouble with the "meteor first". Punching but no one goes flying. Rest seems to be good!
    chatyak is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-22-2014 , 10:01   Re: [L4D2] Unstoppable Charger
    Reply With Quote #8

    Quote:
    Originally Posted by chatyak View Post
    Hving some trouble with the "meteor first". Punching but no one goes flying. Rest seems to be good!
    I haven't been able to reproduce the problem. When I punch I'm seeing people go flying no problem. I think the problem you might be seeing is related to the following cvar:

    l4d_ucm_meteorfistcooldown: Cooldown period in between using the Meteor Fist ability. (Def 10.0)

    It limits Meteor Fist to ten seconds, so the Survivor won't go flying till 10 seconds passes. If you set it to a lower value (0 if you want every punch to send them flying) you should see it work more often.
    __________________
    Mortiegama is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 02-23-2014 , 17:14   Re: [L4D2] Unstoppable Charger
    Reply With Quote #9

    Fist seems okay now... getting this in the log though:

    Quote:
    L 02/21/2014 - 21:01:48: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/21/2014 - 21:01:48: [SM] [0] Line 299, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::L4D2_Fling()
    L 02/21/2014 - 21:01:48: [SM] [1] Line 204, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::OnTakeDamage()
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not load the Fling signature
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not prep the Fling function
    L 02/21/2014 - 21:01:48: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
    L 02/21/2014 - 21:01:48: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/21/2014 - 21:01:48: [SM] [0] Line 299, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::L4D2_Fling()
    L 02/21/2014 - 21:01:48: [SM] [1] Line 204, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::OnTakeDamage()
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not load the Fling signature
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not prep the Fling function
    L 02/21/2014 - 21:01:48: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
    L 02/21/2014 - 21:01:48: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/21/2014 - 21:01:48: [SM] [0] Line 299, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::L4D2_Fling()
    L 02/21/2014 - 21:01:48: [SM] [1] Line 204, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::OnTakeDamage()
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not load the Fling signature
    L 02/21/2014 - 21:01:48: [L4D2 Unstoppable Charger.smx] Could not prep the Fling function
    L 02/21/2014 - 21:01:48: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
    L 02/21/2014 - 21:01:48: [SM] Displaying call stack trace for plugin "L4D2 Unstoppable Charger.smx":
    L 02/21/2014 - 21:01:48: [SM] [0] Line 299, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::L4D2_Fling()
    L 02/21/2014 - 21:01:48: [SM] [1] Line 204, /home/groups/alliedmodders/forums/files/7/0/1/7/8/130790.attach::OnTakeDamage()

    Last edited by chatyak; 02-23-2014 at 17:16.
    chatyak is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-23-2014 , 20:41   Re: [L4D2] Unstoppable Charger
    Reply With Quote #10

    Quote:
    Originally Posted by chatyak View Post
    Fist seems okay now... getting this in the log though:
    That means you're missing the game data file. Download that and try it again.
    __________________
    Mortiegama 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 20:24.


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