Related Plugins:
About:- Creates a dynamic light on Common Infected, Special Infected and Witch when they are on fire.
- The light flickers and fades in.
- Maximum of 8 lights simultaneously. Recompile changing "define MAX_LIGHTS" value if you want more.
Thanks:
Cvars:
Saved to
l4d_infected_glow.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_infected_glow_allow "1"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_infected_glow_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_infected_glow_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_infected_glow_modes_tog "0"
// 0=Glow disappears on death (even if ragdoll is burning). 1=Glow remains in last position until flames would likely disappear.
l4d_infected_glow_death "0"
// How far does the dynamic light illuminate the area.
l4d_infected_glow_distance "250.0"
// 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
l4d_infected_glow_infected "511"
// The light color. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d_infected_glow_color "255 50 0"
// Infected Glow plugin version.
l4d_infected_glow_version
Changes:
Code:
1.13 (11-Dec-2023)
- Added cvar "l4d_infected_glow_death" to decide if the glow disappears on death or remains in last position.
1.12 (11-Dec-2022)
- Changes to fix compile warnings on SourceMod 1.11.
1.11 (05-Jun-2022)
- Fixed glow duration not following the burn duration. Thanks to "gongo" for reporting.
1.10 (10-Apr-2022)
- Changed the method for fading lights in and out hopefully preventing random server crash.
1.9 (03-Aug-2020)
- Added light fading out instead of abruptly disappearing.
- Added smoother fading of the light, thanks to "Lux" for original coding from "Fire Glow" plugin.
1.8 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Fixed cvar "l4d_infected_glow_infected" not working for the Tank in L4D1.
1.7 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.6 (03-Feb-2020)
- Fixed errors "Invalid edict" by adding "IsValidEdict" - Thanks to "TiTz" for reporting.
1.5 (05-May-2018)
- Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
1.4 (30-Jun-2012)
- Fixed the plugin not working in L4D1.
1.3 (22-Jun-2012)
- Fixed water not removing the glow - Thanks to "id5473" for reporting.
1.2 (20-Jun-2012)
- Added some checks to prevent errors being logged - Thanks to "doritos250" for reporting.
1.1 (20-Jun-2012)
- Fixed not removing the light from Special Infected ignited by incendiary ammo.
1.0 (20-Jun-2012)
- Initial release.
Updating from 1.12 or older:- Cvars have changed: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
Installation:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.