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

<PropertyList>

  <path>s11.ac</path>

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

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Fokker-S-11/Models/Liveries", 10);
    </load>
    <unload>
      livery_update.stop();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>ailes</object-name>
    <object-name>pito</object-name>
    <object-name>aileronG</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>entretoise</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>contour</object-name>
    <object-name>axesup</object-name>
    <object-name>axesdownD</object-name>
    <object-name>axesdownG</object-name>

    <object-name>trous</object-name>
    <object-name>intcapotG</object-name>
    <object-name>intcapotD</object-name>
    <object-name>helice</object-name>
    <object-name>echappement</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>

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

  <animation>
    <type>material</type>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>ailes</object-name>
    <object-name>pito</object-name>
    <object-name>aileronG</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>entretoise</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>contour</object-name>
    <object-name>axesup</object-name>
    <object-name>axesdownD</object-name>
    <object-name>axesdownG</object-name>
    <object-name>trous</object-name>
    <object-name>intcapotG</object-name>
    <object-name>intcapotD</object-name>
    <object-name>helice</object-name>
    <object-name>echappement</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
    <object-name>vitres</object-name>
    <object-name>fenetre</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRfenetre</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>Aircraft/Fokker-S-11/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>capotG</object-name>
    <object-name>capotD</object-name>
    <object-name>ailes</object-name>
    <object-name>pito</object-name>
    <object-name>aileronG</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>entretoise</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>contour</object-name>
    <object-name>axesup</object-name>
    <object-name>axesdownD</object-name>
    <object-name>axesdownG</object-name>
  </effect>

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

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRfenetre</object-name>
    <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> -->
      <property>sim/multiplay/generic/bool[2]</property>
    </condition>
    <object-name>HDRfenetre</object-name>
    <object-name>HDRvitres</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <!-- <not><property>sim/rendering/hdr/hdr-enabled</property></not> -->
      <not><property>sim/multiplay/generic/bool[2]</property></not>
    </condition>
    <object-name>fenetre</object-name>
    <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>Engine/all-engines.xml</path>
  </model>

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

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

  <model>
    <path>light/all-lights.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>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value> 50 </value>
      </greater-than>
    </condition>
    <factor> 1 </factor>
    <center>
      <x-m> -3.944 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.015 </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>surface-positions/rudder-pos-norm</property>
    <interpolation>
      <entry><ind> -0.75 </ind><dep>  15.0 </dep></entry>
      <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
      <entry><ind>  0.75 </ind><dep> -15.0 </dep></entry>
    </interpolation>
    <center>
      <x-m> 3.444 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.619 </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>surface-positions/elevator-pos-norm</property>
    <interpolation>
      <entry><ind> -0.75 </ind><dep> -12.0 </dep></entry>
      <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
      <entry><ind>  0.75 </ind><dep>   9.5 </dep></entry>
    </interpolation>
    <center>
      <x-m> 3.326 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.307 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <interpolation>
      <entry><ind> -0.75 </ind><dep>  15.0 </dep></entry>
      <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
      <entry><ind>  0.75 </ind><dep> -10.0 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.729 </x1-m>
      <y1-m> -2.714 </y1-m>
      <z1-m> -0.487 </z1-m>
      <x2-m> -0.911 </x2-m>
      <y2-m> -5.023 </y2-m>
      <z2-m> -0.169 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <interpolation>
      <entry><ind> -0.75 </ind><dep> -10.0 </dep></entry>
      <entry><ind>  0.00 </ind><dep>   0.0 </dep></entry>
      <entry><ind>  0.75 </ind><dep>  15.0 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.729 </x1-m>
      <y1-m>  2.714 </y1-m>
      <z1-m> -0.487 </z1-m>
      <x2-m> -0.911 </x2-m>
      <y2-m>  5.023 </y2-m>
      <z2-m> -0.169 </z2-m>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -25 </factor>
    <axis>
      <x1-m> -0.604 </x1-m>
      <y1-m> -1.502 </y1-m>
      <z1-m> -0.696 </z1-m>
      <x2-m> -0.728 </x2-m>
      <y2-m> -2.714 </y2-m>
      <z2-m> -0.530 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -25 </factor>
    <axis>
      <x1-m> -0.728 </x1-m>
      <y1-m>  2.714 </y1-m>
      <z1-m> -0.530 </z1-m>
      <x2-m> -0.604 </x2-m>
      <y2-m>  1.502 </y2-m>
      <z2-m> -0.696 </z2-m>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <type>pick</type>
    <object-name>contour</object-name>
    <object-name>fenetre</object-name>
    <object-name>HDRfenetre</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>translate</type>
    <object-name>contour</object-name>
    <object-name>fenetre</object-name>
    <object-name>HDRfenetre</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> 0.55 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Capots moteur -->
  <animation>
    <name>CapotGauche</name>
    <object-name>capotG</object-name>
    <object-name>intcapotG</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>CapotGauche</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <not><property>sim/current-view/internal</property></not>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.capotG.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>CapotGauche</object-name>
    <!-- <property>sim/model/door-positions/capotG/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> -85 </factor>
    <axis>
      <x1-m> -3.47404 </x1-m>
      <y1-m> -0.00000 </y1-m>
      <z1-m>  0.36161 </z1-m>
      <x2-m> -2.96140 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m>  0.42132 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>CapotDroit</name>
    <object-name>capotD</object-name>
    <object-name>intcapotD</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>CapotDroit</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <not><property>sim/current-view/internal</property></not>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.capotD.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>CapotDroit</object-name>
    <!-- <property>sim/model/door-positions/capotD/position-norm</property> -->
    <property>sim/multiplay/generic/float[12]</property>
    <factor> -85 </factor>
    <axis>
      <x1-m> -2.96140 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m>  0.42132 </z1-m>
      <x2-m> -3.47404 </x2-m>
      <y2-m> -0.00000 </y2-m>
      <z2-m>  0.36161 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>EnsembleGauche</name>
    <object-name>axesdownG</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>EnsembleGauche</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[9]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -15 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.43550 </x-m>
      <y-m> -1.42913 </y-m>
      <z-m> -1.04883 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>EnsembleDroit</name>
    <object-name>axesdownD</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>EnsembleDroit</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[10]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -15 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.43550 </x-m>
      <y-m>  1.42913 </y-m>
      <z-m> -1.04883 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </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> -->
    <property>sim/multiplay/generic/float[5]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.10987 </x-m>
      <y-m> -1.42909 </y-m>
      <z-m> -1.26370 </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> -->
    <property>sim/multiplay/generic/float[6]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.10987 </x-m>
      <y-m>  1.42909 </y-m>
      <z-m> -1.26370 </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> -->
    <property>sim/multiplay/generic/float[7]</property>
    <factor> 30 </factor>
    <center>
      <x-m>  3.19652 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.44000 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
