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

<PropertyList>

  <path>heston.ac</path>

  <!-- MP sound call -->
  <sound>
    <path>Aircraft/Heston-Type5/Sounds/mp-sound.xml</path>
  </sound>
  
  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Heston-Type5/Models/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(self.getNode ("sim/multiplay/generic/float[0]"));
      passenger_door  .alias(self.getNode ("sim/multiplay/generic/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>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteG3</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>porteD3</object-name>
    <object-name>pate</object-name>
    <object-name>tourvitre</object-name>
    
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</object-name>
    <object-name>trous</object-name>
    <object-name>echappes</object-name>
    
    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteG3</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>porteD3</object-name>
    <object-name>pate</object-name>
    <object-name>tourvitre</object-name>
    
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
    <object-name>helice</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>Aircraft/Heston-Type5/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteG3</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>porteD3</object-name>
    <object-name>pate</object-name>
    <object-name>tourvitre</object-name>
  </effect>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Aircraft/Heston-Type5/Models/Effects/Glass/glass</inherits-from>
    <object-name>vitres</object-name>
  </effect>
  
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>vitres</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </effect>
  
  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/Heston-Type5/Models/shadow.xml</path>
    <offsets>
      <x-m>  0.0 </x-m>
      <y-m>  0.0 </y-m>
      <z-m> -1.6 </z-m>
    </offsets>
  </model>

  <!-- Interieur -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Interior/interior.xml</path>
  </model>

  <!-- Immatriculation -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Immat/immat.xml</path>
  </model>
  
  <!-- Cranking -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Effects/cranking/all-cranking.xml</path>
  </model>
  
  <!-- Effets sur le sol -->
  <!-- Roue gauche -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -2.25468 </x-m>
      <y-m> -2.22539 </y-m>
      <z-m> -1.80266 </z-m>
    </offsets>
  </model>

  <!-- Roue droite -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -2.25468 </x-m>
      <y-m>  2.22539 </y-m>
      <z-m> -1.80266 </z-m>
    </offsets>
  </model>

  <!-- Patte de queue -->
  <model>
    <path>Aircraft/Heston-Type5/Models/Effects/ground/ground2.xml</path>
    <offsets>
      <x-m>  3.24997 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.65149 </z-m>
    </offsets>
  </model>

  <!-- L'hélice --> 
  <animation>
    <name>HeliceComplete</name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</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>900</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>300.000</value>
      </greater-than>
      <less-than>
        <property>/engines/engine[0]/rpm</property>
        <value>900.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>900</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value> 115 </value>
      </greater-than>
    </condition>
    <property>/engines/engine[0]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -3.245 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.209 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 3.10132 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.44437 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m>  3.23303 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m> -0.28889 </z1-m>
      <x2-m>  3.24690 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m>  1.42957 </z2-m>
    </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> -0.87887 </x1-m>
      <y1-m> -4.54726 </y1-m>
      <z1-m> -0.00598 </z1-m>
      <x2-m> -0.77003 </x2-m>
      <y2-m> -2.91685 </y2-m>
      <z2-m> -0.08644 </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> -0.77003 </x1-m>
      <y1-m>  2.91685 </y1-m>
      <z1-m> -0.08644 </z1-m>
      <x2-m> -0.87887 </x2-m>
      <y2-m>  4.54726 </y2-m>
      <z2-m> -0.00598 </z2-m>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -40 </factor>
    <axis>
      <x1-m> -0.81068 </x1-m>
      <y1-m> -2.88401 </y1-m>
      <z1-m> -0.13841 </z1-m>
      <x2-m> -0.75547 </x2-m>
      <y2-m> -0.63443 </y2-m>
      <z2-m> -0.32804 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -40 </factor>
    <axis>
      <x1-m> -0.75547 </x1-m>
      <y1-m>  0.63443 </y1-m>
      <z1-m> -0.32804 </z1-m>
      <x2-m> -0.81068 </x2-m>
      <y2-m>  2.88401 </y2-m>
      <z2-m> -0.13841 </z2-m>
    </axis>
  </animation>

  <!-- rentree des roues -->
  <animation>
    <name>TrainGauche</name>
    <object-name>porteG2</object-name>
    <object-name>porteG3</object-name>
    <object-name>axeGH</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.0 </ind><dep> 95 </dep></entry>
      <entry><ind> 1.0 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.58714 </x-m>
      <y-m> -2.17456 </y-m>
      <z-m> -0.35494 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainGauche</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -35 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.58714 </x-m>
      <y-m> -2.17456 </y-m>
      <z-m> -0.35494 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <name>TrainDroite</name>
    <object-name>porteD2</object-name>
    <object-name>porteD3</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainDroite</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> -95 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.58714 </x-m>
      <y-m>  2.17456 </y-m>
      <z-m> -0.35494 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>TrainDroite</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -35 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.58714 </x-m>
      <y-m>  2.17456 </y-m>
      <z-m> -0.35494 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>pate</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.1 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.0 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <!-- Portes des trains -->
  <animation>
    <type>rotate</type>
    <object-name>porteG1</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -95 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.54389 </x-m>
      <y-m> -2.33742 </y-m>
      <z-m> -0.26585 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG3</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -90 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.44257 </x1-m>
      <y1-m> -2.35747 </y1-m>
      <z1-m> -1.36705 </z1-m>
      <x2-m> -2.01063 </x2-m>
      <y2-m> -2.31637 </y2-m>
      <z2-m> -1.45317 </z2-m>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>porteD1</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 95 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.54389 </x-m>
      <y-m>  2.33742 </y-m>
      <z-m> -0.26585 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>porteD3</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>
    <axis>
      <x1-m> -2.01063 </x1-m>
      <y1-m>  2.31637 </y1-m>
      <z1-m> -1.45317 </z1-m>
      <x2-m> -2.44257 </x2-m>
      <y2-m>  2.35747 </y2-m>
      <z2-m> -1.36705 </z2-m>
    </axis>
  </animation>
  
  <!-- Compression -->
  <animation>
    <name>RoueGauche</name>
    <object-name>porteG2</object-name>
    <object-name>porteG3</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</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.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.0825 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.07201 </x-m>
      <y-m> -2.21788 </y-m>
      <z-m> -0.91600 </z-m>
    </center>
    <axis>
      <x> 0.06 </x>
      <y> 0.02 </y>
      <z> 0.08 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueDroite</name>
    <object-name>porteD2</object-name>
    <object-name>porteD3</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</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.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.0825 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.07201 </x-m>
      <y-m>  2.21788 </y-m>
      <z-m> -0.91600 </z-m>
    </center>
    <axis>
      <x> 0.049 </x>
      <y> 0.000 </y>
      <z> 0.232 </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>
    <factor> -30 </factor>
    <center>
      <x-m> -2.24091 </x-m>
      <y-m> -2.18681 </y-m>
      <z-m> -1.48132 </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>
    <factor> -30 </factor>
    <center>
      <x-m> -2.24091 </x-m>
      <y-m>  2.18681 </y-m>
      <z-m> -1.48132 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <name>AllCanopy</name>
    <object-name>tourvitre</object-name>
    <object-name>vitres</object-name>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>AllCanopy</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>AllCanopy</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> 95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> 0.60930 </x1-m>
      <y1-m> 0.23526 </y1-m>
      <z1-m> 0.66613 </z1-m>
      <x2-m> 0.29806 </x2-m>
      <y2-m> 0.23436 </y2-m>
      <z2-m> 0.66333 </z2-m>
    </axis>
  </animation>
  
  <!-- Ajout des effets lumineux -->
  <model>
    <path>Aircraft/Heston-Type5/Models/light/beacon.xml</path>
    <offsets>
      <x-m> 3.253 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 1.531 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Heston-Type5/Models/light/RedLight.xml</path>
    <offsets>
      <x-m> -1.310 </x-m>
      <y-m> -4.862 </y-m>
      <z-m>  0.014 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Heston-Type5/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m> -1.320 </x-m>
      <y-m> -4.862 </y-m>
      <z-m>  0.014 </z-m>
    </offsets>
  </model>
  
  <model>
    <path>Aircraft/Heston-Type5/Models/light/GreenLight.xml</path>
    <offsets>
      <x-m> -1.310 </x-m>
      <y-m>  4.862 </y-m>
      <z-m>  0.014 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Heston-Type5/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m> -1.320 </x-m>
      <y-m>  4.862 </y-m>
      <z-m>  0.014 </z-m>
    </offsets>
  </model>

</PropertyList>
