Since this was recently added, I plan to use it straight away. But just wanted to clarify since it since its somewhat confusing
What flag should I use if I want to use the pitch argument like A_CustomBulletAttack? Just CMF_OFFSETPITCH?
A_CustomMissile flags
Moderator: GZDoom Developers
- NeuralStunner
-

- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: A_CustomMissile flags
You'll probably want to use the "fire in current direction" flag. Make sure you use A_FaceTarget immediately before, or there'll be a slight delay and it won't hit you if you're on the move.
... Unless this is a function you want, of course!
... Unless this is a function you want, of course!
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: A_CustomMissile flags
"Fire in current direction" flag? Now I'm even more confusedNeuralStunner wrote:You'll probably want to use the "fire in current direction" flag. Make sure you use A_FaceTarget immediately before, or there'll be a slight delay and it won't hit you if you're on the move.
... Unless this is a function you want, of course!
CMF_OFFSETPITCH seems to do what i'm looking for
- NeuralStunner
-

- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: A_CustomMissile flags
[wiki=A_CustomMissile]CMF_AIMDIRECTION[/wiki]Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: A_CustomMissile flags
Oh that, ya that's the flag that prompted me to suggest these changesNeuralStunner wrote:[wiki=A_CustomMissile]CMF_AIMDIRECTION[/wiki]Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused
Re: A_CustomMissile flags
What is the pitch-argument in A_CustomBulletAttack?Xtyfe wrote:Since this was recently added, I plan to use it straight away. But just wanted to clarify since it since its somewhat confusing
What flag should I use if I want to use the pitch argument like A_CustomBulletAttack? Just CMF_OFFSETPITCH?
vert_spread?
CBAF_NOPITCH (flag)?
CBAF_EXPLICITANGLE (flag?
If you want to use regular aim, but with an adjusted pitch (x higher or lower), then use CMF_OFFSETPITCH. Pitch parameter is then added to the pitch that would normally be used. Addition of negative number is possible.
If you want to specify an explicit pitch (without messing with anything else) use CMF_ABSOLUTEPITCH.
If you want the missile to know what pitch it has been fired with, use CMF_SAVEPITCH (updates the pitch variable).
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: A_CustomMissile flags
A_CustomBulletAttack's pitch argument is "vert_spread"FDARI wrote:What is the pitch-argument in A_CustomBulletAttack?Xtyfe wrote:Since this was recently added, I plan to use it straight away. But just wanted to clarify since it since its somewhat confusing
What flag should I use if I want to use the pitch argument like A_CustomBulletAttack? Just CMF_OFFSETPITCH?
vert_spread?
CBAF_NOPITCH (flag)?
CBAF_EXPLICITANGLE (flag?
If you want to use regular aim, but with an adjusted pitch (x higher or lower), then use CMF_OFFSETPITCH. Pitch parameter is then added to the pitch that would normally be used. Addition of negative number is possible.
If you want to specify an explicit pitch (without messing with anything else) use CMF_ABSOLUTEPITCH.
If you want the missile to know what pitch it has been fired with, use CMF_SAVEPITCH (updates the pitch variable).
But yes CMF_OFFSETPITCH is actually what i have wanted forever, Now if only the only the last irking thing for me were fixed i'd be in heaven


