Moving Deathzones. How?

For all the help you need with Armagetron!
Post Reply
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Moving Deathzones. How?

Post by INW »

I've always wondered what the xml syntax is for creating a moving deathzone back and forth between two points.
XzL.Smart
Round Winner
Posts: 216
Joined: Sun Apr 30, 2006 4:21 am
Location: Arizona

Re: Moving Deathzones. How?

Post by XzL.Smart »

This is how I did it on my server.

Code: Select all

SPAWN_ZONE death L 192 272 250 272 Z 10 0 10 10 false .8 .3 .6
Between the L and Z are the coordinates that it will move between. (x1 y1), (x2 y2), etc... Then, I believe, it's zone size, growth, movement speed, something, interactive(true or false), Red, Green, Blue.
Image
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Moving Deathzones. How?

Post by INW »

thanks man, I'll work on it for a great map.
User avatar
voodoo
Core Dumper
Posts: 124
Joined: Wed Sep 27, 2006 11:51 am

Re: Moving Deathzones. How?

Post by voodoo »

You'll find details about that here:
sty+ct settings wiki
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Moving Deathzones. How?

Post by AI-team »

couldn't resist:

Image
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Moving Deathzones. How?

Post by INW »

Where do I put that line? Do I put

Code: Select all

SPAWN_ZONE
in the map xml? Something like this?

Code: Select all

<Settings>
		<SPAWN_ZONE death L 180 -520 220 -520 Z 10 0 10 10 false .8 .3 .6>
	</Settings>
Wik
Average Program
Posts: 72
Joined: Tue Aug 10, 2010 1:32 pm

Re: Moving Deathzones. How?

Post by Wik »

<Settings>
<Setting name="spawn_zone" value="death L 180 -520 220 -520 Z 10 0 10 10 false .8 .3 .6 0"/>
</Settings>

The zone might not show when the countdown reaches 0, in this case you can try combining it with delay_command, like

<Setting name="delay_command" value="r0 0 spawn_zone death L 180 -520 220 -520 Z 10 0 10 10 false .8 .3 .6 0"/>

The starting coordinates of spawn_zone do not care about your size_factor, afair. And for unknown reason <Settings> is parsed twice, giving you two zones per command (but probably looking like one). (is this fixed now? @ devs)
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Moving Deathzones. How?

Post by kyle »

the way i do them on ctwf is, mostly what wik said, but no need for the r1 also puts them at 1 secound before start so that people can see them before the round starts.

Code: Select all

<Setting name="DELAY_COMMAND" value="-1 SPAWN_ZONE death L 180 -520 220 -520 Z 10 0 10 10 false .8 .3 .6"/>
(one of the moving zone maps
http://crazy-tronners.com/resource/ct/w ... .aamap.xml
Image
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Moving Deathzones. How?

Post by INW »

Sweet, it works perfectly, thanks!
Post Reply