A_RailAttack/A_CustomRailgun spread extension
Moderator: GZDoom Developers
A_RailAttack/A_CustomRailgun spread extension
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.
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
Re: A_RailAttack/A_CustomRailgun spread extension
Great stuff! 

- 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
Why this hasn't been added in yet... I DON'T KNOW.
Definitely a needed addition, so now we can finally make rave balls.
Definitely a needed addition, so now we can finally make rave balls.
Re: A_RailAttack/A_CustomRailgun spread extension
This guy NEED to be in developers, if he keeps like that.
Re: A_RailAttack/A_CustomRailgun spread extension
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.ZDG wrote:This guy NEED to be in developers, if he keeps like that.
And, if Gez could change ZDoom..
- 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
postcount++;ZDG wrote:Agreed.
- Caligari87
- Admin
- Posts: 6236
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: A_RailAttack/A_CustomRailgun spread extension
postcoun... dammit.Project Dark Fox wrote:postcount++;ZDG wrote:Agreed.

- 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
Bump for addition. I really could use this badly...
Re: A_RailAttack/A_CustomRailgun spread extension
Railgun shotgun, anyone?
Re: A_RailAttack/A_CustomRailgun spread extension
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...

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...