r719 and older Railgun ignores attack z offset
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
r719 and older Railgun ignores attack z offset
I posted this over at DRD before I was using the Zdoom SVN versions so I wasn't sure if it applied to them as well as GZdoom. Now that I'm fully SVN'd up, I can confirm that it happens here too.
The title says it all really. Whilst most attacks get moved upward if you set a player class zoffset, the rail doesn't. This is particularly problematic if the rail is being used as a weapon intended for sniping purposes because the rail always hits lower than it appears it should when you have a player class with a raised viewheight.
To get a clear demonstration of the effect, I switched on freeze mode then shot a rail, changed weapons and shot a projectile (without moving at all) and then moved to the side and took a screenshot. I think the result speaks for itself: The relevant player class values were:
Player.ViewHeight 52
Player.AttackZOffset 25
The title says it all really. Whilst most attacks get moved upward if you set a player class zoffset, the rail doesn't. This is particularly problematic if the rail is being used as a weapon intended for sniping purposes because the rail always hits lower than it appears it should when you have a player class with a raised viewheight.
To get a clear demonstration of the effect, I switched on freeze mode then shot a rail, changed weapons and shot a projectile (without moving at all) and then moved to the side and took a screenshot. I think the result speaks for itself: The relevant player class values were:
Player.ViewHeight 52
Player.AttackZOffset 25
Re: r719 and older Railgun ignores attack z offset
I'm not nagging (really I'm not) but is this something that is likely to be fixed soonish?
If it is, I'll just use a properly defined rail in my Burghead WAD release. If not, I'll do something like have a bunch of normal hitscan bullets fire at the same time as a lower damage rail. The main reason being that there are a few places in the mod where the player is quite likely to want to fire over low walls etc and it is very easy to have yourself standing by such a wall and it seems as if you should be able to fire over it but your rail just smacks into the wall instead, whereas the regular hitscans clear it. To actually shoot the rail over the wall, you have to aim upward at quite a steepish angle, thereby firing over the top of whatever you want to hit.
If it is, I'll just use a properly defined rail in my Burghead WAD release. If not, I'll do something like have a bunch of normal hitscan bullets fire at the same time as a lower damage rail. The main reason being that there are a few places in the mod where the player is quite likely to want to fire over low walls etc and it is very easy to have yourself standing by such a wall and it seems as if you should be able to fire over it but your rail just smacks into the wall instead, whereas the regular hitscans clear it. To actually shoot the rail over the wall, you have to aim upward at quite a steepish angle, thereby firing over the top of whatever you want to hit.

Re: r719 and older Railgun ignores attack z offset
It probably is an oversight.
Re: r719 and older Railgun ignores attack z offset
More like an undersight.Nash wrote:It probably is an oversight.


- 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: r719 and older Railgun ignores attack z offset
And the crowd boos.Enjay wrote:More like an undersight.Nash wrote:It probably is an oversight.![]()

Re: r719 and older Railgun ignores attack z offset
OK, I guess I am nagging now.Enjay wrote:is this something that is likely to be fixed soonish?
If it is, I'll just use a properly defined rail in my Burghead WAD release. If not, I'll do something like have a bunch of normal hitscan bullets fire at the same time as a lower damage rail.

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r719 and older Railgun ignores attack z offset
If your project's release depends on it I'll take a look later this evening.
Re: r719 and older Railgun ignores attack z offset
Thank you kindly. It's very much appreciated.Graf Zahl wrote:If your project's release depends on it I'll take a look later this evening.

Re: r719 and older Railgun ignores attack z offset
Well that was quick. Even with the time difference, by my watch it's only about 3.20 pm with you. 
Thanks again.

Thanks again.

- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: r719 and older Railgun ignores attack z offset
Shouldn't you be teaching obnoxious ones rather than looking here?Enjay wrote:Well that was quick. Even with the time difference, by my watch it's only about 3.20 pm with you.
Thanks again.

Re: r719 and older Railgun ignores attack z offset
I should be but I'm "on the sick". Have been for the last week and a half.TheDarkArchon wrote:Shouldn't you be teaching obnoxious ones rather than looking here?

Re: r719 and older Railgun ignores attack z offset
Hmm, sounds like you're dying. You'd better send your Aspects stuff to somebody before that happens, because it'd be a shame if all that work was lost. I nominate myself.Enjay wrote:I should be but I'm "on the sick". Have been for the last week and a half.

Re: r719 and older Railgun ignores attack z offset
Not you too. I expected better.HotWax wrote:Hmm, sounds like you're dying. You'd better send your Aspects stuff to somebody before that happens, because it'd be a shame if all that work was lost. I nominate myself.

Spoiler:Anyway, the bug is definitely fixed. It works fine for me now
