Page 1 of 1

Monster Tracer

Posted: Thu Jul 30, 2015 8:58 pm
by ibm5155
So, My monsters should move like a tracer, he would move directly to the player direction, not going to left or right or another place like the result of A_CHASE.

The monster uses noclip and nogravity so it would work fine as a tracer.

But the question is, how do I make that? I did try to replace A_CHASE by A_TRACER but no sucess :(
And I also tried to find something similar but I didnt found, so, is there a way to do it?

RE: Monster Tracer

Posted: Thu Jul 30, 2015 9:29 pm
by Ivan
Give the monsters items that make them face their target with A_FaceTarget.

RE: Monster Tracer

Posted: Thu Jul 30, 2015 9:38 pm
by Ænima
A_Recoil and A_Facetarget. Assuming it's not a flying monster.

RE: Monster Tracer

Posted: Thu Aug 06, 2015 2:34 pm
by ibm5155
It's a flying monster D:

RE: Monster Tracer

Posted: Thu Aug 06, 2015 3:36 pm
by Konda
Make the monster use Lost Soul's attack function repeatedly to make it simulate a tracer. When you feel like stopping the monster from flying like that, set its x, y, and z velocity to 0.

RE: Monster Tracer

Posted: Thu Aug 06, 2015 3:59 pm
by fr blood
Ænima wrote: A_Recoil and A_Facetarget. Assuming it's not a flying monster.
I already tested it the problem is that it won't move on the z-axis.

You have to use the same function that the lost soul has.

RE: Monster Tracer

Posted: Thu Aug 06, 2015 4:57 pm
by Ænima
fr blood wrote:
Ænima wrote: A_Recoil and A_Facetarget. Assuming it's not a flying monster.
I already tested it the problem is that it won't move on the z-axis.

You have to use the same function that the lost soul has.
Ænima wrote: Assuming it's not a flying monster.

A_Recoil works great for ground monsters, I just wasn't sure if what OP wanted was for a ground monster or not. I'm aware that it only moves monsters along their Y axis.

RE: Monster Tracer

Posted: Sat Aug 22, 2015 10:47 am
by ZzZombo

Code: Select all

See:
<frame> A_RearrangePointers(AAPTR_DEFAULT,AAPTR_TARGET,AAPTR_DEFAULT)
<frame> A_Tracer //or the like function.
...