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

<PropertyList>

  <path>s38.ac</path>

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

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

  <animation>
    <object-name>fuselage</object-name>
    <object-name>ailesB</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>derive</object-name>
    <object-name>derivesV</object-name>
    <object-name>profondeur</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>structure</object-name>
    <object-name>fuseaux</object-name>
    <object-name>queues</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>patte</object-name>
    <object-name>flotteurs</object-name>
    <object-name>cachesmoteur</object-name>
    <object-name>supportlampes</object-name>

    <object-name>trous</object-name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>axeG3</object-name>
    <object-name>axeG4</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>axeD3</object-name>
    <object-name>axeD4</object-name>
    <object-name>roueD</object-name>
    <object-name>echappes</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>
    <object-name>cables</object-name>

    <!-- Transparence -->
    <object-name>vitres</object-name>
    <object-name>lampes</object-name>
    <object-name>lampered</object-name>
    <object-name>lampegreen</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailesB</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>derive</object-name>
    <object-name>derivesV</object-name>
    <object-name>profondeur</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>structure</object-name>
    <object-name>fuseaux</object-name>
    <object-name>queues</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>patte</object-name>
    <object-name>flotteurs</object-name>
    <object-name>cachesmoteur</object-name>
    <object-name>supportlampes</object-name>
    <object-name>trous</object-name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>axeG3</object-name>
    <object-name>axeG4</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>axeD3</object-name>
    <object-name>axeD4</object-name>
    <object-name>roueD</object-name>
    <object-name>echappes</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>
    <object-name>cables</object-name>
    <object-name>vitres</object-name>
    <object-name>lampes</object-name>
    <object-name>lampered</object-name>
    <object-name>lampegreen</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</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>Aircraft/Sikorsky-S38/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>ailesB</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>derive</object-name>
    <object-name>derivesV</object-name>
    <object-name>profondeur</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>structure</object-name>
    <object-name>fuseaux</object-name>
    <object-name>queues</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>patte</object-name>
    <object-name>flotteurs</object-name>
    <object-name>cachesmoteur</object-name>
    <object-name>supportlampes</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> -->
      <property>sim/multiplay/generic/bool[2]</property>
    </condition>
    <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>vitres</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>lampes</object-name>
    <object-name>lampered</object-name>
    <object-name>lampegreen</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
  </effect>

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

  <model>
    <path>engines/all-engines.xml</path>
  </model>

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

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

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

  <model>
    <path>light/all-lights.xml</path>
  </model>

  <!-- Les hélices -->
  <animation>
    <name>HeliceGauche</name>
    <object-name>bolG</object-name>
    <object-name>heliceG</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
  </animation>

  <animation>
    <name>HeliceDroite</name>
    <object-name>bolD</object-name>
    <object-name>heliceD</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>propblurG</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>600</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>heliceG</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceGauche</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.343 </x-m>
      <y-m> -1.588 </y-m>
      <z-m>  0.542 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>propblurD</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value>600</value>
      </greater-than>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1500.001</value>
      </less-than>
    </and>
    </condition>
  </animation>

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

  <animation>
    <type>spin</type>
    <object-name>HeliceDroite</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value> 5 </value>
      </greater-than>
    </condition>
    <property>engines/engine[1]/rpm</property>
    <factor> -1 </factor>
    <center>
      <x-m> -3.343 </x-m>
      <y-m>  1.588 </y-m>
      <z-m>  0.542 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 25 </factor>
    <center>
      <x-m> 5.632 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 1.150 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>directionG</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -25.0 </factor>
    <center>
      <x-m>  5.524 </x-m>
      <y-m> -1.588 </y-m>
      <z-m>  1.152 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z>  1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionD</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -25.0 </factor>
    <center>
      <x-m> 5.524 </x-m>
      <y-m> 1.588 </y-m>
      <z-m> 1.152 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z>  1 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor>15.0</factor>
    <center>
      <x-m> -0.649 </x-m>
      <y-m> -7.402 </y-m>
      <z-m>  1.395 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor>15.0</factor>
    <center>
      <x-m> -0.649 </x-m>
      <y-m>  7.402 </y-m>
      <z-m>  1.395 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Rentrée des roues -->
  <animation>
    <name>TrainGauche</name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>axeG3</object-name>
    <object-name>roueG</object-name>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>RoueGauche</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> -1.874 </x-m>
      <y-m> -1.588 </y-m>
      <z-m> -2.132 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>TrainGauche</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 1 </dep></entry>
      <entry><ind> 1 </ind><dep> 0 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeG4</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> -1.877 </x-m>
      <y-m> -0.912 </y-m>
      <z-m> -1.722 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

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

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

  <animation>
    <type>rotate</type>
    <object-name>RoueDroite</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 90 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.874 </x-m>
      <y-m>  1.588 </y-m>
      <z-m> -2.132 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>TrainDroit</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 1 </dep></entry>
      <entry><ind> 1 </ind><dep> 0 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeD4</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 90 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.877 </x-m>
      <y-m>  0.912 </y-m>
      <z-m> -1.722 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>EnsembleGauche</name>
    <object-name>axeG</object-name>
    <object-name>axeG2</object-name>
    <object-name>axeG3</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>EnsembleGauche</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[15]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeG4</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[15]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 20 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.877 </x-m>
      <y-m> -0.912 </y-m>
      <z-m> -1.722 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>EnsembleDroite</name>
    <object-name>axeD</object-name>
    <object-name>axeD2</object-name>
    <object-name>axeD3</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>EnsembleDroite</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[16]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeD4</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[16]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -20 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.877 </x-m>
      <y-m>  0.912 </y-m>
      <z-m> -1.722 </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> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.874 </x-m>
      <y-m> -1.455 </y-m>
      <z-m> -2.132 </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[12]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.874 </x-m>
      <y-m>  1.455 </y-m>
      <z-m> -2.132 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
