Horizontal spread dependant on pitch

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Horizontal spread dependant on pitch

Post by StroggVorbis »

I noticed (in 3DGE too, and probably in other source ports as well) that the higher or lower you aim, the less horizontal spread fired hitscans and projectiles have. Firing while looking exactly 90° up or down will have no vertical spread at all. I've seen this with vanilla weapons and weapon mods too. Is this intended behaviour or is there a flag to change this?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Horizontal spread dependant on pitch

Post by Graf Zahl »

This is how Doom always worked. The spread is calculated on the 2D plane so with higher pitch the actual xy-part of the vector is shorter, so there's less spread.
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Horizontal spread dependant on pitch

Post by StroggVorbis »

If there isn't already, would it make sense to implement this as a flag or compatibility option?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Horizontal spread dependant on pitch

Post by Graf Zahl »

It's not that easy, because the entire hitscan calculations are done in 2D, with the z-component as an afterthought, just like pretty much everything else in Doom.
Post Reply

Return to “Closed Bugs [GZDoom]”