A_FireCustomMissile aim parameter?
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.
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.
A_FireCustomMissile aim parameter?
What does it actually do? The wiki doesn't explain it.
- 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:
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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.
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.
- Anakin S.
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...
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?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.
- Anakin S.
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...
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.HotWax wrote:Fire it in a more crowded room.
EDIT: I just tried it now and it seems to work fine, so nvm.