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

<PropertyList include="Gloster-Gladiator-bombableinclude.xml">

  <path>gladiator.ac</path>

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

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

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>voletGH</object-name>
    <object-name>voletDH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>voletGB</object-name>
    <object-name>voletDB</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>supportlampeB</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>tourverriere</object-name>
    <object-name>supportlampes</object-name>
    <object-name>cachesguns</object-name>
    <object-name>entretoies</object-name>

    <object-name>trous</object-name>
    <object-name>pito</object-name>
    <object-name>cables</object-name>
    <object-name>marchepied</object-name>
    <object-name>cable1G</object-name>
    <object-name>cable2G</object-name>
    <object-name>cable1D</object-name>
    <object-name>cable2D</object-name>
    <object-name>guns</object-name>
    <object-name>helice</object-name>
    <object-name>echappes</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>lampeR</object-name>
    <object-name>lampeG</object-name>
    <object-name>lampeB</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>voletGH</object-name>
    <object-name>voletDH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>voletGB</object-name>
    <object-name>voletDB</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>supportlampeB</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>tourverriere</object-name>
    <object-name>supportlampes</object-name>
    <object-name>cachesguns</object-name>
    <object-name>entretoies</object-name>
    <object-name>trous</object-name>
    <object-name>pito</object-name>
    <object-name>cables</object-name>
    <object-name>marchepied</object-name>
    <object-name>cable1G</object-name>
    <object-name>cable2G</object-name>
    <object-name>cable1D</object-name>
    <object-name>cable2D</object-name>
    <object-name>guns</object-name>
    <object-name>helice</object-name>
    <object-name>echappes</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>lampeR</object-name>
    <object-name>lampeG</object-name>
    <object-name>lampeB</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</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/Gloster-Gladiator/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>capot</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>voletGH</object-name>
    <object-name>voletDH</object-name>
    <object-name>ailesB</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>voletGB</object-name>
    <object-name>voletDB</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>supportlampeB</object-name>
    <object-name>profondeur</object-name>
    <object-name>bol</object-name>
    <object-name>tourverriere</object-name>
    <object-name>supportlampes</object-name>
    <object-name>cachesguns</object-name>
    <object-name>entretoies</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>
  </effect>

  <!-- Sélection des vitres en fonction de HDR ou pas -->
  <animation>
    <type>select</type>
    <condition>
      <!-- <property>sim/rendering/hdr/hdr-enabled</property> -->
      <property>sim/multiplay/generic/bool[2]</property>
    </condition>
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <!-- <not><property>sim/rendering/hdr/hdr-enabled</property></not> -->
      <not><property>sim/multiplay/generic/bool[2]</property></not>
    </condition>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
  </animation>

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

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

  <model>
    <path>Interior/interior.xml</path>
  </model>

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

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

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

  <model>
    <path>lights/all-lights.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>
    <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.85389 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.17718 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <object-name>supportlampeB</object-name>
    <object-name>lampeB</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 3.28900 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.58165 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z>  1 </z>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 3.05797 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.14987 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronGH</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.49965 </x1-m>
      <y1-m> -4.61153 </y1-m>
      <z1-m>  1.43606 </z1-m>
      <x2-m> -1.47215 </x2-m>
      <y2-m> -2.54810 </y2-m>
      <z2-m>  1.34391 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDH</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.47215 </x1-m>
      <y1-m>  2.54810 </y1-m>
      <z1-m>  1.34391 </z1-m>
      <x2-m> -1.49965 </x2-m>
      <y2-m>  4.61153 </y2-m>
      <z2-m>  1.43606 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronGB</object-name>
    <object-name>cable1G</object-name>
    <object-name>cable2G</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -0.77727 </x1-m>
      <y1-m> -4.60599 </y1-m>
      <z1-m> -0.20221 </z1-m>
      <x2-m> -0.74872 </x2-m>
      <y2-m> -2.55903 </y2-m>
      <z2-m> -0.29393 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDB</object-name>
    <object-name>cable1D</object-name>
    <object-name>cable2D</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -0.74872 </x1-m>
      <y1-m>  2.55903 </y1-m>
      <z1-m> -0.29393 </z1-m>
      <x2-m> -0.77727 </x2-m>
      <y2-m>  4.60599 </y2-m>
      <z2-m> -0.20221 </z2-m>
    </axis>
  </animation>

  <!-- Cables des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>cable1G</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -0.67585 </x-m>
      <y-m> -3.61531 </y-m>
      <z-m> -0.23456 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cable2G</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -0.44982 </x-m>
      <y-m> -3.61531 </y-m>
      <z-m> -0.26142 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cable1D</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -0.67585 </x-m>
      <y-m>  3.61531 </y-m>
      <z-m> -0.23456 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cable2D</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -0.44982 </x-m>
      <y-m>  3.61531 </y-m>
      <z-m> -0.26142 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletGH</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -1.35865 </x1-m>
      <y1-m> -2.54685 </y1-m>
      <z1-m>  1.31959 </z1-m>
      <x2-m> -1.35865 </x2-m>
      <y2-m> -1.05195 </y2-m>
      <z2-m>  1.25345 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletDH</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -1.35865 </x1-m>
      <y1-m>  1.05195 </y1-m>
      <z1-m>  1.25345 </z1-m>
      <x2-m> -1.35865 </x2-m>
      <y2-m>  2.54685 </y2-m>
      <z2-m>  1.31959 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletGB</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -0.63330 </x1-m>
      <y1-m> -2.55785 </y1-m>
      <z1-m> -0.32427 </z1-m>
      <x2-m> -0.63600 </x2-m>
      <y2-m> -1.04850 </y2-m>
      <z2-m> -0.39115 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletDB</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -0.63600 </x1-m>
      <y1-m>  1.04850 </y1-m>
      <z1-m> -0.39115 </z1-m>
      <x2-m> -0.63330 </x2-m>
      <y2-m>  2.55785 </y2-m>
      <z2-m> -0.32427 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>EnsembleG</name>
    <object-name>roueG</object-name>
    <object-name>axeG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>EnsembleG</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[10]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -10 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.39812 </x-m>
      <y-m> -0.42939 </y-m>
      <z-m> -0.36659 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>EnsembleD</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 10 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.39812 </x-m>
      <y-m>  0.42939 </y-m>
      <z-m> -0.36659 </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>roueG</object-name>
    <!-- <property>gear/gear[0]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[5]</property>
    <factor> 30 </factor>
    <axis>
      <x1-m> -2.40712 </x1-m>
      <y1-m> -1.03772 </y1-m>
      <z1-m> -1.41935 </z1-m>
      <x2-m> -2.40712 </x2-m>
      <y2-m> -1.17969 </y2-m>
      <z2-m> -1.43177 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <!-- <property>gear/gear[1]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[6]</property>
    <factor> 30 </factor>
    <axis>
      <x1-m> -2.40712 </x1-m>
      <y1-m>  1.17969 </y1-m>
      <z1-m> -1.43177 </z1-m>
      <x2-m> -2.40712 </x2-m>
      <y2-m>  1.03772 </y2-m>
      <z2-m> -1.41935 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <!-- <property>gear/gear[2]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[7]</property>
    <factor> 30 </factor>
    <center>
      <x-m>  2.74782 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.41268 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <type>pick</type>
    <object-name>tourverriere</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRverriere</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>translate</type>
    <object-name>tourverriere</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRverriere</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> 0.54 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>LesPortes</name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>LesPortes</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 175 </factor>
    <axis>
      <x1-m> -0.99420 </x1-m>
      <y1-m> -0.53977 </y1-m>
      <z1-m>  0.45402 </z1-m>
      <x2-m> -0.55238 </x2-m>
      <y2-m> -0.52839 </y2-m>
      <z2-m>  0.45664 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 175 </factor>
    <axis>
      <x1-m> -0.55238 </x1-m>
      <y1-m>  0.52839 </y1-m>
      <z1-m>  0.45664 </z1-m>
      <x2-m> -0.99420 </x2-m>
      <y2-m>  0.53977 </y2-m>
      <z2-m>  0.45402 </z2-m>
    </axis>
  </animation>

</PropertyList>
