Raised This Month: $109 Target: $400
 27% 

[L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.2) [01-Apr-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6836
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Removes the visual vomit effect from a survivor.
    Old 12-01-2019 , 12:17   [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.2) [01-Apr-2020]
    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"

    // 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 100 0"

    // 0=Off. L4D2 only: glow outline in Versus gamemode.
    l4d_unvomit_glow_versus "201 18 184"

    // 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.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.
    Attached Files
    File Type: txt l4d_unvomit.txt (2.3 KB, 143 views)
    File Type: sp Get Plugin or Get Source (l4d_unvomit.sp - 250 views - 13.9 KB)
    __________________

    Last edited by Silvers; 04-01-2020 at 13:21.
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 12-09-2019 , 12: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)
    [My plugins] [My tools] [GitHub] [Articles]
    Dragokas is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Old 12-31-2019 , 08:06   Re: [L4D & L4D2] UnVomit - Remove Boomer Screen Effect (1.0) [01-Dec-2019]
    Reply With Quote #3

    Interesting, another recently created Boomer bile plugin, one that I've only just seen today.

    Have you thought about adding an option for having a 'bile-blindness' duration timer added to the player that gets vomited on - as an option, in addition to having it disabled altogether. For example I use TBK Duy's own plugin that does just that - link can be found here: https://forums.alliedmods.net/showpo...73&postcount=9

    However, even though TBK Duy's blindness timer effect is still very good, it still doesn't work with the goo-bile fade-out timer (ie the default one as used by the game itself). So my question is: is it possible with your plugin to add such a blindness-duration timer? but to also work with the game's goo fade-out timer as well ? (I believe the goo fade-out effect is just a camera/screen effect on the players' vision) AFAIK.

    I'm interested in your thoughts on this idea?

    Sunyata

    PS: I have my blindness timer set for 7 seconds on my server - the game default is 20.

    Last edited by Sunyata; 12-31-2019 at 08:09. Reason: PS added
    Sunyata is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 03-19-2020 , 22: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)
    [My plugins] [My tools] [GitHub] [Articles]

    Last edited by Dragokas; 03-19-2020 at 23:01.
    Dragokas 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:01.


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