About:- This completely unvomits someone with options of adding back the glow (L4D2 only) and chase goal to attract infected.
- Player model doesn't retain the bile visual effects overlay. Is it possible? I'm guessing it's client side only.
Admin Commands: (requires "z" flag)
PHP Code:
sm_vomit // Cover in bile. Usage: sm_vomit [#userid|name]. No args = target self.
sm_unvomit // Remove effect. Usage: sm_unvomit [#userid|name]. No args = target self.
Cvars:
Saved to
l4d_unvomit.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_unvomit_allow "1"
// 0=Off. 1=Attach a info_goal_infected_chase to players for common infected to chase them.
l4d_unvomit_chase "1"
// Duration of the effect (game default: 20). How long to keep the chase and glow enabled.
l4d_unvomit_duration "20"
// Only users with these flags will be unvomited. Empty = allow all players.
l4d_unvomit_flags ""
// 0=Off. L4D2 only: glow outline on players until vomit reset time. Three values between 0-255 separated by spaces. RGB: Red Green Blue.
l4d_unvomit_glow_color "255 102 0"
// 0=Off. L4D2 only: glow outline in Versus gamemode.
l4d_unvomit_glow_versus "201 17 183"
// 0.0=Instant. Duration of the particle effect (game default: 10.0). How long to keep the on-screen green effect enabled.
l4d_unvomit_particle "0.0"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_unvomit_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_unvomit_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_unvomit_modes_tog "0"
// UnVomit plugin version.
l4d_unvomit_version
Changes:
Code:
1.8 (14-Jul-2022)
- Fixed not removing the effect on players when taking over a bot who has been covered in vomit. Thanks to "hefiwhfcds2" for reporting.
1.7 (20-Jun-2022)
- Fixed the glow not removing on player death. Thanks to "hefiwhfcds2" for reporting.
1.6 (14-Nov-2021)
- Changes to fix warnings when compiling on SourceMod 1.11.
- Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.
1.5 (12-Sep-2021)
- Added cvar "l4d_unvomit_flags" to specify users with certain flags to allow unvomit.
1.4 (28-Apr-2021) - Update by "Dragokas"
- Added cvar "l4d_unvomit_particle" to delay removing the vomit particle effect.
- Prevent glowing errors in L4D1.
1.3 (15-Feb-2021)
- Fixed the invalid entity error. Thanks to "Dragokas" for reporting.
1.2 (01-Apr-2020)
- Fixed incorrect L4D1 Linux signature. Thanks to "Dragokas" for reporting.
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.1 (01-Dec-2019)
- Added new features and cvars, made into a full plugin for release.
1.0 (20-May-2012)
- Initial release.
Installation:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
Updating from 1.4 or older:- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.