Garry's Mod

Garry's Mod

PhysLight - Physgun Dynamic Light
314 Comments
Lily White 9 Jul @ 9:17pm 
[PhysLight - Physgun Dynamic Light] lua/autorun/physlight.lua:39: bad argument #3 to '__newindex' (Vector expected, got nil)
1. __newindex - [C]:-1
2. unknown - lua/autorun/physlight.lua:39
3. unknown - lua/includes/modules/hook.lua:313
Machoboy197 2 Jan @ 2:49pm 
Would you be able to make this compatible with the one from the MMOD?
Lazy  [author] 23 Oct, 2024 @ 1:32pm 
@RedToastyWeegee🍞
What do you mean it's stuck; you're using it despite it not being installed?
RedToastyWeegee 23 Oct, 2024 @ 11:55am 
I'm having some issues with the mod. After I had uninstalled it, It still had stuck even though I had uninstalled it, I've tried reinstalling & uninstalling but nothing works. Can anyone help please? :C
i wanna be the soul! 16 Oct, 2024 @ 4:54pm 
steam collasping
AC 29 Sep, 2024 @ 2:04am 
sry for the late response btw
AC 29 Sep, 2024 @ 2:04am 
the addon is also rly bad and i think it overwrote the actual physgun model so i cant change it back. that might be part of the issue aswell
AC 29 Sep, 2024 @ 2:01am 
@Lazy yes i do, i got a thing that replaces the gun with the tau cannon model (like it looks in the weapon selector). i hadnt considered that to be a problem tbh.
Lazy  [author] 15 Sep, 2024 @ 8:28pm 
@moronic merc
I'm happy you found it then!
moronic merc 15 Sep, 2024 @ 8:25pm 
i was looking for this after seeing a menu screen icon showing a metrocop with a physgun that supplied a lantern like illumination
Snowcen 18 Jun, 2024 @ 12:58am 
hello.
I like the mod but there is one major issue. there is no saving feature.

when making a new profile none of the current parameters are saved. I had to go to the txt itself and manully add in the parameter.

secondly every time I boot into a new map or restart my current instance it goes back to the default and not any of my profiles.

pls fix.
Lazy  [author] 14 Jun, 2024 @ 2:50pm 
@AC
Somehow I missed that comment. Are you using any Physgun reskins? I haven't looked in to that but I'm curious
Awakened NPC. 14 Jun, 2024 @ 2:48pm 
@kemakangi Because it doesn't work for them, genius.
kemakangi 1 Jun, 2024 @ 7:44am 
It works perfectly fine !! , thank you! :steamthumbsup: (why does most people complain about this mod?)
Lazy  [author] 13 Apr, 2024 @ 8:51pm 
@Biocrab
yawn
evil foll ginlan davbrer witer 13 Apr, 2024 @ 4:35pm 
now or 0/10 mod
evil foll ginlan davbrer witer 13 Apr, 2024 @ 4:34pm 
or above 255 physgun color values
evil foll ginlan davbrer witer 13 Apr, 2024 @ 4:33pm 
make it work with negative physgun color values
randomworldz91 1 Apr, 2024 @ 9:35am 
garry mod realism
WorldlyRook709 28 Mar, 2024 @ 11:28am 
*or
WorldlyRook709 28 Mar, 2024 @ 11:28am 
is it only me but this causes huge frame drops when grav/phys gun is in use?
AC 19 Mar, 2024 @ 10:12pm 
that thing at the end is just how many times this error occured btw. didnt mean to copy that
AC 19 Mar, 2024 @ 10:11pm 
for the last like 2-3 years this addon has been giving me this error over and over avain when the light is enabled. any clue as to why?:

