A_CustomMissile flags

Moderator: GZDoom Developers

User avatar
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

Post by Xtyfe »

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?
User avatar
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

Post by NeuralStunner »

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! ;)
User avatar
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

Post by Xtyfe »

NeuralStunner 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! ;)
"Fire in current direction" flag? Now I'm even more confused :p

CMF_OFFSETPITCH seems to do what i'm looking for
User avatar
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

Post by NeuralStunner »

Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused :p
[wiki=A_CustomMissile]CMF_AIMDIRECTION[/wiki]
User avatar
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

Post by Xtyfe »

NeuralStunner wrote:
Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused :p
[wiki=A_CustomMissile]CMF_AIMDIRECTION[/wiki]
Oh that, ya that's the flag that prompted me to suggest these changes :p
User avatar
FDARI
Posts: 1097
Joined: Tue Nov 03, 2009 9:19 am

Re: A_CustomMissile flags

Post by FDARI »

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?
What is the pitch-argument in A_CustomBulletAttack?
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).
User avatar
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

Post by Xtyfe »

FDARI wrote:
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?
What is the pitch-argument in A_CustomBulletAttack?
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).
A_CustomBulletAttack's pitch argument is "vert_spread" :D

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 :D (Hitscan, BFG ray, and lost soul species checks)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”