Garry's Mod

Garry's Mod

Better Flashlight [v1.0]
103 Comments
Rinus 1 hour ago 
seems like the flashlight is just off at all times
thatrandom1one1guy 25 Aug @ 3:53pm 
cuz i cant see that far when playing in the dark
thatrandom1one1guy 25 Aug @ 3:53pm 
is there a way that you can make the flashlight go farther?
Liokindy  [author] 16 Aug @ 8:48am 
Is it really a surprise a flashlight addon may conflict or break the flashlight functions of other addons...
mayonnaise licker 15 Aug @ 11:40am 
This mod seems to break TFA weapon flashlights
Liokindy  [author] 9 Aug @ 6:59pm 
@Zelen the kiwi I looked in the source engine's code and the behavior you're talking about is all hard-coded and can only be triggered by using the default flashlight. If there is a way to do it, it's probably way beyond my skill
Zelen the kiwi 8 Aug @ 12:20pm 
they do not. my best guess is the game tells alyx when your flashlight turns on but if a flashlight mod changes the flashlight at all the game cant tell when its on
Liokindy  [author] 8 Aug @ 8:38am 
@Zelen the kiwi I don't think I can, I think that's hard coded behavior. Do other mods work there?
Zelen the kiwi 7 Aug @ 9:11pm 
can you please make it work with ep1_c17_00 and ep1_c17_01? the areas with alyx break if your mod, or any other flashlight mod is installed
necro 5 Aug @ 12:55am 
Nevermind, I just went through my addons to make sure nothing was fucking with it, and Dynamic Flashlight was, oopsie
necro 5 Aug @ 12:52am 
It's not working, even when I apply the config the flashlight doesn't change
Charmyzard 4 Aug @ 11:17pm 
Still checking today enabling/disabling.
It appears so since it's disabled. Thanks for the time still! :cupup::demoticon:
Liokindy  [author] 3 Aug @ 12:03pm 
@Charmyzard The addon doesn't do anything permanent so if it happens with it disabled I'm not sure it was 100% caused by it
Charmyzard 3 Aug @ 10:59am 
Even with the addon disabled, my flashlight is still gone. This didn't happen before I got this mod.
Medguard 2 Aug @ 12:54pm 
what if a player holds a weapon will it be still on his head?
Charmyzard 2 Aug @ 10:45am 
My better flashlight doesn't exist anymore :steamsad:
"F" is now useless and I'm in the dark.
Liokindy  [author] 1 Aug @ 3:57pm 
@Hatman That scares me... Because I fixed that a long time ago, in what map/place did it happen?
Hatman 31 Jul @ 4:22pm 
i was playing on a dark map with his mod and the flashlight started flickering randomly and i nearly shat myself🥀
Aceratia 24 Jul @ 3:59pm 
Also because the glow floating above the player looks somewhat strange
Aceratia 23 Jul @ 6:36pm 
Is the older version of the addon available? Being able to customize where on the player the flashlight comes from was a really good feature
Mushypepito123 21 Jul @ 2:39am 
Does this also work for Half-Life 2 Episode 1 campaign?
Liokindy  [author] 20 Jul @ 3:56pm 
I fixed the issues regarding multiplayer, I tested it with 2 Gmod instances on a local server and it seemed to work fine (before I was consistently getting the issue everyone reported)
Omen 18 Jul @ 7:37am 
when used in multiplayer it seems like it gets rid of flashlights entirely for clients that AREN'T the server owner and this error log would show up in their console

[Better Flashlight [v1.0]] lua/autorun/sh_better_flashlight.lua:247: attempt to index a nil value

