<?xml version="1.0" encoding="utf-8"?>
<AstroMenaceScript name="AstroMenace mission script">
<Load>

	<StarSystem1/><!-- StarSystem 1 SkyBox -->
	<AlienFighter/><!-- Aliens fighters -->
	<Asteroid/><!-- Asteroids -->
	<Planet/><!-- Planets -->

	<!-- Load aimode file -->
	<AIFile>DATA/SCRIPT/aimode.xml</AIFile>

</Load>
<Action>
	<!-- Debug setup -->
	<Debug showline="1" undead="1" showbb="0"/>
	<!-- Environment setup-->

	<!-- Star system -->
	<StarSystem system="1"  anglex="0" angley="0" anglez="90"/>
	<!-- Planets -->
	<CreatePlanet type="6" speed="4.0" posax="250" posay="-250" posaz="400" anglaz="0"/> <!-- pluton -->
	<CreatePlanet type="4" speed="4.0" posax="250" posay="-250" posaz="1300" anglaz="0"/> <!-- mercury -->
	
	<!-- <CreatePlanet type="1" speed="0.9" posax="-200" posay="-200" posaz="200" anglax="25"/> <!-- asteroids roy -->
	<!-- <CreatePlanet type="2" speed="1.5" posax="0" posay="-400" posaz="400" anglax="45"/> <!-- big asteroid -->
	<!-- <CreatePlanet type="3" speed="1.5" posax="200" posay="-600" posaz="600" anglax="90"/> <!-- eart -->
	<!--<CreatePlanet type="5" speed="10.0" posax="-400" posay="-200" posaz="1000" anglax="90"/> <!-- death star -->

	<!-- Lights -->
	<Light dirx="0.75" diry="-0.75" dirz="-0.5" diffr="0.6" diffg="0.6" diffb="0.9" specr="0.6" specg="0.6" specb="0.9" ambir="1" ambig="1" ambib="1"/>
	<!-- Asteroids field generation, switch to on -->
	
	<AsteroidField status="0"/>

<!--	
	<TimeLine>
		<CreateBigAsteroid type="23" speed="10.0" posx="0" posy="0" posz="600"/>
		<CreateBigAsteroid type="24" speed="10.0" posx="20" posy="0" posz="800"/>
		<CreateBigAsteroid type="25" speed="10.0" posx="40" posy="0" posz="1000"/>
	</TimeLine>
