Make a monster shoot a missile in a vertical angle
- 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
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:
			
									
									
						- 
				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
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~
						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~
RE: Make a monster shoot a missile in a vertical angle
It's actually A_CustomMissile. A_FireCustomMissile is for weapons, A_CustomMissile is for monsters and other actors.TerminusEst13 wrote: Adjust the pitch in A_FireCustomMissile?
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)

						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)

RE: Make a monster shoot a missile in a vertical angle
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.
			
									
									
						You could of use CMF_OFFSETPITCH(32), but surprise - it's not supported by zandyzanzan.
