Raised This Month: $81 Target: $400
 20% 

[L4D & L4D2] Dissolve Infected (1.17) [15-Nov-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6093
Plugin Version:
1.17
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    349 
    Plugin Description:
    Dissolves the witch, common or special infected when killed
    Old 04-14-2018 , 11:38   [L4D & L4D2] Dissolve Infected (1.17) [15-Nov-2022]
    Reply With Quote #1


    (Screenshot uses l4d_dissolve_time 0.8)

    About:
    • I first attempted to create this plugin in 2010 and tried several times over the years. Finally it's done!

      A huge thanks to Lux and Visual77 who repeatedly tested various methods to fix the issues!

      If you simply want ragdolls to fade without the dissolve effects, use the plugin located here.



    Thanks:
    • Lux - Helped scripting, testing and adding support for LMC.
    • Visual77 - Helped scripting, tons of testing and ideas.
    • Dragokas - Helped testing.
    • Everyone else who tested.



    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_dissolve       // Kills and dissolves entity being aimed at. 


    CVars:

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

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_dissolve_allow "1"

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

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

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

    // Out of 100 the chance of dissolving a zombie when it dies. Note: stays activate for 0.5 seconds after triggering.
    l4d_dissolve_chance "100"

    // Dissolve these on death: 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
    l4d_dissolve_infected "511"

    // When time_min and time_max are not 0.0 the dissolve time will randomly be set to a value between these.
    l4d_dissolve_time_min "0.0"

    // When time_min and time_max are not 0.0 the dissolve time will randomly be set to a value between these.
    l4d_dissolve_time_max "0.0"

    // How long the particles stay for. Recommended values for best results from 0.0 (minimal particles) to 0.8.
    l4d_dissolve_time "0.2"

    // Dissolve Infected plugin version.
    l4d_dissolve_version 


    Changes:
    Code:
    1.17 (15-Nov-2022)
        - Fixed plugin not working after map change without round ending. Thanks to "HarryPotter" for reporting.
    
    1.16 (03-Jan-2022)
        - Changes to fix warnings when compiling on SourceMod 1.11.
        - Fixed rare error about invalid edict. Thanks to "ur5efj" for reporting.
    
    1.15 (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.14 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.13 (20-Jan-2020)
        - Fix made compatible for L4D1.
    
    1.12 (18-Jan-2020)
        - GodMode zombies and crashing should really be solved now and never happen again.
        - Removed OnEntityDestroyed method.
    
    1.11 (17-Jan-2020)
        - Reverted MAX_DISSOLVE to 32.
        - Added OnEntityDestroyed when a dissolver is deleted to kill the related common infected.
    
    1.10 (07-Jan-2020)
        - Changed max dissolve at once limit from 32 to 25. It seems 29 at once is where the problem starts.
        - Potential fix for godmode zombies when too many die at once.
    
    1.9 (19-Dec-2019)
        - Fix for potential godmode zombies from bad cvars.
        - Clamped the time cvars value ranges.
    
    1.8 (09-Nov-2019)
        - Fix for potential godmode zombies when using LMC.
    
    1.7 (23-Oct-2019)
        - Changed Library names for Lux Model Changer plugin to "LMCEDeathHandler".
        - Fixed cvar "l4d_dissolve_infected" not working for the Tank in L4D1.
    
    1.6 (01-Jun-2019)
        - Fixed godmode zombies bug. Thanks to Dragokas for fixing.
        - Changed the way LMC was included, no changes are required to compile with or without the include.
    
    1.5 (10-Oct-2018)
        - Added cvars "l4d_dissolve_time_min" and  "l4d_dissolve_time_max" to randomly select dissolve time.
        - Fixed fading ragdolls when the dissolve effects have reached their max active limit of 32.
        - Fixed 1 shot Witch kill not fading.
    
    1.4 (05-May-2018)
        - Added cvar "l4d_dissolve_gibs" to control which infected produce gibs.
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.3 (15-Apr-2018)
        - Fixed crash.
    
    1.2 (15-Apr-2018)
        - Potential crash fix.
        - Optimized the plugin for cvars set at 100 chance and 511 infected.
    
    1.1.1 (14-Apr-2018)
        - Another stupid bug. Update required.
    
    1.1 (14-Apr-2018)
        - Better version.
        - Various fixes.
    
    1.0 (13-Apr-2018)
        - Initial release.


    Installation:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    • Download "l4d_dissolve_infected.txt" gamedata 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_dissolve_infected.txt (784 Bytes, 6328 views)
    File Type: sp Get Plugin or Get Source (l4d_dissolve_infected.sp - 4036 views - 23.0 KB)
    __________________

    Last edited by Silvers; 11-15-2022 at 09:04.
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-14-2018 , 11:41   Re: [L4D & L4D2] Dissolve Infected (1.0) [14-Apr-2018]
    Reply With Quote #2

    Thanks.

    Beautiful. Work like a clock.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 04-15-2018 , 03:27   Re: [L4D & L4D2] Dissolve Infected (1.1.1) [14-Apr-2018]
    Reply With Quote #3

    This reminds me of Portal 2 because you can make objects dissolve when you bring them through a fizzler. XD
    __________________
    Psyk0tik is offline
    eziosid
    Senior Member
    Join Date: Sep 2017
    Old 04-15-2018 , 03:27   Re: [L4D & L4D2] Dissolve Infected (1.1.1) [14-Apr-2018]
    Reply With Quote #4

    report win server crash after 5 min nothing in logs
    PHP Code:
    // This file was auto-generated by SourceMod (v1.8.0.6015)
    // ConVars for plugin "l4d_dissolve_infected.smx"


    // 0=Plugin off, 1=Plugin on.
    // -
    // Default: "1"
    l4d_dissolve_allow "1"

    // Out of 100 the chance of dissolving a zombie when it dies. Note: stays activate for 0.5 seconds after triggering.
    // -
    // Default: "100"
    l4d_dissolve_chance "100"

    // Dissolve these on death: 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
    // -
    // Default: "511"
    l4d_dissolve_infected "511"

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

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

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

    // How long the particles stay for. Recommended values for best results from 0.0 (minimal particles) to 0.8.
    // -
    // Default: "0.2"
    l4d_dissolve_time "0.2" 
    and this is cfg file in
    Code:
    \left4dead2\cfg\sourcemod
    eziosid is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 04-15-2018 , 05:52   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #5

    Thanks. Updated with potential fix.

    Does it happen with any specific maps? Gamemode?

    Edit: Still crashes it seems.
    __________________

    Last edited by Silvers; 04-15-2018 at 07:35.
    Silvers is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 04-15-2018 , 07:51   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #6

    Manually create a zombie, kill after crash.
    If the zombie is flushed from the system, it will not crash.
    The server crashed after running for a few minutes, too serious.
    Currently I only enabled l4d_dissolve_infected "252" to run for about 15 minutes without crashing.
    I continue to test today........
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 04-15-2018 , 08:55   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #7

    Thanks. Are you saying delete the zombie when they die? It seems to be common infected only causing the crash. If I delete them after SDKCall I don't see the effects but also don't crash. Maybe a common infected clone could be created (already tried and it works, but the animation is in T pose.. need more work but at least that's a solution).

    Edit: Found a fix. Working on it.
    __________________

    Last edited by Silvers; 04-15-2018 at 11:41.
    Silvers is offline
    Striker black
    Member
    Join Date: Apr 2013
    Old 04-15-2018 , 10:00   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #8

    Wowwww beautiful
    a marvelous plugin, I am going to add it in my servant immediately

    --------------------------------------------------------------------------------------------
    Striker black is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 04-15-2018 , 10:42   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #9

    The problem now lies in common.
    witch.Tank. I'm testing later.

    ------------------------------------------------------------
    If you want to experience the plug-in, please set l4d_dissolve_infected "252", it can run normally and will not crash.
    I have been testing for a long time and have not crashed.
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 04-15-2018 , 11:42   Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
    Reply With Quote #10

    Witch, when frightened, died and was dissolved several times.
    The effect of dissolving many times is very nice. ^_^
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 04-15-2018 at 11:54.
    phoenix0001 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 18:03.


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