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

<PropertyList>

  <path>velocity.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();

      var float_0 = self.getNode("sim/multiplay/generic/float[0]", 1);
      var float_1 = self.getNode("sim/multiplay/generic/float[1]", 1);

      var crew_door = self.getNode("sim/model/door-positions/crew/position-norm", 1);
      var passenger_door = self.getNode("sim/model/door-positions/passenger/position-norm", 1);

      crew_door.alias(float_0);
      passenger_door.alias(float_1);
    </load>

    <unload>
      livery_update.stop();
      crew_door.unalias();
      passenger_door.unalias();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>derives</object-name>
    <object-name>phares</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>axeG</object-name>
    <object-name>axeD</object-name>

    <object-name>helice</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>roueA</object-name>
    <object-name>axeA</object-name>
    <object-name>trous</object-name>
    <object-name>echappes</object-name>

    <!-- Objets transparents -->
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>vitres</object-name>
    <object-name>vitreG</object-name>
    <object-name>vitreD</object-name>
    <object-name>lampe</object-name>
    <object-name>lampeG</object-name>
    <object-name>lampeD</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>derives</object-name>
    <object-name>phares</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>axeG</object-name>
    <object-name>axeD</object-name>

    <object-name>helice</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>roueA</object-name>
    <object-name>axeA</object-name>
    <object-name>trous</object-name>
    <object-name>echappes</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>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>derives</object-name>
    <object-name>phares</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>axeG</object-name>
    <object-name>axeD</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreG</object-name>
    <object-name>vitreD</object-name>
    <object-name>lampe</object-name>
    <object-name>lampeG</object-name>
    <object-name>lampeD</object-name>
  </effect>

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

  <!-- Interieur -->
  <model>
    <path>Interior/interior.xml</path>
  </model>

  <!-- Cranking effects -->
  <!-- Left -->
  <model>
    <path>Aircraft/D510/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m>  1.594 </x-m>
      <y-m> -0.279 </y-m>
      <z-m> -0.254 </z-m>
      <pitch-deg> 45 </pitch-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/D510/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m>  1.594 </x-m>
      <y-m>  0.279 </y-m>
      <z-m> -0.254 </z-m>
      <pitch-deg> 45 </pitch-deg>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Roue avant -->
  <model>
    <path>Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -2.150 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.255 </z-m>
    </offsets>
  </model>

  <!-- Roue gauche -->
  <model>
    <path>Effects/ground/ground1.xml</path>
    <offsets>
      <x-m>  0.900 </x-m>
      <y-m> -0.900 </y-m>
      <z-m> -1.200 </z-m>
    </offsets>
  </model>

  <!-- Roue de droite -->
  <model>
    <path>Effects/ground/ground2.xml</path>
    <offsets>
      <x-m>  0.900 </x-m>
      <y-m>  0.900 </y-m>
      <z-m> -1.200 </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>
    <object-name>bol</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> 2.295 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.143 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </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> -15 </factor>
    <axis>
      <x1-m>  2.61044 </x1-m>
      <y1-m> -4.64550 </y1-m>
      <z1-m>  0.03302 </z1-m>
      <x2-m>  2.93752 </x2-m>
      <y2-m> -4.64551 </y2-m>
      <z2-m>  1.14630 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionD</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m> 2.61044 </x1-m>
      <y1-m> 4.64550 </y1-m>
      <z1-m> 0.03302 </z1-m>
      <x2-m> 2.93752 </x2-m>
      <y2-m> 4.64551 </y2-m>
      <z2-m> 1.14630 </z2-m>
    </axis>
  </animation>

  <!-- Speedbrake mode -->
  <animation>
    <type>rotate</type>
    <object-name>directionG</object-name>
    <property>surface-positions/speedbrake-left</property>
    <factor> -20 </factor>
    <axis>
      <x1-m>  2.61044 </x1-m>
      <y1-m> -4.64550 </y1-m>
      <z1-m>  0.03302 </z1-m>
      <x2-m>  2.93752 </x2-m>
      <y2-m> -4.64551 </y2-m>
      <z2-m>  1.14630 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionD</object-name>
    <property>surface-positions/speedbrake-right</property>
    <factor> -20 </factor>
    <axis>
      <x1-m> 2.61044 </x1-m>
      <y1-m> 4.64550 </y1-m>
      <z1-m> 0.03302 </z1-m>
      <x2-m> 2.93752 </x2-m>
      <y2-m> 4.64551 </y2-m>
      <z2-m> 1.14630 </z2-m>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>controls/flight/elevator</property>
    <factor> -15 </factor>
    <center>
      <x-m> -1.86006 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.01913 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </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 </factor>
    <axis>
      <x1-m>  2.35381 </x1-m>
      <y1-m> -3.93750 </y1-m>
      <z1-m> -0.08209 </z1-m>
      <x2-m>  1.95114 </x2-m>
      <y2-m> -2.57812 </y2-m>
      <z2-m> -0.08415 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m>  1.95114 </x1-m>
      <y1-m>  2.57812 </y1-m>
      <z1-m> -0.08415 </z1-m>
      <x2-m>  2.35381 </x2-m>
      <y2-m>  3.93750 </y2-m>
      <z2-m> -0.08209 </z2-m>
    </axis>
  </animation>

  <!-- Rentrée des roues -->
  <animation>
    <name>RoueAvant</name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueAvant</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.9 </ind><dep> -94 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -94 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.869 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.455 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAG</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>    0 </dep></entry>
      <entry><ind> 0.1 </ind><dep> -130 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -130 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.1600 </x1-m>
      <y1-m> -0.1580 </y1-m>
      <z1-m> -0.4560 </z1-m>
      <x2-m> -1.9570 </x2-m>
      <y2-m> -0.1920 </y2-m>
      <z2-m> -0.4847 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAD</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.1 </ind><dep> 130 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 130 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.1600 </x1-m>
      <y1-m>  0.1580 </y1-m>
      <z1-m> -0.4560 </z1-m>
      <x2-m> -1.9570 </x2-m>
      <y2-m>  0.1920 </y2-m>
      <z2-m> -0.4847 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>RoueGauche</name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueGauche</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 90 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.988 </x-m>
      <y-m> -0.581 </y-m>
      <z-m> -0.389 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueDroite</name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
  </animation>

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

  <!-- Rotation de la roue avant en fonction de la gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
    <property>gear/gear[0]/caster-angle-deg</property>
    <factor> -0.5 </factor>
    <center>
      <x-m> -1.869 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.455 </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>roueA</object-name>
    <property>gear/gear[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -2.49629 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.16024 </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[0]/rollspeed-ms</property>
    <factor> -30 </factor>
    <center>
      <x-m>  0.89950 </x-m>
      <y-m> -1.20217 </y-m>
      <z-m> -0.07938 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z> -1 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  0.89950 </x-m>
      <y-m>  1.20217 </y-m>
      <z-m> -0.07938 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z> -1 </z>
    </axis>
  </animation>

  <!-- Les Portes -->
  <animation>
    <name>LaPorteGauche</name>
    <object-name>porteG</object-name>
    <object-name>vitreG</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>LaPorteGauche</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>LaPorteGauche</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>    0 </dep></entry>
      <entry><ind> 1 </ind><dep> -110 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.48213 </x-m>
      <y-m> -0.56954 </y-m>
      <z-m>  0.39399 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>LaPorteDroite</name>
    <object-name>porteD</object-name>
    <object-name>vitreD</object-name>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>LaPorteDroite</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> 110 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.48213 </x-m>
      <y-m>  0.56954 </y-m>
      <z-m>  0.39399 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Effets lumineux -->
  <model>
    <path>lights/beacon.xml</path>
    <offsets>
      <x-m> 0.433 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.577 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/RedLight.xml</path>
    <offsets>
      <x-m>  2.155 </x-m>
      <y-m> -4.684 </y-m>
      <z-m> -0.069 </z-m>
    </offsets>
  </model>

  <model>
    <name>LeftWhite</name>
    <path>lights/StrobeLight.xml</path>
    <offsets>
      <x-m>  2.100 </x-m>
      <y-m> -4.684 </y-m>
      <z-m> -0.069 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/GreenLight.xml</path>
    <offsets>
      <x-m>  2.155 </x-m>
      <y-m>  4.684 </y-m>
      <z-m> -0.069 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/StrobeLight.xml</path>
    <offsets>
      <x-m>  2.100 </x-m>
      <y-m>  4.684 </y-m>
      <z-m> -0.069 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/WhiteLight.xml</path>
    <offsets>
      <x-m>  1.006 </x-m>
      <y-m> -2.481 </y-m>
      <z-m> -0.055 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/WhiteLight.xml</path>
    <offsets>
      <x-m>  1.006 </x-m>
      <y-m>  2.481 </y-m>
      <z-m> -0.055 </z-m>
    </offsets>
  </model>

  <model>
    <path>lights/light-cone.xml</path>
    <offsets>
      <x-m>          0.924 </x-m>
      <y-m>         -2.325 </y-m>
      <z-m>         -0.057 </z-m>
      <pitch-deg>   -4.500 </pitch-deg>
      <heading-deg> 13.000 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>lights/light-cone.xml</path>
    <offsets>
      <x-m>           0.924 </x-m>
      <y-m>           2.325 </y-m>
      <z-m>          -0.057 </z-m>
      <pitch-deg>    -4.500 </pitch-deg>
      <heading-deg> -13.000 </heading-deg>
    </offsets>
  </model>

</PropertyList>
