Left 4 Dead 2

Left 4 Dead 2

5,621 ratings
Dynamic Light
2
5
17
2
10
5
5
2
2
2
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
28.097 KB
18 Oct, 2020 @ 3:46am
20 Jun, 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
4 Apr @ 3:26pm
Game Crash
No tengo skillch
3
16 Jul @ 8:11pm
luminosity incompatibility with objects
XARK
5
26 Jul @ 1:48am
#ERROR
ZHOLAZx
490 Comments
Captain Eierstock 23 Jul @ 12:36pm 
Spitter goo lights red in my case? Anyone know why?
Pyromaniax 16 Jul @ 2:08pm 
would make more sense for the pipe bomb to have a flickering light from the wick when held instead of the blinking light as that one is off until thrown
ink 10 Jul @ 12:14am 
Causes objects to abnormally light up when shooting
PaK 22 Jun @ 9:08am 
great mod but the only thing missing here is light source from teammates flashlight, its kinda crazy some people say its impossible and the other admit the opposite
Crashado 8 Jun @ 2:21pm 
not working
黑视 3 Jun @ 6:36am 
how do i turn off muzzle light of mac10?
dj_panderz |ttv 28 May @ 5:19pm 
what do you mean by attachment points ?
bc i played with non-modded survivors and the molly still dont work...../.?
im asking bc if i can just re add them my self with models i like.
like would i have to go into blender and rename a bone or i have to add to the qc file ?
TheTuncT 16 May @ 7:51am 


I've added this addon to the Tacticam Addon Collection. Check it out here: Tacticam


SHiFT_DeL3TE 29 Apr @ 4:04pm 
The parish cemetery mission has some weird lighting issues at the beginning of the map where the highway bridge is.
ɖɛʟʈą 8 Apr @ 5:24am 
Simply epic.