A_Custom Railgun range
Moderator: GZDoom Developers
A_Custom Railgun range
Hello
I just want to make a request: add a variable to A_CustomRailgun, in which you could modify the railgun range. This could also be good for running memory, avoiding weirdness railgun shots on very large room maps.
I just want to make a request: add a variable to A_CustomRailgun, in which you could modify the railgun range. This could also be good for running memory, avoiding weirdness railgun shots on very large room maps.
-
Onslaught Six
- Posts: 572
- Joined: Sun Dec 11, 2005 9:17 pm
- Location: Hell.
- Contact:
Re: A_Custom Railgun range
What do you mean by range? I'm not understanding.
Re: A_Custom Railgun range
I think he means a maximum distance the rail would travel, similar to what's in A_FireBullets.
- Cutmanmike
- Posts: 11355
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: A_Custom Railgun range
For this reason it's useless because the "weirdness" is caused by the value of the cvar r_maxparticles. If it's low, the railgun won't display if it's shot really far away (but the shot will still count). You should make it a higher value on the console to stop it happening.Daniel wrote:This could also be good for running memory, avoiding weirdness railgun shots on very large room maps.
However, a railgun range might be good for other things such as a laser weapon or something.
Re: A_Custom Railgun range
How about just a Beam function for that? Something like "A_Beam(texture, damage, range, use-ammo, alpha, render-mode, blah-blah)"?Cutmanmike wrote:However, a railgun range might be good for other things such as a laser weapon or something.
Re: A_Custom Railgun range
How about just a Beam function for that? Something like "A_Beam(texture, damage, range, use-ammo, alpha, render-mode, blah-blah)"?Cutmanmike wrote:However, a railgun range might be good for other things such as a laser weapon or something.
-
CaptainToenail
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
Re: A_Custom Railgun range
Yep, what would be really handy for the railgun functions would be range, particle graphic, particle fade time, and if it stops as soon as it hits a target instead of going right through.
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: A_Custom Railgun range
Unless you're talking about ranbow-colored Railguns or something like that, Eriance, I don't see how texture would work outside of GZDoom.
Re: A_Custom Railgun range
Range for A_CustomRailgun could be useful for a lot of things, not just for the "bug from long range". You can even make melee laser-like weapons...
So Graf, how about it?
So Graf, how about it?
Re: A_Custom Railgun range
Interesting to see how many old railgun feature suggestions are still open. This one's yet another that's in now and can be safely closed.
Re: A_Custom Railgun range
Noob...what kinda suggestion is that? :/ GTFO.Eriance wrote:How about just a Beam function for that? Something like "A_Beam(texture, damage, range, use-ammo, alpha, render-mode, blah-blah)"?
- Major Cooke
- Posts: 8221
- 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_Custom Railgun range
That widescreen weapon handling is glorious.
Also, AMMO TYPES
Also, AMMO TYPES
- Major Cooke
- Posts: 8221
- 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_Custom Railgun range
Wasn't my fault. That's how the graphics came.
I was only trying to give Eriance an alternative means to a "customized" rail effect using projectiles and A_Warp.
You can easily look for the gluon gun's code and see how it's done. It was actually pretty simple (including a rotating outer beam too!) in AEons of Death.
You can easily look for the gluon gun's code and see how it's done. It was actually pretty simple (including a rotating outer beam too!) in AEons of Death.