-->

	<!-- BigAsteroid and 3AlienFighter escort /-->
	<TimeLine value="1">
		<CreateBigAsteroid type="21" speed="13" posx="-40" posy="0" posz="200" angly="180"/>
		<AlienFighter type="1" speed="3" posx="-40" posy="-2" posz="180" angly="180"/>
		<AlienFighter type="1" speed="3" posx="-20" posy="-2" posz="200" angly="180"/>
		<AlienFighter type="1" speed="3" posx="-60" posy="-2" posz="200" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="1" posx="-40" posy="-2" posz="330" angly="180"/>
	</TimeLine>
	
	<TimeLine value="2">
		<AlienFighter type="1" speed="20" posx="60" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" speed="20" posx="35" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" speed="20" posx="10" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="4" speed="20" posx="55" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="4" speed="20" posx="30" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="4" speed="20" posx="5" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="3">
		<AlienFighter type="1" aimode="5" speed="15" posx="-50" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="-60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="50" posy="-2" posz="280" angly="160"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="60" posy="-2" posz="280" angly="160"/>
	</TimeLine>
	
	<TimeLine value="8">
		<CreateBigAsteroid type="22" speed="13" posx="-20" posy="0" posz="200" angly="180"/>
		<AlienFighter type="1" aimode="10" speed="3" posx="-20" posy="-2" posz="180" angly="180"/>
		<AlienFighter type="1" aimode="10" speed="3" posx="0" posy="-2" posz="200" angly="180"/>
		<AlienFighter type="1" aimode="10" speed="3" posx="-40" posy="-2" posz="200" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="1" posx="-20" posy="-2" posz="330" angly="180"/>
	</TimeLine>
	
	<TimeLine value="6">
		<AlienFighter type="1" aimode="5" speed="15" posx="50" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="-60" posy="-2" posz="280" angly="200"/>
		<AlienFighter type="1" aimode="5" speed="15" posx="-50" posy="-2" posz="280" angly="200"/>
	</TimeLine>
	
	<TimeLine value="3">
		<AlienFighter type="1" aimode="10" posx="0" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="35" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="70" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="-35" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="-70" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="4" aimode="10" posx="25" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="4" aimode="10" posx="-25" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="4" aimode="10" posx="65" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="4" aimode="10" posx="-65" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- pilon -->
	<TimeLine value="7">
		<AlienFighter type="1" aimode="5" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="20" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-20" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-60" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	
	<TimeLine value="1">
		<AlienFighter type="3" aimode="10" speed="3" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="7">
		<CreateBigAsteroid type="23" speed="18" posx="0" posy="0" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="50" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="-50" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	
	<AsteroidField status="1" persec="3"/>

	<!-- pilon inverse -->
	<TimeLine value="5">
		<AlienFighter type="1" aimode="5" posx="60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-60" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="20" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-20" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- pilon -->
	<TimeLine value="10">
		<AlienFighter type="1" aimode="5" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="20" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-20" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-60" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="7">
		<AlienFighter type="3" aimode="10" speed="3" posx="80" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="0" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="-40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" speed="3" posx="-80" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<!-- pilon inverse -->
	<TimeLine value="5">
		<AlienFighter type="1" aimode="5" posx="60" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-60" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="20" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-20" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- big alien with local cover ships /-->
	<TimeLine value="7">
		<AlienFighter type="1" aimode="5" posx="-60" posy="0" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="0" posy="0" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="60" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<CreateBigAsteroid type="23" speed="18" posx="0" posy="0" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" posx="50" posy="0" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" posx="-50" posy="0" posz="280" angly="180"/>
		
		<AlienFighter type="1" aimode="10" posx="70" posy="0" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="-30" posy="0" posz="280" angly="180"/>
	
		<AlienFighter type="1" aimode="10" posx="30" posy="0" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" posx="-70" posy="0" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- pilon inverse -->
	<TimeLine value="7">
		<AlienFighter type="1" aimode="5" posx="40" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-40" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="20" posy="-2" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" posx="-20" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="1" aimode="5" posx="0" posy="-2" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="3">
		<AlienFighter type="3" aimode="10" posx="0" posy="0" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- waves and fires strike-->
	<TimeLine value="5">
		<AlienFighter type="1" speed="18" posx="-70" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" speed="18" posx="-60" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="3" aimode="10" posx="0" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" speed="18" posx="50" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" speed="18" posx="40" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	
	<TimeLine value="2">
		<AlienFighter type="1" speed="18" posx="70" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" speed="18" posx="60" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" speed="18" posx="-50" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" speed="18" posx="-40" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="3" aimode="10" posx="0" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" speed="18" posx="30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" speed="18" posx="-30" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	
	<TimeLine value="7">
		<AlienFighter type="1" aimode="5" speed="18" posx="30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="18" posx="20" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="18" posx="-30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="5" speed="18" posx="-20" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" aimode="10" speed="18" posx="-10" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" speed="18" posx="0" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="10" speed="18" posx="10" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- waves and fires strike variation-->
	<TimeLine value="5">
		<AlienFighter type="1" aimode="5" speed="18" posx="-70" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="0.5">
		<AlienFighter type="1" aimode="5" speed="18" posx="40" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" aimode="5" speed="18" posx="50" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="0.5">
		<AlienFighter type="1" aimode="5" speed="18" posx="-60" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="4">
		<AlienFighter type="1" aimode="5" speed="18" posx="70" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="0.5">
		<AlienFighter type="1" aimode="5" speed="18" posx="-40" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="1" aimode="5" speed="18" posx="-50" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="0.5">
		<AlienFighter type="1" aimode="5" speed="18" posx="60" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	
	<TimeLine value="6">
		<AlienFighter type="1" aimode="8" speed="10" posx="30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="20" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-20" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="2">
		<AlienFighter type="2" aimode="8" speed="18" posx="-10" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="8" speed="18" posx="0" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="8" speed="18" posx="10" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="6">
		<AlienFighter type="1" aimode="8" speed="10" posx="30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="20" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-30" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-20" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="4">
		<AlienFighter type="1" aimode="8" speed="10" posx="50" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="35" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-50" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="1" aimode="8" speed="10" posx="-35" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" speed="18" posx="0" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="3">
		<AlienFighter type="2" aimode="8" speed="18" posx="-10" posy="-4" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="8" speed="18" posx="10" posy="-4" posz="280" angly="180"/>
	</TimeLine>
	
	<!-- switch on second ("boss" or danger) music theme /-->	
	<Music theme="2"/>
	
	<!-- fire rocket ship -->
	<TimeLine value="7">	
		<AlienFighter type="3" aimode="10" posx="0" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<!-- group with symmetric acceleration /-->
	<TimeLine value="1">
		<AlienFighter type="2" aimode="10" posx="30" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="10" posx="-30" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="6" posx="60" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="6" posx="-60" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="6" posx="80" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="6" posx="-80" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<!-- group with symmetric acceleration /-->
	<TimeLine value="3">
		<AlienFighter type="2" aimode="10" posx="20" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="10" posx="-20" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="6" posx="40" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="6" posx="-40" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="6" posx="60" posy="0" posz="280" angly="180"/>
		<AlienFighter type="2" aimode="6" posx="-60" posy="0" posz="280" angly="180"/>
	</TimeLine>

	<!-- fire rocket ship -->
	<TimeLine value="4">	
		<AlienFighter type="3" aimode="10" posx="0" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<!-- group with psevdorandom acceleration /-->
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="35" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="-75" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="60" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="-20" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="20" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="8" posx="-70" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<!-- group with psevdorandom acceleration /-->
	<TimeLine value="3">
		<AlienFighter type="2" aimode="9" posx="35" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="9" posx="-75" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="9" posx="60" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="9" posx="-20" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="9" posx="20" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<TimeLine value="1">
		<AlienFighter type="2" aimode="9" posx="-70" posy="0" posz="280" angly="180"/>
	</TimeLine>
	<!-- 187 -->	

	<!-- switch asteroid generation off -->
	<AsteroidField status="0"/>

	<TimeLine value="15"/>
	<Music theme="1"/>
	<TimeLine value="7"/>

	<MissionComplete/>
</Action>
</AstroMenaceScript>