[PhysLight - Physgun Dynamic Light] lua/autorun/physlight.lua:23: attempt to index a nil value
1. v - lua/autorun/physlight.lua:23
2. unknown - lua/includes/modules/hook.lua:96 (x2909)
Lazy  [author] 9 Mar, 2024 @ 8:06am 
@CheekyBabyBear
installing this mod automatically enables it, so when you hold your physgun / gravity gun, there will be a light on it. if you're interested in additional options, you'll find them under "Options" to the right of the spawnmenu
CheekyBabyBear 9 Mar, 2024 @ 7:50am 
how does it work?
Lazy  [author] 4 Mar, 2024 @ 11:01pm 
@Ajiliffe
@nickyeah
This is the first I've heard of that issue :( I don't play Garry's Mod a lot but I'll try to give it a look sometime
Ajiliffe 1 Mar, 2024 @ 9:10am 
settings doesnt save :( dev pls fix
errollees 15 Feb, 2024 @ 12:21pm 
also works with the physgun and gravity gun in Half-Life 2: MMod - Weapon Replacements Redux
Nick 5 Feb, 2024 @ 11:27pm 
Whenever I change the physlight settings, then restart the game, the settings revert back to default. Saving a preset doesn't work; any thoughts?
ג҉א҉ָ҉ן҉ 5 Feb, 2024 @ 1:47pm 
also physlight actually changes the color of the gravity gun to bright blue when you do "physcannon_mega_enabled 1" (making the gravity gun supercharged, it also glows brighter)
Lazy  [author] 3 Feb, 2024 @ 9:21am 
@stuped
interesting, that means whoever made the HD mod you're talking about didn't mess with the muzzle positioning, which is good!

(also, you spelt it correctly)
ג҉א҉ָ҉ן҉ 3 Feb, 2024 @ 1:27am 
i got a hd version of the physgun and the muzzle is positioned just fine (i bet i spelt positioned wrong)
Ruby_Moonstone 28 Nov, 2023 @ 4:41pm 
Oh yea it does work with the super gravity gun cheat, but not the mod where it's a swep, i didn't know there was a debug for it
Lazy  [author] 28 Nov, 2023 @ 11:37am 
@Ruby_Moonstone
Are you sure? I updated it early this year to support the Super Gravity Gun that comes with Gmod
Ruby_Moonstone 28 Nov, 2023 @ 9:29am 
This mod is really cool but it doesn't work with stuff like the super gravity gun or multi physgun (other mod), maybe it doesn't work with the multi physgun because I changed the color but just wanted to point that out
Space Shuttle Scam 8 Sep, 2023 @ 11:37am 
ok, scrap the links thing, i found it! i can link it if u want
Space Shuttle Scam 8 Sep, 2023 @ 11:24am 
I dont really know why, but i changed my physgin color to purple, and loaded in my game again, and the physlight settings reverted along with my physgun color and the color was green when my physgun color was blue, i might try to disable all of my addons and just enable that one and see if it fixes. but all in all this is 999999999999999999999999999999999999999999999999999999999999999999999% better than thriteens physgun glow!
Lazy  [author] 8 Sep, 2023 @ 10:17am 
@Space Shuttle Scam
Thank you so very much for the nice comments! :8bitheart:

Yes, this should work on a Rainbow Physgun; I'm pretty sure I tested that ages ago! (though feel free to let me know if I'm wrong)

It should also be compatible with any Physgun-related mods, though I can't remember if I programmed a proper fail-safe for mods that replace the model with one that doesn't have an attachment point to emit the light from. Either way, the light on feet / head option would be a workaround in that specific case! :physgun:
Space Shuttle Scam 7 Sep, 2023 @ 5:58pm 
i just realized tht you can change the radius! insane! this mod just keeps on getting better and better! will this work with like rainbow physguns and stuff? like will the light change?
Space Shuttle Scam 7 Sep, 2023 @ 5:56pm 
this is super cool! i haven't seen a mod that you van change where the light emits from! its always been at your feet for a ton of mods, and when i saw the change thing i was like "WHAT I CAN CHANGE IT????' its so cool! thanks for making this incredible mod! you rock!
blayblay 19 Aug, 2023 @ 7:36am 
@catto.ext i think you mean extended render
Lazy  [author] 29 Jul, 2023 @ 1:15pm 
@catto.ext
Hi! You're thinking of another mod. I've seen it before but unfortunately I don't know what it's called. Let me know its name if you find it please! :mbnecoup:
catto.ext 23 Jul, 2023 @ 10:10am 
hello! back in an earlier version of this mod, the extended render would apply to health kits, batteries, and a few other various items. Im not sure if this was intentional on your end, but if it was, would it be possible to bring it back as a feature to be enabled/disabled? it was Very cool and made things a lot more dynamic to me. If its not possible thats totally ok! I just wanted to ask :)
FAMAStyr 19 May, 2023 @ 12:30am 
Do y'all prefer this or Extended Render?
Lazy  [author] 18 Feb, 2023 @ 11:00pm 
I just published an update! Please let me know if there are any issues:
+Added support for the Super Gravity Gun
D.F.W 1 Feb, 2023 @ 6:57pm 
@pillow, yeah sum but not like addons that affect this one, my only guesses are like life mod or the redux version of the half life weapons
Lazy  [author] 1 Feb, 2023 @ 6:58am 
@Frank Willson
It's possible, but I'm not quite sure. Have you installed any addons recently?
D.F.W 31 Jan, 2023 @ 7:26pm 
so this just stopped woerking for a reason (before it was doing fine) do you think is cause it may conflict with other addons?
NextKurome76TheSoldier 8 Jan, 2023 @ 11:28am 
[ERROR] lua/autorun/physlight.lua:22: Tried to use a NULL entity!
1. LookupAttachment - [C]:-1
2. v - lua/autorun/physlight.lua:22
3. unknown - lua/includes/modules/hook.lua:96

perhaps have an IsValid check