unknown - lua/autorun/sh_better_flashlight.lua:247
unknown - lua/dlib/modules/hook.lua:904 (x738)
Liokindy  [author] 17 Jul @ 8:53pm 
@NyanCatGamer02 Noted. Seems like I forgot to change the convar
Liokindy  [author] 17 Jul @ 8:51pm 
@Enviyon That's supposed to be the default behavior of the flashlight, but it depends on the player-model, some can be done right and some can be bugged so the flashlight is at your feet
Liokindy  [author] 17 Jul @ 8:51pm 
@Dr. Doodle >:) There was. But it was kinda unintuitive went against the idea of making the flashlight always come from the player's POV
Liokindy  [author] 17 Jul @ 8:49pm 
@Topher2009 Noted. I'll try to fix it (I'll see if I can get help from some friends to test it out in multiplayer)
BazTheSpass_12 16 Jul @ 7:19pm 
this is really cool cause i've always had kind of a problem with how dim the gmod flashlight is and i really like this cause it makes it brighter.
Mr cheese 15 Jul @ 5:17am 
The name of the map in the video?
Topher2009 14 Jul @ 3:41pm 
mod no longer works in multiplayer
Dr. Doodle >:) 12 Jul @ 4:47am 
Coulda sworn there was an option where you could customize where the light beam shines from...
snzh 11 Jul @ 8:29am 
downgrade
Enviyon 10 Jul @ 2:41am 
I liked it when I could put a flashlight on my left hand or on my right hand
NyanCatGamer02 9 Jul @ 2:34pm 
besides, there are a lot less settings than i remember, it's hard to fully customize it now
NyanCatGamer02 9 Jul @ 2:29pm 
Unknown command: cl_betterflashlight_local_player_always_firstperson (x6)

This pops up in the console everytime I change the "Only allow shadows for local-player"
Sharki_ISU 9 Jul @ 12:00pm 
[Better Flashlight [v1.0]] lua/autorun/sh_better_flashlight.lua:247: attempt to index a nil value
1. unknown - lua/autorun/sh_better_flashlight.lua:247
2. unknown - lua/dlib/modules/hook.lua:904 (x14761)
melon murderer 9 Jul @ 7:24am 
flashlight is awsome sauce now
krompre 9 Jul @ 7:17am 
Thank you for making a way much better flashlight :) :steamthumbsup:
Cyclops 9 Jul @ 12:43am 
[Better Flashlight [v1.0]] lua/autorun/sh_better_flashlight.lua:247: attempt to index a nil value
1. unknown - lua/autorun/sh_better_flashlight.lua:247
2. unknown - lua/includes/modules/hook.lua:313
MACHO 8 Jul @ 10:35pm 
Ulib seems to be conflicting with this addon on multiplayer

[Better Flashlight [v1.0]] lua/autorun/sh_better_flashlight.lua:247: attempt to index a nil value
1. fn - lua/autorun/sh_better_flashlight.lua:247
2. unknown - lua/ulib/shared/hook.lua:109
dunno what it's about, hopefully you can make heads or tails of it
Liokindy  [author] 8 Jul @ 3:53am 
It took an entire day for steam to check it's not malicious stuff, wow. Anyways there u go
melon murderer 6 Jul @ 1:56am 
nice
Liokindy  [author] 5 Jul @ 10:40pm 
And also keep in mind the main difference of the addon is to show the flashlight from the player's actual POV, and not their playermodel hand/head
Liokindy  [author] 5 Jul @ 10:35pm 
@Annex I tried to solve this by making the flashlight shadows start further away from the actual flashlight position if there was enough space, it worked fine with the playermodels I tested but every playermodel is different so I'll make it adjustable instead
Liokindy  [author] 5 Jul @ 9:00pm 
I'm also reworking, adding and fixing other stuff
Liokindy  [author] 5 Jul @ 9:00pm 
Good news! I think I have finally found a fix for the "flickering"
Liokindy  [author] 3 Jul @ 3:59pm 
@GermanPlasma I don't really play TTT2 but maybe they overwrite the flashlights behavior in some way?
Liokindy  [author] 2 Jul @ 7:23am 
I'll revisit this and see if I add/fix stuff, thx y'all for commenting tho
melon murderer 1 Jul @ 8:46pm 
flashlight fov setting needed
LqmKim 20 Jun @ 9:23pm 
can you add the flashlioght fov to make it big or small