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

<unit>

	<!-- *** parameters *** -->

	<parameters>
		<size value="2"/>
		<height value="3"/>
		<max-hp value="6000" regeneration="2"/>
		<max-ep value="0"/>
		<armor value="60"/>	
		<armor-type value="metal"/>				
		<sight value="15"/>
		<time value="35"/>
		<multi-selection value="false"/>
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="10"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements>
			<upgrade name="defence_lvl3"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="200"/>
			<resource name="gold" amount="150"/>
			<resource name="oil" amount="8"/>				
		</resource-requirements>
		<resources-stored/>
		<image path="images/barracks.bmp"/>
		<image-cancel path="../headquarters/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="false"/>
		<command-sounds enabled="false"/>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/gun_trap_open.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/build_small.g3d" />
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="200"/>
			<animation path="models/gun_trap_closing.g3d"/>
			<sound enabled="false"/>
			<anim-progress-bound value="true"/>
		</skill>	
 
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="220"/>
			<anim-speed value="150"/>
			<animation path="models/gun_trap_open.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="150"/>
			<animation path="models/gun_trap_open.g3d"/>
			<sound enabled="true" start-time="0.4">
				<sound-file path="$COMMONDATAPATH/sounds/shot1.wav"/>
			</sound> 
			<particles value="true" start-time="0.4" end-time="0.5">
				<particle-file path="flash.xml"/>
			</particles>
			<attack-strenght value="400"/>
			<attack-var value="100"/>
			<attack-range value="12"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.4"/>
			<attack-fields>
				<field value="air"/>
				<field value="land"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="false">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="../sleeping_gas_trap/models/brake.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../headquarters/sounds/tech_building_fall3.wav"/>
			</sound>
			<particles value="true">
				<particle-file path="../advanced_barracks/smoke_particles.xml"/>
				<particle-file path="../gun_trap/glow_particles.xml"/>
			</particles>				
			<fade value="false"/>
		</skill>


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

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

		<command>
			<type value="morph"/>
			<name value="close"/>
			<image path="../gun_trap/images/close.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "gun_trap_"/>
			<discount value="100"/>
		</command>
		
	</commands>
</unit>
