Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.8) [14-Jul-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6836
Plugin Version:
1.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Removes the visual vomit effect from a survivor.
    Old 12-01-2019 , 13:17   [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.8) [14-Jul-2022]
    Reply With Quote #1

    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:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. 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.
    Attached Files
    File Type: txt l4d_unvomit.txt (2.3 KB, 519 views)
    File Type: sp Get Plugin or Get Source (l4d_unvomit.sp - 696 views - 18.3 KB)
    __________________

    Last edited by Silvers; 07-14-2022 at 12:25.
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-09-2019 , 13:21   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.0) [01-Dec-2019]
    Reply With Quote #2

    Nice one! Thank you.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 12-31-2019 , 09:06   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.0) [01-Dec-2019]
    Reply With Quote #3

    [Post deleted]

    Last edited by Sunyata; 04-28-2021 at 07:15. Reason: post deleted
    Sunyata is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 03-19-2020 , 23:10   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.0) [01-Dec-2019]
    Reply With Quote #4

    1. Correct L4D1 signature for "CTerrorPlayer::OnVomitedUpon" should be:
    Code:
    "linux"			"@_ZN13CTerrorPlayer13OnVomitedUponEPS_bb"
    Also, I think missing check for L4D1 game in SetEntProp of the glow.

    2. I noticed sm_vomit is conflicting with unvomit, because green on-screen effect is not appearing, so I guess "SDKCall(g_hSDKUnVomit ... " in Event_IsIt event should be delayed or disabled once for that client if sm_vomit called.

    3. Suggestion on improvements:

    This plugin is completely remove on-screen green vomit effect, but I want just decrease effect duration e.g. down to 1-2 sec.
    I tried such cvars:
    Quote:
    sb_vomit_blind_time (set to 1) : 5 : , "sv", "cheat" : How long Boomer vomit/explosion gore blinds us
    z_vomit_fade_duration (set to 1) : 5 : , "cheat", "rep", "cl" : How long the fade takes
    z_vomit_fade_start (set to 1) : 5 : , "cheat", "rep", "cl" : When the vomit starts to fade away
    but without luck here in L4D1.

    Maybe you know other cvars? Or you can add Cvar to delay calling "SDKCall(g_hSDKUnVomit ... " in Event_IsIt.

    Still, not sure why, when I delay SDKCall on 1.0 sec., effect dissapeared after 1.0 sec, but when I explode second boomer just right after it, on-screen effect is not appearing at all for some time.
    Actually, it is good for me. Just share my observations.

    Thanks.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 03-20-2020 at 00:01.
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-21-2020 , 15:37   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.2) [01-Apr-2020]
    Reply With Quote #5

    Code:
    L 11/21/2020 - 22:19:06: [SM] Exception reported: Entity 3 (3) is invalid
    L 11/21/2020 - 22:19:06: [SM] Blaming: l4d_unvomit.smx
    L 11/21/2020 - 22:19:06: [SM] Call stack trace:
    L 11/21/2020 - 22:19:06: [SM]   [0] GetEntProp
    L 11/21/2020 - 22:19:06: [SM]   [1] Line 417, H:\_To_games\Left4Dead_2\My_mods\GameMode\SpecialRounds\l4d_unvomit.sp::TimerUnvomit
    Thanks.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-25-2021 , 17:13   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.3) [15-Feb-2021]
    Reply With Quote #6

    Hi, Silvers!
    Can I ask you please to include the feature?

    Quote:
    - Added "l4d_unvomit_particle_dur" ConVar to delay vomit particle effect.
    - Prevent glowing errors in L4D1.
    Thank you.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 04-28-2021 at 13:06.
    Dragokas is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 04-28-2021 , 06:51   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.4) [28-Apr-2021]
    Reply With Quote #7

    Thanks, updated. I changed the cvar name to "l4d_unvomit_particle".

    I do have a completely different version of this plugin which allows better control over the effect by removing it without changing the chase or glow etc, but it's not 100% solid and I can't figure out how the values work (modifying memory) to fix. PM if interested, I don't have time to play around with it.
    __________________
    Silvers is offline
    VladimirTk
    Senior Member
    Join Date: Apr 2021
    Location: Perú - Latino América
    Old 09-08-2021 , 22:23   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.4) [28-Apr-2021]
    Reply With Quote #8

    Could you add a cvar so that it only removes the vomit for VIP players or administrators? It would give more advantage to paying customers but I think many of my users would like the idea.

    Last edited by VladimirTk; 09-09-2021 at 00:35.
    VladimirTk is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-11-2021 , 23:53   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.5) [12-Sep-2021]
    Reply With Quote #9

    Quote:
    Originally Posted by VladimirTk View Post
    Could you add a cvar so that it only removes the vomit for VIP players or administrators? It would give more advantage to paying customers but I think many of my users would like the idea.
    Done, please let me know that it works, I wasn't able to test but it's simple enough and I've done it several times so I think it should.

    Code:
    1.5 (12-Sep-2021)
        - Added cvar "l4d_unvomit_flags" to specify users with certain flags to allow unvomit.
    __________________
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-12-2021 , 10:55   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.5) [12-Sep-2021]
    Reply With Quote #10

    Quote:
    Originally Posted by aiyoaiui View Post
    you can remove the blood stains on the screen?
    This plugin removes the boomer effect, what blood stains are you talking about? I see none from the boomer after this plugin removes the effect.
    __________________
    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 13:19.


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