AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Survivor Shove (1.16) [02-Oct-2023] (https://forums.alliedmods.net/showthread.php?t=318694)

Silvers 09-15-2019 09:56

[L4D & L4D2] Survivor Shove (1.16) [02-Oct-2023]
 
20 Attachment(s)
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.

Spirit_12 09-15-2019 13:42

Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
 
How does the vscript stagger in this case? Can you explain that?

Lux 09-15-2019 14:28

Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
 
Quote:

Originally Posted by Spirit_12 (Post 2667066)
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

Spirit_12 09-15-2019 16:44

Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
 
That's a neat way to do it. Thanks!

cacaopea 09-17-2019 08:59

Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
 
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 :))

Silvers 09-17-2019 10:19

Re: [L4D & L4D2] Survivor Shove (1.0) [15-Sep-2019]
 
Quote:

Originally Posted by cacaopea (Post 2667281)
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 09-20-2019 13:42

Re: [L4D & L4D2] Survivor Shove (1.1) [17-Sep-2019]
 
Quote:

Originally Posted by GoGetSomeSleep (Post 2667635)
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.

zaviier 09-22-2019 08:16

Re: [L4D & L4D2] Survivor Shove (1.2) [20-Sep-2019]
 
nice plugin for trolling xD

Tonblader 12-02-2019 12:51

Re: [L4D & L4D2] Survivor Shove (1.2) [20-Sep-2019]
 
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)

Silvers 12-02-2019 17:44

Re: [L4D & L4D2] Survivor Shove (1.3) [03-Dec-2019]
 
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.


All times are GMT -4. The time now is 01:48.

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