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

<PropertyList>

  <path>st10.ac</path>

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

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

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>porte</object-name>
    <object-name>air</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>support</object-name>
    <object-name>direction</object-name>
    <object-name>antenne</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>supportbeacon</object-name>
    <object-name>pito</object-name>
    <object-name>bouchon_reservoir</object-name>
    <object-name>poignees_haut</object-name>
    <object-name>ManillaR</object-name>

    <object-name>trous</object-name>
    <object-name>axeA</object-name>
    <object-name>axeA2</object-name>
    <object-name>roueA</object-name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
    <object-name>cables</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>LuzBeacon</object-name>
    <object-name>LeftNavLight</object-name>
    <object-name>RightNavLight</object-name>
    <object-name>StrobeOff</object-name>
    <object-name>LucesLanding</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>porte</object-name>
    <object-name>air</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>support</object-name>
    <object-name>direction</object-name>
    <object-name>antenne</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>supportbeacon</object-name>
    <object-name>pito</object-name>
    <object-name>bouchon_reservoir</object-name>
    <object-name>poignees_haut</object-name>
    <object-name>ManillaR</object-name>
    <object-name>trous</object-name>
    <object-name>axeA</object-name>
    <object-name>axeA2</object-name>
    <object-name>roueA</object-name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
    <object-name>cables</object-name>
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>LuzBeacon</object-name>
    <object-name>LeftNavLight</object-name>
    <object-name>RightNavLight</object-name>
    <object-name>StrobeOff</object-name>
    <object-name>LucesLanding</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</object-name>

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

  <effect>
    <inherits-from>Aircraft/Socata-ST10/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>porte</object-name>
    <object-name>air</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>support</object-name>
    <object-name>direction</object-name>
    <object-name>antenne</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>supportbeacon</object-name>
    <object-name>pito</object-name>
    <object-name>bouchon_reservoir</object-name>
    <object-name>poignees_haut</object-name>
    <object-name>ManillaR</object-name>
  </effect>

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

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</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>HDRvitres</object-name>
    <object-name>HDRvitreporte</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>vitres</object-name>
    <object-name>vitreporte</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>LuzBeacon</object-name>
    <object-name>LeftNavLight</object-name>
    <object-name>RightNavLight</object-name>
    <object-name>StrobeOff</object-name>
    <object-name>LucesLanding</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
  </effect>

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

  <model>
    <path>Effects/cranking/all-crankings.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>helice</object-name>
    <object-name>bol</object-name>
    <object-name>prophub</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.24951 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.25049 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>ailes2</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
     <x-m>  2.96217 </x-m>
     <y-m>  0.00000 </y-m>
     <z-m> -0.04789 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> 3.03104 </x1-m>
      <y1-m> 0.00000 </y1-m>
      <z1-m> 0.08285 </z1-m>
      <x2-m> 3.25097 </x2-m>
      <y2-m> 0.00000 </y2-m>
      <z2-m> 1.47561 </z2-m>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -0.79104 </x1-m>
      <y1-m> -4.68639 </y1-m>
      <z1-m> -0.20137 </z1-m>
      <x2-m> -0.64753 </x2-m>
      <y2-m> -3.40966 </y2-m>
      <z2-m> -0.38361 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -0.64753 </x1-m>
      <y1-m>  3.40966 </y1-m>
      <z1-m> -0.38361 </z1-m>
      <x2-m> -0.79104 </x2-m>
      <y2-m>  4.68639 </y2-m>
      <z2-m> -0.20137 </z2-m>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 40 </factor>
    <axis>
      <x1-m> -0.61947 </x1-m>
      <y1-m> -3.36032 </y1-m>
      <z1-m> -0.41301 </z1-m>
      <x2-m> -0.31764 </x2-m>
      <y2-m> -0.72388 </y2-m>
      <z2-m> -0.75624 </z2-m>
    </axis>
  </animation>0.416

  <animation>
    <type>rotate</type>
    <object-name>voletD</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 40 </factor>
    <axis>
      <x1-m> -0.31764 </x1-m>
      <y1-m>  0.72388 </y1-m>
      <z1-m> -0.75624 </z1-m>
      <x2-m> -0.61947 </x2-m>
      <y2-m>  3.36032 </y2-m>
      <z2-m> -0.41301 </z2-m>
    </axis>
  </animation>

  <!-- rentree des roues -->
  <animation>
    <name>RoueAvant</name>
    <object-name>axeA</object-name>
    <object-name>axeA2</object-name>
    <object-name>roueA</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueAvant</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -90 </dep></entry>
      <entry><ind> 1 </ind><dep>    0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.50135 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.64933 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueGauche</name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueGauche</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 77 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.94974 </x-m>
      <y-m> -1.49614 </y-m>
      <z-m> -0.64933 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueDroite</name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueDroite</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -77 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.94974 </x-m>
      <y-m>  1.49614 </y-m>
      <z-m> -0.64933 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>SousRoueAvant</name>
    <object-name>axeA2</object-name>
    <object-name>roueA</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>SousRoueAvant</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[10]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> -0.1101 </dep></entry>
    </interpolation>
    <axis>
      <x> -0.026 </x>
      <y>  0.000 </y>
      <z> -0.107 </z>
    </axis>
  </animation>

  <animation>
    <name>SousRoueGauche</name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>SousRoueGauche</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> -0.1916 </dep></entry>
    </interpolation>
    <axis>
      <x> -0.015 </x>
      <y>  0.000 </y>
      <z> -0.191 </z>
    </axis>
  </animation>

  <animation>
    <name>SousRoueDroite</name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>SousRoueDroite</object-name>
    <!-- <property>gear/gear[2]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[12]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> -0.1916 </dep></entry>
    </interpolation>
    <axis>
      <x> -0.015 </x>
      <y>  0.000 </y>
      <z> -0.191 </z>
    </axis>
  </animation>

  <!-- Animation des portes des trains -->
  <animation>
    <type>rotate</type>
    <object-name>porteG1</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.09805 </x1-m>
      <y1-m> -1.45560 </y1-m>
      <z1-m> -0.72423 </z1-m>
      <x2-m> -0.87011 </x2-m>
      <y2-m> -1.45561 </y2-m>
      <z2-m> -0.71363 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG2</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -90 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.09805 </x1-m>
      <y1-m> -1.45560 </y1-m>
      <z1-m> -0.72423 </z1-m>
      <x2-m> -0.87011 </x2-m>
      <y2-m> -1.45561 </y2-m>
      <z2-m> -0.71363 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>porteG2</object-name>
    <property>gear/gear[1]/position-norm</property>
    <factor> -0.1 </factor>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD1</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.09805 </x1-m>
      <y1-m>  1.45560 </y1-m>
      <z1-m> -0.72423 </z1-m>
      <x2-m> -0.87011 </x2-m>
      <y2-m>  1.45561 </y2-m>
      <z2-m> -0.71363 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD2</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 90 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.09805 </x1-m>
      <y1-m>  1.45560 </y1-m>
      <z1-m> -0.72423 </z1-m>
      <x2-m> -0.87011 </x2-m>
      <y2-m>  1.45561 </y2-m>
      <z2-m> -0.71363 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>porteD2</object-name>
    <property>gear/gear[2]/position-norm</property>
    <factor> 0.1 </factor>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Ouverture des portes -->
  <animation>
    <type>pick</type>
    <object-name>porte</object-name>
    <object-name>ManillaR</object-name>
    <object-name>vitreporte</object-name>
    <object-name>HDRvitreporte</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <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.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porte</object-name>
    <object-name>ManillaR</object-name>
    <object-name>vitreporte</object-name>
    <object-name>HDRvitreporte</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -80 </factor>
    <axis>
      <x1-m> -1.69953 </x1-m>
      <y1-m>  0.56963 </y1-m>
      <z1-m> -0.12354 </z1-m>
      <x2-m> -1.69953 </x2-m>
      <y2-m>  0.58823 </y2-m>
      <z2-m> -0.51063 </z2-m>
    </axis>
  </animation>

  <!-- Rotation de la roue avant en fonction de la gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>roueA</object-name>
    <!-- <property>gear/gear[0]/caster-angle-deg</property> -->
    <property>sim/multiplay/generic/float[9]</property>
    <factor> -0.4 </factor>
    <axis>
      <x1-m> -2.6274 </x1-m>
      <y1-m>  0.0000 </y1-m>
      <z1-m> -1.2442 </z1-m>
      <x2-m> -2.5023 </x2-m>
      <y2-m>  0.0000 </y2-m>
      <z2-m> -0.7531 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <!-- <property>gear/gear[0]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[5]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.62499 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.24212 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueG</object-name>
    <!-- <property>gear/gear[1]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[6]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -0.82974 </x-m>
      <y-m> -1.41007 </y-m>
      <z-m> -1.24400 </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[2]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[7]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -0.82974 </x-m>
      <y-m>  1.41007 </y-m>
      <z-m> -1.24400 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
