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

<unit>
	<parameters>
		<size value="2"/>
		<height value="4"/>
		<max-hp value="1500" regeneration="1"/>
		<max-ep value="0"/>
		<armor value="10"/>
		<armor-type value="net"/>					
		<sight value="10"/>
		<time value="100"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
			<property value="rotated_climb"/>
		</properties>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="graphics_card"/>
			<unit name="cpu"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="100"/>
			<resource name="wood" amount="200"/>
			<resource name="memory" amount="2"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/catapult.bmp"/>
		<image-cancel path="../fibre_optic/images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/select.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/go1.wav"/>	
			<sound path="sounds/go2.wav"/>	
			<sound path="sounds/go3.wav"/>		
		</command-sounds>

	</parameters>

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

                <skill>
                        <type value="stop"/>
                        <name value="hold_skill"/>
                        <ep-cost value="0"/>
                        <speed value="100"/>
                        <anim-speed value="150"/>
                        <animation path="models/h_con.g3d"/>
                        <sound enabled="false"/>
                </skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="150"/>
			<animation path="models/h_con.g3d"/>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/catapult_walk1.wav"/>
				<sound-file path="sounds/catapult_walk2.wav"/>
				<sound-file path="sounds/catapult_walk3.wav"/>
				<sound-file path="sounds/catapult_walk4.wav"/>
				<sound-file path="sounds/catapult_walk5.wav"/>
				<sound-file path="sounds/catapult_walk6.wav"/>
			</sound> 
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="50"/>
			<animation path="models/h_con_attack.g3d"/>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/catapult_attack1.wav"/>
				<sound-file path="sounds/catapult_attack2.wav"/>
			</sound> 
			<attack-strenght value="450"/>
			<attack-var value="150"/>
			<attack-range value="10"/>
			<attack-type value="hack"/>
			<attack-start-time value="0.7"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="/sounds/catapult_hit1.wav"/>
					<sound-file path="/sounds/catapult_hit2.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<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="120"/>
			<anim-speed value="120"/>
			<animation path="models/h_con_attack.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../cpu/sounds/zap.wav"/>
			</sound> 			
			<fade value="true"/>
		</skill>

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

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

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

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

		<command>
                        <type value="attack_stopped"/>
                        <name value="stand_ground"/>
                        <image path="../fibre_optic/images/magic_hold.bmp"/>
                        <unit-requirements/>
                        <upgrade-requirements/>
                        <stop-skill value="hold_skill"/>
                        <attack-skill value="attack_skill"/>
		</command>   

	</commands>
</unit>
