<?xml version="1.0" standalone="no"?>

<unit>
	<parameters>
		<size value="2"/>
		<height value="1"/>
		<max-hp value="1300" regeneration="0"/>
		<max-ep value="800" regeneration="20" start-value="1000"/>
		<armor value="50"/>	
		<armor-type value="metall"/>				
		<sight value="15"/>
		<time value="70"/>	
                <multi-selection value="true"/>	
		       <!-- <max-unit-count value="3"/> -->
		<cellmap value="false"/>
		<levels>
			<level name="veteran" kills="10"/>
			<level name="experte" kills="30"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			
		</unit-requirements>
		<upgrade-requirements>
			
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="300"/>
			<resource name="stein" amount="100"/>
			<resource name="holz" amount="50"/>		
			<resource name="essen" amount="2"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="../../images/icons/units/kettenpanzer_aa.png"/>
		<image-cancel path="../../images/icons/commands/abbrechen.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/guard_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/guard_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack7.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="400"/>
			<anim-speed value="15"/>
			<animation path="models/kettenpanzer_aa_stehen.g3d"/>
                        <animation path="models/kettenpanzer_aa_position_halten.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="26"/>
			<animation path="models/kettenpanzer_aa_fahren.g3d"/>
			<sound enabled="false"/>
			<particles value="false">
				<particle-file path="../spaehwagen/dust.xml"/>
			</particles>
		</skill>


		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="100"/>
			<speed value="20"/>
			<anim-speed value="100"/>
			<animation path="models/kettenpanzer_aa_angriff.g3d"/>
                        <particles value="true" >
				<particle-file  start-time="0.11" end-time="0.4" path="cannonfire_particles_r.xml"/>
				<particle-file  start-time="0.12" end-time="0.42" path="cannonsmoke_particles_r.xml"/>
				<particle-file start-time="0.61" end-time="0.9" path="cannonfire_particles_l.xml"/>
				<particle-file start-time="0.62" end-time="0.92" path="cannonsmoke_particles_l.xml"/>
			</particles>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/boom.wav"/>
			</sound> 
			<sound enabled="true" start-time="0.6">
				<sound-file path="sounds/boom.wav"/>
			</sound> 
			<attack-strenght value="350"/>
			<attack-var value="50"/>
			<attack-range value="10"/>
			<attack-type value="rakete"/>
			<attack-fields>
                            <!--	<field value="land"/>  -->
                                <field value="air"/>
			</attack-fields>
			<attack-start-time value="0.1"/>
			<projectiles>
			      <projectile attack-start-time="0.1" damage-percentage="50" >	
				      <particle value="true" path="scout_proj_l.xml"/>
					  <hitsound enabled="false">
						<sound-file path="../grenadier/sounds/shell_explosion.wav"/>
					  </hitsound>	
			      </projectile>
			         <projectile attack-start-time="0.6" damage-percentage="50" >	
				      <particle value="true" path="scout_proj_r.xml"/>
					  <hitsound enabled="false">
						<sound-file path="../grenadier/sounds/shell_explosion.wav"/>
					  </hitsound>	
			      </projectile>			      			      
			</projectiles>
			<splash value="false">
				<radius value="1"/>
				      <damage-all value="false"/>
				<particle value="false" path="../mammut/particle_splash.xml"/>
			</splash>
			
		</skill>	
		
		<skill>
			<type value="stop" />
			<name value="show_range_skill" />		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="100" />
			<animation path="models/kettenpanzer_aa_stehen.g3d" />
			<particles value="true">
			  	<particle-file path="../radar/particle_range_sicht.xml">
					<shape value="conical">
						<angle value="90" />
					</shape>
					<radius value="15" />
					<min-radius value="14.9" />
					<direction x="0" y="0.1" z="0" />
					<offset x="0" y="1" z="0" />
				</particle-file>
				
				<particle-file path="../radar/particle_range.xml">
					<shape value="conical">
						<angle value="90" />
					</shape>
					<radius value="8" />
					<min-radius value="7.9" />
					<direction x="0" y="0.1" z="0" />
					<offset x="0" y="1" z="0" />
				</particle-file>
			</particles>
			<sound enabled="false" />
		</skill>  
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="170"/>
			<animation path="models/kettenpanzer_aa_sterben_test.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/guard_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die4.wav"/>
			</sound>
			<particles value="true">	
				<particle-file path="../scout/feuer_particles.xml"/>
				<particle-file path="../scout/rauch_particles.xml"/>			
                        </particles>			
			<fade value="false"/>
		</skill>


	</skills>
	
	<commands>
		
		<command>
			<type value="stop"/>
			<name value="anhalten"/>
			<image path="../../images/icons/commands/stop.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="move"/>
			<name value="bewegen"/>
			<image path="../../images/icons/commands/bewegen.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="angreifen"/>
			<image path="../../images/icons/units/kettenpanzer_aa.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		
		 <command>
			<type value="stop" />
			<name value="zeige_reichweite" />
			<image path="../../images/icons/commands/reichweite.png" />
			<unit-requirements />
			<upgrade-requirements />
			<stop-skill value="show_range_skill" />
		</command> 
		
	</commands>
</unit>
