Raised This Month: $51 Target: $400
 12% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    348 
    Plugin Description:
    Dissolves the witch, common or special infected when killed
    Old 04-14-2018 , 10: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, 6541 views)
    File Type: sp Get Plugin or Get Source (l4d_dissolve_infected.sp - 4436 views - 23.0 KB)
    __________________

    Last edited by Silvers; 11-15-2022 at 08:04.
    Silvers is offline
     



    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:26.


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