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

<PropertyList>

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

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

    <condition>
      <and>
        <greater-than>
          <!-- engines/engine[0]/n2 ok why not. Permit the activation in multiplayer -->
          <property>sim/multiplay/generic/float[5]</property>
          <value>50</value>
        </greater-than>
        <!-- position/altitude-ft possible, even near ground !! ok, we should have a temperature of -39 degC -->
        <!--
        <greater-than>
          <property>sim/multiplay/generic/float[3]</property>
          <value>3000</value>
        </greater-than>
        -->
        <less-than>
          <property>/environment/temperature-degc</property>
          <value>-39</value>
        </less-than>
        <greater-than>
          <property>/environment/relative-humidity</property>
          <value>68</value>
        </greater-than>
      </and>
    </condition>

    <attach>world</attach>

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

    <shooter>
      <theta-min-deg>-1.5</theta-min-deg>
      <theta-max-deg>1.5</theta-max-deg>
      <phi-min-deg>-1.5</phi-min-deg>
      <phi-max-deg>1.5</phi-max-deg>
      <speed-mps>
        <value>0</value>
        <spread>0</spread>
      </speed-mps>
      <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>
        <value>50</value>
        <spread>0</spread>
      </particles-per-sec>
    </counter>

    <align>billboard</align>

    <particle>

      <start>
        <color>
          <red><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></red>
          <green><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></green>
          <blue><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></blue>
          <alpha><value> 0.3 </value></alpha>
        </color>
        <size>
          <value>2</value>
          <!--0.25-->
        </size>
      </start>

      <end>
        <color>
          <red><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></red>
          <green><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></green>
          <blue><expression><product><value>1.0</value><property>rendering/scene/diffuse/red</property></product></expression></blue>
          <alpha><value> 1 </value></alpha>
        </color>
        <size>
          <value>9</value>
        </size>
      </end>

      <life-sec>
        <value>20</value>
      </life-sec>
      <mass-kg>0.5</mass-kg>
      <radius-m>0.5</radius-m>
    </particle>

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

  </particlesystem>

</PropertyList>
