(Thanks to "Lux" for the gif)
Related Plugins:
About:- Creates a dynamic light where Molotovs, Gascans and Firework Crates burn.
- The light flickers and fades in and out.
- Maximum of 8 lights simultaneously. Recompile changing "define MAX_LIGHTS" value if you want more.
- The games cvar inferno_flame_lifetime sets how long Molotovs, Gascans and Firework Crates burn for.
- If you want to change, save sm_cvar inferno_flame_lifetime 15 to your servers cfgs\server.cfg.
- 15 is the default value, but you can change. This plugin will adapt the light time.
- Game Bug: Fire particles disappear after 15 seconds regardless of the cvar inferno_flame_lifetime. Damage still occurs until the time ends.
Thanks:- irogue - For the request.
- Don't Fear The Reaper - Testing and light fade idea.
- bubbabyte - Found a major bug before release.
- disawar1 - Helped testing.
- Lux - Updating with smooth transitions.
Cvars:
Saved to
l4d_fire_glow.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_fire_glow_allow "1"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_fire_glow_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_fire_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_fire_glow_modes_tog "0"
// How far does the dynamic light illuminate the area.
l4d_fire_glow_distance "250.0"
// The light color for Firework Crate explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d_fire_glow_fireworks "255 100 0"
// The light color for Molotov and Gascan fires. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d_fire_glow_inferno "255 25 0"
// Fire Glow plugin version.
l4d_fire_glow_version
Changes:
Code:
1.8 (25-Mar-2022)
- Better fade in and out timing.
1.7 (22-Mar-2022)
- Changed the method for fading lights in and out hopefully preventing random server crash.
1.6 (12-Jul-2020)
- Added smoother fading of the light, thanks to "Lux" for coding in.
1.5 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Various changes to tidy up code.
1.4 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.3 (05-May-2018)
- Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
- Changed cvar "l4d_fire_glow_modes_tog" now supports L4D1.
1.2 (30-Jun-2012)
- Fixed the plugin not working in L4D1.
1.1 (20-Jun-2012)
- Added cvars "l4d_fire_glow_modes", "l4d_fire_glow_modes_off" and "l4d_fire_glow_modes_tog" to control which modes turn on the plugin.
1.0 (02-Jun-2012)
- Initial release.
Installation:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.