Garry's Mod

Garry's Mod

Auto-Flashlight
14 Comments
ph0roggy 25 Jan @ 10:58am 
what the guy said below, that would be genius
PÖIЙ† βLΛЙK 3 May, 2024 @ 8:26pm 
Someone should add a setting where the flashlight is perpetually on, but the brightness fades in and out based on current light levels
HX 3 Nov, 2023 @ 2:08pm 
epic mod
:steamthumbsup:
Sr. Prime 23 Sep, 2023 @ 11:56am 
perfect!
Yavuzhan 22 Sep, 2023 @ 11:28am 
Yeah this is really sweet, good job!
ATP-1002 22 Sep, 2023 @ 3:01am 
This is some high-level coding where the game knows what to do when Y is near or around X with needing a map script.
Fantastic job!
Lombaxtard 21 Sep, 2023 @ 1:16pm 
That should be enough
Thanks a lot for that :steamthumbsup:
Chev  [author] 21 Sep, 2023 @ 1:15pm 
I added the ability to change the frequency of the check. The minimum value is 0.05 seconds and maximum is 2 seconds.
Lombaxtard 21 Sep, 2023 @ 12:22pm 
If you can, please
Even this simple check can add up and impact frames heavily, especially on a crappy cpu such as mine
Chev  [author] 21 Sep, 2023 @ 12:21pm 
Right now it runs every 0.1 seconds. The script is fairly lightweight so it shouldn't have a big performance impact. The main annoyance I've noticed so far is if you're going through light and dark areas really fast, the flashlight will flicker on and off. I could probably add a setting to adjust the timer frequency.
Lombaxtard 21 Sep, 2023 @ 6:11am 
Is there a setting for a frequency check in ticks/seconds? Wouldn't want this to run in real time like "Halo Bloom" eye adaptation effect does and takes a good chunk of performance
beet eater 21 Sep, 2023 @ 2:39am 
this was the death of flashlights in video games, this kinda shit. fuck you, destiny 2, i want to use my flashlight whenever the cum i want
Worst Eleanor Ever 19 Sep, 2023 @ 12:37pm 
Back 4 Blood flashlight mod
TYR 18 Sep, 2023 @ 10:25pm 
My dyslectic disappointment when I realized it wasn't an auto-fleshlight addon for gmod