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

<PropertyList>

  <path>ca161.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>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>derive</object-name>
    <object-name>direction</object-name>
    <object-name>capot</object-name>
    <object-name>tourvitres</object-name>
    <object-name>intake</object-name>
    <object-name>cachesvitres</object-name>

    <object-name>trous</object-name>
    <object-name>structure</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>pressurebox</object-name>
    <object-name>pressurehead</object-name>
    <object-name>cables</object-name>
    <object-name>cableaileronG</object-name>
    <object-name>cableaileronD</object-name>
    <object-name>cabledirectionG</object-name>
    <object-name>cabledirectionD</object-name>
    <object-name>pate</object-name>

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

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>derive</object-name>
    <object-name>direction</object-name>
    <object-name>capot</object-name>
    <object-name>tourvitres</object-name>
    <object-name>intake</object-name>
    <object-name>cachesvitres</object-name>
    <object-name>trous</object-name>
    <object-name>structure</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>pressurebox</object-name>
    <object-name>pressurehead</object-name>
    <object-name>cables</object-name>
    <object-name>cableaileronG</object-name>
    <object-name>cableaileronD</object-name>
    <object-name>cabledirectionG</object-name>
    <object-name>cabledirectionD</object-name>
    <object-name>pate</object-name>
    <object-name>vitres</object-name>
    <object-name>vitrestrous</object-name>
    <object-name>vitreshead</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitrestrous</object-name>
    <object-name>HDRvitreshead</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>capot</object-name>
    <object-name>tourvitres</object-name>
    <object-name>intake</object-name>
    <object-name>cachesvitres</object-name>
  </effect>

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

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitrestrous</object-name>
    <object-name>HDRvitreshead</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>
    <object-name>HDRvitrestrous</object-name>
    <object-name>HDRvitreshead</object-name>
  </animation>

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

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

  <animation>
    <type>select</type>
    <object-name>intake</object-name>
    <object-name>vitrestrous</object-name>
    <object-name>HDRvitrestrous</object-name>
    <condition>
      <not><property>/sim/model/modelbis</property></not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>cachesvitres</object-name>
    <condition>
      <property>/sim/model/modelbis</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pressurehead</object-name>
    <object-name>vitreshead</object-name>
    <object-name>HDRvitreshead</object-name>
    <condition>
      <property>/engines/engine[0]/running</property>
    </condition>
  </animation>

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

  <model>
    <path>Engines/all-engines.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>helice</object-name>
    <object-name>bol</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</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>900</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>300.000</value>
        </greater-than>
        <less-than>
          <property>/engines/engine[0]/rpm</property>
          <value>900.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>900</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value> 5 </value>
      </greater-than>
    </condition>
    <property>/engines/engine[0]/rpm</property>
    <factor> -1 </factor>
    <center>
      <x-m> -3.90211 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.13956 </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>
    <object-name>cabledirectionG</object-name>
    <object-name>cabledirectionD</object-name>
    <property>controls/flight/rudder</property>
    <factor> 15 </factor>
    <center>
      <x-m> 3.39951 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.73200 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cabledirectionG</object-name>
    <property>controls/flight/rudder</property>
    <factor> -15 </factor>
    <center>
      <x-m>  3.41983 </x-m>
      <y-m> -0.14717 </y-m>
      <z-m>  0.43960 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cabledirectionD</object-name>
    <property>controls/flight/rudder</property>
    <factor> -15 </factor>
    <center>
      <x-m> 3.41983 </x-m>
      <y-m> 0.14717 </y-m>
      <z-m> 0.43960 </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> 3.32193 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.31088 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronGH</object-name>
    <object-name>cableaileronG</object-name>
    <property>/surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.93489 </x1-m>
      <y1-m> -6.51299 </y1-m>
      <z1-m>  1.28849 </z1-m>
      <x2-m> -1.93549 </x2-m>
      <y2-m> -3.19787 </y2-m>
      <z2-m>  1.12004 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronG</object-name>
    <property>/surface-positions/left-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -1.83148 </x-m>
      <y-m> -4.94872 </y-m>
      <z-m>  1.18604 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronGB</object-name>
    <property>/surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.32635 </x1-m>
      <y1-m> -6.32406 </y1-m>
      <z1-m> -0.08706 </z1-m>
      <x2-m> -1.32918 </x2-m>
      <y2-m> -3.19543 </y2-m>
      <z2-m> -0.29914 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDH</object-name>
    <object-name>cableaileronD</object-name>
    <property>/surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.93549 </x1-m>
      <y1-m>  3.19787 </y1-m>
      <z1-m>  1.12004 </z1-m>
      <x2-m> -1.93489 </x2-m>
      <y2-m>  6.51299 </y2-m>
      <z2-m>  1.28849 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronD</object-name>
    <property>/surface-positions/right-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -1.83148 </x-m>
      <y-m>  4.94872 </y-m>
      <z-m>  1.18604 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDB</object-name>
    <property>/surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.32918 </x1-m>
      <y1-m>  3.19543 </y1-m>
      <z1-m> -0.29914 </z1-m>
      <x2-m> -1.32635 </x2-m>
      <y2-m>  6.32406 </y2-m>
      <z2-m> -0.08706 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <type>rotate</type>
    <object-name>roueG</object-name>
    <object-name>axeG</object-name>
    <property>/gear/gear[0]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> -5 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.58849 </x-m>
      <y-m> -0.05900 </y-m>
      <z-m> -0.48395 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>roueD</object-name>
    <object-name>axeD</object-name>
    <property>/gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0 </dep></entry>
      <entry><ind> 1 </ind><dep> 5 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.58849 </x-m>
      <y-m>  0.05900 </y-m>
      <z-m> -0.48395 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </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> -2.85865 </x-m>
      <y-m> -1.08169 </y-m>
      <z-m> -1.52922 </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> -2.85865 </x-m>
      <y-m>  1.08169 </y-m>
      <z-m> -1.52922 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
