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

<PropertyList>

  <path>21.ac</path>

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

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Liveries", 10);

      var self = cmdarg();
    </load>

    <unload>
      livery_update.stop();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>resevoir</object-name>
    <object-name>structure1</object-name>
    <object-name>patte</object-name>

    <object-name>structure2</object-name>
    <object-name>ailes</object-name>
    <object-name>ailessoie</object-name>
    <object-name>queue</object-name>
    <object-name>queuesoie</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronGsoie</object-name>
    <object-name>aileronD</object-name>
    <object-name>aileronDsoie</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>cables</object-name>

    <!-- Objets transparents -->
    <object-name>dir1G</object-name>
    <object-name>dir1D</object-name>
    <object-name>dir2G</object-name>
    <object-name>dir2D</object-name>
    <object-name>prof1</object-name>
    <object-name>prof2</object-name>
    <object-name>prof3</object-name>
    <object-name>prof4</object-name>
    <object-name>prof5</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
  </animation>

  <animation>
    <type>material</type>
    <!-- Objets opaques -->
    <object-name>resevoir</object-name>
    <object-name>structure1</object-name>
    <object-name>patte</object-name>

    <object-name>structure2</object-name>
    <object-name>ailes</object-name>
    <object-name>ailessoie</object-name>
    <object-name>queue</object-name>
    <object-name>queuesoie</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronGsoie</object-name>
    <object-name>aileronD</object-name>
    <object-name>aileronDsoie</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>cables</object-name>

    <!-- Objets transparents -->
    <object-name>dir1G</object-name>
    <object-name>dir1D</object-name>
    <object-name>dir2G</object-name>
    <object-name>dir2D</object-name>
    <object-name>prof1</object-name>
    <object-name>prof2</object-name>
    <object-name>prof3</object-name>
    <object-name>prof4</object-name>
    <object-name>prof5</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>

  <!-- The engine -->
  <model>
    <path>Engine/engine.xml</path>
    <offsets>
      <x-m> -3.60025 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.34184 </z-m>
    </offsets>
  </model>

  <effect>
    <inherits-from>Effects/Bump/bumpspec</inherits-from>
    <object-name>moteur</object-name>
    <object-name>resevoir</object-name>
    <object-name>structure1</object-name>
    <object-name>patte</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </effect>

  <!-- Intérieur -->
  <model>
    <path>Interior/interior.xml</path>
  </model>

  <!-- Cranking effects -->
  <model>
    <path>Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -3.60025 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.34184 </z-m>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Left wheel -->
  <model>
    <path>Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -3.367 </x-m>
      <y-m> -0.376 </y-m>
      <z-m> -1.193 </z-m>
    </offsets>
  </model>

  <!-- Right wheel -->
  <model>
    <path>Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -3.367 </x-m>
      <y-m>  0.376 </y-m>
      <z-m> -1.193 </z-m>
    </offsets>
  </model>

  <!-- Rear -->
  <model>
    <path>Effects/ground/ground2.xml</path>
    <offsets>
      <x-m>  0.867 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.158 </z-m>
    </offsets>
  </model>

  <!-- L'hélice -->
  <animation>
    <name>HeliceComplete</name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>helice</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>
    <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.821 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.325 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <name>DeriveComplete</name>
    <object-name>queue</object-name>
    <object-name>queuesoie</object-name>
    <object-name>prof1</object-name>
    <object-name>prof3</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DeriveComplete</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m>  2.857</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.323 </z-m>
    </center>
    <axis>
      <x> 0.000 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>prof1</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 2.772</x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.249 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>prof3</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  2.772</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.893 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>ProfondeurComplete</name>
    <object-name>prof2</object-name>
    <object-name>prof5</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>ProfondeurComplete</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.865 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>prof2</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.035 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>prof5</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.695 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <name>GouverneComplete</name>
    <object-name>queue</object-name>
    <object-name>queuesoie</object-name>
    <object-name>dir2G</object-name>
    <object-name>dir2D</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>GouverneComplete</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m>  2.839</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.323 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dir2G</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  2.888</x-m>
      <y-m> -1.219 </y-m>
      <z-m> -0.321 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dir2D</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  2.888</x-m>
      <y-m>  1.219 </y-m>
      <z-m> -0.321 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>DirectionComplete</name>
    <object-name>dir1G</object-name>
    <object-name>dir1D</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DirectionComplete</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.865 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dir1G</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m> -0.262 </y-m>
      <z-m> -1.010 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dir1D</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.884</x-m>
      <y-m>  0.262 </y-m>
      <z-m> -1.010 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <name>AileronGauche</name>
    <object-name>aileronG</object-name>
    <object-name>aileronGsoie</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AileronGauche</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m> -1.475 </x1-m>
      <y1-m> -1.107 </y1-m>
      <z1-m>  0.065 </z1-m>
      <x2-m> -1.475 </x2-m>
      <y2-m> -2.493 </y2-m>
      <z2-m>  0.335 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>AileronDroit</name>
    <object-name>aileronD</object-name>
    <object-name>aileronDsoie</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AileronDroit</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m> -1.475 </x1-m>
      <y1-m>  2.493 </y1-m>
      <z1-m>  0.335 </z1-m>
      <x2-m> -1.475 </x2-m>
      <y2-m>  1.107 </y2-m>
      <z2-m>  0.065 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueG</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> -30 </factor>
    <axis>
      <x1-m> -3.366 </x1-m>
      <y1-m> -0.383 </y1-m>
      <z1-m> -0.887 </z1-m>
      <x2-m> -3.366 </x2-m>
      <y2-m> -0.274 </y2-m>
      <z2-m> -0.906 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> -30 </factor>
    <axis>
      <x1-m> -3.366 </x1-m>
      <y1-m>  0.274 </y1-m>
      <z1-m> -0.906 </z1-m>
      <x2-m> -3.366 </x2-m>
      <y2-m>  0.383 </y2-m>
      <z2-m> -0.887 </z2-m>
    </axis>
  </animation>

</PropertyList>
