Beam effect
Moderator: GZDoom Developers
Beam effect
Hello, I was wondering if its possible to add a continuous stream effect to the railgun attack (A_RailAttack), something like the proton pack from ghostbusters or a continuous arc of electricity between 2 points
Additional features could include beam movement (a vertical or horizontal wave effect or random angle) and a room lighting effect that will travel down the beam (affecting each sectors lighting value).
I'm not entirely sure how this would be implemented, hitscans or spawning a projectile at the end of the beam (a maxdistance), then having a continuous particle stream between the player and the projectile.
Additional features could include beam movement (a vertical or horizontal wave effect or random angle) and a room lighting effect that will travel down the beam (affecting each sectors lighting value).
I'm not entirely sure how this would be implemented, hitscans or spawning a projectile at the end of the beam (a maxdistance), then having a continuous particle stream between the player and the projectile.
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- The NUtcracker
- Posts: 843
- Joined: Sun Jan 14, 2007 9:12 pm
- Location: South Dakota
- Contact:
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- StrikerMan780
- Posts: 486
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
- Anakin S.
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...
Even if you repeated A_SpawnItem over and over again, it still wouldn't look right if shooting up or down. Then it would be more of a saircase than a continuous stream. I think a customizable sprite trail is definitely needed.Cutmanmike wrote:Hmm, I wouldn't mind something like that. It would be a pretty good solution for repeating A_Spawnitem over and over just for a nice trail effect.
@LWM: I thought that in vanilla Hexen, if you slow down MageWandMissile, the sprites get closer together and if you speed it up they get farther apart. Guess that's not the same in zdoom.
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:

