Garry's Mod

Garry's Mod

Explosion Light
28 Comments
Dishings  [author] 8 hours ago 
@♬♫~Joe Blaze~♫♬
I'm sorry to hear that, but I haven't been able to figure out the issue... :steamsad:
Are you getting any errors that you could send here? :steamhappy:
It causes a glitch where the light stays after the explosion is finished.
Callsign_Ewok Nov 3, 2024 @ 4:24am 
Np figured Id mention it cause I noticed while playing a custom campaign, I am positive it wasn't due to the map cause I noticed it outside of the campaign as well. The fire light addon on the other hand even with Vfire like mentioned by you before seems to work fine however.

i think explosion replacer, HL1 Goldsrc explosion related mod setup from Voidleak might be fighting this mod maybe.
Dishings  [author] Nov 2, 2024 @ 9:38am 
@Callsign_Ewok
That's an interesting issue, the way that I coded this addon should make it nearly impossible for errors to happen, but I see how this could be possible. If I figure out a way to solve it, I will, thanks! :steamthumbsup::steamhappy:
Callsign_Ewok Nov 2, 2024 @ 5:44am 
I do like these but had to get rid of them, upon explosion a permanent lighting effect would be left behind, rather then it only staying temporarily. I was using Goldsrc HL1 explosion replacement related mod.
Callsign_Ewok Oct 10, 2024 @ 5:49am 
I am wondering how these mesh with HD Goldsrc HL1 explosions mod that Voidleak made... I may test this in the future.
Dishings  [author] Sep 3, 2024 @ 8:12am 
@Spaceman Spiff
You can check if the ConVar(s) provided in the description could be causing the issue, I also hope to make it clear that it mainly works for explosion entities which certain things might not use or rely on.
Spaceman Spiff Aug 24, 2024 @ 8:53pm 
isn't working. no explosions have any light.
Kiri243 λ Apr 18, 2024 @ 5:44am 
Oh i thought that command actually determines at which range the light is visible, my bad then thx
Dishings  [author] Apr 18, 2024 @ 12:52am 
@Kiri243 λ
You actually can customize the size of the light, you simply need to type Explosion_Light_Range in console, also provide the range value which can be from 0 up to 2147483647.
Kiri243 λ Apr 16, 2024 @ 7:31am 
good addon, tho i would love to be able to customize the size of the light!
Dishings  [author] Mar 15, 2024 @ 7:28pm 
@BBQ Bacon Burger
Glad to hear!
mayonnaise licker Mar 15, 2024 @ 2:56pm 
Thank you so much! The errors aren't showing up anymore and the light seems to be working.
Dishings  [author] Mar 14, 2024 @ 5:34pm 
@Nuclear pro [AUTUMN]
The map is called: d1_canals_03.
It requires Half Life 2.
Hey it's me Bluudud Mar 14, 2024 @ 3:53pm 
oh DELICIOUS just what i was needing but not knowing
Nuclear Mar 14, 2024 @ 1:21pm 
map?
Dishings  [author] Mar 13, 2024 @ 6:06pm 
@Unknown User
As far as I'm aware, grenades already create a light by default in Garry's Mod, meaning it's not possible to disable.
Dishings  [author] Mar 12, 2024 @ 5:16pm 
@rick
Thank you!
Dishings  [author] Mar 12, 2024 @ 5:16pm 
@chel.chopokayfu
Sure, I've made an addon that adds a dynamic-light to fire, and I've tried to make it as little performance-consuming as possible. I did a few tests, and got great performance, I hope it will work the same way for you.
rick Mar 12, 2024 @ 7:06am 
thanks for making cool mods
I4Q Mar 12, 2024 @ 5:52am 
@Dishings
Thanks a lot, man! Very helpful. I am glad when developers listen to the community and release their proposed work in a couple of days. I would like to ask if you could add "dynlight" for fire as well? There are already similar addons in the workshop, but they are extremely performance-consuming, and they look rather dubious
Dishings  [author] Mar 11, 2024 @ 6:05pm 
@BBQ Bacon Burger
Yea that's possible, I'll add pcall to the line of code that tries to get it's position, this should at least prevent it from showing errors.
mayonnaise licker Mar 11, 2024 @ 5:58pm 
I think this mod might just be incompatible with most explosion effect replacements since I tried another explosion replacement and it caused the same error.
Dishings  [author] Mar 11, 2024 @ 3:37pm 
@BBQ Bacon Burger
Alright, thank you for letting me know.
mayonnaise licker Mar 11, 2024 @ 2:35pm 
I found it. It was the addon, "MMod Particles (explosion / fire)" that was causing the errors.
mayonnaise licker Mar 11, 2024 @ 2:30pm 
It doesn't appear to have fixed the errors. I'm going to try disabling some of my mods now.
Dishings  [author] Mar 11, 2024 @ 1:58pm 
@BBQ Bacon Burger
My guess is that the addon tried to get the explosion position before it had fully loaded in, I have increased the delay by 0.05 seconds, this might solve the issue.
mayonnaise licker Mar 11, 2024 @ 1:35pm 
[Explosion Light] lua/autorun/explosion_light.lua:13: Tried to use a NULL entity!
1. GetPos - [C]:-1
2. unknown - lua/autorun/explosion_light.lua:13

This only happens for barrel and RPG explosions, not grenades or grenade launchers.