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

[L4D & L4D2] Incapped Shove (1.11) [24-Apr-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6720
Plugin Version:
1.11
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Allows Survivors to shove common and special infected while incapacitated.
    Old 09-17-2019 , 10:43   [L4D & L4D2] Incapped Shove (1.11) [24-Apr-2022]
    Reply With Quote #1

    Related Plugins:

    About:
    • Allows shoving while incapacitated.
    • Cvars to control damage, range and who can be shoved.


    Thanks:

    Cvars:

    Saved to l4d_incapped_shove.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_incapped_shove_allow "1"

    // The amount of damage each hit does.
    l4d_incapped_shove_damage "5"

    // Each time the player shoves they will be damaged by this much.
    l4d_incapped_shove_hurt "0"

    // Penalty delay to add per shove. Delays each consecutive swing by this amount.
    l4d_incapped_shove_penalty "0.1"

    // 0=Off. Allow shoving while incapped and pinned by 1=Smoker, 2=Hunter, 4=Charger. 7=All. Add numbers together.
    l4d_incapped_shove_pounced "0"

    // How close to survivors, common or special infected to stumble them.
    l4d_incapped_shove_range "85"

    //How quickly can a survivor shove. Time to wait till next swing.
    l4d_incapped_shove_swing "0.8"

    // Who to affect: 1=Common Infected, 2=Survivors, 4=Special Infected, 8=Tank. Add numbers together.
    l4d_incapped_shove_types "5"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_incapped_shove_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_incapped_shove_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_incapped_shove_modes_tog "0"

    // Incapped Shove plugin version.
    l4d_incapped_shove_version 

    Changes:
    Code:
    1.11 (24-Apr-2022)
        - GameData file updated: Wildcarded signatures to be compatible with the "Left4DHooks" plugin version 1.98 and newer.
        - Changed the swing SDKCall to the correct method.
    
    1.10 (04-Dec-2021)
        - Changes to fix warnings when compiling on SourceMod 1.11.
    
    1.9 (15-May-2020)
        - Fixed not damaging Special Infected.
        - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
    
    1.8 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.7 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.6 (20-Jan-2020)
        - Added cvar "l4d_incapped_shove_hurt" to damage the player each time they shove.
    
    1.5 (19-Jan-2020)
        - Added cvar "l4d_incapped_shove_pounced" to control if shoving while pinned is allowed.
    
    1.4 (06-Jan-2020)
        - Fixed invalid entity errors. Thanks to "xZk" for reporting.
    
    1.3 (01-Nov-2019)
        - Fixed being able to shove while hanging from a ledge.
    
    1.2 (10-Oct-2019)
        - Can now push and stumble Common Infected in L4D1. Thanks to "Dragokas" for reporting.
    
    1.1 (10-Oct-2019)
        - L4D1 Linux: Gamedata updated to fix crashing. Thanks to "Dragokas" for reporting.
        - Added cvar "l4d_incapped_shove_penalty" to set a shove penalty.
        - Added cvar "l4d_incapped_shove_swing" to set next shove time.
        - Changed "l4d_incapped_shove_types" by adding 8=Tank as an option.
    
    1.0 (17-Sep-2019)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.


    Updating from 1.5:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_incapped_shove.sp - 1416 views - 17.8 KB)
    File Type: txt l4d_incapped_shove.txt (2.2 KB, 979 views)
    __________________

    Last edited by Silvers; 04-24-2022 at 08:43.
    Silvers is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 09-17-2019 , 19:32   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #2

    Hi Silver
    I Tested Your plugin.It Work but error log appear when I Incap
    L 09/17/2019 - 18:07:21: [SM] Exception reported: Invalid convar handle 0 (error 4)
    L 09/17/2019 - 18:07:21: [SM] Blaming: plugin (3).smx
    L 09/17/2019 - 18:07:21: [SM] Call stack trace:
    L 09/17/2019 - 18:07:21: [SM] [0] ConVar.AddChangeHook
    L 09/17/2019 - 18:07:21: [SM] [1] Line 81, plugin.sp::OnPluginStart
    L 09/17/2019 - 18:07:21: [SM] Unable to load plugin "plugin (3).smx": Error detected in plugin startup (see error logs)
    cacaopea is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-17-2019 , 19:52   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #3

    Quote:
    Originally Posted by cacaopea View Post
    L 09/17/2019 - 18:07:21: [SM] [1] Line 81, plugin.sp::OnPluginStart
    There is no Line 81. You've changed something. That's your problem.
    __________________
    Silvers is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 09-18-2019 , 09:44   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #4

    Quote:
    Originally Posted by Silvers View Post
    There is no Line 81. You've changed something. That's your problem.
    Hi,Silver
    Sorry,Maybe that my fault
    About your plugin.I wondering does it work for all weapon because i using script: can use any weapon and item while incapped
    cacaopea is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-18-2019 , 11:34   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #5

    Quote:
    Originally Posted by cacaopea View Post
    Hi,Silver
    Sorry,Maybe that my fault
    About your plugin.I wondering does it work for all weapon because i using script: can use any weapon and item while incapped
    Works from my testing, I was using Info Editor to enable weapons while incapped and it was working, shouldn't matter which weapon is used at all.
    __________________
    Silvers is offline
    3aljiyavslgazana
    Member
    Join Date: Dec 2018
    Old 09-20-2019 , 01:32   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #6

    It would be really awesome and realistic if you can added cooldown option to it making shoving in incapacitated mode different from normal one and the survivor tires faster in it and if possible with sound file too surivor sounds like he is out of breathe everytime he shovesB-)

    Last edited by 3aljiyavslgazana; 09-20-2019 at 01:53.
    3aljiyavslgazana is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-20-2019 , 04:21   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #7

    I found a cool thing, survivors can shove Tank and charger while incapacitated.
    Very Fun! XD
    __________________

    Last edited by HarryPotter; 09-20-2019 at 04:48.
    HarryPotter is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-27-2019 , 08:27   Re: [L4D & L4D2] Incapped Shove (1.0) [17-Sep-2019]
    Reply With Quote #8

    L4D1 crashes when you try to shove the tank from incapped state.
    PS. The same for other infected.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-27-2019 at 08:30.
    Dragokas is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-10-2019 , 00:43   Re: [L4D & L4D2] Incapped Shove (1.1) [10-Oct-2019]
    Reply With Quote #9

    Code:
    1.1 (10-Oct-2019)
        - L4D1 Linux: Gamedata updated to fix crashing. Thanks to "Dragokas" for reporting.
        - Added cvar "l4d_incapped_shove_penalty" to set a shove penalty.
        - Added cvar "l4d_incapped_shove_swing" to set next shove time.
        - Changed "l4d_incapped_shove_types" by adding 8=Tank as an option.
    Code:
    1.2 (10-Oct-2019)
        - Can now push and stumble Common Infected in L4D1. Thanks to "Dragokas" for reporting.
    Code:
    1.3 (01-Nov-2019)
        - Fixed being able to shove while hanging from a ledge.
    __________________

    Last edited by Silvers; 01-06-2020 at 03:11.
    Silvers is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 01-05-2020 , 15:22   Re: [L4D & L4D2] Incapped Shove (1.3) [01-Nov-2019]
    Reply With Quote #10

    nice job Silvers!, i have this error:
    Code:
    L 01/05/2020 - 16:38:01: [SM] Exception reported: NULL not allowed
    L 01/05/2020 - 16:38:01: [SM] Blaming: l4d_incapped_shove.smx
    L 01/05/2020 - 16:38:01: [SM] Call stack trace:
    L 01/05/2020 - 16:38:01: [SM]   [0] SDKCall
    L 01/05/2020 - 16:38:01: [SM]   [1] Line 253, /home/forums/content/files/8/5/7/7/8/177372.attach::OnPlayerRunCmd
    I think the entity has to be validated:
    PHP Code:
    // Swing
    int entity GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
    SDKCall(g_hSDK_OnSwingStartentityentity); 
    xZk 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 16:18.


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