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:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- 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.