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

<PropertyList>

  <path>flame.ac</path>

  <animation>
    <!-- Objets transparents -->
    <object-name>flamme0</object-name>
    <object-name>flamme1</object-name>
    <object-name>flamme2</object-name>
    <object-name>flamme3</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>flamme0</object-name>
    <object-name>flamme1</object-name>
    <object-name>flamme2</object-name>
    <object-name>flamme3</object-name>
  </animation>

  <!-- MATERIAL LUMINOSO DURANTE LA NOCHE -->
  <material>
    <name>Transparent</name>
    <night_lights>../ALS/flamme.png</night_lights>
    <ambient>0.2 0.2 0.2 1.0</ambient>
    <diffuse>0.8 0.8 0.8 1.0</diffuse>
    <specular>1.0 1.0 1.0 1.0</specular>
    <shininess>80</shininess>
    <emission>1.0 1.0 1.0 1.0</emission>
    <lighting>
      <type>night</type>
      <brightness>5</brightness>
      <radius>50.0</radius>
    </lighting>
  </material>

  <animation>
    <type>select</type>
    <object-name>flamme0</object-name>
    <condition>
      <greater-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.01</value>
      </greater-than>
      <less-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.3</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>flamme1</object-name>
    <condition>
      <greater-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.31</value>
      </greater-than>
      <less-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.7</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>flamme2</object-name>
    <condition>
      <greater-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.71</value>
      </greater-than>
      <less-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.8</value>
      </less-than>
    </condition>
  </animation>

  <!-- AÑADE CONDICION GREATER-THAN PARA ACTIVAR EL AFTERBURNER -->
  <animation>
    <type>select</type>
    <object-name>flamme3</object-name>
    <condition>
      <greater-than>
        <property>controls/engines/engine[0]/throttle</property>
        <value>0.81</value>
      </greater-than>
    </condition>
  </animation>

  <!-- ******************************************** -->
  <model>
    <name>flammeDay</name>
    <path>combustion_Day.xml</path>
    <offsets>
      <x-m> 0.1 </x-m>
      <y-m> 0.0 </y-m>
      <z-m> 0.0 </z-m>
    </offsets>
  </model>

  <model>
    <name>flammeDusk</name>
    <path>combustion_Dusk.xml</path>
    <offsets>
      <x-m> 0.1 </x-m>
      <y-m> 0.0 </y-m>
      <z-m> 0.0 </z-m>
    </offsets>
  </model>

  <model>
    <name>flammeNight</name>
    <path>combustion_Night.xml</path>
    <offsets>
      <x-m> 0.1 </x-m>
      <y-m> 0.0 </y-m>
      <z-m> 0.0 </z-m>
    </offsets>
  </model>

  <!-- ******************************************** -->
  <animation>
    <type>select</type>
    <object-name>flammeDay</object-name>
    <condition>
      <less-than>
        <property>sim/time/sun-angle-rad</property>
        <value>1.45</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>flammeDusk</object-name>
    <condition>
      <and>
        <less-than>
          <property>sim/time/sun-angle-rad</property>
          <value>1.7</value>
        </less-than>
        <greater-than>
          <property>sim/time/sun-angle-rad</property>
          <value>1.45</value>
        </greater-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>flammeNight</object-name>
    <condition>
      <greater-than>
        <property>sim/time/sun-angle-rad</property>
        <value>1.7</value>
      </greater-than>
    </condition>
  </animation>

  <!-- ******************************************** -->
  <animation>
    <type>scale</type>
    <object-name>flammeDay</object-name>
    <object-name>flammeDusk</object-name>
    <object-name>flammeNight</object-name>
    <!-- controls/engines/engine[0]/afterburner -->
    <property>sim/multiplay/generic/float[13]</property>
    <x-min> 0 </x-min>
    <y-min> 1 </y-min>
    <z-min> 1 </z-min>
    <x-factor> 1 </x-factor>
    <y-factor> 1 </y-factor>
    <z-factor> 1 </z-factor>
  </animation>

</PropertyList>
