Garry's Mod

Garry's Mod

Amnesia Lantern Rework
281 Comments
ryandrobinson50 19 Nov, 2024 @ 12:35pm 
how to use with vr it seems to not work
TheLurking 6 Nov, 2024 @ 2:41pm 
Amnesia bunker flashlight
Speed Racer 21 Oct, 2024 @ 5:41am 
\/
Based The Librarian fan.
Dolphineer 10 Oct, 2024 @ 8:35pm 
"Hello, everyone, and welcome back, once again, to... Garry's Mod." - The Librarian
Cypriotitus 6 Oct, 2024 @ 5:39pm 
Never mind I fixed it somehow.
Cypriotitus 6 Oct, 2024 @ 5:18pm 
For some of my pm's it shows them holding it, but for others it's in side of them. It works fine but it's inside of them.
Rocky the Rock 27 Sep, 2024 @ 3:56pm 
I'm also experiencing the issue @ScarletHawk is having. Disabling all other mods except for two map mods that has a changelevel function and this mod causes the issue, while disabling this mod doesn't have the issue. You'd only see it in third person or if you looked into a mirror.

Changing player models didn't seem to fix it, but using PAC3 by doing anything will fix it.
ScarletHawk 29 Aug, 2024 @ 2:23pm 
@Buu342 it doesn't mess the models up if i have the mod disabled so it is this mod i painstakingly disabled a mod loaded a map and used the command. and i disabled one mod at a time to figure out witch one it was. use a mod to go into third person and you will see what i mean.
Buu342  [author] 28 Aug, 2024 @ 12:48pm 
@ScarletHawk I cannot replicate this issue, so this is a problem with another addon.
ScarletHawk 16 Aug, 2024 @ 1:19pm 
i know this is likely not to happen but i will ask anyway. so for some reason whenever i have this enabled.and use the change level command it completely messes the player models and mutilates them. and changing player models doesn't fix this. if this could be updated to fix this i would really appreciate it.
gmodplayer54 7 Aug, 2024 @ 12:06am 
Why does the addon delete the headcrabs when subscribed?
er_serginho 25 Jul, 2024 @ 10:18am 
I love getting jumpscared while using this in random maps, guess The Bunker has impacted my thinking
ballistic_beanie 16 Jun, 2024 @ 4:50pm 
it keeps falling out of my hand for some reason
zro 14 Apr, 2024 @ 4:47am 
This addon is 6 years old, i don't think the creator is gonna update or change it or read these comments.
SinnerKnight 10 Mar, 2024 @ 12:30am 
Can you maybe be able to use the lantern on left hand?
Xaviar.smg 1 Mar, 2024 @ 11:42am 
will you do the flashlight from the bunker next?
The Empire of BRISTIAN 18 Nov, 2023 @ 11:12am 
why isn't there any walking animation for the lantern anymore for me? it used to work before
Khaiø 27 Sep, 2023 @ 6:43pm 
Found a slight bug:

[Amnesia Lantern Rework] lua/weapons/buu_lantern.lua:381: attempt to call method 'GetLantern_Holstered' (a nil value)
1. v - lua/weapons/buu_lantern.lua:381
2. unknown - lua/includes/modules/hook.lua:96
Dr. Perky 29 Aug, 2023 @ 6:46pm 
when i have it equipped it just looks like my hand is creating light with no lantern
Mekphen 1 Aug, 2023 @ 9:46am 
Also a small advice for the light position:
Currently you do
local ent = v:GetShootPos()
local pos = ent
pos = pos + v:GetForward() * 30
pos = pos + v:GetRight() * 5
pos = pos + v:GetUp() * -20

A better solution would be to do something like
local pos = v:GetBonePosition( v:LookupBone("ValveBiped.Bip01_R_Hand") )

(and from that position you can move it a bit if needed).
The Shooting pos does not move with the player correctly
Mekphen 1 Aug, 2023 @ 7:53am 
I don't think you need to pay attention to players hitboxes when just manipulating finger bones.
Also i did performance test and already with 5 players this was the hook which took most calculation time. A *single* think hook is *one* think hook to much, since there is almost never a valid reason for a think hook, especially not in this case as you use it.
There is no downside in putting this clientside, but i just wanted to mention it for other users, i have edited it on my server files so we don't have that performance impact.
Buu342  [author] 1 Aug, 2023 @ 7:26am 
@Mekphen
1) If the manipulation is done clientside only, it won't affect the player hitboxes.
2) A *single* think hook that loops through all players once is not going to cause a significant impact in performance, especially since it will only be called once per server tick.
3) Said loop also tries its best to filter out anyone who is not affected by the bone manipulations (which are a heavy operation), so it won't really be an issue even in a large server, unless literally everyone is using the lantern (and even then, players are likely to be GPU bound because dynamic lights in GMod are shitty shit shit).
Mekphen 1 Aug, 2023 @ 4:57am 
There is an bad practice Think Hook which is serverside and can cost performance when you are getting to more players.
You could just make the Think Hook only clientside, it will work just as fine and won't consume any serverside performance.
Jaxntar 9 Jul, 2023 @ 6:17am 
i agree with MONSTERDROID, the idea of brightness / radius and colors would be awesome!

