Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Survivor Shove (1.16) [02-Oct-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6715
Plugin Version:
1.16
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    47 
    Plugin Description:
    Allows shoving to stagger survivors. Stumbles a survivor when shoved by another survivor.
    Old 09-15-2019 , 09:56   [L4D & L4D2] Survivor Shove (1.16) [02-Oct-2023]
    Reply With Quote #1

    Related Plugins:

    About:
    • Allows shoving to stagger survivors. Stumbles a survivor when shoved by another survivor.


    Thanks:

    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_sshove    // Turn on/off ability to shove. No args = toggle. Usage: sm_sshove [optional 0=Off. 1=On.] 

    Cvars:

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

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

    // Who can be shoved. 0=Everyone. 1=Bots only. 2-Humans only. 4=Bots cannot push humans. Add numbers together (7 will block all).
    l4d_survivor_shove_bots "0"

    // 0=No timeout. How many seconds until someone can shove again.
    l4d_survivor_shove_delay "0"

    // Empty string = All. Players with one of these flags have access to the shove feature.
    l4d_survivor_shove_flags "z"

    // 1=Shove. 2=Shove + Use. Which keys to shove players.
    l4d_survivor_shove_keys "1"

    // 0=Off. 1=On. Should shoving be turned on or off for players when they join.
    l4d_survivor_shove_start "1"

    // 0=Death scream. 1=Pain scream. The type of vocalization the survivors will do.
    l4d_survivor_shove_vocal_type "1"

    // 0=Off. The chance out of 100 for the survivor being shoved to scream.
    l4d_survivor_shove_vocalize "50"

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

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_survivor_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_survivor_shove_modes_tog "0"

    // Survivor Shove plugin version.
    l4d_survivor_shove_version 

    Changes:
    Code:
    1.16 (02-Oct-2023)
        - Changed cvar "l4d_survivor_shove_bots" to allow setting bots to not push humans. Requested by "Automage".
    
    1.15 (04-Aug-2022)
        - Added cvar "l4d_survivor_shove_vocal_type" to control the type of vocalization. Thanks to "Shadowysn" for adding.
    
    1.14 (14-Jul-2022)
        - Added cvar "l4d_survivor_shove_keys" to control the keybind used for shoving. Requested by "yabi".
    
    1.13 (23-Apr-2022)
        - Fixed an error when the "Gear Transfer" plugin is not used.
    
    1.12 (01-Mar-2022)
        - Added cvar "l4d_survivor_shove_bots" to target who can be shoved. Requested by "TrueDarkness".
    
    1.11 (18-Sep-2021)
        - Now blocks shoving when holding a "First Aid Kit", "Pain Pills" or "Adrenaline". Requested by "Eocene".
        - May sometimes still be shoved when transferring "Pain Pills" or "Adrenaline" since the game delays the event based on distance.
        - The only solution would be adding a delay into the plugin, and this would be very noticeable visually.
    
        - Now blocks shoving when holding a Grenade, Upgrade Ammo or a Defibrillator when allowed to transfer in "Gear Transfer" plugins "l4d_gear_transfer_types_real" cvar list.
    
        - When using "Gear Transfer" plugin recommend updating to 2.17 or newer to fix compatibility issues.
    
    1.10 (25-Jul-2021)
        - Now automatically detects "Gear Transfer" plugin and prevents shoving if using an item that can be transferred. Requested by "AI0702".
        - Plugin compatibility with "Gear Transfer" plugin (version 1.14 or newer).
    
    1.9 (12-May-2021)
        - Added cvar "l4d_survivor_shove_start" to set shoving on/off by default when joining the server.
    
    1.8 (06-Mar-2021)
        - Fixed compile error. Thanks to "Krufftys Killers" for reporting.
    
    1.7 (04-Mar-2021)
        - Added cvar "l4d_survivor_shove_vocalize" to vocalize when being shoved. Requested by "Striker black".
    
    1.6 (15-Feb-2021)
        - Added cvar "l4d_survivor_shove_delay" to set a timeout for when someone can shove again. Requested by "RDiver".
        - Fixed the feature from not working when the plugin was late loaded.
    
    1.5 (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.
    
    1.4 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.3b (07-Jan-2020)
        - Gamedata change only.
        - Fixed crashing in Linux L4D1. Thanks to "Dragokas" for reporting.
    
    1.3 (03-Dec-2019)
        - Added command "sm_sshove" to turn on/off the feature for individual clients. Requested by "Tonblader".
        - Potentially fixed shove not working with no flags specified.
    
    1.2 (20-Sep-2019)
        - Changed flags cvar, now requires clients to only have 1 of the specified flags.
    
    1.1 (17-Sep-2019)
        - Added cvar "l4d_survivor_shove_flags" to control who has access to the feature.
    
    1.0 (15-Sep-2019)
        - Initial release.

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


    Updating from 1.14 or older:
    • 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_survivor_shove.sp - 428 views - 25.9 KB)
    File Type: txt l4d_survivor_shove.txt (486 Bytes, 1802 views)
    __________________

    Last edited by Silvers; 10-02-2023 at 12:11.
    Silvers is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 09-15-2019 , 13:42   Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
    Reply With Quote #2

    How does the vscript stagger in this case? Can you explain that?
    __________________
    Spirit_12 is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 09-15-2019 , 14:28   Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
    Reply With Quote #3

    Quote:
    Originally Posted by Spirit_12 View Post
    How does the vscript stagger in this case? Can you explain that?
    Vscript stagger function calls ScriptStaggerPlayer() Which then calls OnStaggered()

    Code:
    CTerrorPlayer::ScriptStaggerPlayer()
        CTerrorPlayer::OnStaggered()

    Quote:
    GetPlayerFromUserID(%d).Stagger(Vector(%d,%d,%d)
    Here is vscript functions link
    https://developer.valvesoftware.com/...ript_Functions
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 09-15-2019 , 16:44   Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
    Reply With Quote #4

    That's a neat way to do it. Thanks!
    __________________
    Spirit_12 is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 09-17-2019 , 08:59   Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
    Reply With Quote #5

    Hi silver,this plugin very cool but i think you need add cvar for admin only and for all people can use because they very like troll )
    cacaopea is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-17-2019 , 10:19   Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
    Reply With Quote #6

    Quote:
    Originally Posted by cacaopea View Post
    Hi silver,this plugin very cool but i think you need add cvar for admin only and for all people can use because they very like troll )
    Done:
    Quote:
    1.1 (17-Sep-2019)
    - Added cvar "l4d_survivor_shove_flags" to control who has access to the feature.
    __________________
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-20-2019 , 13:42   Re: [L4D & L4D2] Survivor Shove (1.1) [17-Sep-2019]
    Reply With Quote #7

    Quote:
    Originally Posted by GoGetSomeSleep View Post
    how do I enable 2 different people with one with only "k" and one with only "c" flag to use this plugin?
    i ask this because maybe l4d_survivor_shove_flags "kc" is needs "1 player with k and c flag" i don't want this
    Done:

    Quote:
    1.2 (20-Sep-2019)
    - Changed flags cvar, now requires clients to only have 1 of the specified flags.
    __________________
    Silvers is offline
    zaviier
    Senior Member
    Join Date: Aug 2017
    Location: Indonesia
    Old 09-22-2019 , 08:16   Re: [L4D & L4D2] Survivor Shove (1.2) [20-Sep-2019]
    Reply With Quote #8

    nice plugin for trolling xD
    zaviier is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 12-02-2019 , 12:51   Re: [L4D & L4D2] Survivor Shove (1.2) [20-Sep-2019]
    Reply With Quote #9

    Can you add a 'chat' and 'console' command to enable/disable this function? (including flags as a requirement to be used)

    Maybe:

    !sshove (in chat)
    sm_sshove (in console)
    Tonblader is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 12-02-2019 , 17:44   Re: [L4D & L4D2] Survivor Shove (1.3) [03-Dec-2019]
    Reply With Quote #10

    Done.

    Quote:
    1.3 (03-Dec-2019)
    - Added command "sm_sshove" to turn on/off the feature for individual clients. Requested by "Tonblader".
    - Potentially fixed shove not working with no flags specified.
    __________________
    Silvers 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 06:28.


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