<tower template="ini/units/templates/creepbattle.xml"
	   name="flamethrower"
	   velocity="45"
	   health="280"
	   radius="150"
     effect_on_shoot="type:fire"
     damagebysector="yes"
     sectorangle="360"
     exp="2"
       >
  <extraproperties
    electro_pos="0x30"
    electro_size="big"
    electro_scale="1"
    fire_pos="0x-5"
    fire_scale="2.5"
    freezing_scale="0.3"
    />

  <effects>
    <positive lectroResist="2" fireResist="10" armor="3"
              fireRate="10" fireTime="2"/>
  </effects>

  <machine_unit start_state="stop">
    <params>
      <state_death duration="1.0"/>
      <state_readyfire charge_volume="99999" delay="0.5"/>
    </params>
  </machine_unit>

  <children>
    <node type="sprite" name="skin" visible="yes" center="0.5x0.08"/>
    <node name="health_indicator" pos="-18x50" z="1"/>
  </children>

  <actions>
    <action name="animate_left" value="RepeatForever[Animate[1,[folder:flamethrower::left/,indexes:flamethrower_go00.png,01:25]]]"/>
    <action name="animate_up" value="RepeatForever[Animate[1,[folder:flamethrower::up/,indexes:flamethrower_back00.png,01:25]]]"/>
    <action name="animate_down" value="RepeatForever[Animate[0.5,[folder:flamethrower::down/,indexes:flamethrower_front00.png,01:12]]]"/>
    <action name="animate_fire" value="Animate[1,[folder:flamethrower::fire/,indexes:flamethrower_fire_00.png,01:25]]"/>
    <action name="animate_die" value="Animate[1.0,[folder:death::,indexes:Death_stage00.png,01:23]]"/>
  </actions>

  <events>
    <eventlist name="on_die">
      <areadamage radius="100" asunittype="tower"/>
    </eventlist>

    <eventlist name="on_shoot">
    </eventlist>
  </events>

</tower>
