Left 4 Dead 2

Left 4 Dead 2

5,317 ratings
Dynamic Light
2
5
16
2
10
5
5
2
2
2
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
28.097 KB
Oct 18, 2020 @ 3:46am
Jun 20, 2022 @ 9:13am
20 Change Notes ( view )

Subscribe to download
Dynamic Light

Description
READ THE DESCRIPTION

Dynamic Light
This is a server-side add-on (for YOUR Listen / Dedicated server)

Creates dynamic light on molotovs, pipe bombs, spit, burning infected (SI and Tank) and muzzle flash

Chat Commands
!dl_reset - reset settings to default !dl_reload - reload settings

Customization / Configuration file
After your first playing with this add-on, in the folder Left 4 Dead 2/left4dead2/ems/dynamic_light will appear settings.txt file, it includes these parameters by default:
Allow = true // Enable dynamic light: true or false Limit = 16 // Limit of dynamic lights GlowPipe = true GlowPipeProjectile = true PipeBlinkInterval = 0.25 PipeRadius = 160.0 PipeFuseRadius = 32.0 PipeProjectileRadius = 200.0 PipeProjectileFuseRadius = 16.0 PipeBlinkColor = "255 0 0" // RGB color, format: "R G B" PipeFuseColor = "128 28 0" PipeProjectileBlinkColor = "200 0 0" PipeProjectileFuseColor = "255 55 0" GlowMolotov = true GlowMolotovProjectile = true MolotovRadius = 200.0 MolotovProjectileRadius = 200.0 GlowInferno = true InfernoRadius = 250.0 FlameColor = "255 50 0" GlowSpit = true GlowSpitProjectile = true SpitRadius = 250.0 SpitProjectileRadius = 150.0 SpitColor = "0 192 0" GlowFirecrackerBlast = true FirecrackerBlastRadius = 250.0 FirecrackerBlastColor = "255 100 0" GlowBurningInfected = true BurningInfectedRadius = 150.0 GlowMuzzleFlash = true SemiAutomaticWeaponMinRadius = 100.0 // Random radius betweeen min and max when you fire your weapon SemiAutomaticWeaponMaxRadius = 255.0 AutomaticWeaponFlickerRadius = 65.0 // Short light to make the muzzle flash more realistic AutomaticWeaponMinRadius = 155.0 AutomaticWeaponMaxRadius = 255.0 MuzzleFlashColor = "250 150 30"

Remove configuration file to reset settings, the script will create a new one.
Also the script loads file after every round restart, or you can just use command !dl_reload

Known Issues
  • Dynamic light may not appear when you're holding molotov or pipe bomb. It's caused by custom survivor models that lack default attachment points, authors of such models may have removed or renamed attachments that are used by the addon.
  • The game is crashing. Mostly, it's caused by addons that burden your game, in this case, decrease the value of parameter Limit in the file ../Left 4 Dead 2/left4dead2/ems/dynamic_light/settings.txt, it will set the limit of the dynamic lights that the addon shall use.

Full Compatibility
Popular Discussions View All (6)
7
Apr 4 @ 3:26pm
Game Crash
No tengo skillch
4
May 26, 2023 @ 11:55pm
#ERROR
ZHOLAZx
1
Dec 8, 2023 @ 1:11am
Dynamic light solution for molotovs
XARK
483 Comments
SHiFT_DeL3TE Apr 29 @ 4:04pm 
The parish cemetery mission has some weird lighting issues at the beginning of the map where the highway bridge is.
Pyromaniax Apr 21 @ 11:59pm 
a minor nitpick is that the pipe bomb has a red bliping light while held, where it shouldn't really have it since it's off until thrown
ღ Melany ღ Apr 8 @ 5:24am 
Simply epic.
ScottyMeHotty Mar 18 @ 5:07pm 
The only thing this mod is missing is the flashlight illuminating the players view model
Nevski Mar 16 @ 11:08am 
My friend why Molotov doesn't work ?
(ノ◕ヮ◕)ノ*.✧ Mar 16 @ 9:33am 
does someone knows if in previous versions this worked with trs bill?
Blyatman Mar 16 @ 8:02am 
is good yes
Jakiy Mar 13 @ 6:32am 
I mean it truly enhanced the lighting experience but for some reason the square shaped colors on the ground make it look... weird. I'm not sure if I like it that much though. Which settings to fix that in ems?
ɴᴀᴛᴜꜱ⸸ꜱɪᴛʜ Mar 9 @ 10:24pm 
It only works in single player campaign, versus and multiplayer don't work
NOTMrDanny Feb 21 @ 9:55am 
doesnt work anymore :(