Left 4 Dead 2

Left 4 Dead 2

774 ratings
VScript Dynamic Survivor Flashlights
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
83.641 KB
6 Feb @ 1:43pm
9 Feb @ 8:18am
4 Change Notes ( view )

Subscribe to download
VScript Dynamic Survivor Flashlights

Description
This addon adds server-sided flashlights for each survivor, so that other players flashlights illuminate the world!
FLASHING LIGHTS WARNING

Compatible with flash light reskins

i think this works better on higher tickrate?

Bugs:
  • you have two flashlights
  • the addon only works 75% of the time, sometimes
  • ~33% of the time you start a map it can cause seizure inducing flashing lights yeah its bad
  • only one flashlight can cast shadows (unless you launch the game from the authoring tools)
  • The viewmodel lighting can be very picky sometimes (this is because i'm trying to avoid glitches with light_dynamic)

Local Server Only

how do i not transmit the flash light entity to the owner?
If you really like what this addon does, but it crashes or is too janky for you:
Lite Version
Popular Discussions View All (2)
7
8 Mar @ 7:53pm
PINNED: More Bugs
Ptprost
2
9 Feb @ 12:49am
good
Veka_444
84 Comments
Sayachii 23 Jun @ 8:34am 
Understandable. This is still incredibly cool and useful for the more horror-themed corrections.
Ptprost  [author] 23 Jun @ 12:03am 
@Sayachii No, I'm just not interested enough to make it.
Sayachii 22 Jun @ 3:34pm 
Is there a chance you'll make a version for the lasersights? (They appear for everyone else but the client's model, mostly a thirdpersonshoulder thing)
Aurelíos 17 Jun @ 2:16pm 
Works better in customs maps :steammocking:
CaptPatrick01 6 Jun @ 5:04pm 
@ 爱笑的佐巴扬 Looks like a problem with the source engine itself when a light entity hits a prop, since that problem occurs with the sourcemod flashlight mod too.
Pixel 26 May @ 2:43am 
it would've been nice if it wasnt for the second flashlight following my first flashlight
爱笑的佐巴扬 23 May @ 9:39pm 
NPC's flashlight Will make Object modeling emit light, I hope to fix it.
@Ptprost
Yes
I actually had that problem and it was driving me crazy, so I was testing my mods to see if any of them were causing that conflict (although I didn't have any conflicts with any others in my mod list), and it made me even weirder.
Then I read the comments, and a guy typed the same command you mentioned, and that problem was solved for me :)
Also, I got this LITE version, it's lighter and better suited my needs :)
Ptprost  [author] 18 May @ 3:08pm 
@Колоссальный вет
Yeah, in testing survivor bots tended to only turn their flashlights on at the start of a level.
Setting "sb_flashlight" to 1 forces their flashlights to stay on, but I opted to not change that behavior. though valve probably didn't do that intentionally
@Ptprost
Is it normal for survivors not to turn on their lights? (Like the demo gift in the mod description) Because it's happening to me :/
Survivors turn their lights on, then turn them off, and stay like that for a few minutes or even longer, and with "luck" they turn them back on.