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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="800" regeneration="0"/>
		<max-ep value="900" regeneration="10" start-value="900"/>
		<armor value="40"/>	
		<armor-type value="uniform"/>				
		<sight value="16"/>
		<time value="80"/>	
		<multi-selection value="true"/>	
		<max-unit-count value="2"/>
		<cellmap value="false"/>
		<levels>
			<level name="veteran" kills="7"/>
			<level name="experte" kills="15"/>
			<level name="elite" kills="30"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
			<property value="rotated_climb" />
		</properties>
		<light enabled="false"/>
		<damage-particles value="false">
			<particle-file path="../arbeiter/damage_particles_10.xml" minHp="0" maxHp="90"/>
			<particle-file path="../arbeiter/damage_particles_20.xml" minHp="91" maxHp="180"/>
			<particle-file path="../arbeiter/damage_particles_30.xml" minHp="181" maxHp="270"/>
			<particle-file path="../arbeiter/damage_particles_40.xml" minHp="271" maxHp="360"/>
			<particle-file path="../arbeiter/damage_particles_50.xml" minHp="361" maxHp="450"/>
			<particle-file path="../arbeiter/damage_particles_60.xml" minHp="451" maxHp="540"/>
			<particle-file path="../arbeiter/damage_particles_70.xml" minHp="541" maxHp="630"/>
			<particle-file path="../arbeiter/damage_particles_80.xml" minHp="631" maxHp="720"/>
			<particle-file path="../arbeiter/damage_particles_90.xml" minHp="721" maxHp="810"/>
			<particle-file path="../arbeiter/damage_particles_100.xml" minHp="811" maxHp="900"/>
		</damage-particles>
		<unit-requirements>
			
		</unit-requirements>
		<upgrade-requirements>
			
		</upgrade-requirements>		    		
		<resource-requirements>
			<resource name="gold" amount="150"/>
			<resource name="stein" amount="50"/>
			<resource name="holz" amount="75"/>
			<resource name="essen" amount="1"/>		
		</resource-requirements>
		<resources-stored/>
		<image path="images/sniper.png"/>
		<image-cancel path="../zentralmodul/images/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="1000"/>
			<anim-speed value="45"/>
			<animation path="models/scharfschuetze_stehen.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_skill_schleichen"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/scharfschuetze_stehen.g3d"/>
			<sound enabled="false"/>
			<attack-boost name="schleichen">
				<allow-multiple-boosts value="false" />
				<radius value="25"/>
				<target value="foe">
					<unit-type name="arbeiter" />
					<unit-type name="schuetze" />
					<unit-type name="grenadier" />
					<unit-type name="moerserman" />
					<unit-type name="flammenman" />					
					<unit-type name="panzerfaustman" />					
					<unit-type name="scharfschuetze" />
					<unit-type name="zentralmodul"/>
					<unit-type name="zentralmodul_stufe_2"/>				
					<unit-type name="zentralmodul_stufe_3"/>
					<unit-type name="biodome"/>
					<unit-type name="biodome_"/>
					<unit-type name="biodome__"/>
					<unit-type name="biodome___"/>				
					<unit-type name="mannschaftszelt"/>			
					<unit-type name="panzersperre"/>
					<unit-type name="betonsperre"/>
					<unit-type name="betonsperre_45"/>
					<unit-type name="personen_abwehr_geschuetz"/>
					<unit-type name="raketenartillerie"/>
					<unit-type name="panzerfabrik"/>
					<unit-type name="helipad"/>
					<unit-type name="helicopter"/>
					<unit-type name="helicopter_"/>
					<unit-type name="helicopter__"/>
					<unit-type name="bunker"/>
					<unit-type name="labor"/>
					<unit-type name="labor_stufe_2"/>
					<unit-type name="versorgungspunkt"/>
					<unit-type name="brenner"/>
					<unit-type name="feuerkanone"/>
					<unit-type name="spaehwagen"/>
					<unit-type name="raketenwagen"/>
					<unit-type name="panzerwagen"/>
					<unit-type name="panzer"/>
					<unit-type name="hydra"/>
					<unit-type name="mammut"/>
					<unit-type name="radar"/>
					<unit-type name="wachturm"/>
				</target>
				<max-hp value="0" regeneration="0"/>
				<max-ep value="0" regeneration="0"/>
				<sight value="-20" value-percent-multipler="false" />
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false">
					<affected-particle-file path="munition_boost.xml"/>
				</particles>
			</attack-boost> 
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_skill_position_halten"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="5"/>
			<animation path="models/scharfschuetze_position_halten_hocke.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="110"/>
			<animation path="models/scharfschuetze_laufen.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="230"/>
			<anim-speed value="115"/>
			<animation path="models/scharfschuetze_laufen.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill_schleichen"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="40"/>
			<animation path="models/scharfschuetze_schleichen.g3d"/>
			<sound enabled="false"/>
			<attack-boost name="schleichen">
				<allow-multiple-boosts value="false" />
				<radius value="25"/>
				<target value="foe">
					<unit-type name="arbeiter" />
					<unit-type name="schuetze" />
					<unit-type name="grenadier" />
					<unit-type name="moerserman" />
					<unit-type name="flammenman" />					
					<unit-type name="panzerfaustman" />					
					<unit-type name="scharfschuetze" />
					<unit-type name="zentralmodul"/>
					<unit-type name="zentralmodul_stufe_2"/>				
					<unit-type name="zentralmodul_stufe_3"/>
					<unit-type name="biodome"/>
					<unit-type name="biodome_"/>
					<unit-type name="biodome__"/>
					<unit-type name="biodome___"/>				
					<unit-type name="mannschaftszelt"/>			
					<unit-type name="panzersperre"/>
					<unit-type name="betonsperre"/>
					<unit-type name="betonsperre_45"/>
					<unit-type name="personen_abwehr_geschuetz"/>
					<unit-type name="raketenartillerie"/>
					<unit-type name="panzerfabrik"/>
					<unit-type name="helipad"/>
					<unit-type name="helicopter"/>
					<unit-type name="helicopter_"/>
					<unit-type name="helicopter__"/>
					<unit-type name="bunker"/>
					<unit-type name="labor"/>
					<unit-type name="labor_stufe_2"/>
					<unit-type name="versorgungspunkt"/>
					<unit-type name="brenner"/>
					<unit-type name="feuerkanone"/>
					<unit-type name="spaehwagen"/>
					<unit-type name="raketenwagen"/>
					<unit-type name="panzerwagen"/>
					<unit-type name="panzer"/>
					<unit-type name="hydra"/>
					<unit-type name="mammut"/>
					<unit-type name="radar"/>
					<unit-type name="wachturm"/>
				</target>
				<max-hp value="0" regeneration="0"/>
				<max-ep value="0" regeneration="0"/>
				<sight value="-18" />
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false">
					<affected-particle-file path="munition_boost.xml"/>
				</particles>
			</attack-boost> 
		</skill>
		
				
		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="50"/>
			<animation path="models/scharfschuetze_bauen.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_build1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build3.wav"/>
			</sound>		
		</skill>
								
		<skill>
			<type value="repair"/>
			<name value="repair_skill"/>		
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="30"/>
			<animation path="models/scharfschuetze_bauen.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="$COMMONDATAPATH/sounds/worker_build1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_build3.wav"/>
			</sound>
		
		</skill>
		
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="450"/>
			<speed value="40"/>
			<anim-speed value="100"/>			
			<animation path="models/scharfschuetze_angriff_hocke.g3d"/>
			<sound enabled="true" start-time="0.4">
				<sound-file path="sounds/shot_and_reload.wav"/>
			</sound> 
			
			<attack-strenght value="425"/>
			<attack-var value="25"/>
			<attack-range value="12"/>
			<attack-type value="geschoss"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.4"/>  
			<projectile value="true" >	
				<particle value="true" path="scharfschuetze_proj.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="true">
				<radius value="0"/>
				<damage-all value="false"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
						
		<skill>
			<type value="attack"/>
			<name value="bomb_skill"/>		
			<ep-cost value="900"/>
			<speed value="35"/>
			<anim-speed value="35"/>
			<animation path="models/scharfschuetze_bauen.g3d"/>	
			<particles value="true">
				<particle-file path="../schuetze/c_4_out.xml"/>
				<particle-file path="../schuetze/c_4_in.xml"/>						
			</particles>
			<sound enabled="true" start-time="0.9">
				<sound-file path="../schuetze/sounds/c4_expl.wav"/>

			</sound>
			<attack-strenght value="4000"/>
			<attack-var value="0"/>
			<attack-range value="1"/>
			<attack-type value="sprengsatz"/>
			<attack-start-time value="0.99"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<projectile value="false"/>
			<splash value="true">
				<radius value="0"/>
				<damage-all value="true"/>
				<particle value="true" path="../schuetze/bomb_splash.xml"/>
			</splash>
			<attack-boost name="schleichen">
				<allow-multiple-boosts value="false" />
				<radius value="25"/>
				<target value="foe">
					<unit-type name="arbeiter" />
					<unit-type name="schuetze" />
					<unit-type name="grenadier" />
					<unit-type name="moerserman" />
					<unit-type name="flammenman" />					
					<unit-type name="panzerfaustman" />					
					<unit-type name="scharfschuetze" />
					<unit-type name="zentralmodul"/>
					<unit-type name="zentralmodul_stufe_2"/>				
					<unit-type name="zentralmodul_stufe_3"/>
					<unit-type name="biodome"/>
					<unit-type name="biodome_"/>
					<unit-type name="biodome__"/>
					<unit-type name="biodome___"/>				
					<unit-type name="mannschaftszelt"/>			
					<unit-type name="panzersperre"/>
					<unit-type name="betonsperre"/>
					<unit-type name="betonsperre_45"/>
					<unit-type name="personen_abwehr_geschuetz"/>
					<unit-type name="raketenartillerie"/>
					<unit-type name="panzerfabrik"/>
					<unit-type name="helipad"/>
					<unit-type name="helicopter"/>
					<unit-type name="helicopter_"/>
					<unit-type name="helicopter__"/>
					<unit-type name="bunker"/>
					<unit-type name="labor"/>
					<unit-type name="labor_stufe_2"/>
					<unit-type name="versorgungspunkt"/>
					<unit-type name="brenner"/>
					<unit-type name="feuerkanone"/>
					<unit-type name="spaehwagen"/>
					<unit-type name="raketenwagen"/>
					<unit-type name="panzerwagen"/>
					<unit-type name="panzer"/>
					<unit-type name="hydra"/>
					<unit-type name="mammut"/>
					<unit-type name="radar"/>
					<unit-type name="wachturm"/>
				</target>
				<max-hp value="0" regeneration="0"/>
				<max-ep value="0" regeneration="0"/>
				<sight value="-20" value-percent-multipler="false" />
				<attack-strenght value="0"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false">
					<affected-particle-file path="munition_boost.xml"/>
				</particles>
			</attack-boost> 
		</skill>  
		
		<skill>
			<type value="stop" />
			<name value="show_range_skill" />		
			<ep-cost value="0" />
			<speed value="1000" />
			<anim-speed value="15" />
			<animation path="models/scharfschuetze_stehen.g3d" />		
			<particles value="true">			  
				<particle-file path="../raketenartillerie/particle_range_sicht.xml">
					<shape value="conical">
						<angle value="90" />
					</shape>
					<radius value="16" />
					<min-radius value="15.9" />
					<direction x="0" y="0.86" z="0" />
					<offset x="0" y="1" z="0" />
				</particle-file>
			  
				<particle-file path="../raketenartillerie/particle_range.xml">
					<shape value="conical">
						<angle value="90" />
					</shape>
					<radius value="14" />
					<min-radius value="13.9" />
					<direction x="0" y="0.86" 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="100"/>
			<animation path="models/scharfschuetze_sterben_blut.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>			
			<fade value="false"/>
		</skill>


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

		<command>
			<type value="move"/>
			<name value="bewegen"/>
			<image path="../arbeiter/images/bewegen.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>
		
		<command>
			<type value="move"/>
			<name value="schleichen"/>
			<image path="images/schleichen.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill_schleichen"/>
		</command>
		
		<command>
			<type value="attack"/>
			<name value="angreifen"/>
			<image path="images/angriff_sniper.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill_position_halten"/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_skill"/>						
		</command>
		
		<command>
			<type value="attack_stopped"/>
			<name value="position_halten"/>
			<image path="../feldagent/images/position_halten.png"/>
			<unit-requirements/>
			<upgrade-requirements>

			</upgrade-requirements>
			<stop-skill value="stop_skill_position_halten"/>
			<attack-skill value="attack_skill"/>			
		</command>
		
		<command>
			<type value="stop" />
			<name value="zeige_reichweite" />
			<image path="../raketenartillerie/images/reichweite.png" />
			<unit-requirements />
			<upgrade-requirements />
			<stop-skill value="show_range_skill" />
		</command>
		
		<command>
			<type value= "build"/>
			<name value="defensive_errichten"/>
			<image path="images/sniper_bauen.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/> 			
			<buildings>
				<building name="spionagemine"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/worker_work_end3.wav"/>							
			</built-sound>	
		</command>   
		
		<command>
			<type value="repair"/>
			<name value="reparieren"/>
			<image path="../arbeiter/images/reparieren.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="spionagemine"/>
			</repaired-units>		
		</command>
		
		<command>
			<type value="attack"/>
			<name value="c4_sprengsatz_legen"/>
			<image path="../schuetze/images/angriff_c4_schuetze.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill_schleichen"/>
			<move-skill value="move_skill_schleichen"/>
			<attack-skill value="bomb_skill"/>						
		</command>  
	</commands>
</unit>
