<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <particlesystem>
    <name>smoke</name>
    <texture>noise3.png</texture>

    <emissive type="bool">false</emissive>
    <lighting type="bool">false</lighting>
    <pass>true</pass>

    <condition>
      <and>
        <!-- <not><property>/controls/engines/engine[0]/cutoff</property></not> -->
        <not><property>sim/multiplay/generic/bool[9]</property></not>
        <greater-than>
          <!-- <property>/engines/engine[0]/n1</property> -->
          <property>sim/multiplay/generic/float[4]</property>
          <value>30</value>
        </greater-than>
        <less-than>
          <!-- <property>/position/altitude-ft</property> -->
          <property>sim/multiplay/generic/float[3]</property>
          <value>10000</value>
        </less-than>
      </and>
    </condition>

    <attach>world</attach>

    <placer>
      <type>point</type>
    </placer>

    <shooter>
      <theta-min-deg> 84.0 </theta-min-deg>
      <theta-max-deg> 86.0 </theta-max-deg>
      <phi-min-deg>   -1.5 </phi-min-deg>
      <phi-max-deg>    1.5 </phi-max-deg>
      <speed-mps>
        <!-- <property>/engines/engine[0]/n1</property> -->
        <property>sim/multiplay/generic/float[4]</property>
        <factor>5</factor>
        <value>10</value>      <!-- CANTIDAD SOPLADA -->
        <spread>7</spread>
      </speed-mps>

      <!-- CÓDIGO AÑADIDO PARA MOVIMIENTO Y DISIPACIÓN DEL HUMO EN PARADO-->
      <move>
        <speed-mps>10</speed-mps> <!-- Velocidad de movimiento hacia atrás -->
        <spread>25</spread> <!-- Distancia de dispersión -->
      </move>

      <rotation-speed>
        <x-min-deg-sec> 0 </x-min-deg-sec>
        <y-min-deg-sec> 0 </y-min-deg-sec>
        <z-min-deg-sec> 0 </z-min-deg-sec>
        <x-max-deg-sec> 0 </x-max-deg-sec>
        <y-max-deg-sec> 0 </y-max-deg-sec>
        <z-max-deg-sec> 0 </z-max-deg-sec>
      </rotation-speed>
    </shooter>

    <counter>
      <particles-per-sec>
        <!-- <property>/engines/engine[0]/n1</property> -->
        <property>sim/multiplay/generic/float[4]</property>
        <factor>  0.9 </factor> <!-- EL COUNTER "FACTOR" ESTABLECE LA CANTIDAD DE HUMO -->
        <spread> 1 </spread>
      </particles-per-sec>
    </counter>

    <align>billboard</align>

    <!-- VALORES DE COLOR, TRANSPARENCIA ALPHA Y TAMAÑO DEL HUMO EN INICIO Y FIN -->
    <particle>
      <start>
        <color>
          <red><value>   0.098 </value></red>
          <green><value> 0.097 </value></green>
          <blue><value>  0.095 </value></blue>
          <alpha><value> 0.030 </value></alpha>
        </color>
        <size><value> 0.75 </value></size>
      </start>

      <end>
        <color>
          <red><value>   0.4500 </value></red>
          <green><value> 0.4500 </value></green>
          <blue><value>  0.4500 </value></blue>
          <alpha><value> 0.0010 </value></alpha>
        </color>
        <size><value> 1 </value></size>
      </end>

      <life-sec><value> 2 </value></life-sec> <!-- TIEMPO DE VIDA DEL HUMO -->

      <mass-kg>  0.5 </mass-kg>
      <radius-m> 0.10 </radius-m> <!-- DISPERSIÓN HACIA ATRÁS -->
    </particle>

    <program>
      <fluid>               air  </fluid>
      <gravity type="bool"> true </gravity>
      <wind    type="bool"> true </wind>
    </program>

  </particlesystem>

</PropertyList>
