by Keralastic » Mon Jun 16, 2014 5:17 pm
I'd encountered a problem with projectile pitch when using A_FireCustomMissile, if autoaim is enabled, a projectile's pitch is completely ignored when autoaiming vertically. This is a bit of an issue with weapons that fire a group of projectiles with a fixed or random spread pattern.
A_CustomMissile has the CMF_SAVEPITCH flag, which could be used to circumvent this issue, but A_FireCustomMissile does not.
Either a new flag to preserve pitch during vertical autoaim, or a "save pitch" flag would be ideal for solving this problem. As it is now I've resorted to having projectiles that apply an Y/Z velocity as soon as they spawn to imitate angle/pitch without being altered by autoaim.
I'd encountered a problem with projectile pitch when using A_FireCustomMissile, if autoaim is enabled, a projectile's pitch is completely ignored when autoaiming vertically. This is a bit of an issue with weapons that fire a group of projectiles with a fixed or random spread pattern.
A_CustomMissile has the CMF_SAVEPITCH flag, which could be used to circumvent this issue, but A_FireCustomMissile does not.
Either a new flag to preserve pitch during vertical autoaim, or a "save pitch" flag would be ideal for solving this problem. As it is now I've resorted to having projectiles that apply an Y/Z velocity as soon as they spawn to imitate angle/pitch without being altered by autoaim.