railgun spread

Moderator: GZDoom Developers

Post Reply
User avatar
Hamburgermiester
Posts: 30
Joined: Sat Jan 09, 2010 2:10 pm
Location: in b4 halo

railgun spread

Post by Hamburgermiester »

I've been modding around at home with new weapons and came across the idea of creating a "railgun shotgun," a shotgun that shoots piercing railgun blasts. I have experimented to no avail with making the weapon itself shoot actors at varying angles that shoot railgun blasts, and I thought of making a fake railgun attack using many actors that look like particles (which would be buggy, and slow the game down to hell). Nothing I could think of worked and I have since given up on that idea.

Now, I am suggesting either an expansion to A_FireRailgun to accomodate a very noticeable spread or A_FireBullets to allow for railgun particles to be spawned for each bullet fired.
User avatar
Recurracy
Posts: 559
Joined: Fri Dec 19, 2008 12:11 pm

Re: railgun spread

Post by Recurracy »

I agree with this.
User avatar
Enjay
 
 
Posts: 27136
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: railgun spread

Post by Enjay »

Hamburgermiester wrote:(which would be buggy, and slow the game down to hell)
Look at this pic. This was taken by freezing the game then firing 8 railgun shots, moving to the right slightly after each one. See the pattern on the right (number 6) has no core? See how beyond it there are two decals on the wall? Both of these phenomena occur because of the default limit on particles in a level to prevent it "slowing the game down to hell". Shot number 6 doesn't have a core and shots 7 and 8 had no particles at all.

It boils down to 5 and a half fairly short railgun trails with particles. Your railgun shotgun idea is unlikely to work.

Image
User avatar
Hamburgermiester
Posts: 30
Joined: Sat Jan 09, 2010 2:10 pm
Location: in b4 halo

Re: railgun spread

Post by Hamburgermiester »

Really I wanted them to emenate from one singular spot, and with only the cores. Since you showed me this, I could do with fewer actual railgun shots (I was only planning on using 5 per fire anyway).

And what would've slowed the game down to hell would be handling ALL the actors that are scaled down .png's fading out to look like particles.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: railgun spread

Post by Project Shadowcat »

The Suggestion has merit. What if the shot can be a little inaccurate? Leave it to the modder to tell how many inaccurate shots are actually fired.
User avatar
Xim
Posts: 2094
Joined: Fri Feb 20, 2009 2:46 pm
Location: somewhere with trees

Re: railgun spread

Post by Xim »

Hmm, yeah this actually might be a cool idea. I wouldn't mind seeing it in action.
User avatar
Hamburgermiester
Posts: 30
Joined: Sat Jan 09, 2010 2:10 pm
Location: in b4 halo

Re: railgun spread

Post by Hamburgermiester »

Project Dark Fox wrote:What if the shot can be a little inaccurate?
I mean EXTREMELY inaccurate. Inaccurate to the point of being a drunken irishman using a sawed-off inaccurate. But mainly inaccurate enough to be passable as a shotgun type weapon, know what I mean?
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: railgun spread

Post by Amuscaria »

Enjay wrote:
Hamburgermiester wrote:(which would be buggy, and slow the game down to hell)
Look at this pic. This was taken by freezing the game then firing 8 railgun shots, moving to the right slightly after each one. See the pattern on the right (number 6) has no core? See how beyond it there are two decals on the wall? Both of these phenomena occur because of the default limit on particles in a level to prevent it "slowing the game down to hell". Shot number 6 doesn't have a core and shots 7 and 8 had no particles at all.

It boils down to 5 and a half fairly short railgun trails with particles. Your railgun shotgun idea is unlikely to work.

Image
He could make a railgun that had no outer spiral, that would reduce the particle count. dramatically. Also, an option for Particle frequency and max rendering range would help alleviate some lag problems.
User avatar
Spleen
Posts: 497
Joined: Fri Nov 28, 2008 7:07 pm

Re: railgun spread

Post by Spleen »

Eriance wrote:Also, an option for Particle frequency ... would help alleviate some lag problems.
Finally someone else thinks this way. :D The following cvars are in the latest ZDoom/GZDoom releases, but unfortunately not Skulltag (yet).


http://forum.zdoom.org/viewtopic.php?f=18&t=20215 :
r_rail_smartspiral - set to 1 to turn off spiral ONLY if there is no inner trail (that is, if inner trail color == -1)
r_rail_spiralsparsity - 0 or below turns off spiral, otherwise controls just spiral sparsity (default 1)
r_rail_trailsparsity - 0 or below turns off trail, otherwise controls just trail sparsity (default 1)

Set spiral sparsity to 2 and trail sparsity to 4 for better performance without it looking reallly bad.

Maybe I should have made it a parameter to the railgun attack instead. Oh well. At least people with older computers can play around with these cvars to get better performance.
User avatar
DavidPH
Posts: 382
Joined: Fri Aug 28, 2009 1:46 pm

Re: railgun spread

Post by DavidPH »

I've made a code submission for this (http://forum.zdoom.org/viewtopic.php?f=34&t=25918).
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”