Monster Tracer

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

Monster Tracer

#1

Post by ibm5155 » Thu Jul 30, 2015 8:58 pm

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?
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Monster Tracer

#2

Post by Ivan » Thu Jul 30, 2015 9:29 pm

Give the monsters items that make them face their target with A_FaceTarget.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

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

RE: Monster Tracer

#3

Post by Ænima » Thu Jul 30, 2015 9:38 pm

A_Recoil and A_Facetarget. Assuming it's not a flying monster.
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

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: Monster Tracer

#4

Post by ibm5155 » Thu Aug 06, 2015 2:34 pm

It's a flying monster D:
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

RE: Monster Tracer

#5

Post by Konda » Thu Aug 06, 2015 3:36 pm

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.

Code: Select all

<Synert> fuck
<Synert> plugged in my memory stick and got a bsod

User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RE: Monster Tracer

#6

Post by fr blood » Thu Aug 06, 2015 3:59 pm

Æ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.

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

RE: Monster Tracer

#7

Post by Ænima » Thu Aug 06, 2015 4:57 pm

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.
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

ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

RE: Monster Tracer

#8

Post by ZzZombo » Sat Aug 22, 2015 10:47 am

Code: Select all

See:
<frame> A_RearrangePointers(AAPTR_DEFAULT,AAPTR_TARGET,AAPTR_DEFAULT)
<frame> A_Tracer //or the like function.
...
QZRcon - Qt-based tool for Zandronum/Skulltag servers!
#grandvoid funny stats

Post Reply