A_FireCustomMissile aim parameter?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

A_FireCustomMissile aim parameter?

Post by Nash »

What does it actually do? The wiki doesn't explain it.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Found this post looking for this exact question... turns out it's in Randy's announcement of 2.1.5:
A_FireCustomMissile has a new parameter: Previously it always aimed straight ahead and altered the projectile's angle according to the resulting direction. If the 6th parameter is 1 now it will aim at the specified angle directly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Here's a short explanation.

By default the function aims at a monster straight ahead and offsets the projectile afterward. If you fire 5 projectiles in this mode they will be evenly spaced.
If you use the new mode it will offset the spawn angle first and then aim at that angle. If you want to see the new mode in action summon a morph ovum in Heretic and shoot it into a crowd of flying gargoyles.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

So essentially it performs the offset and then looks for a target at that angle, allowing 5 projectiles to each seek out their own target? Neat.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

Graf Zahl wrote:Here's a short explanation.

By default the function aims at a monster straight ahead and offsets the projectile afterward. If you fire 5 projectiles in this mode they will be evenly spaced.
If you use the new mode it will offset the spawn angle first and then aim at that angle. If you want to see the new mode in action summon a morph ovum in Heretic and shoot it into a crowd of flying gargoyles.
The problem with the morph ovum and porkalator is that while only one projectile is needed to morph a monster, often a few projectiles target the same monster, which is counterproductive. Is there a way to fix this?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Fire it in a more crowded room. :roll:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

If it was broken it had to be fixed. But this is the way it has been coded so it will stay that way.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

HotWax wrote:Fire it in a more crowded room. :roll:
But of course, when I did that while playing zdoom Hexen a while ago, it fired a few projectiles at less than five monsters and others were not affected. I forgot the details, but I thought I could get out of a firefight with several melee monsters around me and some dark bishops flying around overhead, but a few of the morph projectiles were wasted on monsters that were already morphed.

EDIT: I just tried it now and it seems to work fine, so nvm.
Locked

Return to “Editing (Archive)”