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

<unit>
  <parameters>
     <size value="1"/>
     <height value="2"/>
     <max-hp value="1000" regeneration="0"/>
     <max-ep value="1" regeneration="1"/>
     <armor value="15"/>
     <armor-type value="leather"/>
     <sight value="10"/>
     <time value="55"/>
     <multi-selection value="true"/>
     <cellmap value="false"/>
     <levels/>
     <fields>
        <field value="land"/>
     </fields>
     <properties/>
     <light enabled="false"/>
     <unit-requirements/>
     <upgrade-requirements/>
     <resource-requirements/>
     <resources-stored/>
     <image path="images/infantry.bmp"/>
     <image-cancel path="../hanger/images/cancel.bmp"/>
     <meeting-point value="false"/>
     <selection-sounds enabled="false"/>
     <command-sounds enabled="false"/>
  </parameters>

  <skills>
     <!-- Stop Skill -->
     <skill>
        <type value="stop"/>
        <name value="stop_skill"/>
        <ep-cost value="0"/>
        <speed value="100"/>
        <anim-speed value="35"/>
        <animation path="models/rifle_man_idle.g3d"/>
        <sound enabled="false"/>
     </skill>
     
     <!-- Stop Skill -->
     <skill>
        <type value="stop"/>
        <name value="hold_skill"/>
        <ep-cost value="0"/>
        <speed value="100"/>
        <anim-speed value="35"/>
        <animation path="models/rifle_man_idle.g3d"/>
        <sound enabled="false"/>
     </skill>

     <!-- Move Skill -->
     <skill>
        <type value="move"/>
        <name value="move_skill"/>
        <ep-cost value="0"/>
        <speed value="250"/>
        <anim-speed value="160"/>
        <animation path="models/rifle_man_walk.g3d"/>
        <sound enabled="false"/>
     </skill>

     <!-- Morph Skill -->
     <skill>
        <type value="morph"/>
        <name value="morph_skill"/>
        <ep-cost value="0"/>
        <speed value="500"/>
        <anim-speed value="200"/>
        <animation path="models/rifle_man_idle.g3d"/>
        <sound enabled="false"/>
     </skill>

     <!-- Attack Skill -->
     <skill>
        <type value="attack"/>
        <name value="attack_skill"/>
        <ep-cost value="1"/>
        <speed value="100"/>
        <anim-speed value="120"/>
        <animation path="models/rifle_man_attack.g3d"/>
        <sound enabled="true" start-time="0.45">
            <sound-file path="sound/attacks/gun1.wav" />
            <sound-file path="sound/attacks/gun2.wav" />
            <sound-file path="sound/attacks/gun3.wav" />
            <sound-file path="sound/attacks/gun4.wav" />
            <sound-file path="sound/attacks/gun5.wav" />
            <sound-file path="sound/attacks/gun6.wav" />
            <sound-file path="sound/attacks/gun7.wav" />
            <sound-file path="sound/attacks/gun8.wav" />
            <sound-file path="sound/attacks/gun9.wav" />
            <sound-file path="sound/attacks/gun10.wav" />
        </sound>
        <attack-strenght value="110"/>
        <attack-var value="30"/>
        <attack-range value="9"/>
        <attack-type value="shells"/>
        <attack-fields>
           <field value="land"/>
           <field value="air"/>
        </attack-fields>
        <attack-start-time value="0.5"/>
        <projectile value="true">
           <particle value="true" path="particle_proj.xml"/>
           <sound enabled="true">
               <sound-file path="sound/attacks/bullethit.wav" />
           </sound>
        </projectile>
        <splash value="false"/>
     </skill>

     <!-- Die Skill -->
     <skill>
        <type value="die"/>
        <name value="die_skill"/>
        <ep-cost value="0"/>
        <speed value="300"/>
        <anim-speed value="80"/>
        <animation path="models/rifle_man_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../gunner/sounds/battlemage_die1.wav"/>
				<sound-file path="../gunner/sounds/battlemage_die2.wav"/>
				<sound-file path="../gunner/sounds/battlemage_die3.wav"/>
			</sound>		
        <fade value="false"/>
     </skill>

  </skills>

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

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

     <!-- Morph Command -->
     <!--command>
        <type value="morph"/>
        <name value="promote_to_marine"/>
        <image path="../marine/images/marine.bmp"/>
        <unit-requirements/>
        <upgrade-requirements/>
        <morph-skill value="morph_skill"/>
        <morph-unit name="marine"/>
        <discount value="0"/>
     </command>
     
     <command>
        <type value="morph"/>
        <name value="promote_to_rpg_trooper"/>
        <image path="../rpg_trooper/images/rpg_trooper.bmp"/>
        <unit-requirements/>
        <upgrade-requirements/>
        <morph-skill value="morph_skill"/>
        <morph-unit name="rpg_trooper"/>
        <discount value="0"/>
     </command-->

     <!-- Attack Command -->
     <command>
        <type value="attack"/>
        <name value="rifle"/>
        <image path="images/attack.bmp"/>
        <unit-requirements/>
        <upgrade-requirements/>
        <move-skill value="move_skill"/>
        <attack-skill value="attack_skill"/>
     </command>

     <!-- Hold Position Command -->
     <command>
        <type value="attack_stopped"/>
        <name value="stand_ground"/>
        <image path="images/hold.bmp"/>
        <unit-requirements/>
        <upgrade-requirements/>
        <stop-skill value="hold_skill"/>
        <attack-skill value="attack_skill"/>
     </command>

   </commands>
</unit>
