Page 1 of 1

Changing dynamic light colors for muzzle flash

PostPosted: Sun Sep 30, 2018 6:00 pm
by superscrungus
Apologies if I'm clogging the topic index with a really simplistic question.

So, as you can tell, I'm trying to change the colors on the dynamic light pools that appear when a weapon fires. Specifically, I'm trying to change the shotgun's flash to teal, attach an alternating teal/blue firing pattern to the plasma rifle, and attach a white flash to the BFG (not it's projectile).

I've successfully redefined the dynamic lights on non-hitscan projectiles such as the plasma rifle's, but I'm stumped on how to apply these effects to the weapons themselves. It's obviously quite jarring when my modded shotgun has a bright teal muzzle flash, but the light it produces on it's surroundings is bright yellow.

I've been looking into it for the past day, but tackling this issue has been hard because I'm easily confused and admittedly not the brightest. Any help is appreciated!

Re: Changing dynamic light colors for muzzle flash

PostPosted: Sun Sep 30, 2018 6:14 pm
by Enjay
The "problem" is that the muzzle flash light is generated by the player and attached to his firing frame.

I don't know if there is a better way but, in the past, if I've had a hitscan weapon with a flash that didn't suit the default colour, I defined an invisible, short lived projectile with a suitably coloured light attached and then fired the projectile at the same time as the hitscan attack. The projectile lasts just long enough to create a coloured flash around the player and then disappears.

Re: Changing dynamic light colors for muzzle flash

PostPosted: Sun Sep 30, 2018 8:10 pm
by superscrungus
Ooooh, that's why. Don't know why that didn't occur to me lmfao. Thanks, the advice helped a ton!