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

<PropertyList>

  <path>stampe.ac</path>

  <!-- MP sound call -->
  <sound>
    <path>../Sounds/mp-sound.xml</path>
  </sound>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Liveries", 10);
    </load>
    <unload>
      livery_update.stop();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>souscapot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>aileH</object-name>
    <object-name>aileB</object-name>
    <object-name>aileronHG</object-name>
    <object-name>aileronHD</object-name>
    <object-name>aileronBG</object-name>
    <object-name>aileronBD</object-name>
    <object-name>barres</object-name>
    <object-name>derive</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>air</object-name>
    <object-name>reservoir</object-name>
    <object-name>montants</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteBG</object-name>
    <object-name>porteBD</object-name>
    <object-name>antenne</object-name>
    <object-name>moteur</object-name>

    <object-name>trous</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>axes</object-name>
    <object-name>roueA</object-name>
    <object-name>cables</object-name>
    <object-name>tuyaux</object-name>

    <!-- Objets transparents -->
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>vitres</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>souscapot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>aileH</object-name>
    <object-name>aileB</object-name>
    <object-name>aileronHG</object-name>
    <object-name>aileronHD</object-name>
    <object-name>aileronBG</object-name>
    <object-name>aileronBD</object-name>
    <object-name>barres</object-name>
    <object-name>derive</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>air</object-name>
    <object-name>reservoir</object-name>
    <object-name>montants</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteBG</object-name>
    <object-name>porteBD</object-name>
    <object-name>antenne</object-name>
    <object-name>moteur</object-name>
    <object-name>trous</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>axes</object-name>
    <object-name>roueA</object-name>
    <object-name>cables</object-name>
    <object-name>tuyaux</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>vitres</object-name>
    <object-name>HDRvitres</object-name>

    <property-base>sim/model/livery</property-base>
    <texture-prop>texture</texture-prop>
    <texture>texture.png</texture>
    <specular>
      <red-prop>specular/red</red-prop>
      <green-prop>specular/green</green-prop>
      <blue-prop>specular/blue</blue-prop>
    </specular>
  </animation>

  <effect>
    <inherits-from>Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>souscapot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>aileH</object-name>
    <object-name>aileB</object-name>
    <object-name>aileronHG</object-name>
    <object-name>aileronHD</object-name>
    <object-name>aileronBG</object-name>
    <object-name>aileronBD</object-name>
    <object-name>barres</object-name>
    <object-name>derive</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>air</object-name>
    <object-name>reservoir</object-name>
    <object-name>montants</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteBG</object-name>
    <object-name>porteBD</object-name>
    <object-name>antenne</object-name>
    <object-name>moteur</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
  </effect>

  <!-- Sélection des vitres en fonction de HDR ou pas -->
  <animation>
    <type>select</type>
    <condition>
      <property>/sim/rendering/hdr/hdr-enabled</property>
    </condition>
    <object-name>HDRvitres</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <not><property>/sim/rendering/hdr/hdr-enabled</property></not>
    </condition>
    <object-name>vitres</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
  </effect>

  <model>
    <path>Interior/interior.xml</path>
  </model>

  <model>
    <path>Interior/Panel/Instruments/retro/all-retro.xml</path>
  </model>

  <model>
    <path>Effects/cranking/all-cranking.xml</path>
  </model>

  <model>
    <path>Effects/ground/all-ground.xml</path>
  </model>

  <!-- L'hélice -->
  <animation>
    <name>HeliceComplete</name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdisc</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblur</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>600.000</value>
      </greater-than>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500.001</value>
      </less-than>
    </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>helice</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <property>engines/engine[0]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -3.245 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.292 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <property>controls/flight/rudder</property>
    <factor>15</factor>
    <center>
      <x-m> 2.791 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.616 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>controls/flight/elevator</property>
    <factor>15</factor>
    <center>
      <x-m> 2.754 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.284 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronHG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor>-15</factor>
    <axis>
      <x1-m> -1.040 </x1-m>
      <y1-m> -1.552 </y1-m>
      <z1-m>  1.015 </z1-m>
      <x2-m> -0.739 </x2-m>
      <y2-m> -3.711 </y2-m>
      <z2-m>  1.085 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronHD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor>-15</factor>
    <axis>
      <x1-m> -0.739 </x1-m>
      <y1-m>  3.711 </y1-m>
      <z1-m>  1.085 </z1-m>
      <x2-m> -1.040 </x2-m>
      <y2-m>  1.552 </y2-m>
      <z2-m>  1.015 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronBG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor>-15</factor>
    <axis>
      <x1-m> -0.698 </x1-m>
      <y1-m> -1.186 </y1-m>
      <z1-m> -0.383 </z1-m>
      <x2-m> -0.393 </x2-m>
      <y2-m> -3.357 </y2-m>
      <z2-m> -0.304 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronBD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor>-15</factor>
    <axis>
      <x1-m> -0.393 </x1-m>
      <y1-m>  3.357 </y1-m>
      <z1-m> -0.304 </z1-m>
      <x2-m> -0.698 </x2-m>
      <y2-m>  1.186 </y2-m>
      <z2-m> -0.383 </z2-m>
    </axis>
  </animation>

  <!-- Porte -->
  <animation>
    <type>pick</type>
    <object-name>porteBG</object-name>
    <object-name>porteBD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteBG</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <factor> 175.0 </factor>
    <center>
      <x-m> -0.360 </x-m>
      <y-m> -0.292 </y-m>
      <z-m>  0.224 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteBD</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <factor> -175.0 </factor>
    <center>
      <x-m> -0.360 </x-m>
      <y-m>  0.292 </y-m>
      <z-m>  0.224 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAG</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> 175.0 </factor>
    <center>
      <x-m> -1.227 </x-m>
      <y-m> -0.292 </y-m>
      <z-m>  0.224 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAD</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> -175.0 </factor>
    <center>
      <x-m> -1.227 </x-m>
      <y-m>  0.292 </y-m>
      <z-m>  0.224 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.engine.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>capotG</object-name>
    <property>sim/model/door-positions/engine/position-norm</property>
    <factor> -60.0 </factor>
    <center>
      <x-m> -2.369 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.501 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>capotD</object-name>
    <property>sim/model/door-positions/engine/position-norm</property>
    <factor> 60.0 </factor>
    <center>
      <x-m> -2.369 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.501 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>TrainGauche</name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>TrainGauche</object-name>
    <property>gear/gear[0]/compression-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.05 </dep></entry>
      <entry><ind> 0.70 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.01 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.734 </x-m>
      <y-m> -0.606 </y-m>
      <z-m> -0.938 </z-m>
    </center>
    <axis>
      <x> 0.015376 </x>
      <y> 0.034921 </y>
      <z> 0.051847 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainDroit</name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>TrainDroit</object-name>
    <property>gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.05 </dep></entry>
      <entry><ind> 0.70 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.01 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.734 </x-m>
      <y-m>  0.606 </y-m>
      <z-m> -0.938 </z-m>
    </center>
    <axis>
      <x>  0.015376 </x>
      <y> -0.034921 </y>
      <z>  0.051847 </z>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueG</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.747 </x-m>
      <y-m> -0.783 </y-m>
      <z-m> -0.989 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.747 </x-m>
      <y-m>  0.783 </y-m>
      <z-m> -0.989 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <property>gear/gear[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  2.916 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.187 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
