Page 1 of 1

Dynamic lights + muzzle flashes

Posted: Tue Jun 05, 2007 18:27
by Ex Inferis
Would it be possible use dynamic lights with weapons? Not projectile based weapons like the rocket launcher, I mean like the shotgun.

For example, you can define...

object ChaingunGuy

frame CPOSF { light WHATEVER }

....and have the chaingunner always emit light when it fires. (Not sure if it's the 'F' frame per se, since I'm at work. =P)

But can this be done with weapons too, or is that yet to be implemented? Like for instance, having the CHGF frames have dynamic lights. If it's not in, could I request it in feature suggestions? Thank you for your time.

Posted: Wed Jun 06, 2007 2:01
by Nash
It's already implemented for the pistol, shotguns and chaingun in lights.wad. Look again closely.

Posted: Thu Jun 07, 2007 17:25
by Ex Inferis
Hmmmmm. I believe I saw definitions for the puff effects, but not for the muzzle frames...hmm. I'll look again. :D

Posted: Thu Jun 07, 2007 19:12
by Nash
Well to be more precise, the "muzzle flash" is actually a light attached to the player's shooting frame... look for this line:

Code: Select all

object DoomPlayer
{
    frame PLAYF { light ZOMBIEATK }
}

Posted: Mon Jun 18, 2007 20:44
by Ex Inferis
Whoo, finally I am able to get back here.

Hmm, I see. So the light is added to the player frame, not the weapon's per se. Looks kinda weird to have a yellow glow while firing a bfg, for example. -_- There's no way to attach the light to a frame of a weapon rather than the player frame? Maybe with some clever decorate?

Posted: Mon Jun 18, 2007 20:59
by Enjay
Dunno about clever, but you could redefine every weapon and have them fire a short-lived projectile with a dynamic light attached.

Posted: Sun Jun 24, 2007 20:19
by Ex Inferis
That's what I meant by clever. xD I'll just do that, when I get the time. Works sucks. -_- Thanks for your time though. :D