moving a brush automatically, and repeating


(Susquianna) #1

hello for my map I’m making, I need a boat to be seen in the distance in the ocean, it needs to drive by, then repeat about 2 minutes later.

ok so in the diagram i made below, the boat is marked as “()” and the point it has to go to is marked as “X”.

() > > > > > > > > > > > > > > > > > > X

Then after about 2 minutes, it teleports back to it’s original spot and travels to X again. This is just a boat in the distance for decoration to spice up the map. Just you know to look out in the ocean and see a boat driving by.

What is the easiest way to do this? I was thinking about just making the boat a door or something and it would open to the direction it needs to go. But the problem is how would I make it go back and repeat in exactly 2 minutes time? Plus it needs to automatically start moving on the map start, and automatically repeat, no player must trigger it


(Ifurita) #2

Go to pcgamemods.com, download the map Breakout_et_b1 and look at the script in there. That map has a plane that flies racetracks around the map every 2 minutes or so.


(Susquianna) #3

Ok so you mean this in the breakout script I’m guessing:

// the Mustang plane attacks
attack1
{
	spawn
	{
	faceangles  0 0 0 1000
	gotomarker p1start 1000
	wait 3000
	}

trigger on
	{
		gotomarker p1spot1 200
		alertentity planesound1
		gotomarker p1spot2 500
		faceangles 0 0 -60 gototime
		gotomarker p1spot2b 500
		alertentity planesound2
		faceangles 0 -8 -50 gototime
		gotomarker p1spot2c 500
		faceangles 0 -12 -20 gototime
		gotomarker p1spot2d 500
		faceangles 0 -14 -25 gototime
		gotomarker p1spot2e 500
		faceangles 0 -18 -35 gototime
		gotomarker p1spot3 500
		faceangles 0 -22 -45 gototime
		gotomarker p1spot4 500
		alertentity planesound3
		faceangles 0 0 -5 gototime
		gotomarker p1roll 500
		faceangles 0 0 -180 gototime
		gotomarker p1attack1 500
		alertentity planesound4
		faceangles 10 0 -359 gototime
		gotomarker p1attack2 500
		alertentity axis_explode
		faceangles 0 0 0 gototime
		gotomarker p1attack3 500
		faceangles 0 0 60 gototime
		gotomarker p1attack4 500
		faceangles 0 0 60 gototime
		gotomarker p1attack5 500
		faceangles 0 0 40 gototime
		gotomarker p1attack6 500
		faceangles 0 0 15 gototime
		gotomarker p1attack7 500
		faceangles 0 0 0 gototime
		gotomarker p1return1 500
		faceangles 0 0 -60 gototime
		gotomarker p1return2 500
		faceangles 0 0 -90 gototime
		gotomarker p1return3 500
		faceangles 0 0 -60 gototime
		gotomarker p1return4 500
		faceangles 0 0 0 gototime
		gotomarker p1return5 500
		faceangles 0 0 0 gototime
		gotomarker p1return6 500
		faceangles 0 0 0 gototime
		gotomarker p1return7 500
		faceangles 0 0 0 gototime
		gotomarker p1return8 500
		faceangles 0 0 0 gototime
		gotomarker p1start 500
		faceangles 0 0 0 gototime
	}
}

That’s nice, but what exactly are the goto markers? And what kind of entity is the plane?

I can’t really make heads or tails of the script without looking at the .map of breakout.

Also while I’m at it, how can I make a captureable spawn (like in temple_final, where you touch the flag then you spawn there, and other team can then also touch it and spawn there)? I can’t find any tutorials for that.


(Susquianna) #4

nevermind about the Capturable spawn I decide not to have one.

ok now about the plane (boat)


(Shaderman) #5

LDR, Appendix A: Scripting Commands:

faceangles <pitch> <yaw> <roll> <duration/GOTOTIME> [ACCEL/DECCEL]
The entity will face the given angles, taking <duration> to get their. If the GOTOTIME is given instead of a timed duration, the duration calculated from the last gotomarker command will be used instead

gotomarker <targetname> <speed> [accel/deccel] [turntotarget] [wait] [relative <position>]
Note: speed may be modified to round the duration to the next 50ms for smooth transitions.

The boat should be a script mover (don’t forget the origin).


(Susquianna) #6

So those targets are what? Info_Notnulls?

And how can I find the correct angles? Is it the same as the angles of a door?

And lastly, how can I get this to repeat every 2 minutes? Looking at the breakout script I see nothing that would make it repeat after 2 minutes.

Sorry I’m just so confused. Ifurita could you maybe send me the breakout .map file via e-mail? I promise I won’t steal anything from it, it’s just I really need to look at what kind of things in it to get the script working. if you want to that is, e-mail = baseballclock@hotmail.com


(Ifurita) #7

path_corner

Nope, can’t send you the source - not mine to give out


(Susquianna) #8

and about the angles and getting it to repeat?


(Shaderman) #9

Why don’t you start with a simple mover first? Try to move a brush from point A to point B. Forget about angles and the loop you want to have atm.


(Sniper) #10

It might be an idea to try the script_mover thing that someone suggested and use path_corners to make it move between?? And simply script the rest? I am sure that will work.