[Added] A_CustomMissile flags

Moderator: Developers

Re: A_CustomMissile flags

Postby Xtyfe » Sat Apr 07, 2012 6:35 pm

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?
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: A_CustomMissile flags

Postby NeuralStunner » Sat Apr 07, 2012 7:30 pm

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
NeuralStunner
O'Neill with it.
 
Joined: 21 Jul 2009
Location: The Colonies

Re: A_CustomMissile flags

Postby Xtyfe » Sat Apr 07, 2012 8:21 pm

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
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: A_CustomMissile flags

Postby NeuralStunner » Sat Apr 07, 2012 8:39 pm

Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused :p
CMF_AIMDIRECTION
User avatar
NeuralStunner
O'Neill with it.
 
Joined: 21 Jul 2009
Location: The Colonies

Re: A_CustomMissile flags

Postby Xtyfe » Sat Apr 07, 2012 9:07 pm

NeuralStunner wrote:
Xtyfe wrote:"Fire in current direction" flag? Now I'm even more confused :p
CMF_AIMDIRECTION


Oh that, ya that's the flag that prompted me to suggest these changes :p
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: A_CustomMissile flags

Postby FDARI » Mon Apr 09, 2012 11:29 am

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
FDARI
Bronies eunt domus
 
Joined: 03 Nov 2009

Re: A_CustomMissile flags

Postby Xtyfe » Mon Apr 09, 2012 12:48 pm

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)
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Previous

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: AFADoomer, Bing [Bot] and 2 guests