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

<PropertyList>

  <path>mi2.ac</path>

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

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

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>porteleft</object-name>
    <object-name>porteright</object-name>
    <object-name>porte</object-name>
    <object-name>profondeur</object-name>
    <object-name>air</object-name>
    <object-name>supportlampes</object-name>
    <object-name>antennes</object-name>
    <object-name>renforts</object-name>
    <object-name>tanks</object-name>
    <object-name>glissiere</object-name>
    <object-name>details</object-name>
    <object-name>main</object-name>
    <object-name>attachetanks</object-name>

    <object-name>trous</object-name>
    <object-name>trousdetails</object-name>
    <object-name>marchepied</object-name>
    <object-name>cables</object-name>
    <object-name>echappes</object-name>
    <object-name>axeAH</object-name>
    <object-name>entreaxeA</object-name>
    <object-name>verinA</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>verinG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>verinD</object-name>
    <object-name>roueD</object-name>
    <object-name>pate</object-name>

    <!-- Transparence -->
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>vitreporteright</object-name>
    <object-name>lampequeue</object-name>
    <object-name>LampeR</object-name>
    <object-name>LampeV</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <object-name>HDRvitreporteright</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>porteleft</object-name>
    <object-name>porteright</object-name>
    <object-name>porte</object-name>
    <object-name>profondeur</object-name>
    <object-name>air</object-name>
    <object-name>supportlampes</object-name>
    <object-name>antennes</object-name>
    <object-name>renforts</object-name>
    <object-name>tanks</object-name>
    <object-name>glissiere</object-name>
    <object-name>details</object-name>
    <object-name>main</object-name>
    <object-name>attachetanks</object-name>
    <object-name>trous</object-name>
    <object-name>trousdetails</object-name>
    <object-name>marchepied</object-name>
    <object-name>cables</object-name>
    <object-name>echappes</object-name>
    <object-name>axeAH</object-name>
    <object-name>entreaxeA</object-name>
    <object-name>verinA</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>verinG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>verinD</object-name>
    <object-name>roueD</object-name>
    <object-name>pate</object-name>
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>vitreporteright</object-name>
    <object-name>lampequeue</object-name>
    <object-name>LampeR</object-name>
    <object-name>LampeV</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <object-name>HDRvitreporteright</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>porteleft</object-name>
    <object-name>porteright</object-name>
    <object-name>porte</object-name>
    <object-name>profondeur</object-name>
    <object-name>air</object-name>
    <object-name>supportlampes</object-name>
    <object-name>antennes</object-name>
    <object-name>renforts</object-name>
    <object-name>tanks</object-name>
    <object-name>glissiere</object-name>
    <object-name>details</object-name>
    <object-name>main</object-name>
    <object-name>attachetanks</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Aircraft/Mil-Mi-2/Models/Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>vitreporteright</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporte</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <object-name>HDRvitreporteright</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>
    <object-name>HDRvitreporteleft</object-name>
    <object-name>HDRvitreporteright</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>
    <object-name>vitreporteleft</object-name>
    <object-name>vitreporteright</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>lampequeue</object-name>
    <object-name>LampeR</object-name>
    <object-name>LampeV</object-name>
  </effect>

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

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

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

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

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

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

  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <interpolation>
      <entry><ind> -0.04 </ind><dep> -10 </dep></entry>
      <entry><ind>  0.04 </ind><dep>  10 </dep></entry>
    </interpolation>
    <center>
      <x-m> 3.33532 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.02993 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>porteleft</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>HDRvitreporteleft</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>porteleft</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[33]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 0.2 </ind><dep> -0.02 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -0.06 </dep></entry>
    </interpolation>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>porteleft</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[33]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 0.7 </dep></entry>
    </interpolation>
    <axis>
      <x>  1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteleft</object-name>
    <object-name>vitreporteleft</object-name>
    <object-name>HDRvitreporteleft</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[33]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> 0 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 6 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.52253 </x-m>
      <y-m> -0.78039 </y-m>
      <z-m> -0.88579 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z>  1 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>porteright</object-name>
    <object-name>vitreporteright</object-name>
    <object-name>HDRvitreporteright</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.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteright</object-name>
    <object-name>vitreporteright</object-name>
    <object-name>HDRvitreporteright</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[34]</property>
    <factor> 60 </factor>
    <axis>
      <x1-m> -4.87510 </x1-m>
      <y1-m>  0.70173 </y1-m>
      <z1-m> -1.00281 </z1-m>
      <x2-m> -4.87510 </x2-m>
      <y2-m>  0.71215 </y2-m>
      <z2-m> -0.75257 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>porte</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.baie.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porte</object-name>
    <object-name>vitreporte</object-name>
    <object-name>HDRvitreporte</object-name>
    <!-- <property>sim/model/door-positions/baie/position-norm</property> -->
    <property>sim/multiplay/generic/float[35]</property>
    <factor> -80 </factor>
    <axis>
      <x1-m> -2.43823 </x1-m>
      <y1-m> -0.79737 </y1-m>
      <z1-m> -0.88751 </z1-m>
      <x2-m> -2.43823 </x2-m>
      <y2-m> -0.81032 </y2-m>
      <z2-m> -0.66821 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>PartieHaute</name>
    <object-name>roueA</object-name>
    <object-name>axeAB</object-name>
    <object-name>entreaxeA</object-name>
  </animation>

  <animation>
    <name>PartieBasse</name>
    <object-name>roueA</object-name>
    <object-name>axeAB</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>PartieBasse</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[30]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> 35 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -5.01069 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.61357 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>PartieHaute</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[30]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -9 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  5 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.98005 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.52320 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>verinA</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[30]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.040 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0.000 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.013 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainGauche</name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <name>AxeHautGauche</name>
    <object-name>axeGH</object-name>
    <object-name>verinG</object-name>
  </animation>

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

  <animation>
    <name>AxeHautDroit</name>
    <object-name>axeDH</object-name>
    <object-name>verinD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainGauche</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[31]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  5 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -2 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.19583 </x-m>
      <y-m> -0.24415 </y-m>
      <z-m> -1.39655 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AxeHautGauche</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[31]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  5 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -2 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.46351 </x-m>
      <y-m> -0.76443 </y-m>
      <z-m> -0.98549 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>verinG</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[31]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0.0450 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -0.0150 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.30062 </x1-m>
      <y1-m> -1.14924 </y1-m>
      <z1-m> -1.32913 </z1-m>
      <x2-m> -2.19791 </x2-m>
      <y2-m> -1.41176 </y2-m>
      <z2-m> -1.55618 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainDroit</object-name>
    <!-- <property>gear/gear[2]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[32]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -5 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  2 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.19583 </x-m>
      <y-m>  0.24415 </y-m>
      <z-m> -1.39655 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AxeHautDroit</object-name>
    <!-- <property>gear/gear[2]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[32]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -5 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  2 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.46351 </x-m>
      <y-m>  0.76443 </y-m>
      <z-m> -0.98549 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>verinD</object-name>
    <!-- <property>gear/gear[2]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[32]</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0.0450 </dep></entry>
      <entry><ind> 0.15 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -0.0150 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.30062 </x1-m>
      <y1-m>  1.14924 </y1-m>
      <z1-m> -1.32913 </z1-m>
      <x2-m> -2.19791 </x2-m>
      <y2-m>  1.41176 </y2-m>
      <z2-m> -1.55618 </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[12]</property>
    <factor> 22.5 </factor>
    <center>
      <x-m> -4.69779 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.69956 </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[13]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.19988 </x-m>
      <y-m> -1.52621 </y-m>
      <z-m> -1.55898 </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[14]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.19988 </x-m>
      <y-m> -1.52621 </y-m>
      <z-m> -1.55898 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Show/Hide tanks -->
  <animation>
    <type>select</type>
    <object-name>tanks</object-name>
    <object-name>details</object-name>
    <object-name>attachetanks</object-name>
    <object-name>trousdetails</object-name>
    <condition>
      <!-- <property>sim/model/show-tanks</property> -->
      <property>sim/multiplay/generic/bool[0]</property>
    </condition>
  </animation>

</PropertyList>
