BRIGHT flag for rail attacks

Moderator: GZDoom Developers

Post Reply
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

BRIGHT flag for rail attacks

Post by Ichor »

Would it be possible to make rail particles be fullbright, like maybe a new flag for A_RailAttack and similar functions? Some rail attacks, like lasers and lightning/tesla bolts would benefit from this, and as it is now, most rails look rather odd in dark rooms.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: BRIGHT flag for rail attacks

Post by Amuscaria »

It's been suggested before. I'm guessing it's floating in Limbo somewhere. In either case, second.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: BRIGHT flag for rail attacks

Post by NeuralStunner »

Thirded. It would greatly aid in using rail attacks to represent energy or magic.
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: BRIGHT flag for rail attacks

Post by ChronoSeth »

Fourthed. Is that a real word?

I've been looking for a way of doing this for a long time.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: BRIGHT flag for rail attacks

Post by printz »

NeuralStunner wrote:Thirded. It would greatly aid in using rail attacks to represent energy or magic.
Can you currently customize their looks? I can't be happy with them as long as they rip off the Quake 2 gun. Eww.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: BRIGHT flag for rail attacks

Post by Amuscaria »

I thought the support of custom particles was added a while ago?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: BRIGHT flag for rail attacks

Post by Xaser »

Not really. Customization options are very limited -- you can change the color of the spiral and trail, as well as make the straight trail all wobbly ("maxdiff" property), but... that's it. What gets me is there's no way to change the duration of the particles' lifetime, so they always fade out at the exact same speed and make rails nearly useless for continuous-fire lightning guns or some such. I made one or to feature suggestions about it, but they've been in limbo for a while.

I'm tempted to PM kgsws about it, since he's been active lately and actually added some railgun extensions to his custom build of ZDoom from way back. He's responsible for the "maxdiff" property, at least, and as far as I know is the only one willing to touch the particle code.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: BRIGHT flag for rail attacks

Post by NeuralStunner »

You can also disable the coil entirely.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: BRIGHT flag for rail attacks

Post by Amuscaria »

Hm, i thought Graf said he put in custom particles. Maybe I'm confusing that for the mage-wand missile. Cuz i thought I saw Enjay make some sort of laser gun with a continuous sprite 'beam'.
kgsws-CZ
Posts: 70
Joined: Sun Jul 19, 2009 9:50 pm

Re: BRIGHT flag for rail attacks

Post by kgsws-CZ »

Xaser wrote:I'm tempted to PM kgsws about it, since he's been active lately and actually added some railgun extensions to his custom build of ZDoom from way back. He's responsible for the "maxdiff" property, at least, and as far as I know is the only one willing to touch the particle code.
I was thinking about custom particle effects, but i have no idea how particle script file should look like.

It won't be hard to make support for custom particles = color, bright/dark, time, speed vector, lifetime, fadetime. This is not problem, i guess.
Problem is with particle generator scripting. I mean, script where you can define your own particle trail for railgun, or particle spawner that will spawn particles as you wish.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: BRIGHT flag for rail attacks

Post by Gez »

kgsws-CZ wrote:I was thinking about custom particle effects, but i have no idea how particle script file should look like.
DECORATE. Only, instead of starting the definition with "actor", you start it with "particle".
kgsws-CZ
Posts: 70
Joined: Sun Jul 19, 2009 9:50 pm

Re: BRIGHT flag for rail attacks

Post by kgsws-CZ »

That is not problem, but what about generators? (rail attack, particle fountain)
User avatar
Salad Viking
Posts: 752
Joined: Tue Apr 20, 2010 8:58 pm
Location: In high orbit

Re: BRIGHT flag for rail attacks

Post by Salad Viking »

kgsws-CZ wrote:That is not problem, but what about generators? (rail attack, particle fountain)
Well, if you don't want to do anything complicated, you could always just use DECORATE actor properties. Maybe ParticleType followed by a particle spawning pattern flag (Spiral (projectiles), Line (projectiles), or Fountain) and a list of particle types which it will randomly spawn. If you wanted more than one type, they could be additive. It's limited, but it's a start, at least until some more in-depth script is added.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: BRIGHT flag for rail attacks

Post by wildweasel »

Bumping this so I can close the report.
report wrote:Reported by Xaser « Tue Sep 08, 2015 3:26 pm

Suggestion can be closed: [Duplicate]

http://zdoom.org/wiki/A_RailAttack -- see RGF_FULLBRIGHT
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”