BRIGHT flag for rail attacks
Moderator: GZDoom Developers
BRIGHT flag for rail attacks
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.
Re: BRIGHT flag for rail attacks
It's been suggested before. I'm guessing it's floating in Limbo somewhere. In either case, second.
- 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
Thirded. It would greatly aid in using rail attacks to represent energy or magic.
- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: BRIGHT flag for rail attacks
Fourthed. Is that a real word?
I've been looking for a way of doing this for a long time.
I've been looking for a way of doing this for a long time.
Re: BRIGHT flag for rail attacks
Can you currently customize their looks? I can't be happy with them as long as they rip off the Quake 2 gun. Eww.NeuralStunner wrote:Thirded. It would greatly aid in using rail attacks to represent energy or magic.
Re: BRIGHT flag for rail attacks
I thought the support of custom particles was added a while ago?
Re: BRIGHT flag for rail attacks
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.
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.
- 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
You can also disable the coil entirely.
Re: BRIGHT flag for rail attacks
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'.
Re: BRIGHT flag for rail attacks
I was thinking about custom particle effects, but i have no idea how particle script file should look like.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.
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.
Re: BRIGHT flag for rail attacks
DECORATE. Only, instead of starting the definition with "actor", you start it with "particle".kgsws-CZ wrote:I was thinking about custom particle effects, but i have no idea how particle script file should look like.
Re: BRIGHT flag for rail attacks
That is not problem, but what about generators? (rail attack, particle fountain)
- Salad Viking
- Posts: 752
- Joined: Tue Apr 20, 2010 8:58 pm
- Location: In high orbit
Re: BRIGHT flag for rail attacks
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.kgsws-CZ wrote:That is not problem, but what about generators? (rail attack, particle fountain)
- 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
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
