Moving Deathzones. How?
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Moving Deathzones. How?
I've always wondered what the xml syntax is for creating a moving deathzone back and forth between two points.
Re: Moving Deathzones. How?
This is how I did it on my server.
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.
Code: Select all
SPAWN_ZONE death L 192 272 250 272 Z 10 0 10 10 false .8 .3 .6

- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Moving Deathzones. How?
thanks man, I'll work on it for a great map.
Re: Moving Deathzones. How?
You'll find details about that here:
sty+ct settings wiki
sty+ct settings wiki
- AI-team
- Shutout Match Winner
- Posts: 1020
- Joined: Tue Jun 23, 2009 6:17 pm
- Location: Germany/Munich
- Contact:
Re: Moving Deathzones. How?
couldn't resist:


"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Moving Deathzones. How?
Where do I put that line? Do I put in the map xml? Something like this?
Code: Select all
SPAWN_ZONE
Code: Select all
<Settings>
<SPAWN_ZONE death L 180 -520 220 -520 Z 10 0 10 10 false .8 .3 .6>
</Settings>
Re: Moving Deathzones. How?
<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)
<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)
- 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?
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.
(one of the moving zone maps
http://crazy-tronners.com/resource/ct/w ... .aamap.xml
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"/>
http://crazy-tronners.com/resource/ct/w ... .aamap.xml

- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Moving Deathzones. How?
Sweet, it works perfectly, thanks!