AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Vomitjar Shove (1.9) [01-Nov-2022] (https://forums.alliedmods.net/showthread.php?t=188045)

Silvers 06-21-2012 14:07

[L4D2] Vomitjar Shove (1.9) [01-Nov-2022]
 
16 Attachment(s)
Related Plugins:
About:
  • Biles infected when shoved by players holding vomitjars.
  • The vomitjar will be removed after smashing on infected (optional cvar to set how many hits till the vomitjar breaks)


Thanks:
  • JoBarfCreepy - For the "Molotov Shove" original idea and request.
  • alexip121093 - For the "Vomitjar Shove" idea and request.
  • Don't Fear The Reaper - For the "Pipebomb Shove" idea and request.
  • AtomicStyker - For Bile the World - Used SDK code and gamedata file to bile players.
  • Herbie - Request for punch cvar to allow multiple/unlimited hits and testing this.
  • Crasher_3637 - For error reporting.
  • Tonblader - Request for breaking sound.


Cvars:

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

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d2_vomitjar_shove_allow "1"

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

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

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

// Which infected to affect: 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
l4d2_vomitjar_shove_infected "511"

// Which key combination to use when shoving: 1=Shove key. 2=Reload + Shove keys.
l4d2_vomitjar_shove_keys "1"

// 0=Unlimited. How many times can a player hit zombies with the vomitjar before it breaks.
l4d2_vomitjar_shove_punch "5"

// 0=Only the player holding the vomitjar. Distance to splash nearby survivors when the vomitjar breaks.
l4d2_vomitjar_shove_radius "50"

// Chance out of 100 to splash self and nearby players when the vomitjar breaks.
l4d2_vomitjar_shove_splash "10"

// Vomitjar Shove plugin version.
l4d2_vomitjar_shove_version 


Changes:
Code:

1.9 (01-Nov-2022)
    - Added cvar "l4d2_vomitjar_shove_keys" to optionally require holding "R" before shoving. Requested by "Iciaria".

1.8a (14-Nov-2021)
    - Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.

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 (05-Dec-2019)
    - Added breaking sound effect - Requested by "Tonblader".

1.5 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.4 (24-Mar-2018)
    - Added a couple checks to prevent errors being logged - Thanks to "Crasher_3637" for reporting.
    - Fixed self-vomit effect disappearing after ~5 seconds.
    - Updated gamedata txt file.

1.3 (14-May-2017)
    - Added cvar "l4d2_vomitjar_shove_radius" - Distance to splash nearby survivors when the vomitjar breaks.
    - Added cvar "l4d2_vomitjar_shove_splash" - Chance out of 100 to splash self and nearby players when the vomitjar breaks.

1.2 (07-Aug-2013)
    - Fixed the cvar "l4d2_vomitjar_shove_punch" to work correctly.

1.1 (21-Jul-2013)
    - Added cvar "l4d2_vomitjar_shove_punch" to control how many hits a vomitjar can make before breaking.

1.0 (21-Jun-2012)
    - Initial release.


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


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

adrianman 06-22-2012 18:45

Re: [L4D2] Vomitjar Shove (1.0) [21-Jun-2012]
 
can you make a range of visibility group hit instead of just one target please? :D

Silvers 07-06-2013 09:34

Re: [L4D2] Vomitjar Shove (1.0) [21-Jun-2012]
 
Updated gamedata signature file to work with L4D2 SteamPipe update, re-download and replace your gamedata file with the new one.

Thanks to AtomicStryker (I guess) for updating the new addresses (from here)

edit: 1.1 (21-Jul-2013)
- Added cvar "l4d2_vomitjar_shove_punch" to control how hits a vomitjar can make before breaking.
edit: 1.2 (07-Aug-2013)
- Fixed the cvar "l4d2_vomitjar_shove_punch" to work correctly.

Sectus 05-26-2016 02:25

Re: [L4D2] Vomitjar Shove (1.2) [07-Aug-2013]
 
Hi. This plugin still work? Thanks. :)

Silvers 03-24-2018 12:15

Re: [L4D2] Vomitjar Shove (1.4) [24-Mar-2018]
 
Code:

1.4 (24-Mar-2018)
    - Added a couple checks to prevent errors being logged - Thanks to "Crasher_3637" for reporting.
    - Fixed self-vomit effect disappearing after ~5 seconds.
    - Updated gamedata txt file.

1.3 (14-May-2017)
    - Added cvar "l4d2_vomitjar_shove_radius" - Distance to splash nearby survivors when the vomitjar breaks.
    - Added cvar "l4d2_vomitjar_shove_splash" - Chance out of 100 to splash self and nearby players when the vomitjar breaks.

Still working, updated and fixed.

1.4 requires the new .txt gamedata file. Also the _splash cvar math was inverted, so now it should be working as intended.

Tonblader 12-02-2019 20:48

Re: [L4D2] Vomitjar Shove (1.5) [05-May-2018]
 
Could you add that vomit, when pushed a number of times, is destroyed automatically (if is possible a notification appears)?
Also against what kind of things, do you push, for example, common infected, special infected, survivors, objects, doors, etc.
When destroyed, the plugin have the option (cvar) to vomit the ground, or disappear from your hands.
when destroyed or disappear, it must emit the characteristic sound (broken bottle).

Silvers 12-05-2019 08:43

Re: [L4D2] Vomitjar Shove (1.5) [05-May-2018]
 
Quote:

Originally Posted by Tonblader (Post 2675454)
Could you add that vomit, when pushed a number of times, is destroyed automatically (if is possible a notification appears)?
Also against what kind of things, do you push, for example, common infected, special infected, survivors, objects, doors, etc.
When destroyed, the plugin have the option (cvar) to vomit the ground, or disappear from your hands.
when destroyed or disappear, it must emit the characteristic sound (broken bottle).

Please fully read the cvars again. Already exists to destroy after X times and to target Y players. Doors really? Come on.. Vomit on ground what? No sorry.

Added breaking sound. Thanks.

NoroHime 02-01-2022 15:12

Re: [L4D2] Vomitjar Shove (1.8a) [14-Nov-2021]
 
not glow or effects on realism common infected?

faka 09-09-2023 15:07

Re: [L4D2] Vomitjar Shove (1.9) [01-Nov-2022]
 
Shoving Tanks with the Vomitjar causes extreme lag lmao


All times are GMT -4. The time now is 05:04.

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