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

<PropertyList include="Airco-DH2-bombableinclude.xml">

  <path>dh2.ac</path>

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

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

  <animation>
    <!-- Objets opaques -->
    <object-name>gun</object-name>

    <object-name>fuselage</object-name>
    <object-name>ailesH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDH</object-name>
    <object-name>aileronDB</object-name>
    <object-name>elevators</object-name>
    <object-name>derive</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>

    <object-name>trous</object-name>
    <object-name>structure</object-name>
    <object-name>helice</object-name>
    <object-name>cables</object-name>
    <object-name>elevatorcables1</object-name>
    <object-name>elevatorcables2</object-name>
    <object-name>elevatorcables3</object-name>
    <object-name>elevatorcables4</object-name>
    <object-name>directioncables1</object-name>
    <object-name>directioncables2</object-name>
    <object-name>liaisonG</object-name>
    <object-name>liaisonD</object-name>
    <object-name>cableaileronGH</object-name>
    <object-name>cableaileronGB</object-name>
    <object-name>cableaileronDH</object-name>
    <object-name>cableaileronDB</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>patte</object-name>
    <object-name>freins</object-name>

    <!-- Objets transparents -->
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>gun</object-name>
    <object-name>fuselage</object-name>
    <object-name>ailesH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDH</object-name>
    <object-name>aileronDB</object-name>
    <object-name>elevators</object-name>
    <object-name>derive</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>trous</object-name>
    <object-name>structure</object-name>
    <object-name>helice</object-name>
    <object-name>cables</object-name>
    <object-name>elevatorcables1</object-name>
    <object-name>elevatorcables2</object-name>
    <object-name>elevatorcables3</object-name>
    <object-name>elevatorcables4</object-name>
    <object-name>directioncables1</object-name>
    <object-name>directioncables2</object-name>
    <object-name>liaisonG</object-name>
    <object-name>liaisonD</object-name>
    <object-name>cableaileronGH</object-name>
    <object-name>cableaileronGB</object-name>
    <object-name>cableaileronDH</object-name>
    <object-name>cableaileronDB</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>patte</object-name>
    <object-name>freins</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/Airco-DH2/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>gun</object-name>
  </effect>

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

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

  <model>
    <path>Effects/Weapons/guns/all-fires.xml</path>
  </model>

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

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

  <model>
    <path>Interior/interior.xml</path>
  </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>1000</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>400.000</value>
        </greater-than>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>1000.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>1000</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <property>engines/engine[0]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -0.763 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.232 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <name>ElevatorSystem0</name>
    <object-name>profondeur</object-name>
    <object-name>elevatorcables3</object-name>
    <object-name>elevatorcables4</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>ElevatorSystem0</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 2.814 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.742 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>elevatorcables3</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 2.812 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.951 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>elevatorcables4</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 2.812 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.536 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>ElevatorSystem1</name>
    <object-name>elevators</object-name>
    <object-name>elevatorcables1</object-name>
    <object-name>elevatorcables2</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>ElevatorSystem1</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> -2.895 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.153 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>elevatorcables1</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.910 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.033 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>elevatorcables2</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -2.878 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.270 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <name>directionSystem0</name>
    <object-name>direction</object-name>
    <object-name>directioncables1</object-name>
    <object-name>directioncables2</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionSystem0</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 2.882 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.536 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directioncables1</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  2.866 </x-m>
      <y-m> -0.208 </y-m>
      <z-m>  0.539 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directioncables2</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 2.866 </x-m>
      <y-m> 0.208 </y-m>
      <z-m> 0.539 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <name>AileronGaucheHaut</name>
    <object-name>aileronGH</object-name>
    <object-name>cableaileronGH</object-name>
    <object-name>cableaileronGB</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AileronGaucheHaut</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.991 </x1-m>
      <y1-m> -4.157 </y1-m>
      <z1-m>  1.377 </z1-m>
      <x2-m> -0.987 </x2-m>
      <y2-m> -2.463 </y2-m>
      <z2-m>  1.211 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronGH</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.984 </x-m>
      <y-m> -3.499 </y-m>
      <z-m>  1.448 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronGB</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.984 </x-m>
      <y-m> -3.499 </y-m>
      <z-m>  1.171 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>AileronDroitHaut</name>
    <object-name>aileronDH</object-name>
    <object-name>cableaileronDH</object-name>
    <object-name>cableaileronDB</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AileronDroitHaut</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.987 </x1-m>
      <y1-m>  2.463 </y1-m>
      <z1-m>  1.211 </z1-m>
      <x2-m> -0.991 </x2-m>
      <y2-m>  4.157 </y2-m>
      <z2-m>  1.377 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronDH</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.984 </x-m>
      <y-m>  3.499 </y-m>
      <z-m>  1.448 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cableaileronDB</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.984 </x-m>
      <y-m>  3.499 </y-m>
      <z-m>  1.171 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronGB</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.991 </x1-m>
      <y1-m> -4.157 </y1-m>
      <z1-m> -0.013 </z1-m>
      <x2-m> -0.987 </x2-m>
      <y2-m> -2.463 </y2-m>
      <z2-m> -0.179 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDB</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.987 </x1-m>
      <y1-m>  2.463 </y1-m>
      <z1-m> -0.179 </z1-m>
      <x2-m> -0.991 </x2-m>
      <y2-m>  4.157 </y2-m>
      <z2-m> -0.013 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>liaisonG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.991 </x1-m>
      <y1-m> -4.157 </y1-m>
      <z1-m> -0.013 </z1-m>
      <x2-m> -0.987 </x2-m>
      <y2-m> -2.463 </y2-m>
      <z2-m> -0.179 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>liaisonG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.818 </x-m>
      <y-m> -3.499 </y-m>
      <z-m> -0.089 </z-m>
    </center>
    <axis>
      <x1-m> -0.991 </x1-m>
      <y1-m> -4.157 </y1-m>
      <z1-m> -0.013 </z1-m>
      <x2-m> -0.987 </x2-m>
      <y2-m> -2.463 </y2-m>
      <z2-m> -0.179 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>liaisonD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 20 </factor>
    <axis>
      <x1-m> -0.987 </x1-m>
      <y1-m>  2.463 </y1-m>
      <z1-m> -0.179 </z1-m>
      <x2-m> -0.991 </x2-m>
      <y2-m>  4.157 </y2-m>
      <z2-m> -0.013 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>liaisonD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -20 </factor>
    <center>
      <x-m> -0.818 </x-m>
      <y-m>  3.499 </y-m>
      <z-m> -0.089 </z-m>
    </center>
    <axis>
      <x1-m> -0.987 </x1-m>
      <y1-m>  2.463 </y1-m>
      <z1-m> -0.179 </z1-m>
      <x2-m> -0.991 </x2-m>
      <y2-m>  4.157 </y2-m>
      <z2-m> -0.013 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <!-- <property>gear/gear[0]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[5]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.936 </x-m>
      <y-m> -0.922 </y-m>
      <z-m> -1.118 </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> -1.936 </x-m>
      <y-m>  0.922 </y-m>
      <z-m> -1.118 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Parking brake visible or not -->
  <animation>
    <type>select</type>
    <object-name>freins</object-name>
    <condition>
      <!-- <property>controls/gear/brake-parking</property> -->
      <property>sim/multiplay/generic/bool[0]</property>
    </condition>
  </animation>

</PropertyList>
