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

<PropertyList>

  <path>s205.ac</path>

  <!-- MP sound call -->
  <sound>
    <path>Aircraft/SIAI-Marchetti-S.205R/Sounds/mp-sound.xml</path>
  </sound>
  
  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/SIAI-Marchetti-S.205R/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(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>porte</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>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>antennes</object-name>
    
    <object-name>trous</object-name>
    <object-name>echappe</object-name>
    <object-name>helice</object-name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</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>projecteur</object-name>
    
    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
    <object-name>lampeR</object-name>
    <object-name>lampeV</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>porte</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>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>antennes</object-name>
    
    <object-name>trous</object-name>
    <object-name>echappe</object-name>
    <object-name>helice</object-name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</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>projecteur</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/SIAI-Marchetti-S.205R/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>porte</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>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>bol</object-name>
    <object-name>antennes</object-name>
  </effect>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Aircraft/SIAI-Marchetti-S.205R/Models/Effects/Glass/glass</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
  </effect>
  
  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporte</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>lampeR</object-name>
    <object-name>lampeV</object-name>
  </effect>
  
  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/shadow.xml</path>
    <offsets>
      <x-m>  0.00 </x-m>
      <y-m>  0.00 </y-m>
      <z-m> -1.35 </z-m>
    </offsets>
  </model>

  <!-- Interieur -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/Interior/interior.xml</path>
  </model>

  <!-- Cranking effects -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -3.20386 </x-m>
      <y-m>  0.31155 </y-m>
      <z-m> -1.03339 </z-m>
      <pitch-deg> 45 </pitch-deg>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Roue avant -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -3.11941 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.58528 </z-m>
    </offsets>
  </model>

  <!-- Roue gauche -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -1.17680 </x-m>
      <y-m> -1.68598 </y-m>
      <z-m> -1.54463 </z-m>
    </offsets>
  </model>

  <!-- Roue droite -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/Effects/ground/ground2.xml</path>
    <offsets>
      <x-m> -1.17680 </x-m>
      <y-m>  1.68598 </y-m>
      <z-m> -1.54463 </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> -3.76935 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.38332 </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.59026 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.19115 </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>
    <center>
      <x-m> 3.51669 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.76034 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </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> -0.74703 </x1-m>
      <y1-m> -5.31268 </y1-m>
      <z1-m> -0.44924 </z1-m>
      <x2-m> -0.65666 </x2-m>
      <y2-m> -3.76028 </y2-m>
      <z2-m> -0.59791 </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.65666 </x1-m>
      <y1-m>  3.76028 </y1-m>
      <z1-m> -0.59791 </z1-m>
      <x2-m> -0.74703 </x2-m>
      <y2-m>  5.31268 </y2-m>
      <z2-m> -0.44924 </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.64544 </x1-m>
      <y1-m> -3.76095 </y1-m>
      <z1-m> -0.63776 </z1-m>
      <x2-m> -0.43958 </x2-m>
      <y2-m> -0.64572 </y2-m>
      <z2-m> -0.93134 </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.43958 </x1-m>
      <y1-m>  0.64572 </y1-m>
      <z1-m> -0.93134 </z1-m>
      <x2-m> -0.64544 </x2-m>
      <y2-m>  3.76095 </y2-m>
      <z2-m> -0.63776 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>    0 </dep></entry>
      <entry><ind> 1 </ind><dep> -120 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m> -1.62470 </y-m>
      <z-m> -0.90301 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> 120 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m>  1.62470 </y-m>
      <z-m> -0.90301 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation> -->

  <!-- Rentre des roues -->
  <animation>
    <name>TrainAvant</name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>TrainAvant</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -95 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.02725 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.84230 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <name>TrainGauche</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 </ind><dep> 90 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m> -1.57411 </y-m>
      <z-m> -0.79609 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <animation>
    <name>TrainDroite</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 </ind><dep> -90 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m>  1.57411 </y-m>
      <z-m> -0.79609 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>
  
  <!-- Compression -->
  <animation>
    <name>RoueAvant</name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>RoueAvant</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.1281 </dep></entry>
    </interpolation>
    <axis>
      <x> -0.023 </x>
      <y>  0.000 </y>
      <z> -0.126 </z>
    </axis>
  </animation>
  
  <animation>
    <name>EnsembleGauche</name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>EnsembleGauche</object-name>
    <property>gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.12 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <animation>
    <name>EnsembleDroit</name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
  </animation>
  
  <animation>
    <type>translate</type>
    <object-name>EnsembleDroit</object-name>
    <property>gear/gear[2]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.12 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>
  
  <!-- Rotation de la roue avant en fonction de la gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>RoueAvant</object-name>
    <property>gear/gear[0]/caster-angle-deg</property>
    <factor> -0.6 </factor>
    <axis>
      <x1-m> -3.09216 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m> -1.20956 </z1-m>
      <x2-m> -3.06049 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m> -1.02133 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -3.12667 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.41225 </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>
    <factor> 30 </factor>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m> -1.68598 </y-m>
      <z-m> -1.33324 </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[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.18568 </x-m>
      <y-m>  1.68598 </y-m>
      <z-m> -1.33324 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Porte -->
  <animation>
    <name>PorteGauche</name>
    <object-name>porte</object-name>
    <object-name>vitreporte</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.crew.toggle();</script>
      </binding>
    </action>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>PorteGauche</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <factor> 60 </factor>
    <center>
      <x-m> -2.11201 </x-m>
      <y-m>  0.58004 </y-m>
      <z-m> -0.45890 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Effets lumineux -->
  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/light/beacon.xml</path>
    <offsets>
      <x-m> 3.24118 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 1.54946 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/light/RedLight.xml</path>
    <offsets>
      <x-m> -1.29378 </x-m>
      <y-m> -5.42315 </y-m>
      <z-m> -0.43707 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m> -1.29178 </x-m>
      <y-m> -5.42315 </y-m>
      <z-m> -0.43707 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/light/GreenLight.xml</path>
    <offsets>
      <x-m> -1.29378 </x-m>
      <y-m>  5.42315 </y-m>
      <z-m> -0.43707 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/SIAI-Marchetti-S.205R/Models/light/StrobeLight.xml</path>
    <offsets>
      <x-m> -1.29178 </x-m>
      <y-m>  5.42315 </y-m>
      <z-m> -0.43707 </z-m>
    </offsets>
  </model>

  <!-- Noze light cone -->
  <model>
    <path>Aircraft/SIAI-Marchetti-SF.260/Models/light/light-cone.xml</path>
    <offsets>
      <x-m> -3.59900 </x-m>
      <y-m>  0.24314 </y-m>
      <z-m> -0.57582 </z-m>
      <pitch-deg> -7.5 </pitch-deg>
    </offsets>
  </model>
  
</PropertyList>