(for some reason there AREN'T many other lantern mods. i wonder why.)
I IDENTIFY AS TOAST™ 7 Jun, 2023 @ 7:20pm 
very nice
MONSTERDROID 24 May, 2023 @ 8:12am 
If this mod is still maintained an option for adjusting the brightness / radius of effect would be nice. options for different colors would also be cool.
MONSTERDROID 24 May, 2023 @ 8:11am 
@Krypto your workshop isn't visible & I couldn't find your brighter version from the search if you still had it?
kashy 19 Mar, 2023 @ 10:48am 
Librarian.
Speed Racer 28 Jan, 2023 @ 6:47am 
The Librarian, anyone?
D4KiR 8 Jan, 2023 @ 10:19pm 
after dropping the lantern per code
D4KiR 8 Jan, 2023 @ 10:19pm 
[Amnesia Lantern Rework] lua/weapons/buu_lantern.lua:315: attempt to index field 'MyOwner' (a nil value)
1. unknown - lua/weapons/buu_lantern.lua:315
2. StripWeapon - [C]:-1
krypto (Stayin' Positive) 27 Dec, 2022 @ 10:44pm 
Hey y'all, I uploaded a brighter version of this mod for use with night maps and StormFox, if anybody is looking for a brighter light.
LeLiock 15 Oct, 2022 @ 2:10pm 
Oh, that's quite a good addon that we've got right here. Indeed, besides the face that it might appear as quite simple, it's efficient, required, seeked. Well done sir. :lunar2019coolpig:
levkoshelevlev 16 Aug, 2022 @ 2:35am 
этот мод ГОВНО!
Pyke 27 Jul, 2022 @ 10:16am 
Is the ammount of lux adjustable ?
Fizzie 15 Jul, 2022 @ 3:01pm 
Do you think you can add a setting that allows the player to adjust how quickly the oil runs out?
Scene Queen 13 Jul, 2022 @ 10:22pm 
if possable you should make a vr version (for vrmod)
rixzuuPH 4 Jul, 2022 @ 12:23am 
There are some shadow issues when riding any vehicle in 3rd person, actually the shadow becomes bugging out for a long time but if i try to switch to 1st person, the vehicle shadow looks fine. There might be issues with dynamic lighting?
N0xRL 1 Jul, 2022 @ 8:59am 
this map is so good
nibster 30 May, 2022 @ 11:51am 
The model is an error for me, not sure why.
Cap'n Greg 10 May, 2022 @ 12:03am 
Why guts inside castle brennenburg???
Kirya 1 May, 2022 @ 4:46pm 
why don't I have Amnesia Lantern Rework and I have tzar vodka? error?
reeeeee kid boi 13 Dec, 2021 @ 4:24pm 
its just an error for me
NFL Youngboy 16 Oct, 2021 @ 11:16pm 
"My Name is PEEEEWDIEEPIE" - Famous Words
Copper Boltwire 6 Oct, 2021 @ 2:01am 
Any way to make the lantern cast the light for 50-100% longer distance, but still as low/dim near the player just so it can better compete with the flashlight?
Lova 10 Sep, 2021 @ 5:30pm 
can someone make a machine for pig's lantern? i'd like to see that too!
vathikan 21 Jun, 2021 @ 4:52pm 
like gm_construct
Jaypod 12 May, 2021 @ 1:14pm 
This is great for gmod horror maps
Poky 24 Apr, 2021 @ 12:12am 
Lua Errors
Lua/weapons/buu_lantern.lua:315: attempt to index field 'MyOwner' (a nil value)
1. unkown - lua/weapons/buu_lantern.lua:315
The addon "Amnesia Lantern Rework" is creating Lua errors
----------------------------------------------------------------------------------------------------------
How to fix, please tell me!
Buu342  [author] 22 Apr, 2021 @ 4:01am 
@blueshorts38 I never said such thing.