A_RailAttack/A_CustomRailgun spread extension

Moderator: GZDoom Developers

Post Reply
User avatar
DavidPH
Posts: 382
Joined: Fri Aug 28, 2009 1:46 pm

A_RailAttack/A_CustomRailgun spread extension

Post by DavidPH »

Adds spread parameters to both functions as well as a new flag (based on this suggestion http://forum.zdoom.org/viewtopic.php?f=15&t=24722).

A_RailAttack(int damage, int spawnofs_xy = 0, int useammo = true, color color1 = "", color color2 = "", int flags = 0, float maxdiff = 0, class<Actor> pufftype = "BulletPuff", float spread_xy = 0, float spread_z = 0)
A_CustomRailgun(int damage, int spawnofs_xy = 0, color color1 = "", color color2 = "", int flags = 0, bool aim = false, float maxdiff = 0, class<Actor> pufftype = "BulletPuff", float spread_xy = 0, float spread_z = 0)

RGF_EXPLICITANGLE - Turns off spread randomization and uses them simply as offsets.
Attachments
A_RailAttack.patch.7z
patch for r2322
(2.4 KiB) Downloaded 59 times
User avatar
ZDG
Posts: 918
Joined: Sat Jan 02, 2010 12:01 pm
Location: in SlumpEd

Re: A_RailAttack/A_CustomRailgun spread extension

Post by ZDG »

Great stuff! :thumb:
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Major Cooke »

Why this hasn't been added in yet... I DON'T KNOW.

Definitely a needed addition, so now we can finally make rave balls.
User avatar
ZDG
Posts: 918
Joined: Sat Jan 02, 2010 12:01 pm
Location: in SlumpEd

Re: A_RailAttack/A_CustomRailgun spread extension

Post by ZDG »

This guy NEED to be in developers, if he keeps like that.
User avatar
Spleen
Posts: 497
Joined: Fri Nov 28, 2008 7:07 pm

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Spleen »

ZDG wrote:This guy NEED to be in developers, if he keeps like that.
Agreed.... so does Gez probably, considering how much he's edited the ZDoom Wiki. He's probably made more contributions to it than everyone else combined. Documentation is also a very important part of development.

And, if Gez could change ZDoom..
User avatar
ZDG
Posts: 918
Joined: Sat Jan 02, 2010 12:01 pm
Location: in SlumpEd

Re: A_RailAttack/A_CustomRailgun spread extension

Post by ZDG »

Agreed.
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: A_RailAttack/A_CustomRailgun spread extension

Post by Project Shadowcat »

ZDG wrote:Agreed.
postcount++;
User avatar
Caligari87
Admin
Posts: 6236
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Caligari87 »

Project Dark Fox wrote:
ZDG wrote:Agreed.
postcount++;
postcoun... dammit.

8-)
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Major Cooke »

Bump for addition. I really could use this badly...
User avatar
ZDG
Posts: 918
Joined: Sat Jan 02, 2010 12:01 pm
Location: in SlumpEd

Re: A_RailAttack/A_CustomRailgun spread extension

Post by ZDG »

Railgun shotgun, anyone?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Xaser »

Ah, this is good to see. :)

All that's left is range and particle duration (perhaps density) to really maximize the rail functions' potential. Still, ecstatic to see that someone's finally messed with the railgun code. Haven't seen that since kgsws's ZDoom build...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49237
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_RailAttack/A_CustomRailgun spread extension

Post by Graf Zahl »

added
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”