Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Doom-X-Machina

'A_Teleport' query regarding random points

Question

Posted (edited)

Hey all, me again... sorry... can anyone offer me some insight into this?

ACTOR BLOODLETTER 21346  

//BLAH BLAH WHO CARES, NOT IMPORTANT

Warp:
	3DVC ABCDEFGHIJKLMNOP 2 //TELEPORT OUT
	3DVC P 0 A_Teleport ("NONE", "LetterSpot", "TeleportFog", TF_NOJUMP, 0, 0, AAPTR_DEFAULT) //SHIFT POSITION
  	3DVD ABCDEFGHIJKLMNOPQRSTUVWXYZ 2 //TELEPORT IN
	3DVE ABCDE 2 //TELEPORT IN
	Goto See

ACTOR LetterSpot : SpecialSpot 21347
{
  +INVISIBLE
}

Image2.jpg.85a515361d845e7cab4d8ef768c493a2.jpg

So, the DECORATE works perfectly and the monster randomly teleports to the placed spots, no issues. All good. Happy days. <cheers and applause>

My query is, is there a way to not use pre-set spots?
Can I make A_Teleport move to a random position within a certain radius of the monster that isn't pre-set by a spot?
Or are the spots necessary for this function to work?

Cheers everyone.

Edited by Doom-X-Machina

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0
1 hour ago, Doom-X-Machina said:

Or are the spots necessary for this function to work?

They are.

 

Usually, what people use when they want to make a monster teleport around is that they actually turn the monster invisible, make a few/some/a lot of A_Wander calls with a 0 tic duration so that they're instantaneous, and turn the monster visible again. For style, you can spawn a teleport fog at the monster when it turns invisible and another when it turns visible. Tada! It teleported!

Share this post


Link to post
  • 0
Posted (edited)
30 minutes ago, Gez said:

They are.

  

Usually, what people use when they want to make a monster teleport around is that they actually turn the monster invisible, make a few/some/a lot of A_Wander calls with a 0 tic duration so that they're instantaneous, and turn the monster visible again. For style, you can spawn a teleport fog at the monster when it turns invisible and another when it turns visible. Tada! It teleported!

 

I'm assuming during 'See' state? While monster chases? Or replace A_Teleport with A_Wander and begin the calls from the same point in my 'Warp' state?

Share this post


Link to post
  • 0
11 minutes ago, Doom-X-Machina said:

I'm assuming during 'See' state? While monster chases? Or replace A_Teleport with A_Wander and begin the calls from the same point in my 'Warp' state?

Either should work, really. Do as you see fit.

Share this post


Link to post
  • 0
1 minute ago, Gez said:

Either should work, really. Do as you see fit.

 

 Warp:
    3DVC ABCD 2 A_SetRenderStyle(0.8, STYLE_Translucent) //TELEPORT OUT
    3DVC EFGH 2 A_SetRenderStyle(0.6, STYLE_Translucent) //TELEPORT OUT   
    3DVC IJKL 2 A_SetRenderStyle(0.4, STYLE_Translucent) //TELEPORT OUT
    3DVC MNOP 2 A_SetRenderStyle(0.2, STYLE_Translucent) //TELEPORT OUT
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    3DVD ABCD 2 A_SetRenderStyle(0.2, STYLE_Translucent) //TELEPORT IN
    3DVD EFGH 2 A_SetRenderStyle(0.4, STYLE_Translucent) //TELEPORT IN
    3DVD IJKL 2 A_SetRenderStyle(0.6, STYLE_Translucent) //TELEPORT IN
    3DVD MNOP 2 A_SetRenderStyle(0.8, STYLE_Translucent) //TELEPORT IN
    3DVD QRST 2 A_SetRenderStyle(1.0, STYLE_Translucent) //TELEPORT IN
	3DVD UVWXYZ 2 //TELEPORT IN
	3DVE ABCDE 2 //TELEPORT IN
	Goto See

This is what I came up with.

This. Is. Fucking. Awesome!!
Thankyou @Gez

*points* Oi, this guy this deserves a fucking raise!!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×