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

<PropertyList>

  <path>bleriot125.ac</path>

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

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Bleriot-125/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 float_2 = self.getNode("sim/multiplay/generic/float[4]", 1);
      var float_3 = self.getNode("sim/multiplay/generic/float[5]", 1);
      
      var doorG1 = self.getNode("sim/model/door-positions/doorG1/position-norm", 1);
      var doorG2 = self.getNode("sim/model/door-positions/doorG2/position-norm", 1);
      var doorD1 = self.getNode("sim/model/door-positions/doorD1/position-norm", 1);
      var doorD2 = self.getNode("sim/model/door-positions/doorD2/position-norm", 1);
      
      doorG1.alias(float_0);
      doorG2.alias(float_1);
      doorD1.alias(float_2);
      doorD2.alias(float_3);
    </load>

    <unload>
      livery_update.stop();
      doorG1.unalias();
      doorG2.unalias();
      doorD1.unalias();
      doorD2.unalias();
    </unload>
  </nasal>

  <animation>
    <!-- draw these first (in no particular order) -->
    <object-name>fuselage</object-name>
    <object-name>fuselage2</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>   
    <object-name>directionGE</object-name>   
    <object-name>directionGI</object-name>   
    <object-name>directionDI</object-name>   
    <object-name>directionDE</object-name>   
    <object-name>derives</object-name>
    <object-name>ailes2</object-name>
    <object-name>bolA</object-name>
    <object-name>bolB</object-name>
    
    <object-name>trous</object-name>
    <object-name>moteur</object-name>
    <object-name>attaches</object-name>
    <object-name>tubes</object-name>
    <object-name>heliceA</object-name>
    <object-name>heliceB</object-name>
    <object-name>roueG1</object-name>
    <object-name>roueG2</object-name>
    <object-name>roueD1</object-name>
    <object-name>roueD2</object-name>
    
    <!-- draw this at last (order critical!) -->
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>propblurA</object-name>
    <object-name>propblurB</object-name>
    <object-name>propdiscA</object-name>
    <object-name>propdiscB</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>fuselage2</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>   
    <object-name>directionGE</object-name>   
    <object-name>directionGI</object-name>   
    <object-name>directionDI</object-name>   
    <object-name>directionDE</object-name>   
    <object-name>derives</object-name>
    <object-name>ailes2</object-name>
    <object-name>bolA</object-name>
    <object-name>bolB</object-name>
    
    <object-name>trous</object-name>
    <object-name>moteur</object-name>
    <object-name>attaches</object-name>
    <object-name>tubes</object-name>
    <object-name>heliceA</object-name>
    <object-name>heliceB</object-name>
    <object-name>roueG1</object-name>
    <object-name>roueG2</object-name>
    <object-name>roueD1</object-name>
    <object-name>roueD2</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/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>fuselage2</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>   
    <object-name>directionGE</object-name>   
    <object-name>directionGI</object-name>   
    <object-name>directionDI</object-name>   
    <object-name>directionDE</object-name>   
    <object-name>derives</object-name>
    <object-name>ailes2</object-name>
    <object-name>bolA</object-name>
    <object-name>bolB</object-name>
  </effect>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Aircraft/Bleriot-125/Models/Effects/Glass/glass</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
  </effect>
  
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
  </effect>
  
  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/Bleriot-125/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>

  <!-- Interior -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Interior/interior.xml</path>
  </model>

  <!-- Cranking -->
  <!-- Noze -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/cranking/cranking1.xml</path>
    <offsets> 
      <x-m> -4.74787 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.24822 </z-m>
    </offsets>
  </model>

  <!-- Rear -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/cranking/cranking2.xml</path>
    <offsets> 
      <x-m> -0.04513 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.42308 </z-m>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Roue gauche 1 -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -3.71189 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m> -1.99678 </z-m>
    </offsets>
  </model>

  <!-- Roue gauche 2 -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -1.98375 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m> -1.99678 </z-m>
    </offsets>
  </model>

  <!-- Roue droite 1 -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/ground/ground2.xml</path>
    <offsets>
      <x-m> -3.71189 </x-m>
      <y-m>  2.83257 </y-m>
      <z-m> -1.99678 </z-m>
    </offsets>
  </model>

  <!-- Roue droite 2 -->
  <model>
    <path>Aircraft/Bleriot-125/Models/Effects/ground/ground3.xml</path>
    <offsets>
      <x-m> -1.98375 </x-m>
      <y-m>  2.83257 </y-m>
      <z-m> -1.99678 </z-m>
    </offsets>
  </model>

  <!-- L'hélice avant --> 
  <animation>
    <name>HeliceAComplete</name>
    <object-name>propdiscA</object-name>
    <object-name>propblurA</object-name>
    <object-name>heliceA</object-name>
    <object-name>bolA</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscA</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurA</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>heliceA</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceAComplete</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> -5.93392 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.85680 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- L'hélice arrière --> 
  <animation>
    <name>HeliceBComplete</name>
    <object-name>propdiscB</object-name>
    <object-name>propblurB</object-name>
    <object-name>heliceB</object-name>
    <object-name>bolB</object-name>
  </animation>
  
  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscB</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value>1500</value>
      </greater-than>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>propblurB</object-name>
    <condition>
      <and>
        <greater-than>
          <property>engines/engine[1]/rpm</property>
          <value>600.000</value>
        </greater-than>
        <less-than>
          <property>engines/engine[1]/rpm</property>
          <value>1500.001</value>
        </less-than>
      </and>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>heliceB</object-name>
    <condition>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1500</value>
      </less-than>
    </condition>
  </animation>
  
  <animation>
    <type>spin</type>
    <object-name>HeliceBComplete</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value> 5 </value>
      </greater-than>
    </condition>
    <property>engines/engine[1]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> 0.50388 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.90846 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>directionGE</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  6.22834 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m>  0.69787 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionGI</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m>  6.23516 </x-m>
      <y-m> -0.88972 </y-m>
      <z-m>  0.54322 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>directionDI</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 6.23516 </x-m>
      <y-m> 0.88972 </y-m>
      <z-m> 0.54322 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>directionDE</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> 6.22834 </x-m>
      <y-m> 2.83257 </y-m>
      <z-m> 0.69787 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <!-- Animations des gouvernes de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 6.34551 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.31348 </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>  -1.72578 </x1-m>
      <y1-m> -13.68147 </y1-m>
      <z1-m>   1.06191 </z1-m>
      <x2-m>  -0.97463 </x2-m>
      <y2-m>  -3.49185 </y2-m>
      <z2-m>   0.68505 </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.97463 </x1-m>
      <y1-m>  3.49185 </y1-m>
      <z1-m>  0.68505 </z1-m>
      <x2-m> -1.72578 </x2-m>
      <y2-m> 13.68147 </y2-m>
      <z2-m>  1.06191 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <type>translate</type>
    <object-name>roueG1</object-name>
    <property>gear/gear[0]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>roueG2</object-name>
    <property>gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>roueD1</object-name>
    <property>gear/gear[2]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>roueD2</object-name>
    <property>gear/gear[3]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueG1</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -3.71973 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m> -1.54511 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>spin</type>
    <object-name>roueG2</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.99159 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m> -1.54511 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>spin</type>
    <object-name>roueD1</object-name>
    <property>gear/gear[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -3.71973 </x-m>
      <y-m>  2.83257 </y-m>
      <z-m> -1.54511 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  
  <animation>
    <type>spin</type>
    <object-name>roueD2</object-name>
    <property>gear/gear[3]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.99159 </x-m>
      <y-m>  2.83257 </y-m>
      <z-m> -1.54511 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>
  
  <!-- Doors -->
  <animation>
    <name>PorteGauche</name>
    <object-name>porteG1</object-name>
    <object-name>vitreporteG</object-name>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>PorteGauche</object-name>
    <property>sim/model/door-positions/doorG1/position-norm</property>
    <factor> -175 </factor>
    <center>
      <x-m> -2.67749 </x-m>
      <y-m> -3.46015 </y-m>
      <z-m> -0.56953 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>PorteDroite</name>
    <object-name>porteD1</object-name>
    <object-name>vitreporteD</object-name>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>PorteDroite</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.doorD1.toggle();</script>
      </binding>
    </action>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>PorteDroite</object-name>
    <property>sim/model/door-positions/doorD1/position-norm</property>
    <factor> 175 </factor>
    <center>
      <x-m> -2.67749 </x-m>
      <y-m>  3.46015 </y-m>
      <z-m> -0.56953 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <name>PorteGauche2</name>
    <object-name>porteG2</object-name>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>PorteGauche2</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.doorG2.toggle();</script>
      </binding>
    </action>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>PorteGauche2</object-name>
    <property>sim/model/door-positions/doorG2/position-norm</property>
    <factor> -175 </factor>
    <center>
      <x-m> -1.25530 </x-m>
      <y-m> -3.46015 </y-m>
      <z-m> -0.42267 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <name>PorteDroite2</name>
    <object-name>porteD2</object-name>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>PorteDroite2</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.doorD2.toggle();</script>
      </binding>
    </action>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>PorteDroite2</object-name>
    <property>sim/model/door-positions/doorD2/position-norm</property>
    <factor> 175 </factor>
    <center>
      <x-m> -1.25530 </x-m>
      <y-m>  3.46015 </y-m>
      <z-m> -0.42267 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <!-- Ajout des effets lumineux -->
  <model>
    <path>Aircraft/Bleriot-125/Models/light/beacon.xml</path>
    <offsets>
      <x-m>  6.21223 </x-m>
      <y-m> -2.83257 </y-m>
      <z-m>  1.96051 </z-m>
    </offsets>
  </model>
  
  <model>
    <path>Aircraft/Bleriot-125/Models/light/beacon.xml</path>
    <offsets>
      <x-m> 6.21223 </x-m>
      <y-m> 2.83257 </y-m>
      <z-m> 1.96051 </z-m>
    </offsets>
  </model>
  
  <model>
    <name>RedLight</name>
    <path>Aircraft/Bleriot-125/Models/light/RedLight.xml</path>
    <offsets>
      <x-m>  -2.51971 </x-m>
      <y-m> -14.67534 </y-m>
      <z-m>   1.10908 </z-m>
    </offsets>
  </model>
  
  <model>
    <name>WhiteLightLeft</name>
    <path>Aircraft/Bleriot-125/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m>  -2.50971 </x-m>
      <y-m> -14.67535 </y-m>
      <z-m>   1.10908 </z-m>
    </offsets>
  </model>
  
  <model>
    <name>GreenLight</name>
    <path>Aircraft/Bleriot-125/Models/light/GreenLight.xml</path>
    <offsets>
      <x-m> -2.51971 </x-m>
      <y-m> 14.67534 </y-m>
      <z-m>  1.10908 </z-m>
    </offsets>
  </model>
  
  <model>
    <name>WhiteLightRight</name>
    <path>Aircraft/Bleriot-125/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m> -2.50971 </x-m>
      <y-m> 14.67535 </y-m>
      <z-m>  1.10908 </z-m>
    </offsets>
  </model>
  
</PropertyList>
