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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="900" regeneration="0" />
		<max-ep value="900" regeneration="10" start-value="950" />
		<armor value="50"/>	
		<armor-type value="uniform"/>				
		<sight value="14"/>
		<time value="70"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="veteran" kills="7"/>
			<level name="experte" kills="25"/>
		</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="80"/>
			<particle-file path="../arbeiter/damage_particles_20.xml" minHp="81" maxHp="160"/>
			<particle-file path="../arbeiter/damage_particles_30.xml" minHp="161" maxHp="240"/>
			<particle-file path="../arbeiter/damage_particles_40.xml" minHp="241" maxHp="320"/>
			<particle-file path="../arbeiter/damage_particles_50.xml" minHp="321" maxHp="400"/>
			<particle-file path="../arbeiter/damage_particles_60.xml" minHp="401" maxHp="480"/>
			<particle-file path="../arbeiter/damage_particles_70.xml" minHp="481" maxHp="560"/>
			<particle-file path="../arbeiter/damage_particles_80.xml" minHp="561" maxHp="640"/>
			<particle-file path="../arbeiter/damage_particles_90.xml" minHp="641" maxHp="720"/>
			<particle-file path="../arbeiter/damage_particles_100.xml" minHp="721" maxHp="800"/>
		</damage-particles>
		<unit-requirements>
			
		</unit-requirements>
		<upgrade-requirements>
			
		</upgrade-requirements>		    		
		<resource-requirements>
			<resource name="gold" amount="75"/>
			<resource name="stein" amount="50"/>				
			<resource name="holz" amount="0"/>		
			<resource name="essen" amount="1"/>		
		</resource-requirements>
		<resources-stored/>
		<image path="images/grenadier.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/grenadier_stehen.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_skill_hold"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="25"/>
			<animation path="models/grenadier_position_halten.g3d"/>		
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="115"/>
			<animation path="models/grenadier_laufen_2.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="210"/>
			<anim-speed value="120"/>
			<animation path="models/grenadier_laufen_2.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="80"/>
			<speed value="75"/>
			<anim-speed value="75"/>
			<animation path="models/grenadier_angriff.g3d"/>
			
			<particles value="false" >
				<particle-file path="grenadier_proj.xml" />				
			</particles>
			
			<sound enabled="true" start-time="0.21">
				 <sound-file path="sounds/grenade_klick.wav"/>
				 <sound-file path="sounds/grenade_klick_3.wav"/>
				 
			</sound> 
			
			<attack-strenght value="175"/>
			<attack-var value="75"/>
			<attack-range value="6"/>
			<attack-type value="granate"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.84"/> 
		
			 <projectiles> 
			    <projectile attack-start-time="0.85" value="true" damage-percentage="100" >	
				<particle value="true" path="grenadier_proj.xml"/>
				<hitsound enabled="true">
				      <sound-file path="sounds/shell_explosion.wav"/>
				</hitsound>
			    </projectile>
			    
			</projectiles>
			
			<splash value="true">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
				
		<skill>
			<type value="stop" />
			<name value="show_range_skill" />		
			<ep-cost value="0" />
			<speed value="1000" />
			<anim-speed value="15" />
			<animation path="models/grenadier_stehen.g3d" />		
			<particles value="true">			  
				<particle-file path="../raketenartillerie/particle_range_sicht.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>
			  
				<particle-file path="../raketenartillerie/particle_range.xml">
					<shape value="conical">
						<angle value="90" />
					</shape>
					<radius value="6" />
					<min-radius value="5.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="80"/>
			<animation path="models/grenadier_sterben_blut_2.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="false">	
				<particle-file value="true" path="../spaehwagen/feuer_particles.xml"/>
				<particle-file value="true" path="../spaehwagen/rauch_particles.xml"/>								
			</particles>
			<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="attack"/>
			<name value="angreifen"/>
			<image path="images/angriff_grenadier.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<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_hold"/>
			<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>
		
	</commands>

</unit>
