Page 1 of 1

Make a monster shoot a missile in a vertical angle

Posted: Fri Feb 15, 2013 4:49 pm
by Lord_of_D:
i want to do something alike the way the Doom 3 Imp shoots his fireball(a missile affected by gravity but shooted at a direction slighty higher than the target). please tell me how cause i am not sure D:

RE: Make a monster shoot a missile in a vertical angle

Posted: Fri Feb 15, 2013 6:43 pm
by TerminusEst13
Adjust the pitch in A_FireCustomMissile?

RE: Make a monster shoot a missile in a vertical angle

Posted: Fri Feb 15, 2013 6:49 pm
by Ænima
TerminusEst13 wrote: Adjust the pitch in A_FireCustomMissile?
It's actually A_CustomMissile. A_FireCustomMissile is for weapons, A_CustomMissile is for monsters and other actors.

A_CustomMissile (missiletype, spawnheight, spawnofs_horiz, angle, flags, pitch)

RE: Make a monster shoot a missile in a vertical angle

Posted: Mon Feb 18, 2013 3:35 am
by HexaDoken
Note: you need to use CMF_AIMDIRECTION(or add 2 to flags) for pitch to actually take any effect. This, however, rises a problem - the monster will stop accounting for the height difference between you and him, so if you stay on a different elevation all his shots will safely pass below/above you.

You could of use CMF_OFFSETPITCH(32), but surprise - it's not supported by zandyzanzan.