<tower maxlevel="4"  template="ini/units/towers/template.xml"
       level="4"
       unittype="tower"
       name="gas"
       radius="220"
       allowtargets="earth,sea"
       damagebysector="yes"
       sectorangle="360"
       effect_on_shoot="type:ice"
       maxtargets="1"
       >
  <effects>
    <positive velocityRate="0.45" velocityTime="2" iceRate="120" iceTime="2"/>
  </effects>

  <machine_unit>
    <transitions>
      <sleep seetarget="readyfire"/>
      <readyfire notarget="waittarget"/>
      <readyfire charge="charging"/>
      <charging ready="readyfire"/>
      <waittarget seetarget="readyfire"/>
      <waittarget relax="waittarget"/>

    </transitions>
    <params>
      <state_readyfire charge_volume="5" delay="1"/>
      <state_waittarget duration="1"/>
      <state_charging duration="0"/>
    </params>
  </machine_unit>

  <machine_move>
    <transitions>
      <move stop="stop"/>
      <stop move="move"/>
    </transitions>
  </machine_move>

  <mover>
    <params>
      <allowangles value="0"/>
      <thresold value="0"/>
    </params>
  </mover>


  <children>
    <node type="sprite" name="skin" image="gas4::gas4_dr.001.png" center="0.5x0.25" />
    <node type="sprite" name="shoot" center="0.5x0.5" pos="0x10" scale="3x3"/>
    <node type="sprite" name="shoot_back" center="0.5x0.5" pos="0x40" scale="3x-3" z="-1"/>
    <node type="sprite" name="level" image="images::gamescene/level4.png" center="0.5x0.5" z="3" pos="0x-15" scale="0.75x-0.75" color="5bff8c"/>
  </children>

  <actions>
    <action name="shoot" value="Animate[0.3,[folder:gas4::gas4_dr.,indexes:.png,001:023]]"/>
    <action name="shoot1" value="Sequence[DelayTime[0.2],Show[],Animate[1,[folder:gasShoot::,indexes:gasShoot_000.png,00:15]],Hide[]]"/>
    <action name="shoot2" value="Sequence[DelayTime[0.2],Show[],Animate[1,[folder:gasShoot::,indexes:gasShoot_000.png,00:15]],Hide[]]"/>
  </actions>

  <events>
    <eventlist name="on_shoot">
      <runaction action="shoot" target="skin"/>
      <runaction action="shoot1" target="shoot"/>
      <runaction action="shoot2" target="shoot_back"/>
    </eventlist>
    <eventlist name="on_shoot">
      <playsound sound="##freeze_shoot##" predelay="0.5"/>
    </eventlist>
  </events>

</tower>
