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

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="2000" regeneration="0"/>
		<max-ep value="100" regeneration="3"/>
		<armor value="30"/>	
		<armor-type value="leather"/>
		<sight value="1"/>
		<time value="5"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels/>
			<!--level name="expert" kills="3"/>
			<level name="master" kills="10"/>
		</levels-->
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
			<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements/>
		<resources-stored/>
		<image path="images/battlemage.bmp"/>
		<image-cancel path="images/stop.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/battlemage_select1.wav"/>
			<sound path="sounds/battlemage_select2.wav"/>
			<sound path="sounds/battlemage_select3.wav"/>
			<sound path="sounds/battlemage_select4.wav"/>
			<sound path="sounds/battlemage_select5.wav"/>
			<sound path="sounds/battlemage_select6.wav"/>
			<sound path="sounds/battlemage_select7.wav"/>
			<sound path="sounds/battlemage_select8.wav"/>
			<sound path="sounds/battlemage_select9.wav"/>
			<sound path="sounds/battlemage_select10.wav"/>
			<sound path="sounds/battlemage_select11.wav"/>
			<sound path="sounds/battlemage_select12.wav"/>
			<sound path="sounds/battlemage_select13.wav"/>
			<sound path="sounds/battlemage_select14.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/battlemage_ack1.wav"/>
			<sound path="sounds/battlemage_ack2.wav"/>
			<sound path="sounds/battlemage_ack3.wav"/>
			<sound path="sounds/battlemage_ack4.wav"/>
			<sound path="sounds/battlemage_ack5.wav"/>
			<sound path="sounds/battlemage_ack6.wav"/>
			<sound path="sounds/battlemage_ack7.wav"/>
			<sound path="sounds/battlemage_ack8.wav"/>
			<sound path="sounds/battlemage_ack9.wav"/>
			<sound path="sounds/battlemage_ack10.wav"/>
		</command-sounds>

	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="40"/>
			<animation path="models/gunner_idle.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="produce" />
			<name value="produce_skill"/>		
			<ep-cost value="0" />
			<speed value="1000" />
			<anim-speed value="1000" />
			<animation path="models/gunner_idle.g3d" />
			<particles value="false"/>
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="100"/>
			<animation path="models/gunner_walk.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="run_skill"/>		
			<ep-cost value="5"/>
			<speed value="500"/>
			<anim-speed value="200"/>
			<animation path="models/gunner_walk.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_pistol_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/gunner_attack.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="sounds/battlemage_attack1.wav"/>
				<sound-file path="sounds/battlemage_attack2.wav"/>
				<sound-file path="sounds/battlemage_attack3.wav"/>
				<sound-file path="sounds/battlemage_attack4.wav"/>
				<sound-file path="sounds/battlemage_attack5.wav"/>
				<sound-file path="sounds/battlemage_attack6.wav"/>
				<sound-file path="sounds/battlemage_attack7.wav"/>
				<sound-file path="sounds/battlemage_attack8.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="100"/>
			<attack-range value="10"/>
			<attack-type value="shells"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.1"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="sounds/battlemage_hit1.wav"/>
					<sound-file path="sounds/battlemage_hit2.wav"/>
					<sound-file path="sounds/battlemage_hit3.wav"/>
					<sound-file path="sounds/battlemage_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="false">
			</splash>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_bomb_skill"/>		
			<ep-cost value="100"/>
			<speed value="20"/>
			<anim-speed value="20"/>
			<animation path="models/gunner_idle.g3d"/>
			<sound enabled="true" start-time="0.9">
				<sound-file path="sounds/battlemage_attack1.wav"/>
			</sound>
			<attack-strenght value="5000"/>
			<attack-var value="1000"/>
			<attack-range value="1"/>
			<attack-type value="impact"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.9"/>
			<projectile value="true">
				<particle value="true" path="bomb_particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="sounds/battlemage_hit1.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="5"/>
				<damage-all value="true"/>
				<particle value="true" path="bomb_particle_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_knife_skill"/>		
			<ep-cost value="100"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/combat_attack.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="sounds/battlemage_attack1.wav"/>
			</sound>
			<attack-strenght value="1000"/>
			<attack-var value="500"/>
			<attack-range value="1"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.1"/>
			<projectile value="false"/>
			<splash value="false">
			</splash>
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="80"/>
			<animation path="models/gunner_idle.g3d"/>
			<sound enabled="false"/>
		</skill>	

		<skill>
			<type value="morph"/>
			<name value="morph_c_skill"/>		
			<ep-cost value="0"/>
			<speed value="5000"/>
			<anim-speed value="8000"/>
			<animation path="models/gunner_idle.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="50"/>
			<animation path="models/gunner_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/battlemage_die1.wav"/>
				<sound-file path="sounds/battlemage_die2.wav"/>
				<sound-file path="sounds/battlemage_die3.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

	</skills>

	<commands>

		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="images/stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

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

		<command>
			<type value="move"/>
			<name value="run"/>
			<image path="images/run.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="run_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="use_pistol"/>
			<image path="images/pistol.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_pistol_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="use_knife"/>
			<image path="images/knife.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_knife_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="set_bomb"/>
			<image path="images/bomb.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_bomb_skill"/>
		</command>

		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="images/hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_pistol_skill"/>
		</command>

		<command>
			<type value="produce"/>
			<name value="set_trap" />
			<image path="../trap/images/bug.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="trap"/>
		</command>

		<command>
			<type value="morph"/>
			<name value="crouch"/>
			<image path="../crouching_sam/images/battlemage.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "crouching_sam"/>
			<discount value="0"/>
		</command>

		<command>
			<type value="morph"/>
			<name value="_"/>
			<image path="../sam/images/b.png"/>
			<unit-requirements>
				<unit name="helicopter" />
			</unit-requirements>
			<upgrade-requirements/>
			<morph-skill value="morph_c_skill"/>
			<morph-unit name= "helicopter"/>
			<discount value="0"/>
		</command>

		<command>
			<type value="morph"/>
			<name value="__"/>
			<image path="../sam/images/b.png"/>
			<unit-requirements>
				<unit name="tank" />
			</unit-requirements>
			<upgrade-requirements/>
			<morph-skill value="morph_c_skill"/>
			<morph-unit name= "tank"/>
			<discount value="0"/>
		</command>

	</commands>
</unit>
