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

[L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6980
Plugin Version:
2.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Stumbles Survivors, Special Infected and the Witch when hurt by a Grenade Launcher. Includes a damage multiplier cvar.
    Old 03-14-2020 , 10:21   [L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]
    Reply With Quote #1

    About:
    • Stumbles Survivors, Special Infected and the Witch when hurt by the Grenade Launcher projectile.
    • Thanks to "Iizuka07" for the idea and request.


    Cvars:

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

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

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

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

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

    // Multiply the damage received by this amount.
    l4d2_si_stumble_multiplier "1.0"

    // The distance the special infected must be to the Grenade Launcher projectile impact to stumble.
    l4d2_si_stumble_range "200.0"

    // 0=Off. 1=On. Should you be able to stumble yourself.
    l4d2_si_stumble_self "0"

    // Which Special Infected to affect: 1=Smoker, 2=Boomer, 4=Hunter, 8=Spitter, 16=Jockey, 32=Charger, 64=Tank. 127=All. Add numbers together.
    l4d2_si_stumble_special "127"

    // 0=Off. 1=On. Should Survivors be affected and stumble.
    l4d2_si_stumble_survivors "0"

    // 0=Off. 1=Affect the Witch to stumble.
    l4d2_si_stumble_witch "1"

    // Unscope plugin version.
    l4d2_si_stumble_version 


    Changes:
    Code:
    2.4 (25-Aug-2022)
        - Added cvar "l4d2_si_stumble_multiplier" to multiply against the damage received from the Grenade Launcher projectile.
        - Renamed the plugin from "Special Infected Stumble - Grenade Launcher" to "Stumble - Grenade Launcher" for clarity.
    
    2.3 (10-Aug-2022)
        - Added cvar "l4d2_si_stumble_witch" to stumble the Witch, especially for Realism or Expert difficulty. Thanks to "HarryPotter" for adding parts.
    
    2.2 (23-Feb-2021)
        - Fixed round restarts breaking the stumble self and survivors feature. Thanks to "swiftswing1" for reporting.
    
    2.1 (26-Jun-2020)
        - Added cvar "l4d2_si_stumble_survivors" to control if Survivors should be stumbled.
        - Added cvar "l4d2_si_stumble_self" to control if survivors can stumble themselves.
        - Thanks to "Black714" for requesting.
    
    2.0 (16-Jun-2020)
        - Renamed plugin and changed cvar names.
        - Now supports all special infected. Thanks to "Black714" for requesting.
        - Added cvar "l4d2_si_stumble_special" to control which special infected can be affected.
    
    1.4 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    
    1.3 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.2 (24-Mar-2020)
        - Fixed stupid mistake. Thanks to "tRololo312312" for reporting.
    
    1.1 (19-Mar-2020)
        - Fixed not unhooking OnTakeDamage and affecting the wrong players. Thanks to "tRololo312312" for reporting.
    
    1.0 (14-Mar-2020)
        - Initial release.


    Updating from 2.3 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_si_stumble.sp - 643 views - 15.5 KB)
    __________________

    Last edited by Silvers; 08-25-2022 at 10:08.
    Silvers is offline
    tRololo312312
    Senior Member
    Join Date: Apr 2015
    Old 03-19-2020 , 08:43   Re: [L4D2] Tank Stumble - Grenade Launcher (1.0) [14-Mar-2020]
    Reply With Quote #2

    OnTakeDamage automatically unhooks or what?
    tRololo312312 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-19-2020 , 08:58   Re: [L4D2] Tank Stumble - Grenade Launcher (1.0) [14-Mar-2020]
    Reply With Quote #3

    No, you're right. Thanks, fixed.
    __________________

    Last edited by Silvers; 03-19-2020 at 09:04.
    Silvers is offline
    tRololo312312
    Senior Member
    Join Date: Apr 2015
    Old 03-23-2020 , 19:47   Re: [L4D2] Tank Stumble - Grenade Launcher (1.1) [19-Mar-2020]
    Reply With Quote #4

    Code:
    public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
    {
    	int client = GetClientOfUserId(event.GetInt("userid"));
    	if( client ) SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
    }
    
    public void Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
    {
    	int client = GetClientOfUserId(event.GetInt("userid"));
    	if( client ) HookClient(client);
    }
    Erm, is this right?
    tRololo312312 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-23-2020 , 21:02   Re: [L4D2] Tank Stumble - Grenade Launcher (1.1) [19-Mar-2020]
    Reply With Quote #5

    Quote:
    Originally Posted by tRololo312312 View Post
    Erm, is this right?
    lol wtf, thanks, fixed.
    __________________
    Silvers is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 05-19-2020 , 08:53   Re: [L4D2] Tank Stumble - Grenade Launcher (1.4) [10-May-2020]
    Reply With Quote #6

    This is really a great addition, however the stagger is really long as it leaves the tank completely helpless to be thrown around again.

    I know for a fact that the tanks in Versus stumble only for a few mere seconds instead of full on 6.

    z_tank_max_stagger_duration doesn't seem to affect anything even though the amount seem to match the in game result. I haven't tested with propane or pipe bombs though if it would show a difference.

    Would it be possible to have the ability to modify the stagger duration at all with the plugin?
    Shao is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-16-2020 , 07:38   Re: [L4D2] Special Infected Stumble - Grenade Launcher (2.0) [16-Jun-2020]
    Reply With Quote #7

    Quote:
    Originally Posted by Shao View Post
    This is really a great addition, however the stagger is really long as it leaves the tank completely helpless to be thrown around again.

    I know for a fact that the tanks in Versus stumble only for a few mere seconds instead of full on 6.

    z_tank_max_stagger_duration doesn't seem to affect anything even though the amount seem to match the in game result. I haven't tested with propane or pipe bombs though if it would show a difference.

    Would it be possible to have the ability to modify the stagger duration at all with the plugin?
    It's not possible to set the stagger duration with this method. I don't know of a method that would allow setting the duration.


    Updated, now supports all SI:
    Code:
    2.0 (16-Jun-2020)
        - Renamed plugin and changed cvar names.
        - Now supports all special infected. Thanks to "Black714" for requesting.
        - Added cvar "l4d2_si_stumble_special" to control which special infected can be affected.
    __________________
    Silvers is offline
    Black714
    Junior Member
    Join Date: Jun 2020
    Old 06-21-2020 , 13:34   Re: [L4D2] Special Infected Stumble - Grenade Launcher (2.0) [16-Jun-2020]
    Reply With Quote #8

    Thanks, Silvers, That's I Wanted.
    Can I Request Stumble Also Affected into Survivor too?
    It Will Give More Realistic and Funny Troll.
    A Mischievous Type Like "Survivor Shove" You Made It Before :v

    Last edited by Black714; 06-21-2020 at 13:41.
    Black714 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-26-2020 , 09:04   Re: [L4D2] Special Infected Stumble - Grenade Launcher (2.1) [26-Jun-2020]
    Reply With Quote #9

    Code:
    2.1 (26-Jun-2020)
        - Added cvar "l4d2_si_stumble_survivors" to control if Survivors should be stumbled.
        - Added cvar "l4d2_si_stumble_self" to control if survivors can stumble themselves.
        - Thanks to "Black714" for requesting.
    Done.
    __________________
    Silvers is offline
    Black714
    Junior Member
    Join Date: Jun 2020
    Old 07-05-2020 , 01:21   Re: [L4D2] Special Infected Stumble - Grenade Launcher (2.1) [26-Jun-2020]
    Reply With Quote #10

    Amazing... Fun, Fair and Balanced.
    Now I Can Help My Partner With Grenade Launcher :v

    Last edited by Black714; 07-05-2020 at 01:23.
    Black714 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 14:13.


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