Make a monster shoot a missile in a vertical angle

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Lord_of_D:
Posts a lot
Posts: 691
Joined: Sun Aug 26, 2012 5:31 am
Location: Mexico
Contact:

Make a monster shoot a missile in a vertical angle

#1

Post by Lord_of_D: » Fri Feb 15, 2013 4:49 pm

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:
Image

TerminusEst13
Retired Staff / Community Team Member
Posts: 865
Joined: Tue Jun 05, 2012 11:06 pm

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

#2

Post by TerminusEst13 » Fri Feb 15, 2013 6:43 pm

Adjust the pitch in A_FireCustomMissile?
The Ranger - New class for HeXen.
ZDoom Wars - I drew some pictures.
Samsara - Some class-based mod I guess?
Metroid: Dreadnought - I am a dumb fanboy.
DemonSteele - ~come with me to anime world~

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

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

#3

Post by Ænima » Fri Feb 15, 2013 6:49 pm

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)
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

HexaDoken
Forum Regular
Posts: 352
Joined: Wed Jul 04, 2012 8:27 am
Location: Void. Russian Void.

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

#4

Post by HexaDoken » Mon Feb 18, 2013 3:35 am

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.

Post Reply