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

<PropertyList>

  <path>ch37.ac</path>

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

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

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>portecoteA</object-name>
    <object-name>portecoteB</object-name>
    <object-name>portecargoA</object-name>
    <object-name>portecargoG</object-name>
    <object-name>portecargoD</object-name>
    <object-name>moteurG</object-name>
    <object-name>moteurD</object-name>
    <object-name>axe</object-name>
    <object-name>renforts</object-name>
    <object-name>bosse</object-name>
    <object-name>antennes</object-name>
    <object-name>guides</object-name>

    <object-name>trous</object-name>
    <object-name>echappements</object-name>
    <object-name>axeG</object-name>
    <object-name>axeGB</object-name>
    <object-name>axeG1</object-name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeDB</object-name>
    <object-name>axeD1</object-name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>vitrecargoG</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>vitrecoteB</object-name>
    <object-name>grilleG</object-name>
    <object-name>grilleD</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitrecargoG</object-name>
    <object-name>HDRvitrecargoD</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <object-name>HDRvitrecoteB</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>portecoteA</object-name>
    <object-name>portecoteB</object-name>
    <object-name>portecargoA</object-name>
    <object-name>portecargoG</object-name>
    <object-name>portecargoD</object-name>
    <object-name>moteurG</object-name>
    <object-name>moteurD</object-name>
    <object-name>axe</object-name>
    <object-name>renforts</object-name>
    <object-name>bosse</object-name>
    <object-name>antennes</object-name>
    <object-name>guides</object-name>
    <object-name>trous</object-name>
    <object-name>echappements</object-name>
    <object-name>axeG</object-name>
    <object-name>axeGB</object-name>
    <object-name>axeG1</object-name>
    <object-name>axeG2</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeDB</object-name>
    <object-name>axeD1</object-name>
    <object-name>axeD2</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
    <object-name>vitres</object-name>
    <object-name>vitrecargoG</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>vitrecoteB</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitrecargoG</object-name>
    <object-name>HDRvitrecargoD</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <object-name>HDRvitrecoteB</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>ailes</object-name>
    <object-name>portecoteA</object-name>
    <object-name>portecoteB</object-name>
    <object-name>portecargoA</object-name>
    <object-name>portecargoG</object-name>
    <object-name>portecargoD</object-name>
    <object-name>moteurG</object-name>
    <object-name>moteurD</object-name>
    <object-name>axe</object-name>
    <object-name>renforts</object-name>
    <object-name>bosse</object-name>
    <object-name>antennes</object-name>
    <object-name>guides</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Aircraft/Sikorsky-CH-37B-Mojave/Models/Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitrecargoG</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>vitrecoteB</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitrecargoG</object-name>
    <object-name>HDRvitrecargoD</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <object-name>HDRvitrecoteB</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>HDRvitrecargoG</object-name>
    <object-name>HDRvitrecargoD</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <object-name>HDRvitrecoteB</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>vitrecargoG</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>vitrecoteB</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>grilleG</object-name>
    <object-name>grilleD</object-name>
  </effect>

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

  <model>
    <path>Externals/MainRotor/all-mainrotor.xml</path>
  </model>

  <model>
    <path>Externals/TailRotor/all-tailrotor.xml</path>
  </model>

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

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

  <model>
    <path>Effects/Particles/all-particles.xml</path>
  </model>

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

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

  <!-- Elevator -->
  <animation>
    <type>rotate</type>
    <object-name>ailes</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <interpolation>
      <entry><ind> -0.04 </ind><dep> -30 </dep></entry>
      <entry><ind>  0.04 </ind><dep>  30 </dep></entry>
    </interpolation>
    <center>
      <x-m>  3.10667 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.92747 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Gears -->
  <animation>
    <name>TrainGauche</name>
    <object-name>axeG</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainGauche</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -95 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.38840 </x-m>
      <y-m> -2.94725 </y-m>
      <z-m> -0.05339 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeG1</object-name>
    <object-name>axeG2</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 178 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.54379 </x-m>
      <y-m> -2.94725 </y-m>
      <z-m> -0.08660 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeG2</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -143 </dep></entry>
      <entry><ind> 1 </ind><dep>    0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.80798 </x-m>
      <y-m> -2.94725 </y-m>
      <z-m> -0.33296 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>TrainDroit</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -95 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.38840 </x-m>
      <y-m>  2.94725 </y-m>
      <z-m> -0.05339 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeD1</object-name>
    <object-name>axeD2</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 178 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.54379 </x-m>
      <y-m>  2.94725 </y-m>
      <z-m> -0.08660 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axeD2</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -143 </dep></entry>
      <entry><ind> 1 </ind><dep>    0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.80798 </x-m>
      <y-m>  2.94725 </y-m>
      <z-m> -0.33296 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>RoueGauche</name>
    <object-name>roueG</object-name>
    <object-name>axeGB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueGauche</object-name>
    <property>/gear/gear[0]/compression-norm</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>
    <name>RoueDroite</name>
    <object-name>roueD</object-name>
    <object-name>axeDB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueDroite</object-name>
    <property>/gear/gear[1]/compression-norm</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>
    <name>RoueArriere</name>
    <object-name>roueA</object-name>
    <object-name>axeAB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueArriere</object-name>
    <property>/gear/gear[2]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.15 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </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[14]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -4.38840 </x-m>
      <y-m> -2.94725 </y-m>
      <z-m> -2.27861 </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[15]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -4.38840 </x-m>
      <y-m>  2.94725 </y-m>
      <z-m> -2.27861 </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[16]</property>
    <factor> 30 </factor>
    <center>
      <x-m>  6.70002 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -2.33258 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Cargo doors -->
  <animation>
    <type>pick</type>
    <object-name>portecargoA</object-name>
    <object-name>portecargoG</object-name>
    <object-name>vitrecargoG</object-name>
    <object-name>HDRvitrecargoG</object-name>
    <object-name>portecargoD</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>HDRvitrecargoD</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>portecargoA</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> -23 </factor>
    <center>
      <x-m> -6.04925 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.67737 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>portecargoG</object-name>
    <object-name>vitrecargoG</object-name>
    <object-name>HDRvitrecargoG</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> 90 </factor>
    <center>
      <x-m> -7.67771 </x-m>
      <y-m> -1.37693 </y-m>
      <z-m> -0.67074 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>portecargoD</object-name>
    <object-name>vitrecargoD</object-name>
    <object-name>HDRvitrecargoD</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> -90 </factor>
    <center>
      <x-m> -7.67771 </x-m>
      <y-m>  1.37693 </y-m>
      <z-m> -0.67074 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Side doors -->
  <animation>
    <type>pick</type>
    <object-name>portecoteA</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.passengerA.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>portecoteA</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <!-- <property>sim/model/door-positions/passengerA/position-norm</property> -->
    <property>sim/multiplay/generic/float[12]</property>
    <factor> -1.1 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>portecoteA</object-name>
    <object-name>vitrecoteA</object-name>
    <object-name>HDRvitrecoteA</object-name>
    <!-- <property>sim/model/door-positions/passengerA/position-norm</property> -->
    <property>sim/multiplay/generic/float[12]</property>
    <factor> 0.11 </factor>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>portecoteB</object-name>
    <object-name>vitrecoteB</object-name>
    <object-name>HDRvitrecoteB</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.passengerB.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>portecoteB</object-name>
    <object-name>vitrecoteB</object-name>
    <object-name>HDRvitrecoteB</object-name>
    <!-- <property>sim/model/door-positions/passengerB/position-norm</property> -->
    <property>sim/multiplay/generic/float[13]</property>
    <factor> 1.1 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>portecoteB</object-name>
    <object-name>vitrecoteB</object-name>
    <object-name>HDRvitrecoteB</object-name>
    <!-- <property>sim/model/door-positions/passengerB/position-norm</property> -->
    <property>sim/multiplay/generic/float[13]</property>
    <factor> -0.15 </factor>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
