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

<PropertyList include="Gotha-G-V-bombableinclude.xml">

  <path>GV.ac</path>

  <sound>
    <path>Aircraft/Gotha-G-V/Sounds/mp-sound.xml</path>
  </sound>

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

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>ailesB</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>montants</object-name>
    <object-name>supports</object-name>
    <object-name>tiges</object-name>
    <object-name>reservoir</object-name>
    <object-name>axesprof</object-name>
    <object-name>supportbombes</object-name>
    <object-name>bosse</object-name>

    <object-name>trous</object-name>
    <object-name>supportcables</object-name>
    <object-name>cablescontrole</object-name>
    <object-name>cables</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>patte</object-name>
    <object-name>bolG</object-name>
    <object-name>heliceG</object-name>
    <object-name>bolD</object-name>
    <object-name>heliceD</object-name>

    <!-- Objets transparents -->
    <object-name>vitre</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitre</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailesH</object-name>
    <object-name>aileronGH</object-name>
    <object-name>aileronDH</object-name>
    <object-name>aileronGB</object-name>
    <object-name>aileronDB</object-name>
    <object-name>ailesB</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>montants</object-name>
    <object-name>supports</object-name>
    <object-name>tiges</object-name>
    <object-name>reservoir</object-name>
    <object-name>axesprof</object-name>
    <object-name>supportbombes</object-name>
    <object-name>bosse</object-name>
    <object-name>trous</object-name>
    <object-name>supportcables</object-name>
    <object-name>cablescontrole</object-name>
    <object-name>cables</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <object-name>patte</object-name>
    <object-name>bolG</object-name>
    <object-name>heliceG</object-name>
    <object-name>bolD</object-name>
    <object-name>heliceD</object-name>
    <object-name>vitre</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>HDRvitre</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>

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

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitre</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>HDRvitre</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>vitre</object-name>
  </animation>

  <!-- working for compositor -->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
  </effect>

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

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

  <model>
    <path>Effects/Weapons/3D/all-bombs.xml</path>
  </model>

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

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

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

  <!-- L'hélice -->
  <animation>
    <name>HeliceG</name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>heliceG</object-name>
    <object-name>bolG</object-name>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>propblurG</object-name>
    <condition>
      <and>
        <greater-than>
          <property>engines/engine[0]/rpm</property>
          <value>400.000</value>
        </greater-than>
        <less-than>
          <property>engines/engine[0]/rpm</property>
          <value>1000.001</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceG</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1000</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceG</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> -1.72894 </x-m>
      <y-m> -2.15470 </y-m>
      <z-m>  0.23544 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- L'hélice -->
  <animation>
    <name>HeliceD</name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>heliceD</object-name>
    <object-name>bolD</object-name>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>propblurD</object-name>
    <condition>
      <and>
        <greater-than>
          <property>engines/engine[1]/rpm</property>
          <value>400.000</value>
        </greater-than>
        <less-than>
          <property>engines/engine[1]/rpm</property>
          <value>1000.001</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceD</object-name>
    <condition>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1000</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceD</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> -1.72894 </x-m>
      <y-m>  2.15470 </y-m>
      <z-m>  0.23544 </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> 4.93098 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.32885 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>axesprof</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> -15 </factor>
    <center>
      <x-m> -4.19224 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.29975 </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> 5.38404 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.85683 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Animations des 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.77533 </x1-m>
      <y1-m> -11.25098 </y1-m>
      <z1-m>   2.09802 </z1-m>
      <x2-m>  -1.97378 </x2-m>
      <y2-m>  -7.93803 </y2-m>
      <z2-m>   1.97590 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronGB</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m>  -1.80675 </x1-m>
      <y1-m> -11.11948 </y1-m>
      <z1-m>  -0.46048 </z1-m>
      <x2-m>  -1.98302 </x2-m>
      <y2-m>  -7.93236 </y2-m>
      <z2-m>  -0.59606 </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.97378 </x1-m>
      <y1-m>  7.93803 </y1-m>
      <z1-m>  1.97590 </z1-m>
      <x2-m> -1.77533 </x2-m>
      <y2-m> 11.25098 </y2-m>
      <z2-m>  2.09802 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronDB</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> -1.98302 </x1-m>
      <y1-m>  7.93236 </y1-m>
      <z1-m> -0.59606 </z1-m>
      <x2-m> -1.80675 </x2-m>
      <y2-m> 11.11948 </y2-m>
      <z2-m> -0.46048 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>rouesG</object-name>
    <!-- <property>gear/gear[0]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -3.22709 </x-m>
      <y-m> -2.16852 </y-m>
      <z-m> -1.77726 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>rouesD</object-name>
    <!-- <property>gear/gear[1]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[12]</property>
    <factor> 30 </factor>
    <center>
      <x-m> -3.22709 </x-m>
      <y-m>  2.16852 </y-m>
      <z-m> -1.77726 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
