AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Dissolve Infected (1.17) [15-Nov-2022] (https://forums.alliedmods.net/showthread.php?t=306789)

Silvers 04-14-2018 10:38

[L4D & L4D2] Dissolve Infected (1.17) [15-Nov-2022]
 
20 Attachment(s)
https://i.imgur.com/O4BSOeO.jpg
(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.

Dragokas 04-14-2018 10:41

Re: [L4D & L4D2] Dissolve Infected (1.0) [14-Apr-2018]
 
Thanks.

Beautiful. Work like a clock.

Psyk0tik 04-15-2018 02:27

Re: [L4D & L4D2] Dissolve Infected (1.1.1) [14-Apr-2018]
 
This reminds me of Portal 2 because you can make objects dissolve when you bring them through a fizzler. XD

eziosid 04-15-2018 02:27

Re: [L4D & L4D2] Dissolve Infected (1.1.1) [14-Apr-2018]
 
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

Silvers 04-15-2018 04:52

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
Thanks. Updated with potential fix.

Does it happen with any specific maps? Gamemode?

Edit: Still crashes it seems.

phoenix0001 04-15-2018 06:51

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
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........

Silvers 04-15-2018 07:55

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
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.

Striker black 04-15-2018 09:00

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
Wowwww beautiful:wink:
a marvelous plugin, I am going to add it in my servant immediately

--------------------------------------------------------------------------------------------
http://cache.gametracker.com/server_...b_560_95_1.png

phoenix0001 04-15-2018 09:42

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
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.

phoenix0001 04-15-2018 10:42

Re: [L4D & L4D2] Dissolve Infected (1.2) [15-Apr-2018]
 
Witch, when frightened, died and was dissolved several times.
The effect of dissolving many times is very nice. ^_^


All times are GMT -4. The time now is 04:37.

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