<?xml version="1.0"?>

<PropertyList>

    <path>c172-common.ac</path>

    <offsets>
        <pitch-deg>-3.0</pitch-deg>
        <z-m>-0.065</z-m>
    </offsets>

    <!-- The human models depend on some properties (sim/model/crew/).
         Since the properties never change, we can just directly add it
         to the /ai/model/multiplay[i] tree.
    -->
    <multiplay>
        <sim>
            <model>
                <crew>
                    <pilot n="0">
                        <pose include="Aircraft/c172p/Models/Human/pose-pilot.xml"/>
                        <character>0</character>
                        <outfit>0</outfit>
                        <equipment>0</equipment>
                    </pilot>
                    <pilot n="1">
                        <pose include="Aircraft/c172p/Models/Human/pose-copilot.xml"/>
                        <character>0</character>
                        <outfit>0</outfit>
                        <equipment>0</equipment>
                    </pilot>
                </crew>
            </model>
        </sim>
    </multiplay>

    <model>
        <name>Damage</name>
        <path>Effects/damage/damage.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
        <name>PontoonDamage</name>
        <path>Effects/damage/pontoondamage.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
        <name>SkiDamage</name>
        <path>Effects/damage/skidamage.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
        <name>Bushkit</name>
        <path>Effects/bushkit/bushkit.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
        <name>Pontoon</name>
        <path>Effects/pontoon/pontoon.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <model>
        <name>Skis</name>
        <path>Effects/skis/skis.xml</path>
        <offsets>
            <x-m>0.0</x-m>
            <y-m>0.0</y-m>
            <z-m>0.0</z-m>
            <pitch-deg>0</pitch-deg>
        </offsets>
    </model>

    <nasal>
        <load>
            var livery_update = aircraft.livery_update.new(
            "Aircraft/c172p/Models/Liveries", 10,
            func { print("c172p livery update") });

            var rplayer = cmdarg();

            # Beacon and strobes lighting
            var lighting_beacon_enabled = rplayer.getNode("sim/multiplay/generic/int[12]").getPath();
            var lighting_strobes_enabled = rplayer.getNode("sim/multiplay/generic/int[13]").getPath();

            var lighting_beacon_state = rplayer.getNode("sim/model/c172p/lighting/beacon").getPath();
            var lighting_strobes_state = rplayer.getNode("sim/model/c172p/lighting/strobes").getPath();

            aircraft.light.new(lighting_beacon_state, [0.10, 0.90], lighting_beacon_enabled);
            aircraft.light.new(lighting_strobes_state, [0.015, 1.985], lighting_strobes_enabled);

            io.include("Aircraft/c172p/Nasal/registration_number.nas");

            # Registration number
            var regnum_path = rplayer.getNode("sim/multiplay/generic/string[0]").getPath();
            setlistener(regnum_path, func (node) {
                set_registration_number(rplayer, node.getValue());
            }, 1, 0);

            # Passengers
            var pax_state_path = rplayer.getNode("sim/multiplay/generic/int[16]").getPath();

            var co_pilot = rplayer.initNode("pax/co-pilot/present", 0, "BOOL");
            var left_passenger = rplayer.initNode("pax/left-passenger/present", 0, "BOOL");
            var right_passenger = rplayer.initNode("pax/right-passenger/present", 0, "BOOL");
            var pilot = rplayer.initNode("pax/pilot/present", 0, "BOOL");

            setlistener(pax_state_path, func (node) {
                var state = node.getValue();
                co_pilot.setBoolValue(bits.test(state, 0));
                left_passenger.setBoolValue(bits.test(state, 1));
                right_passenger.setBoolValue(bits.test(state, 2));
                pilot.setBoolValue(bits.test(state, 3));
            }, 1, 0);

            # Securing attributes
            var securing_state_path = rplayer.getNode("sim/multiplay/generic/int[9]").getPath();

            var pitot_cover   = rplayer.initNode("sim/model/c172p/securing/pitot-cover-visible", 0, "BOOL");
            var cowl_plugs    = rplayer.initNode("sim/model/c172p/securing/cowl-plugs-visible", 0, "BOOL");
            var wheel_chock   = rplayer.initNode("sim/model/c172p/securing/chock-visible", 0, "BOOL");
            var left_tiedown  = rplayer.initNode("sim/model/c172p/securing/tiedownL-visible", 0, "BOOL");
            var right_tiedown = rplayer.initNode("sim/model/c172p/securing/tiedownR-visible", 0, "BOOL");
            var tail_tiedown  = rplayer.initNode("sim/model/c172p/securing/tiedownT-visible", 0, "BOOL");

            setlistener(securing_state_path, func (node) {
                var state = node.getValue();
                pitot_cover.setBoolValue(bits.test(state, 0));
                wheel_chock.setBoolValue(bits.test(state, 1));
                left_tiedown.setBoolValue(bits.test(state, 2));
                right_tiedown.setBoolValue(bits.test(state, 3));
                tail_tiedown.setBoolValue(bits.test(state, 4));
                cowl_plugs.setBoolValue(bits.test(state, 5));
            }, 1, 0);

            # Make sure human occupants are always visible in remote aircraft
            rplayer.initNode("sim/model/occupants", 1, "BOOL");

            # Disable ALS 3D shadow for remote aircraft because of issue #387
            #rplayer.initNode("sim/rendering/shadow-volume", 0, "BOOL");

            # Gear
            rplayer.initNode("sim/multiplay/generic/int[6]", 0, "BOOL");
            rplayer.initNode("sim/multiplay/generic/int[7]", 0, "BOOL");
            rplayer.initNode("sim/multiplay/generic/int[8]", 0, "BOOL");

            # Bush kit
            rplayer.initNode("sim/model/variant", 0, "INT");

            # Glass Cockpit
            rplayer.initNode("sim/multiplay/generic/bool[1]", 0, "BOOL");

            # Damage
            var wings_collapsed = rplayer.initNode("sim/multiplay/generic/int[15]", 0, "INT");
            var wing_left_state = rplayer.initNode("sim/multiplay/generic/int[18]", 0, "INT");
            var wing_right_state = rplayer.initNode("sim/multiplay/generic/int[19]", 0, "INT");

            var move_nav_light_left  = rplayer.initNode("sim/model/c172p/lighting/nav-lights/left-damaged", 0, "BOOL");
            var move_nav_light_right = rplayer.initNode("sim/model/c172p/lighting/nav-lights/right-damaged", 0, "BOOL");

            setlistener(wing_left_state.getPath(), func (node) {
                var move = node.getValue() == 2 and !wings_collapsed.getBoolValue();
                move_nav_light_left.setBoolValue(move);
            }, 1, 0);

            setlistener(wing_right_state.getPath(), func (node) {
                var move = node.getValue() == 2 and !wings_collapsed.getBoolValue();
                move_nav_light_right.setBoolValue(move);
            }, 1, 0);

            setlistener(wings_collapsed.getPath(), func (node) {
                var move = wing_left_state.getValue() == 2 and !node.getBoolValue();
                move_nav_light_left.setBoolValue(move);

                var move = wing_right_state.getValue() == 2 and !node.getBoolValue();
                move_nav_light_right.setBoolValue(move);
            }, 1, 0);
        </load>
        <unload>
            livery_update.stop();
        </unload>
    </nasal>

    <params>
        <lighting>
            <navigation>sim/multiplay/generic/int[14]</navigation>
            <beacon>sim/model/c172p/lighting/beacon/state</beacon>
            <strobes>sim/model/c172p/lighting/strobes/state</strobes>
            <taxi>
                <property>sim/multiplay/generic/int[4]</property>
            </taxi>
            <landing>
                <property>sim/multiplay/generic/int[5]</property>
            </landing>
        </lighting>
        <doors>
            <left>
                <property>sim/multiplay/generic/float[1]</property>
            </left>
            <right>
                <property>sim/multiplay/generic/float[0]</property>
            </right>
            <baggage>
                <property>sim/multiplay/generic/float[2]</property>
            </baggage>
            <oil>
                <property>sim/multiplay/generic/float[18]</property>
            </oil>
            <glovebox>
                <property>sim/multiplay/generic/float[19]</property>
            </glovebox>
        </doors>
        <windows>
            <left>sim/multiplay/generic/float[3]</left>
            <right>sim/multiplay/generic/float[4]</right>
        </windows>
        <crash>
            <property>sim/multiplay/generic/int[15]</property>
        </crash>
        <gear_nose_broken>
            <property>sim/multiplay/generic/int[6]</property>
        </gear_nose_broken>
        <gear_left_broken>
            <property>sim/multiplay/generic/int[7]</property>
        </gear_left_broken>
        <gear_right_broken>
            <property>sim/multiplay/generic/int[8]</property>
        </gear_right_broken>
        <bushkit>sim/model/variant</bushkit>
        <gear-ski>
            <ski-nose-rollspeed-ms>rotors/main/blade[0]/position-deg</ski-nose-rollspeed-ms>
            <ski-left-rollspeed-ms>rotors/main/blade[1]/position-deg</ski-left-rollspeed-ms>
            <ski-right-rollspeed-ms>rotors/main/blade[2]/position-deg</ski-right-rollspeed-ms>
        </gear-ski>

        <!-- 0 = normal, 1 = broken, 2 = damaged -->
        <pontoon_left_damaged>
            <property>sim/multiplay/generic/int[10]</property>
        </pontoon_left_damaged>
        <pontoon_right_damaged>
            <property>sim/multiplay/generic/int[11]</property>
        </pontoon_right_damaged>

        <!-- 0 = normal, 1 = broken, 2 = damaged -->
        <wing_left_damaged>
            <property>sim/multiplay/generic/int[18]</property>
        </wing_left_damaged>
        <wing_right_damaged>
            <property>sim/multiplay/generic/int[19]</property>
        </wing_right_damaged>

        <gear>
            <nose-rollspeed-ms>engines/engine[7]/rpm</nose-rollspeed-ms>
            <left-rollspeed-ms>engines/engine[7]/n1</left-rollspeed-ms>
            <right-rollspeed-ms>engines/engine[7]/n2</right-rollspeed-ms>
        </gear>
        <gear-amphibious>
            <front-left-compression-ft>engines/engine[3]/n1</front-left-compression-ft>
            <front-left-position-norm>engines/engine[3]/n2</front-left-position-norm>
            <front-left-rollspeed-ms>engines/engine[3]/rpm</front-left-rollspeed-ms>
            <front-right-compression-ft>engines/engine[4]/n1</front-right-compression-ft>
            <front-right-position-norm>engines/engine[4]/n2</front-right-position-norm>
            <front-right-rollspeed-ms>engines/engine[4]/rpm</front-right-rollspeed-ms>
            <rear-left-compression-ft>engines/engine[5]/n1</rear-left-compression-ft>
            <rear-left-position-norm>engines/engine[5]/n2</rear-left-position-norm>
            <rear-left-rollspeed-ms>engines/engine[5]/rpm</rear-left-rollspeed-ms>
            <rear-right-compression-ft>engines/engine[6]/n1</rear-right-compression-ft>
            <rear-right-position-norm>engines/engine[6]/n2</rear-right-position-norm>
            <rear-right-rollspeed-ms>engines/engine[6]/rpm</rear-right-rollspeed-ms>
        </gear-amphibious>

        <water-rudder-norm>sim/multiplay/generic/float[5]</water-rudder-norm>
        <engine>
            <rpm>engines/engine[2]/rpm</rpm>
            <crashed>sim/multiplay/generic/int[3]</crashed>
        </engine>

        <securing>
            <pitot-cover>sim/model/c172p/securing/pitot-cover-visible</pitot-cover>
            <chocks>sim/model/c172p/securing/chock-visible</chocks>
            <cowl-plugs>sim/model/c172p/securing/cowl-plugs-visible</cowl-plugs>
            <tiedowns>
                <left>
                    <visible>sim/model/c172p/securing/tiedownL-visible</visible>
                </left>
                <right>
                    <visible>sim/model/c172p/securing/tiedownR-visible</visible>
                </right>
                <tail>
                    <visible>sim/model/c172p/securing/tiedownT-visible</visible>
                </tail>
            </tiedowns>
        </securing>

        <!-- TODO To be made MP properties in the future when we get passengers or dual-control -->
        <controls>
            <throttle>/controls/engines/current-engine/throttle</throttle>
            <altstaticair>/controls/engines/current-engine/altstaticair</altstaticair>
            <mixture>/controls/engines/current-engine/mixture</mixture>
            <carb-heat>/controls/engines/current-engine/carb-heat</carb-heat>
            <parking-lever>/sim/model/c172p/cockpit/parking-lever</parking-lever>
            <carb-heat-animation>/sim/model/c172p/cockpit/carb-heat-animation</carb-heat-animation>
            <primer-lever-animation>/sim/model/c172p/cockpit/primer-lever-animation</primer-lever-animation>
            <water-rudder-animation>/sim/model/c172p/cockpit/water-rudder-animation</water-rudder-animation>
        </controls>
        <air-vents>
            <front-left>/controls/climate-control/overhead-vent-front-left</front-left>
            <front-right>/controls/climate-control/overhead-vent-front-right</front-right>
        </air-vents>
        <glass>sim/multiplay/generic/bool[1]</glass>
    </params>

    <!-- exterior effects -->
    <!-- Normal shader effect. Separate effects required for each normal map and dirt texture -->
    <effect>
        <inherits-from>Effects/exterior/dirt-leading-edge</inherits-from>
        <object-name>wing_leading_edge_left</object-name>
        <object-name>wing_leading_edge_right</object-name>
        <object-name>wing_leading_edge_center</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/exterior/dirt-wing</inherits-from>
        <object-name>flaps</object-name>
        <object-name>leftaileron</object-name>
        <object-name>rightaileron</object-name>
        <object-name>wing_left</object-name>
        <object-name>wing_center</object-name>
        <object-name>wing_right</object-name>
        <object-name>PitotTube</object-name>
        <object-name>courtesyoff</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/exterior/dirt-fuselage</inherits-from>
        <object-name>NoseWheelStrut</object-name>
        <object-name>LeftWheelStrut</object-name>
        <object-name>RightWheelStrut</object-name>
        <object-name>baggagedoorexterior</object-name>
        <object-name>baggagedoorhandle</object-name>
        <object-name>charniere1</object-name>
        <object-name>charniere2</object-name>
        <object-name>charniere3</object-name>
        <object-name>charniere4</object-name>
        <object-name>fairing1</object-name>
        <object-name>fairing2</object-name>
        <object-name>fairing3</object-name>
        <object-name>fuselage</object-name>
        <object-name>fuselage_cowling</object-name>
        <object-name>fuselage_cowling_top</object-name>
        <object-name>leftdoor</object-name>
        <object-name>leftdoorhandle</object-name>
        <object-name>rightdoor</object-name>
        <object-name>rightdoorhandle</object-name>
        <object-name>Spinner</object-name>
        <object-name>Propeller</object-name>
        <object-name>PropellerCowlPlugs</object-name>
        <object-name>NoseWheel</object-name>
        <object-name>LeftWheel</object-name>
        <object-name>RightWheel</object-name>
        <object-name>LeftWheelBrake</object-name>
        <object-name>RightWheelBrake</object-name>
        <object-name>radi_box</object-name>
        <object-name>TieDownTail</object-name>
        <object-name>TieDownRight</object-name>
        <object-name>TieDownLeft</object-name>
        <object-name>TransponderAntenna</object-name>
        <object-name>MarkerAntenna</object-name>
        <object-name>Antenna_ADF</object-name>
        <object-name>Antenna_VOR</object-name>
        <object-name>VHFAntenna</object-name>
        <object-name>ELTAntenna</object-name>
        <object-name>BeaconMount</object-name>
        <object-name>Beacon</object-name>
        <object-name>Exhaust</object-name>
        <object-name>Axle</object-name>
        <object-name>ruddercableleft</object-name>
        <object-name>ruddercableright</object-name>
        <object-name>ruddercableports</object-name>
        <object-name>ruddercablelefthinge</object-name>
        <object-name>ruddercablerighthinge</object-name>
        <object-name>windowframeleftext</object-name>
        <object-name>windowframerightext</object-name>
        <object-name>oildoor</object-name>
        <object-name>vent</object-name>
        <object-name>handle</object-name>
        <object-name>airvent</object-name>
        <object-name>LeftNavLight</object-name>
        <object-name>RightNavLight</object-name>
        <object-name>fuelvent</object-name>
    </effect>

    <effect>
        <inherits-from>Effects/exterior/bumpspec</inherits-from>
        <object-name>oilcompartment</object-name>
        <object-name>OilCap</object-name>
        <object-name>wing_0</object-name>
        <object-name>wing_1Ledge</object-name>
        <object-name>wing_1Redge</object-name>
        <object-name>FuelCapPort</object-name>
        <object-name>FuelCapStarboard</object-name>
        <object-name>fuelportstarport</object-name>
        <object-name>fuelportstarboard</object-name>
        <object-name>fuelcompartment</object-name>
        <object-name>lighttaxi</object-name>
        <object-name>lightlanding</object-name>
    </effect>

    <effect>
        <inherits-from>Effects/exterior/dirt-tail</inherits-from>
        <object-name>elevatorleft</object-name>
        <object-name>elevatorright</object-name>
        <object-name>elevatortrim</object-name>
        <object-name>hstab</object-name>
        <object-name>rudder_1</object-name>
        <object-name>vstab</object-name>
        <object-name>RearNavLight</object-name>
    </effect>

    <effect>
        <inherits-from>Effects/model-transparent</inherits-from>
        <object-name>BeaconOffX</object-name>
        <object-name>BeaconOff</object-name>
        <object-name>Propeller.Fast</object-name>
        <object-name>navlight_left</object-name>
        <object-name>navlight_right</object-name>
        <object-name>navlight_back</object-name>
    </effect>

    <effect>
        <inherits-from>Effects/exterior/exterior-glass-reflection</inherits-from>
        <object-name>glas</object-name>
        <object-name>leftwindow</object-name>
        <object-name>rightwindow</object-name>
        <object-name>landinglightcover</object-name>
    </effect>

    <!-- Specularity fix -->
    <animation>
        <type>material</type>
        <object-name>LeftWheelStrut</object-name>
        <object-name>RightWheelStrut</object-name>
        <object-name>LeftWheelBrake</object-name>
        <object-name>RightWheelBrake</object-name>
        <object-name>baggagedoorexterior</object-name>
        <object-name>elevatorleft</object-name>
        <object-name>elevatorright</object-name>
        <object-name>elevatortrim</object-name>
        <object-name>fairing1</object-name>
        <object-name>fairing2</object-name>
        <object-name>fairing3</object-name>
        <object-name>Axle</object-name>
        <object-name>flaps</object-name>
        <object-name>fuselage</object-name>
        <object-name>fuselage_cowling</object-name>
        <object-name>fuselage_cowling_top</object-name>
        <object-name>hstab</object-name>
        <object-name>leftaileron</object-name>
        <object-name>leftdoor</object-name>
        <object-name>rightaileron</object-name>
        <object-name>rightdoor</object-name>
        <object-name>rudder_1</object-name>
        <object-name>vstab</object-name>
        <object-name>wing_left</object-name>
        <object-name>wing_center</object-name>
        <object-name>wing_right</object-name>
        <object-name>wing_leading_edge_left</object-name>
        <object-name>wing_leading_edge_right</object-name>
        <object-name>wing_leading_edge_center</object-name>
        <object-name>wing_1Ledge</object-name>
        <object-name>wing_1Redge</object-name>
        <object-name>Spinner</object-name>
        <object-name>radi_box</object-name>
        <object-name>ruddercableports</object-name>
        <object-name>ruddercablelefthinge</object-name>
        <object-name>ruddercablerighthinge</object-name>
        <object-name>oildoor</object-name>
        <object-name>vent</object-name>
        <object-name>airvent</object-name>
        <object-name>fuelvent</object-name>
        <object-name>Antenna_ADF</object-name>
        <shininess>116</shininess>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
        </specular>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
        </ambient>
    </animation>

    <!-- Specularity fix -->
    <animation>
        <type>material</type>
        <object-name>charniere1</object-name>
        <object-name>charniere2</object-name>
        <object-name>charniere3</object-name>
        <object-name>charniere4</object-name>
        <object-name>NoseWheelStrut</object-name>
        <object-name>leftdoorhandle</object-name>
        <object-name>rightdoorhandle</object-name>
        <object-name>baggagedoorhandle</object-name>
        <object-name>windowframeleftext</object-name>
        <object-name>windowframerightext</object-name>
        <object-name>FuelCapPort</object-name>
        <object-name>FuelCapStarboard</object-name>
        <object-name>OilCap</object-name>
        <object-name>handle</object-name>
        <object-name>BeaconMount</object-name>
        <object-name>Beacon</object-name>
        <object-name>courtesyoff</object-name>
        <object-name>lighttaxi</object-name>
        <object-name>lightlanding</object-name>
        <object-name>LeftNavLight</object-name>
        <object-name>RightNavLight</object-name>
        <object-name>RearNavLight</object-name>
        <shininess>128</shininess>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
        </specular>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
        </ambient>
    </animation>

    <!-- interior effects -->
    <effect>
        <inherits-from>Effects/interior/c172p-interior</inherits-from>
        <object-name>wing_1C</object-name>
        <object-name>SeatMounts.0</object-name>
        <object-name>SeatMounts.1</object-name>
        <object-name>SeatMounts.2</object-name>
    </effect>
    <effect>
        <inherits-from>Aircraft/c172p/Models/Effects/interior/lm-interior-panel-parts</inherits-from>
        <object-name>gloveboxlock</object-name>
    </effect>
    <effect>
        <inherits-from>Aircraft/c172p/Models/Effects/interior/lm-interior-panel</inherits-from>
        <object-name>gloveboxdoor</object-name>
    </effect>

    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-reflection-front</inherits-from>
        <object-name>glas_interior</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-front-sides</inherits-from>
        <object-name>glas_front_interior_sides</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-window-left</inherits-from>
        <object-name>leftwindow_interior</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-window-right</inherits-from>
        <object-name>rightwindow_interior</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-back-sides</inherits-from>
        <object-name>glas_interior_sides</object-name>
    </effect>
    <effect>
        <inherits-from>Effects/interior/c172p-interior-glass-back</inherits-from>
        <object-name>glas_interior_back</object-name>
    </effect>

    <!-- Gear Damage Spark and Smoke Mod -->
    <model>
        <path>Effects/damage/nose_gear.xml</path>
        <offsets>
            <x-m> -.85 </x-m>
            <y-m>  0.0000 </y-m>
            <z-m> -.98 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/damage/left_gear.xml</path>
        <offsets>
            <x-m> -0.7 </x-m>
            <y-m> -1.9 </y-m>
            <z-m> -0.95 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/damage/right_gear.xml</path>
        <offsets>
            <x-m> -0.7 </x-m>
            <y-m> 1.9 </y-m>
            <z-m> -0.95 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/damage/tail.xml</path>
        <offsets>
            <x-m>  4.9264 </x-m>
            <y-m>  0.0000 </y-m>
            <z-m> -0.6</z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/damage/wing-left.xml</path>
        <offsets>
            <x-m> .15 </x-m>
            <y-m> -5.6338 </y-m>
            <z-m> 0.49 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/damage/wing-right.xml</path>
        <offsets>
            <x-m> .15 </x-m>
            <y-m> 5.6338 </y-m>
            <z-m> 0.49 </z-m>
        </offsets>
    </model>

    <!-- Pontoon Damage Spark and Smoke Mod -->
    <model>
        <path>Effects/pontoon/left_ground.xml</path>
        <offsets>
            <x-m> -0.7 </x-m>
            <y-m> -1.9 </y-m>
            <z-m> -1.8 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/pontoon/right_ground.xml</path>
        <offsets>
            <x-m> -0.7 </x-m>
            <y-m>  1.9 </y-m>
            <z-m> -1.8 </z-m>
        </offsets>
    </model>

    <!-- Ski Damage Spark Mod -->
    <model>
        <path>Effects/skis/nose_gear.xml</path>
        <offsets>
            <x-m>  -.85 </x-m>
            <y-m>  -.0  </y-m>
            <z-m> -1.15 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/skis/left_gear.xml</path>
        <offsets>
            <x-m>  0.7  </x-m>
            <y-m> -1.35 </y-m>
            <z-m> -1.15 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/skis/right_gear.xml</path>
        <offsets>
            <x-m>  1.10 </x-m>
            <y-m>  0.91 </y-m>
            <z-m> -1.15 </z-m>
        </offsets>
    </model>

    <!-- Registration number -->
    <model>
        <path>Immat/immat.xml</path>
    </model>

    <model>
        <name>MooringHarness</name>
        <path>Effects/pontoon/mooringharness.xml</path>
    </model>

    <model>
        <path>Aircraft/Generic/marker.xml</path>
    </model>

    <!-- Instrumentation -->

    <model>
        <name>c172sp</name>
        <path>Interior/Panel/c172sp-panel/c172sp.xml</path>
        <condition>
            <property alias="/params/glass"/>
        </condition>
    </model>

    <model>
        <name>c172p</name>
        <path>Interior/Panel/c172p-panel/c172p.xml</path>
        <condition>
            <not>
                <property alias="/params/glass"/>
            </not>
        </condition>
    </model>

    <model>
        <name>ControlLock</name>
        <path>Interior/control-lock/control-lock.xml</path>
    </model>

    <!-- MOD: OAT -->
    <model>
        <name>OAT-object</name>
        <path>Interior/Panel/Instruments/oat/oat.xml</path>
    </model>
    <!-- MODEND -->

    <!-- Pedals -->
    <model>
        <name>PilotPedals</name>
        <path>Interior/Pedals/pedals-pilot.xml</path>
        <offsets>
            <x-m>-0.56</x-m>
            <y-m>-0.24</y-m>
            <z-m>-0.61</z-m>
        </offsets>
    </model>
    <model>
        <name>CoPilotPedals</name>
        <path>Interior/Pedals/pedals-copilot.xml</path>
        <offsets>
            <x-m>-0.56</x-m>
            <y-m> 0.24</y-m>
            <z-m>-0.61</z-m>
        </offsets>
    </model>

    <!--Exhaust-->
    <model>
        <object-name>Exhaust</object-name>
        <path>Effects/exhaust/exhaust.xml</path>
        <offsets>
            <x-m>-1.3093</x-m>
            <y-m>0.324625</y-m>
            <z-m>-0.782313</z-m>
        </offsets>
    </model>

    <!--Exhaust-->
    <model>
        <object-name>Exhaust</object-name>
        <path>Effects/damage-smoke/smoke.xml</path>
        <offsets>
            <x-m>-1.3093</x-m>
            <y-m>0.324625</y-m>
            <z-m>-0.782313</z-m>
        </offsets>
    </model>

    <!-- MOD: Tyre smoke -->
    <model>
        <path>Effects/tyresmoke/tyre-smoke-nose.xml</path>
        <object-name>tyre-smoke-n</object-name>
        <offsets>
            <x-m> -1. </x-m>
            <y-m>  0.0 </y-m>
            <z-m> -1.5 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/tyresmoke/tyre-smoke-port.xml</path>
        <object-name>tyre-smoke-p</object-name>
        <offsets>
            <x-m> .3 </x-m>
            <y-m> -1.15 </y-m>
            <z-m> -1.5 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/tyresmoke/tyre-smoke-stbd.xml</path>
        <object-name>tyre-smoke-s</object-name>
        <offsets>
            <x-m> .3 </x-m>
            <y-m> 1.15 </y-m>
            <z-m> -1.5 </z-m>
        </offsets>
    </model>
    <!-- MODEND: Tyre smoke -->

    <!-- MOD: Tyre Spray -->
    <model>
        <path>Effects/tyrespray/rain-nose.xml</path>
        <name>rain-nose</name>
        <offsets>
            <x-m> -1. </x-m>
            <y-m>  0.0 </y-m>
            <z-m> -1.5 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/tyrespray/rain-port.xml</path>
        <name>rain-port</name>
        <offsets>
            <x-m> .3 </x-m>
            <y-m> -1.15 </y-m>
            <z-m> -1.5 </z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/tyrespray/rain-stbd.xml</path>
        <name>rain-stbd</name>
        <offsets>
            <x-m>0.1</x-m>
            <y-m>0.9</y-m>
            <z-m>-1.85</z-m>
        </offsets>
    </model>
    <!-- MODEND: Tyre Spray -->

    <!-- MOD: Prop Spray -->
    <model>
        <path>Effects/propspray/rain-nose-propeller.xml</path>
        <name>rain-nose-propeller</name>
        <offsets>
            <x-m> -6.0 </x-m>
            <y-m> 0.0 </y-m>
            <z-m> 0.0 </z-m>
        </offsets>
    </model>
    <!-- MODEND: Prop Spray -->

    <!-- MOD: Floats Spray-->
    <model>
        <path>Effects/pontoon/left-spray.xml</path>
        <name>spray-left</name>
        <offsets>
            <x-m>-1.0</x-m>
            <y-m>-1.2</y-m>
            <z-m>-2.0</z-m>
        </offsets>
    </model>
    <model>
        <path>Effects/pontoon/right-spray.xml</path>
        <name>spray-right</name>
        <offsets>
            <x-m>-1.0</x-m>
            <y-m>1.15</y-m>
            <z-m>-2.0</z-m>
        </offsets>
    </model>
    <!-- MODEND: Floats Spray-->

    <!-- MOD: Floats Wake-->
    <model>
        <path>Effects/pontoon/left-wake.xml</path>
        <name>spray-wake</name>
        <offsets>
            <x-m>1</x-m>
            <y-m>-1.2</y-m>
            <z-m>-4.25</z-m>
            <pitch-deg> -50 </pitch-deg>
        </offsets>
    </model>
    <model>
        <path>Effects/pontoon/right-wake.xml</path>
        <name>spray-wake</name>
        <offsets>
            <x-m>1</x-m>
            <y-m>1.15</y-m>
            <z-m>-4.25</z-m>
            <pitch-deg> -50 </pitch-deg>
        </offsets>
    </model>
    <model>
        <path>Effects/pontoon/middle-wake.xml</path>
        <name>spray-wake</name>
        <offsets>
            <x-m>1</x-m>
            <y-m>0</y-m>
            <z-m>-4.25</z-m>
            <pitch-deg> -55 </pitch-deg>
        </offsets>
    </model>
    <!-- MODEND: Floats Wake-->

    <model>
        <path>Effects/pontoon/eng-spray.xml</path>
        <name>eng-spray</name>
        <offsets>
            <x-m>-1.0 </x-m>
            <y-m> 1.15</y-m>
            <z-m>-5.0 </z-m>
        </offsets>
    </model>

    <!-- Labels activated by hotspots -->
    <text>
        <name>LabelMagCompass</name>
        <type type="string">literal</type>
        <text type="string">Magnetic Compass</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.3</x-m>
            <y-m>-0.02</y-m>
            <z-m>0.220</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelGloveBox</name>
        <type type="string">literal</type>
        <text type="string">Glove Box</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.34</x-m>
            <y-m> 0.37</y-m>
            <z-m>-0.222</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelTrim</name>
        <type type="string">literal</type>
        <text type="string">Elevator Trim</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.24</x-m>
            <y-m>-0.10</y-m>
            <z-m>-0.34723</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelFlaps</name>
        <type type="string">literal</type>
        <text type="string">Flaps</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.34</x-m>
            <y-m> 0.16</y-m>
            <z-m>-0.20</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelCabinHeat</name>
        <type type="string">literal</type>
        <text type="string">Cabin Heat</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.34</x-m>
            <y-m> 0.275</y-m>
            <z-m>-0.210</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelCabinAir</name>
        <type type="string">literal</type>
        <text type="string">Cabin Air</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>yz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.34</x-m>
            <y-m> 0.275</y-m>
            <z-m>-0.26</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelAirVentLeft</name>
        <type type="string">literal</type>
        <text type="string">Air Vent</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">-1.0</character-aspect-ratio>
        <axis-alignment>xz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">24</width>
            <height type="int">24</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>-0.01</x-m>
            <y-m>-0.50</y-m>
            <z-m> 0.42</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelAirVentRight</name>
        <type type="string">literal</type>
        <text type="string">Air Vent</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>xz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.07</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>0.03</x-m>
            <y-m>0.50</y-m>
            <z-m>0.44007</z-m>
        </offsets>
    </text>
    <text>
        <name>LabelOAT</name>
        <type type="string">literal</type>
        <text type="string">Air Temperature</text>
        <draw-text type="bool">true</draw-text>
        <font>Helvetica.txf</font>
        <character-size type="double">0.012</character-size>
        <character-aspect-ratio type="double">1.0</character-aspect-ratio>
        <axis-alignment>xz-plane</axis-alignment>
        <max-height>0.2</max-height>
        <max-width>0.10</max-width>
        <font-resolution>
            <width type="int">32</width>
            <height type="int">32</height>
        </font-resolution>
        <alignment>center-center</alignment>
        <offsets>
            <x-m>0.01</x-m>
            <y-m>0.46</y-m>
            <z-m>0.485</z-m>
        </offsets>
    </text>

    <animation>
        <type>material</type>
        <object-name>LabelMagCompass</object-name>
        <object-name>LabelTrim</object-name>
        <object-name>LabelGloveBox</object-name>
        <object-name>LabelAirVentLeft</object-name>
        <object-name>LabelAirVentRight</object-name>
        <object-name>LabelOAT</object-name>
        <object-name>LabelCabinHeat</object-name>
        <object-name>LabelCabinAir</object-name>
        <object-name>LabelFlaps</object-name>
        <emission>
            <red>1.0</red>
            <green>0.8</green>
            <blue>0.0</blue>
        </emission>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LabelMagCompass</object-name>
        <object-name>LabelTrim</object-name>
        <object-name>LabelGloveBox</object-name>
        <object-name>LabelAirVentLeft</object-name>
        <object-name>LabelAirVentRight</object-name>
        <object-name>LabelOAT</object-name>
        <object-name>LabelCabinHeat</object-name>
        <object-name>LabelCabinAir</object-name>
        <object-name>LabelFlaps</object-name>
        <condition>
            <property>sim/panel-hotspots</property>
        </condition>
    </animation>

    <!-- Visors -->
    <animation>
        <type>knob</type>
        <object-name>visorleft</object-name>
        <object-name>visorleft-fg1000</object-name>
        <property>controls/visors/left/visor-position-deg</property>
        <factor>1</factor>
        <drag-direction>vertical</drag-direction>
        <offset-deg>0</offset-deg>
        <center>
            <x-m> 0.10223</x-m>
            <y-m>-0.37058</y-m>
            <z-m> 0.4589</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/visors/left/visor-position-deg</property>
                <factor>5</factor>
                <min>10</min>
                <max>90</max>
                <wrap>false</wrap>
            </binding>
        </action>
    </animation>
    <animation>
        <type>knob</type>
        <object-name>visorright</object-name>
        <object-name>visorright-fg1000</object-name>
        <property>controls/visors/right/visor-position-deg</property>
        <factor>1</factor>
        <drag-direction>vertical</drag-direction>
        <offset-deg>0</offset-deg>
        <center>
            <x-m>0.10134</x-m>
            <y-m>0.37116</y-m>
            <z-m>0.45852</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/visors/right/visor-position-deg</property>
                <factor>5</factor>
                <min>10</min>
                <max>90</max>
                <wrap>false</wrap>
            </binding>
        </action>
    </animation>
    <animation>
        <type>knob</type>
        <object-name>visorrodleft</object-name>
        <object-name>visorleft</object-name>
        <object-name>visorrodleft-fg1000</object-name>
        <object-name>visorleft-fg1000</object-name>
        <property>controls/visors/left/rod-position-deg</property>
        <factor>1</factor>
        <drag-direction>horizontal</drag-direction>
        <offset-deg>0</offset-deg>
        <center>
            <x-m> 0.10647</x-m>
            <y-m>-0.40846</y-m>
            <z-m> 0.47832</z-m>
        </center>
        <axis>
            <x>.3</x>
            <y>.03</y>
            <z>1</z>
        </axis>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/visors/left/rod-position-deg</property>
                <factor>5</factor>
                <min>-30</min>
                <max>12</max>
                <wrap>false</wrap>
            </binding>
        </action>
    </animation>
    <animation>
        <type>knob</type>
        <object-name>visorrodright</object-name>
        <object-name>visorright</object-name>
        <object-name>visorrodright-fg1000</object-name>
        <object-name>visorright-fg1000</object-name>
        <property>controls/visors/right/rod-position-deg</property>
        <factor>1</factor>
        <drag-direction>horizontal</drag-direction>
        <offset-deg>0</offset-deg>
        <center>
            <x-m>0.1063 </x-m>
            <y-m>0.40887</y-m>
            <z-m>0.48035</z-m>
        </center>
        <axis>
            <x>-.3</x>
            <y>-.03</y>
            <z>-1</z>
        </axis>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/visors/right/rod-position-deg</property>
                <factor>5</factor>
                <min>-30</min>
                <max>12</max>
                <wrap>false</wrap>
            </binding>
        </action>
    </animation>

    <!-- MOD: animation for the checklists -->
    <animation>
        <type>pick</type>
        <object-name>LeftBag</object-name>
        <object-name>LeftBag-fg1000</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>dialog-show</command>
                <dialog-name>checklist</dialog-name>
            </binding>
            <binding>
                <command>nasal</command>
                <script>c172p.click("checklist1", 1.2)</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>checklist</tooltip-id>
                <label>Show checklists</label>
            </binding>
        </hovered>
    </animation>
    <!-- MODEND -->

    <!-- Cabin heat and Air -->
    <animation>
        <type>slider</type>
        <object-name>CabinHeat</object-name>
        <object-name>CabinHeat-fg1000</object-name>
        <visible>true</visible>
        <drag-direction>vertical</drag-direction>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/environment/aircraft-effects/cabin-heat-set</property>
                <factor>-0.05</factor>
                <min>0</min>
                <max>1</max>
                <wrap>0</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Cabin Heat: %3d%%</label>
                <measure-text>Cabin Heat: 100%</measure-text>
                <tooltip-id>cabinheat</tooltip-id>
                <mapping>percent</mapping>
                <property>/environment/aircraft-effects/cabin-heat-set</property>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>CabinHeat</object-name>
        <object-name>CabinHeat-fg1000</object-name>
        <property>/environment/aircraft-effects/cabin-heat-set</property>
        <factor>0.03</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>slider</type>
        <object-name>CabinAir</object-name>
        <object-name>CabinAir-fg1000</object-name>
        <visible>true</visible>
        <drag-direction>vertical</drag-direction>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/environment/aircraft-effects/cabin-air-set</property>
                <factor>-0.05</factor>
                <min>0</min>
                <max>1</max>
                <wrap>0</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Cabin Air: %3d%%</label>
                <measure-text>Cabin Air: 100%</measure-text>
                <tooltip-id>cabinair</tooltip-id>
                <mapping>percent</mapping>
                <property>/environment/aircraft-effects/cabin-air-set</property>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>CabinAir</object-name>
        <object-name>CabinAir-fg1000</object-name>
        <property>/environment/aircraft-effects/cabin-air-set</property>
        <factor>0.03</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>slider</type>
        <object-name>AirVent_left</object-name>
        <object-name>AirVent_left-fg1000</object-name>
        <visible>true</visible>
        <drag-direction>horizontal</drag-direction>
        <drag-scale-px>-10.0</drag-scale-px>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/controls/climate-control/overhead-vent-front-left</property>
                <factor>-0.05</factor>
                <min>0</min>
                <max>1</max>
                <wrap>false</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Air Vent: %3d%%</label>
                <measure-text>Air Vent: 100%</measure-text>
                <tooltip-id>air-vent-front-left</tooltip-id>
                <mapping>percent</mapping>
                <property alias="/params/air-vents/front-left"/>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>AirVent_left</object-name>
        <object-name>AirVent_left-fg1000</object-name>
        <property alias="/params/air-vents/front-left"/>
        <factor>0.02537</factor>
        <offset-m>-0.02537</offset-m>
        <axis>
            <y>1.0</y>
        </axis>
    </animation>

    <animation>
        <type>slider</type>
        <object-name>AirVent_right</object-name>
        <object-name>AirVent_right-fg1000</object-name>
        <object-name>OAT-object</object-name>
        <object-name>glass_oat</object-name>
        <visible>true</visible>
        <drag-direction>horizontal</drag-direction>
        <drag-scale-px>10.0</drag-scale-px>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/controls/climate-control/overhead-vent-front-right</property>
                <factor>-0.05</factor>
                <min>0</min>
                <max>1</max>
                <wrap>false</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Air Vent: %3d%%</label>
                <measure-text>Air Vent: 100%</measure-text>
                <tooltip-id>air-vent-front-right</tooltip-id>
                <mapping>percent</mapping>
                <property alias="/params/air-vents/front-right"/>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>AirVent_right</object-name>
        <object-name>AirVent_right-fg1000</object-name>
        <object-name>OAT-object</object-name>
        <object-name>glass_oat</object-name>
        <property alias="/params/air-vents/front-right"/>
        <factor>-0.050</factor>
        <offset-m>0.050</offset-m>
        <axis>
            <y>1.0</y>
        </axis>
    </animation>

    <!-- Animate the pilot seat (optional) -->
    <!--
    <animation>
        <type>translate</type>
        <object-name>pilotseat_left</object-name>
        <property>sim/current-view/user/y-offset-m</property>
        <factor>1</factor>
        <offset-m>-0.208</offset-m>
        <axis>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>pilotseat_left</object-name>
        <property>sim/current-view/user/z-offset-m</property>
        <factor>1</factor>
        <offset-m>-0.36</offset-m>
        <axis>
            <x>1.0</x>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>pilotseat_left</object-name>
        <property>sim/current-view/user/pitch-offset-deg</property>
        <factor>1</factor>
        <offset-deg>0.12</offset-deg>
        <axis>
            <x1-m> 0.17429</x1-m>
            <y1-m>-0.37445</y1-m>
            <z1-m>-0.61057</z1-m>
            <x2-m> 0.17429</x2-m>
            <y2-m>-0.10364</y2-m>
            <z2-m>-0.61055</z2-m>
        </axis>
    </animation>
    -->

    <!-- Pick animation for the doors -->
    <animation>
        <type>pick</type>
        <object-name>rightdoorhandle</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.rightDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-handle-r</tooltip-id>
                <label>Open/Close Right Door</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>doorhandleint_right</object-name>
        <object-name>doorhandleint_right-fg1000</object-name>
        <condition>
            <equals>
                <property>/sim/model/door-positions/rightDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.rightDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-handle-int-r</tooltip-id>
                <label>Open Right Door</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>doorintstrapright</object-name>
        <object-name>doorintstrapright-fg1000</object-name>
        <condition>
            <equals>
                <property>/sim/model/door-positions/rightDoor/opened</property>
                <value>1.0</value>
            </equals>
        </condition>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.rightDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-strap-r</tooltip-id>
                <label>Close Right Door</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>leftdoorhandle</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.leftDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-handle-l</tooltip-id>
                <label>Open/Close Left Door</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>doorhandleint_left</object-name>
        <object-name>doorhandleint_left-fg1000</object-name>
        <condition>
            <equals>
                <property>/sim/model/door-positions/leftDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.leftDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-handle-int-l</tooltip-id>
                <label>Open Left Door</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>doorintstrapleft</object-name>
        <object-name>doorintstrapleft-fg1000</object-name>
        <condition>
            <equals>
                <property>/sim/model/door-positions/leftDoor/opened</property>
                <value>1.0</value>
            </equals>
        </condition>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.leftDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-strap-l</tooltip-id>
                <label>Close Left Door</label>
            </binding>
        </hovered>
    </animation>

    <!-- Pick animation for the windows -->
    <animation>
        <type>pick</type>
        <object-name>windlocket_left</object-name>
        <object-name>windlocket_left-fg1000</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.leftWindow.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>window-handle-l</tooltip-id>
                <label>Open/Close Left Window</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>windlocket_right</object-name>
        <object-name>windlocket_right-fg1000</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.rightWindow.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>window-handle-r</tooltip-id>
                <label>Open/Close Right Window</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>baggagedoorhandle</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <equals>
                            <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                            <value>0</value>
                        </equals>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.baggageDoor.toggle();</script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <equals>
                            <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                            <value>0</value>
                        </equals>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    settimer(func(){
                        fgcommand("dialog-show", {"dialog-name": "c172p-baggage-weight-dialog"});
                    }, 2.0);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>oppen-baggage-door</tooltip-id>
                <label>Open Baggage Door</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>select</type>
        <object-name>BaggageDoorHotSpot</object-name>
        <condition>
            <and>
                <equals>
                    <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                    <value>1</value>
                </equals>
                <less-than>
                    <property>velocities/groundspeed-kt</property>
                    <value>1.0</value>
                </less-than>
            </and>
        </condition>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>BaggageDoorHotSpot</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <equals>
                            <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                            <value>1</value>
                        </equals>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.baggageDoor.toggle();</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <equals>
                            <property>/sim/model/door-positions/baggageDoor/position-norm</property>
                            <value>1</value>
                        </equals>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>close-baggage-door</tooltip-id>
                <label>Close Baggage Door</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>FuelCapPort</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                    </and>
                </condition>
                <command>property-toggle</command>
                <property>sim/model/open-pfuel-cap</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    var show = getprop("sim/model/open-pfuel-cap");
                    if (show)
                        fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-left-fuel-dialog"}));
                    else
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-left-fuel-dialog"}));
                </script>
            </binding>
            <binding>
                <condition>
                    <property>/engines/active-engine/running</property>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't refuel with the engine running!", 2);
                </script>
            </binding>
            <binding>
                <condition>
                    <not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                    </not>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't refuel while in the air!", 2);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>fuel-cap-port</tooltip-id>
                <label>Fuel Cap</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FuelCapStarboard</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                    </and>
                </condition>
                <command>property-toggle</command>
                <property>sim/model/open-sfuel-cap</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    var show = getprop("sim/model/open-sfuel-cap");
                    if (show)
                        fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-right-fuel-dialog"}));
                    else
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-right-fuel-dialog"}));
                </script>
            </binding>
            <binding>
                <condition>
                    <property>/engines/active-engine/running</property>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't refuel with the engine running!");
                </script>
            </binding>
            <binding>
                <condition>
                    <not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                    </not>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't refuel while in the air!");
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>fuel-cap-starboard</tooltip-id>
                <label>Fuel Cap</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>FuelCapPort</object-name>
        <property>sim/model/open-pfuel-cap</property>
        <factor>0.1</factor>
        <axis>
            <x> 0.15</x>
            <y>-0.05</y>
            <z> 0.5</z>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>FuelCapStarboard</object-name>
        <property>sim/model/open-sfuel-cap</property>
        <factor>0.1</factor>
        <axis>
            <x>0.15</x>
            <y>0.05</y>
            <z>0.5</z>
        </axis>
    </animation>

    <!-- Oil door pick -->
    <animation>
        <type>pick</type>
        <object-name>oildoor</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    var engine = getprop("controls/engines/active-engine");
                    if (!engine)
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-oil-dialog-160"}));
                    else
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-oil-dialog-180"}));
                    setprop("sim/model/show-dip-stick", 0);
                    c172p.oilDoor.toggle();
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/running</property>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check the oil level with the engine running!", 2);
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <or>
                                <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                                <property>/fdm/jsbsim/hydro/active-norm</property>
                            </or>
                        </not>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check the oil level while in the air!", 2);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>oil-door</tooltip-id>
                <label>Oil Door</label>
            </binding>
        </hovered>
    </animation>

    <!-- Oil door animation -->
    <animation>
        <type>rotate</type>
        <object-name>oildoor</object-name>
        <property alias="../../params/doors/oil/property"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>-45.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>-90.0</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>-0.80485</x1-m>
            <y1-m> 0.23079</y1-m>
            <z1-m> 0.16388</z1-m>
            <x2-m>-0.88058</x2-m>
            <y2-m> 0.2303</y2-m>
            <z2-m> 0.16328</z2-m>
        </axis>
    </animation>

    <!-- Vent animation -->
    <animation>
        <type>rotate</type>
        <object-name>airvent</object-name>
        <object-name>airventhole</object-name>
        <property>/environment/aircraft-effects/cabin-air-set</property>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>7.5</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>15.0</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>-0.49202</x1-m>
            <y1-m> 0.52131</y1-m>
            <z1-m>-0.23855</z1-m>
            <x2-m>-0.49239</x2-m>
            <y2-m> 0.52263</y2-m>
            <z2-m>-0.28139</z2-m>
        </axis>
    </animation>

    <!-- Pick animation for the gloveboxlock and door -->
    <animation>
        <type>pick</type>
        <object-name>gloveboxdoor</object-name>
        <object-name>gloveboxlock</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>c172p.gloveboxDoor.toggle();</script>
            </binding>
            <binding>
                <command>nasal</command>
                <script>c172p.click("glove_compartment_opening", 1.2)</script>
            </binding>
            <binding>
                <command>nasal</command>
                <script>c172p.click("glove_compartment_closing", 1.2)</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <tooltip-id>door-handle-glovebox</tooltip-id>
                <label>Glovebox Open/Close</label>
            </binding>
        </hovered>
    </animation>
    <!-- Glovebox door animation -->
    <animation>
        <type>rotate</type>
        <object-name>gloveboxdoor</object-name>
        <object-name>gloveboxlock</object-name>
        <property alias="../../params/doors/glovebox/property"/>
        <interpolation>
            <entry>
                <ind>0.20</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.55</ind>
                <dep>-40.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>-80</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.36927</x-m>
            <y-m> 0.38169</y-m>
            <z-m>-0.25797</z-m>
        </center>
         <axis>
            <x> 0.0</x>
            <y>-1.0</y>
            <z> 0.0</z>
        </axis>
    </animation>
    <!-- Glovebox lock animation -->
    <animation>
        <type>rotate</type>
        <object-name>gloveboxlock</object-name>
        <property alias="../../params/doors/glovebox/property"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>.10</ind>
                <dep>-22.5.0</dep>
            </entry>
            <entry>
                <ind>.20</ind>
                <dep>-45.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.36675</x-m>
            <y-m> 0.38077</y-m>
            <z-m>-0.20765</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- Door animation -->
    <animation>
        <type>rotate</type>
        <object-name>rightdoor</object-name>
        <object-name>rightdoorhandle</object-name>
        <object-name>rightwindow</object-name>
        <object-name>doorint_right</object-name>
        <object-name>doorhandleint_right</object-name>
        <object-name>doorintstrapright</object-name>
        <object-name>windlocket_right</object-name>
        <object-name>windlocketbak_right</object-name>
        <object-name>windowframerightint</object-name>
        <object-name>windowframerightext</object-name>
        <object-name>rightwindow_interior</object-name>

        <object-name>doorint_right-fg1000</object-name>
        <object-name>doorhandleint_right-fg1000</object-name>
        <object-name>doorintstrapright-fg1000</object-name>
        <object-name>windlocket_right-fg1000</object-name>
        <object-name>windlocketbak_right-fg1000</object-name>
        <object-name>windowframerightint-fg1000</object-name>

        <property alias="../../params/doors/right/property"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>70.0</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>-0.117</x1-m>
            <y1-m> 0.530</y1-m>
            <z1-m>-0.376</z1-m>
            <x2-m>-0.054</x2-m>
            <y2-m> 0.535</y2-m>
            <z2-m>-0.117</z2-m>
        </axis>
    </animation>

    <!-- MOD: Changed angles from 70 to 50 - two entries on this block-->
    <animation>
        <type>rotate</type>
        <object-name>doorhandleint_right</object-name>
        <object-name>doorhandleint_right-fg1000</object-name>
        <property alias="../../params/doors/right/property"/>
        <condition>
            <equals>
                <property>/sim/model/door-positions/rightDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.18</ind>
                <dep>70.0</dep>
            </entry>
            <entry>
                <ind>0.26</ind>
                <dep>70.0</dep>
            </entry>
            <entry>
                <ind>0.35</ind>
                <dep>110.0</dep>
            </entry>
            <entry>
                <ind>0.43</ind>
                <dep>110.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.07864</x-m>
            <y-m> 0.46709</y-m>
            <z-m>-0.24414</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>rightdoorhandle</object-name>
        <property alias="../../params/doors/right/property"/>
        <condition>
            <equals>
                <property>/sim/model/door-positions/rightDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.275</ind>
                <dep>-30.0</dep>
            </entry>
            <entry>
                <ind>0.55</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.77042</x-m>
            <y-m> 0.51667</y-m>
            <z-m>-0.17336</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>leftdoor</object-name>
        <object-name>leftdoorhandle</object-name>
        <object-name>leftwindow</object-name>
        <object-name>doorint_left</object-name>
        <object-name>doorhandleint_left</object-name>
        <object-name>doorintstrapleft</object-name>
        <object-name>windlocket_left</object-name>
        <object-name>windlocketbak_left</object-name>
        <object-name>windowframeleftint</object-name>
        <object-name>windowframeleftext</object-name>
        <object-name>leftwindow_interior</object-name>

        <object-name>doorint_left-fg1000</object-name>
        <object-name>doorhandleint_left-fg1000</object-name>
        <object-name>doorintstrapleft-fg1000</object-name>
        <object-name>windlocket_left-fg1000</object-name>
        <object-name>windlocketbak_left-fg1000</object-name>
        <object-name>windowframeleftint-fg1000</object-name>

        <property alias="../../params/doors/left/property"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>-70.0</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>-0.117</x1-m>
            <y1-m>-0.530</y1-m>
            <z1-m>-0.376</z1-m>
            <x2-m>-0.054</x2-m>
            <y2-m>-0.535</y2-m>
            <z2-m>-0.117</z2-m>
        </axis>
    </animation>

    <!-- MOD: Changed angles from 70 to 50 - two entries on this block-->
    <animation>
        <type>rotate</type>
        <object-name>doorhandleint_left</object-name>
        <object-name>doorhandleint_left-fg1000</object-name>
        <property alias="../../params/doors/left/property"/>
        <condition>
            <equals>
                <property>/sim/model/door-positions/leftDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.18</ind>
                <dep>70.0</dep>
            </entry>
            <entry>
                <ind>0.26</ind>
                <dep>70.0</dep>
            </entry>
            <entry>
                <ind>0.35</ind>
                <dep>110.0</dep>
            </entry>
            <entry>
                <ind>0.43</ind>
                <dep>110.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.07864</x-m>
            <y-m>-0.46709</y-m>
            <z-m>-0.24414</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>leftdoorhandle</object-name>
        <property alias="../../params/doors/left/property"/>
        <condition>
            <equals>
                <property>/sim/model/door-positions/leftDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.275</ind>
                <dep>30.0</dep>
            </entry>
            <entry>
                <ind>0.55</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.76986</x-m>
            <y-m>-0.51523</y-m>
            <z-m>-0.17366</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Left Window -->
    <animation>
        <type>rotate</type>
        <object-name>leftwindow</object-name>
        <object-name>leftwindow_interior</object-name>
        <object-name>windlocket_left</object-name>
        <object-name>windlocketbak_left</object-name>
        <object-name>windowframeleftint</object-name>
        <object-name>windowframeleftext</object-name>

        <object-name>windlocket_left-fg1000</object-name>
        <object-name>windlocketbak_left-fg1000</object-name>
        <object-name>windowframeleftint-fg1000</object-name>

        <property alias="/params/windows/left"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>-20.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>0.4485</x-m>
            <y-m>-0.5212</y-m>
            <z-m>0.2791</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>windlocket_left</object-name>
        <object-name>windlocket_left-fg1000</object-name>
        <property alias="/params/windows/left"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>90.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>90.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.3358</x-m>
            <y-m>-0.51659</y-m>
            <z-m>-0.04665</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <!-- Right Window -->
    <animation>
        <type>rotate</type>
        <object-name>rightwindow</object-name>
        <object-name>rightwindow_interior</object-name>
        <object-name>windlocket_right</object-name>
        <object-name>windlocketbak_right</object-name>
        <object-name>windowframerightint</object-name>
        <object-name>windowframerightext</object-name>

        <object-name>windlocket_right-fg1000</object-name>
        <object-name>windlocketbak_right-fg1000</object-name>
        <object-name>windowframerightint-fg1000</object-name>

        <property alias="/params/windows/right"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>20.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>0.4564</x-m>
            <y-m>0.5226</y-m>
            <z-m>0.2798</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>windlocket_right</object-name>
        <object-name>windlocket_right-fg1000</object-name>
        <property alias="/params/windows/right"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.5</ind>
                <dep>90.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>90.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.3358</x-m>
            <y-m> 0.51712</y-m>
            <z-m>-0.04189</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>baggagedoorexterior</object-name>
        <object-name>baggagedoorinterior</object-name>
        <object-name>baggagedoorhandle</object-name>

        <object-name>baggagedoorinterior-fg1000</object-name>

        <property alias="../../params/doors/baggage/property"/>
        <factor>-90</factor>
        <axis>
            <x1-m>1.373</x1-m>
            <y1-m>-0.445</y1-m>
            <z1-m>-0.656</z1-m>
            <x2-m>1.424</x2-m>
            <y2-m>-0.445</y2-m>
            <z2-m>-0.204</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>baggagedoorhandle</object-name>
        <property alias="../../params/doors/baggage/property"/>
        <condition>
            <equals>
                <property>/sim/model/door-positions/baggageDoor/opened</property>
                <value>0.0</value>
            </equals>
        </condition>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.15</ind>
                <dep>30.0</dep>
            </entry>
            <entry>
                <ind>0.3</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 1.84848</x-m>
            <y-m>-0.44489</y-m>
            <z-m>-0.43722</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Parking Brake -->
    <animation>
        <type>translate</type>
        <object-name>ParkingBrake</object-name>
        <object-name>ParkingBrake-fg1000</object-name>
        <property alias="/params/controls/parking-lever"/>
        <factor>0.04</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>ParkingBrake</object-name>
        <object-name>ParkingBrake-fg1000</object-name>
        <visible>true</visible>
        <action>
            <name>Select</name>
            <button>0</button>
            <binding>
                <command>property-toggle</command>
                <property>/controls/gear/brake-parking</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>c172p.click("parking", 1.6)</script>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Parking brake: %s</label>
                <property>/controls/gear/brake-parking</property>
                <tooltip-id>parking-brake</tooltip-id>
                <mapping>on-off</mapping>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>Throttle</object-name>
        <object-name>Throttle-fg1000</object-name>
        <property alias="/params/controls/throttle"/>
        <factor>-0.08</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>slider</type>
        <object-name>Throttle</object-name>
        <object-name>ThrottleMount</object-name>
        <object-name>Throttle-fg1000</object-name>
        <object-name>ThrottleMount-fg1000</object-name>
        <visible>true</visible>
        <drag-direction>vertical</drag-direction>
        <!-- no translation, we handle that seperately -->
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/controls/engines/current-engine/throttle</property>
                <factor>0.02</factor>
                <min>0</min>
                <max>1</max>
                <wrap>0</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Throttle: %3d%%</label>
                <measure-text>Throttle: 100%</measure-text>
                <tooltip-id>throttle</tooltip-id>
                <mapping>percent</mapping>
                <property alias="/params/controls/throttle"/>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>AltStaticAir</object-name>
        <object-name>AltStaticAir-fg1000</object-name>
        <property alias="/params/controls/altstaticair"/>
        <factor>0.0083</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>slider</type>
        <object-name>AltStaticAir</object-name>
        <object-name>AltStaticAir-fg1000</object-name>
        <visible>true</visible>
        <drag-direction>vertical</drag-direction>
        <!-- no translation, we handle that seperately -->
        <action>
            <binding>
                <command>property-adjust</command>
                <property>/controls/engines/current-engine/altstaticair</property>
                <factor>1</factor>
                <min>0</min>
                <max>1</max>
                <wrap>0</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Alternate Static Pressure: %3d%%</label>
                <measure-text>Alternate Static Pressure: 100%</measure-text>
                <tooltip-id>staticairpressure</tooltip-id>
                <mapping>percent</mapping>
                <property alias="/params/controls/altstaticair"/>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>Mixture</object-name>
        <object-name>Mixture-fg1000</object-name>
        <property alias="/params/controls/mixture"/>
        <factor>-0.08</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>slider</type>
        <object-name>Mixture</object-name>
        <object-name>MixtureMount</object-name>
        <object-name>Mixture-fg1000</object-name>
        <object-name>MixtureMount-fg1000</object-name>
        <visible>true</visible>
        <!-- no translation, we handle that seperately -->
        <drag-direction>vertical</drag-direction>
        <action>
            <binding>
                <command>property-adjust</command>
                <property>controls/engines/current-engine/mixture</property>
                <factor>0.02</factor>
                <min>0</min>
                <max>1</max>
                <wrap>0</wrap>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Mixture: %3d%%</label>
                <measure-text>Mixture: 100%</measure-text>
                <tooltip-id>mixture</tooltip-id>
                <mapping>percent</mapping>
                <property alias="/params/controls/mixture"/>
            </binding>
        </hovered>
    </animation>

    <!-- Hide interior glass when in exterior view unless raining-->
    <animation>
        <type>select</type>
        <object-name>glas_interior</object-name>
        <object-name>leftwindow_interior</object-name>
        <object-name>rightwindow_interior</object-name>
        <object-name>glas_interior_sides</object-name>
        <condition>
            <or>
                <property>/sim/current-view/internal</property>
                <property>/environment/rain-norm</property>
            </or>
        </condition>
    </animation>

    <!-- Fuel Selector -->
    <animation>
        <type>select</type>
        <object-name>FuelSelectorOff</object-name>
        <object-name>FuelSelectorOff-fg1000</object-name>
        <condition>
            <and>
                <not>
                    <property>consumables/fuel/tank[0]/selected</property>
                </not>
                <not>
                    <property>consumables/fuel/tank[1]/selected</property>
                </not>
                <not>
                    <property>consumables/fuel/tank[2]/selected</property>
                </not>
                <not>
                    <property>consumables/fuel/tank[3]/selected</property>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>FuelSelectorLeft</object-name>
        <object-name>FuelSelectorLeft-fg1000</object-name>
        <condition>
            <or>
                <and>
                    <property>consumables/fuel/tank[0]/selected</property>
                    <not>
                        <property>consumables/fuel/tank[1]/selected</property>
                    </not>
                </and>
                <and>
                    <property>consumables/fuel/tank[2]/selected</property>
                    <not>
                        <property>consumables/fuel/tank[3]/selected</property>
                    </not>
                </and>
            </or>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>FuelSelectorRight</object-name>
        <object-name>FuelSelectorRight-fg1000</object-name>
        <condition>
            <or>
                <and>
                    <not>
                        <property>consumables/fuel/tank[0]/selected</property>
                    </not>
                    <property>consumables/fuel/tank[1]/selected</property>
                </and>
                <and>
                    <not>
                        <property>consumables/fuel/tank[2]/selected</property>
                    </not>
                    <property>consumables/fuel/tank[3]/selected</property>
                </and>
            </or>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>FuelSelectorBoth</object-name>
        <object-name>FuelSelectorBoth-fg1000</object-name>
        <condition>
            <or>
                <and>
                    <property>consumables/fuel/tank[0]/selected</property>
                    <property>consumables/fuel/tank[1]/selected</property>
                </and>
                <and>
                    <property>consumables/fuel/tank[2]/selected</property>
                    <property>consumables/fuel/tank[3]/selected</property>
                </and>
            </or>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FuelHotspotOff</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-assign</command>
                <property>consumables/fuel/tank[0]/selected</property>
                <value>false</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>consumables/fuel/tank[1]/selected</property>
                <value>false</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>consumables/fuel/tank[2]/selected</property>
                <value>false</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>consumables/fuel/tank[3]/selected</property>
                <value>false</value>
            </binding>
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FuelHotspotLeft</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    var integral_tanks = getprop("/fdm/jsbsim/fuel/tank");
                    if (integral_tanks) {
                        setprop("/consumables/fuel/tank[2]/selected", 1);
                        setprop("/consumables/fuel/tank[3]/selected", 0);
                        setprop("/consumables/fuel/tank[0]/selected", 0);
                        setprop("/consumables/fuel/tank[1]/selected", 0);
                    } else {
                        setprop("/consumables/fuel/tank[0]/selected", 1);
                        setprop("/consumables/fuel/tank[1]/selected", 0);
                        setprop("/consumables/fuel/tank[2]/selected", 0);
                        setprop("/consumables/fuel/tank[3]/selected", 0);
                    }
                </script>
            </binding>
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FuelHotspotRight</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    var integral_tanks = getprop("/fdm/jsbsim/fuel/tank");
                    if (integral_tanks) {
                        setprop("/consumables/fuel/tank[2]/selected", 0);
                        setprop("/consumables/fuel/tank[3]/selected", 1);
                        setprop("/consumables/fuel/tank[0]/selected", 0);
                        setprop("/consumables/fuel/tank[1]/selected", 0);
                    } else {
                        setprop("/consumables/fuel/tank[0]/selected", 0);
                        setprop("/consumables/fuel/tank[1]/selected", 1);
                        setprop("/consumables/fuel/tank[2]/selected", 0);
                        setprop("/consumables/fuel/tank[3]/selected", 0);
                    }
                </script>
            </binding>
        </action>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>FuelHotspotBoth</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    var integral_tanks = getprop("/fdm/jsbsim/fuel/tank");
                    if (integral_tanks) {
                        setprop("/consumables/fuel/tank[2]/selected", 1);
                        setprop("/consumables/fuel/tank[3]/selected", 1);
                        setprop("/consumables/fuel/tank[0]/selected", 0);
                        setprop("/consumables/fuel/tank[1]/selected", 0);
                    } else {
                        setprop("/consumables/fuel/tank[0]/selected", 1);
                        setprop("/consumables/fuel/tank[1]/selected", 1);
                        setprop("/consumables/fuel/tank[2]/selected", 0);
                        setprop("/consumables/fuel/tank[3]/selected", 0);
                    }
                </script>
            </binding>
        </action>
    </animation>

    <!-- ================================================================== -->
    <!-- Exterior Lighting                                                  -->
    <!-- ================================================================== -->

    <!-- Courtesy Lights -->
    <animation>
        <type>material</type>
        <object-name>courtesyon-l</object-name>
        <condition>
            <not>
                <property alias="/params/glass"/>
            </not>
        </condition>
        <emission>
            <red>  0.697</red>
            <green>0.689</green>
            <blue> 0.445</blue>
            <factor-prop>/sim/model/c172p/lighting/courtesy</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>courtesyon-r</object-name>
        <condition>
            <not>
                <property alias="/params/glass"/>
            </not>
        </condition>
        <emission>
            <red>  0.697</red>
            <green>0.689</green>
            <blue> 0.445</blue>
            <factor-prop>/sim/model/c172p/lighting/courtesy</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>courtesyon-l</object-name>
        <condition>
            <property alias="/params/glass"/>
        </condition>
        <emission>
            <red>  0.697</red>
            <green>0.689</green>
            <blue> 0.445</blue>
            <factor-prop>/controls/lighting/domeL</factor-prop>
        </emission>
    </animation>
    <animation>
        <type>material</type>
        <object-name>courtesyon-r</object-name>
        <condition>
            <property alias="/params/glass"/>
        </condition>
        <emission>
            <red>  0.697</red>
            <green>0.689</green>
            <blue> 0.445</blue>
            <factor-prop>/controls/lighting/domeR</factor-prop>
        </emission>
    </animation>

    <!-- ================================================================== -->
    <!-- ALS Procedural Lighting  (physical light stars)                    -->
    <!-- ================================================================== -->

    <!-- Uncomment for ALS procedural beacon -->
    <!-- Beacon light -->
    <!--animation>
        <type>select</type>
        <object-name>beacon-light</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/beacon"/>
                <property>/sim/rendering/shaders/skydome</property>
            </and>
        </condition>
    </animation>
    <model>
        <name>beacon-light</name>
        <path>Effects/lights/procedural_light_beacon.xml</path>
        <offsets>
            <x-m> 5.50112</x-m>
            <y-m>-0.000189</y-m>
            <z-m> 1.07635</z-m>
        </offsets>
     </model-->

   <model>
        <name>courtesy-r-fg1000</name>
        <path>Aircraft/c172p/Models/Effects/interior/procedural_light_courtesy-r-fg1000.xml</path>
        <offsets>
            <x-m> 0.74 </x-m>
            <y-m> 1.65 </y-m>
            <z-m> 0.3275 </z-m>
        </offsets>
    </model>

    <model>
        <name>courtesy-l-fg1000</name>
        <path>Aircraft/c172p/Models/Effects/interior/procedural_light_courtesy-l-fg1000.xml</path>
        <offsets>
            <x-m> 0.74 </x-m>
            <y-m>-1.65 </y-m>
            <z-m> 0.3275 </z-m>
        </offsets>
    </model>

    <model>
        <name>courtesy-r</name>
        <path>Aircraft/c172p/Models/Effects/interior/procedural_light_courtesy.xml</path>
        <offsets>
            <x-m> 0.74 </x-m>
            <y-m> 1.65 </y-m>
            <z-m> 0.3275 </z-m>
        </offsets>
    </model>

    <model>
        <name>courtesy-l</name>
        <path>Aircraft/c172p/Models/Effects/interior/procedural_light_courtesy.xml</path>
        <offsets>
            <x-m> 0.74 </x-m>
            <y-m>-1.65 </y-m>
            <z-m> 0.3275 </z-m>
        </offsets>
    </model>

    <!-- Green navigation light on starboard side (right) -->
    <model>
        <name>nav-light-right</name>
        <path>Effects/lights/procedural_light_nav_right.xml</path>
        <offsets>
            <x-m>0.102</x-m>
            <y-m>5.66</y-m>
            <z-m>0.53459</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>nav-light-right</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/navigation"/>
                <not-equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Red navigation light on port side (left) -->
    <model>
        <name>nav-light-left</name>
        <path>Effects/lights/procedural_light_nav_left.xml</path>
        <offsets>
            <x-m> 0.108</x-m>
            <y-m>-5.66</y-m>
            <z-m> 0.53365</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>nav-light-left</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/navigation"/>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- White navigation light on tail -->
    <model>
        <name>nav-light-tail</name>
        <path>Effects/lights/procedural_light_nav_tail.xml</path>
        <offsets>
            <x-m>6.11</x-m>
            <y-m>0.0042</y-m>
            <z-m>0.9722</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>nav-light-tail</object-name>
        <nopreview/>
        <condition>
            <property alias="/params/lighting/navigation"/>
        </condition>
    </animation>

    <model>
        <name>strobe-light-left</name>
        <path>Effects/lights/procedural_light_left_strobe.xml</path>
        <offsets>
            <x-m> 0.15</x-m>
            <y-m>-5.66</y-m>
            <z-m> 0.53365</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>strobe-light-left</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <model>
        <name>strobe-light-right</name>
        <path>Effects/lights/procedural_light_right_strobe.xml</path>
        <offsets>
            <x-m>0.15</x-m>
            <y-m>5.66</y-m>
            <z-m>0.53459</z-m>
        </offsets>
     </model>
    <animation>
        <type>select</type>
        <object-name>strobe-light-right</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <not-equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- ================================================================== -->
    <!-- ALS and Default Renderer                                                   -->
    <!-- ================================================================== -->

    <!-- Landing Light -->
    <animation>
        <type>select</type>
        <object-name>landinglight</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/landing/property"/>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>flash</type>
        <object-name>landinglight</object-name>
        <center>
            <x-m>-0.135</x-m>
            <y-m>-2.940</y-m>
            <z-m> 0.520</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
        <power>8</power>
        <factor>6</factor>
        <offset>0</offset>
        <two-sides type="bool">false</two-sides>
        <min>0.5</min>
        <max>80</max>
    </animation>

    <!-- Taxi Light -->
    <animation>
        <type>select</type>
        <object-name>taxilight</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/taxi/property"/>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>flash</type>
        <object-name>taxilight</object-name>
        <center>
            <x-m>-0.135</x-m>
            <y-m>-2.750</y-m>
            <z-m> 0.520</z-m>
        </center>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
        <power>8</power>
        <factor>5</factor>
        <offset>0</offset>
        <two-sides type="bool">false</two-sides>
        <min>0.5</min>
        <max>80</max>
    </animation>

    <animation>
        <type>select</type>
        <object-name>BeaconOffX</object-name>
        <nopreview/>
        <condition>
            <property alias="/params/lighting/beacon"/>
        </condition>
    </animation>
    <BeaconOffXparams>
        <light-near>0.4</light-near>
        <light-med>0.8</light-med>
        <light-far>10</light-far>
    </BeaconOffXparams>
    <animation>
        <type>alpha-test</type>
        <object-name>BeaconOffX</object-name>
        <alpha-factor>0.001</alpha-factor>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>BeaconOffX</object-name>
        <offset-m>5.599</offset-m>
        <axis>
            <!-- MOD: Position beacon light at MEDIAN point of the object -->
            <x>5.49803</x>
            <y>0.00000</y>
            <z>1.081</z>
            <!-- MODEND: Position beacon light at MEDIAN point of the object -->
        </axis>
    </animation>
    <animation>
        <type>billboard</type>
        <object-name>BeaconOffX</object-name>
        <spherical type="bool">true</spherical>
    </animation>
    <animation>
        <type>dist-scale</type>
        <object-name>BeaconOffX</object-name>
        <interpolation>
            <entry>
                <ind>0</ind>
                <dep alias="/BeaconOffXparams/light-near"/>
            </entry>
            <entry>
                <ind>500</ind>
                <dep alias="/BeaconOffXparams/light-med"/>
            </entry>
            <entry>
                <ind>16000</ind>
                <dep alias="/BeaconOffXparams/light-far"/>
            </entry>
        </interpolation>
    </animation>

    <!-- ================================================================== -->
    <!-- Procedural Clustered Shading Lighting                              -->
    <!-- ================================================================== -->

    <!-- Procedural Landing Light -->
    <animation>
        <type>select</type>
        <object-name>ProceduralLandingLight</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/landing/property"/>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
            </and>
        </condition>
    </animation>
    <light>
        <name>ProceduralLandingLight</name>
        <type>spot</type>
        <position>
            <x-m>-0.135</x-m>
            <y-m>-2.940</y-m>
            <z-m> 0.520</z-m>
        </position>
        <direction>
            <lookat-x-m>-19.222</lookat-x-m>
            <lookat-y-m>0</lookat-y-m>
            <lookat-z-m>-0.920</lookat-z-m>
        </direction>
        <ambient>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.014</l>
            <q>0.0007</q>
        </attenuation>
        <spot-exponent>15</spot-exponent>
        <spot-cutoff>60</spot-cutoff>
        <range-m>325</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <!-- Procedural Taxi Light -->
    <animation>
        <type>select</type>
        <object-name>ProceduralTaxiLight</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/taxi/property"/>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
            </and>
        </condition>
    </animation>
    <light>
        <name>ProceduralTaxiLight</name>
        <type>spot</type>
        <position>
            <x-m>-0.135</x-m>
            <y-m>-2.750</y-m>
            <z-m> 0.520</z-m>
        </position>
        <direction>
            <lookat-x-m>-19.222</lookat-x-m>
            <lookat-y-m>0</lookat-y-m>
            <lookat-z-m>-0.920</lookat-z-m>
        </direction>
        <ambient>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.07</l>
            <q>0.017</q>
        </attenuation>
        <spot-exponent>15</spot-exponent>
        <spot-cutoff>60</spot-cutoff>
        <range-m>65</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <!-- Procedural Courtesy Lights -->
    <animation>
        <type>select</type>
        <object-name>ProceduralCourtesyLeftLight</object-name>
        <nopreview/>
        <condition>
            <or>
                <!--property alias="/params/lighting/taxi/property"/ needs MP alias-->
                <property>/sim/model/c172p/lighting/courtesy</property>
                <property>/controls/lighting/domeL</property>
            </or>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>ProceduralCourtesyRightLight</object-name>
        <nopreview/>
        <condition>
            <or>
                <!--property alias="/params/lighting/taxi/property"/ needs MP alias-->
                <property>/sim/model/c172p/lighting/courtesy</property>
                <property>/controls/lighting/domeR</property>
            </or>
        </condition>
    </animation>
    
    <light>
        <name>ProceduralCourtesyLeftLight</name>
        <type>spot</type>
        <position>
            <x-m> 0.75</x-m>
            <y-m>-1.65</y-m>
            <z-m> 0.36</z-m>
        </position>
        <direction>
            <lookat-x-m>-7 </lookat-x-m>
            <lookat-y-m> 0 </lookat-y-m>
            <lookat-z-m>-30</lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.7</l>
            <q>1.1</q>
        </attenuation>
        <spot-exponent>2.5</spot-exponent>
        <spot-cutoff>80</spot-cutoff>
        <range-m>15</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <light>
        <name>ProceduralCourtesyRightLight</name>
        <type>spot</type>
        <position>
            <x-m>0.75</x-m>
            <y-m>1.65</y-m>
            <z-m>0.36</z-m>
        </position>
        <direction>
            <lookat-x-m>-7 </lookat-x-m>
            <lookat-y-m> 0 </lookat-y-m>
            <lookat-z-m>-30</lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.7</l>
            <q>1.1</q>
        </attenuation>
        <spot-exponent>2.5</spot-exponent>
        <spot-cutoff>80</spot-cutoff>
        <range-m>15</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <!-- Procedural Strobe Light -->
    <animation>
        <type>select</type>
        <object-name>leftstrobe</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>rightstrobe</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <light>
        <name>leftstrobe</name>
        <type>spot</type>
        <position>
            <x-m> 0.14</x-m>
            <y-m>-6   </y-m>
            <z-m> 0.52</z-m>
        </position>
        <direction>
            <lookat-x-m>0.148</lookat-x-m>
            <lookat-y-m>-20  </lookat-y-m>
            <lookat-z-m>0.52 </lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.25</l>
            <q>0.50</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>30</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>
    <light>
        <name>rightstrobe</name>
        <type>spot</type>
        <position>
            <x-m>0.15</x-m>
            <y-m>6   </y-m>
            <z-m>0.52</z-m>
        </position>
        <direction>
            <lookat-x-m>0.15</lookat-x-m>
            <lookat-y-m>20  </lookat-y-m>
            <lookat-z-m>0.25</lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.25</l>
            <q>0.50</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>30</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <animation>
        <type>select</type>
        <object-name>leftstrobeD</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>rightstrobeD</object-name>
        <nopreview/>
        <condition>
            <and>
                <property alias="/params/lighting/strobes"/>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <light>
        <name>leftstrobeD</name>
        <type>spot</type>
        <position>
            <x-m> 0.34</x-m>
            <y-m>-6 </y-m>
            <z-m> 0.80</z-m>
        </position>
        <direction>
            <lookat-x-m>0.34</lookat-x-m>
            <lookat-y-m>-20 </lookat-y-m>
            <lookat-z-m>0.80</lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0 </c>
            <l>0.46</l>
            <q>1.20</q>
        </attenuation>
        <spot-exponent>0.5</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>30</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>
    <light>
        <name>rightstrobeD</name>
        <type>spot</type>
        <position>
            <x-m>0.39</x-m>
            <y-m>6   </y-m>
            <z-m>1.06</z-m>
        </position>
        <direction>
            <lookat-x-m>0.39</lookat-x-m>
            <lookat-y-m>20  </lookat-y-m>
            <lookat-z-m>1.06</lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0 </c>
            <l>0.46</l>
            <q>1.20</q>
        </attenuation>
        <spot-exponent>0.5</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>30</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <!-- Beacon Procedural Light -->
    <animation>
        <type>select</type>
        <object-name>beaconlight</object-name>
        <condition>
            <property alias="/params/lighting/beacon"/>
        </condition>
    </animation>

    <light>
        <name>beaconlight</name>
        <type>spot</type>
        <position>
            <x-m> 6.5 </x-m>
            <y-m> 0.003 </y-m>
            <z-m> 1.07928 </z-m>
        </position>
        <direction>
            <lookat-x-m>0.75 </lookat-x-m>
            <lookat-y-m>0.0  </lookat-y-m>
            <lookat-z-m>1.5  </lookat-z-m>
        </direction>
        <ambient>
            <r>1</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.05</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.05</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>1.5</l>
            <q>8.33</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>60</spot-cutoff>
        <range-m>2.5</range-m>
        <debug-color>
            <r>1</r>
            <g>0</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

    <!-- Procedural Nav Lights -->
    <animation>
        <type>select</type>
        <object-name>taillight</object-name>
        <condition>
            <property alias="/params/lighting/navigation"/>
        </condition>
    </animation>

    <light>
        <name>taillight</name>
        <type>spot</type>
        <position>
            <x-m>7.5 </x-m>
            <y-m>0.0 </y-m>
            <z-m>0.97</z-m>
        </position>
        <direction>
            <lookat-x-m> 27</lookat-x-m>
            <lookat-y-m> 0.00</lookat-y-m>
            <lookat-z-m> -20 </lookat-z-m>
        </direction>
        <ambient>
            <r>0.1</r>
            <g>0.2</g>
            <b>0.1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.25</l>
            <q>0.5</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>2.5</range-m>
        <debug-color>
            <r>1</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </debug-color>
    </light>

    <animation>
        <type>select</type>
        <object-name>navlightred</object-name>
        <condition>
            <and>
                <property alias="/params/lighting/navigation"/>
                <not-equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <light>
        <name>navlightred</name>
        <type>spot</type>
        <position>
            <x-m> 0.050</x-m>
            <y-m> -5.90</y-m>
            <z-m> 0.53365</z-m>
        </position>
        <direction>
            <lookat-x-m>-13 </lookat-x-m>
            <lookat-y-m>-13 </lookat-y-m>
            <lookat-z-m>-12.5 </lookat-z-m>
        </direction>
        <ambient>
            <r>0.2</r>
            <g>0.1</g>
            <b>0.1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.9</r>
            <g>0.1</g>
            <b>0.1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.9</r>
            <g>0.1</g>
            <b>0.1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.25</l>
            <q>0.5</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>2.5</range-m>
        <debug-color>
            <r>1</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </debug-color>
    </light>

    <animation>
        <type>select</type>
        <object-name>navlightgreen</object-name>
        <condition>
            <and>
                <property alias="/params/lighting/navigation"/>
                <not-equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>1</value>
                </not-equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <light>
        <name>navlightgreen</name>
        <type>spot</type>
        <position>
            <x-m> 0.050</x-m>
            <y-m> 5.90</y-m>
            <z-m> 0.53365</z-m>
        </position>
        <direction>
            <lookat-x-m>-13 </lookat-x-m>
            <lookat-y-m> 13 </lookat-y-m>
            <lookat-z-m>-12.5 </lookat-z-m>
        </direction>
        <ambient>
            <r>0.1</r>
            <g>0.2</g>
            <b>0.1</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.1</r>
            <g>0.9</g>
            <b>0.1</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.1</r>
            <g>0.9</g>
            <b>0.1</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.25</l>
            <q>0.5</q>
        </attenuation>
        <spot-exponent>1.00</spot-exponent>
        <spot-cutoff>89</spot-cutoff>
        <range-m>2.5</range-m>
        <debug-color>
            <r>1</r>
            <g>0</g>
            <b>0</b>
            <a>1</a>
        </debug-color>
    </light>

    <animation>
        <type>noshadow</type>
        <object-name>landinglight</object-name>
        <object-name>taxilight</object-name>
        <object-name>BeaconOffX</object-name>
        <object-name>taillight</object-name>
        <object-name>navlightred</object-name>
        <object-name>navlightgreen</object-name>
        <object-name>beaconlight</object-name>
        <object-name>leftstrobe</object-name>
        <object-name>rightstrobe</object-name>
        <object-name>nav-light-right</object-name>
        <object-name>nav-light-left</object-name>
        <object-name>nav-light-tail</object-name>
        <object-name>beacon-light</object-name>
        <object-name>strobe-light-left</object-name>
        <object-name>strobe-light-right</object-name>

        <object-name>courtesy-l</object-name>
        <object-name>courtesy-r</object-name>
        <object-name>courtesy-l-fg1000</object-name>
        <object-name>courtesy-r-fg1000</object-name>
    </animation>

    <!-- ================================================================== -->
    <!-- Lighting adjustments due to wing damage                            -->
    <!-- ================================================================== -->

    <!-- Moves the red navigation light when then left wing is damaged -->
    <animation>
        <type>translate</type>
        <object-name>nav-light-left</object-name>

        <!-- Magnitude (distance) of the vector -->
        <factor>0.35</factor>
        <property>sim/model/c172p/lighting/nav-lights/left-damaged</property>

        <!-- The vector pointing from the original position to the
             damaged position.
        -->
        <axis>
            <x>0.77</x>
            <y>-0.05</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Moves the green navigation light when then right wing is damaged -->
    <animation>
        <type>translate</type>
        <object-name>nav-light-right</object-name>

        <!-- Magnitude (distance) of the vector -->
        <factor>0.60</factor>
        <property>sim/model/c172p/lighting/nav-lights/right-damaged</property>

        <!-- The vector pointing from the original position to the
             damaged position.
        -->
        <axis>
            <x>0.53</x>
            <y>-0.05</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Moves the left strobe light when then left wing is damaged -->
    <animation>
        <type>translate</type>
        <object-name>strobe-light-left</object-name>

        <!-- Magnitude (distance) of the vector -->
        <factor>0.35</factor>
        <property>sim/model/c172p/lighting/nav-lights/left-damaged</property>

        <!-- The vector pointing from the original position to the
             damaged position.
        -->
        <axis>
            <x>0.77</x>
            <y>-0.05</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Moves the right strobe light when then right wing is damaged -->
    <animation>
        <type>translate</type>
        <object-name>strobe-light-right</object-name>

        <!-- Magnitude (distance) of the vector -->
        <factor>0.60</factor>
        <property>sim/model/c172p/lighting/nav-lights/right-damaged</property>

        <!-- The vector pointing from the original position to the
             damaged position.
        -->
        <axis>
            <x>0.53</x>
            <y>-0.05</y>
            <z>1.0</z>
        </axis>
    </animation>

    <!-- Rotate Non-Damaged Left Aileron -->
    <animation>
        <type>rotate</type>
        <object-name>leftaileron</object-name>
        <property>surface-positions/left-aileron-pos-norm</property>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>-15</dep>
            </entry>
            <entry>
                <ind>0.0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>20</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>0.862</x1-m>
            <y1-m>-5.464</y1-m>
            <z1-m>0.459</z1-m>
            <x2-m>1.158</x2-m>
            <y2-m>-2.616</y2-m>
            <z2-m>0.337</z2-m>
        </axis>
    </animation>

    <!-- Rotate Damaged Left Aileron -->
    <animation>
        <type>rotate</type>
        <object-name>leftaileron_D</object-name>
        <property>surface-positions/left-aileron-pos-norm</property>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>20</dep>
            </entry>
            <entry>
                <ind>0.0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>-15</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>1.15778</x1-m>
            <y1-m>-2.6163</y1-m>
            <z1-m>0.33767</z1-m>
            <x2-m>1.05526</x2-m>
            <y2-m>-5.42979</y2-m>
            <z2-m>0.71097</z2-m>
        </axis>
    </animation>

    <!-- Rotate Non-Damaged Right Aileron -->
    <animation>
        <type>rotate</type>
        <object-name>rightaileron</object-name>
        <property>surface-positions/right-aileron-pos-norm</property>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>20</dep>
            </entry>
            <entry>
                <ind>0.0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>-15</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>1.158</x1-m>
            <y1-m>2.616</y1-m>
            <z1-m>0.337</z1-m>
            <x2-m>0.862</x2-m>
            <y2-m>5.464</y2-m>
            <z2-m>0.459</z2-m>
        </axis>
    </animation>

    <!-- Rotate Damaged Right Aileron -->
    <animation>
        <type>rotate</type>
        <object-name>rightaileron_D</object-name>
        <property>surface-positions/right-aileron-pos-norm</property>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>20</dep>
            </entry>
            <entry>
                <ind>0.0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>-15</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>1.15767</x1-m>
            <y1-m>2.61617</y1-m>
            <z1-m>0.33727</z1-m>
            <x2-m>1.08169</x2-m>
            <y2-m>5.39225</y2-m>
            <z2-m>0.95676</z2-m>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>flaps</object-name>
        <!-- Damage Mod -->
        <object-name>flapsD</object-name>
        <property>surface-positions/flap-pos-norm</property>
        <factor>0.08</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>flaps</object-name>
        <!-- Damage Mod -->
        <object-name>flapsD</object-name>
        <property>surface-positions/flap-pos-norm</property>
        <factor>-0.10</factor>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>flaps</object-name>
        <!-- Damage Mod -->
        <object-name>flapsD</object-name>
        <property>surface-positions/flap-pos-norm</property>
        <factor>30</factor>
        <center>
            <x-m>1.152</x-m>
            <y-m>-0.53</y-m>
            <z-m>0.32</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>elevatorleft</object-name>
        <property>surface-positions/elevator-pos-norm</property>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>28</dep>
            </entry>
            <entry>
                <ind>0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>-23</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>4.87869</x1-m>
            <y1-m>-0.1350</y1-m>
            <z1-m>-0.42222</z1-m>
            <x2-m>4.7439</x2-m>
            <y2-m>-1.7279</y2-m>
            <z2-m>-0.4222</z2-m>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>elevatorright</object-name>
        <object-name>elevatortrim</object-name>
        <property>surface-positions/elevator-pos-norm</property>
        <interpolation>
            <entry>
                <ind>-1.0</ind>
                <dep>28</dep>
            </entry>
            <entry>
                <ind>0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>-23</dep>
            </entry>
        </interpolation>
        <axis>
            <x1-m>4.7439</x1-m>
            <y1-m>1.7279</y1-m>
            <z1-m>-0.4222</z1-m>
            <x2-m>4.87869</x2-m>
            <y2-m>0.1350</y2-m>
            <z2-m>-0.42222</z2-m>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>elevatortrim</object-name>
        <property>controls/flight/elevator-trim</property>
        <factor>-25</factor>
        <axis>
            <x1-m> 5.37238</x1-m>
            <y1-m> 0.40405</y1-m>
            <z1-m>-0.43873</z1-m>
            <x2-m> 5.24803</x2-m>
            <y2-m> 1.30441</y2-m>
            <z2-m>-0.43157</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>rudder_1</object-name>
        <object-name>RearNavLight</object-name>
        <object-name>nav-light-tail</object-name>
        <object-name>ruddercablelefthinge</object-name>
        <object-name>ruddercablerighthinge</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>13</factor>
        <axis>
            <x1-m>4.918</x1-m>
            <y1-m>0</y1-m>
            <z1-m>-0.310</z1-m>
            <x2-m>5.805</x2-m>
            <y2-m>-0.013</y2-m>
            <z2-m>1.007</z2-m>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>ruddercableleft</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>3</factor>
        <center>
            <x-m> 4.75597</x-m>
            <y-m>-0.08369</y-m>
            <z-m>-0.54047</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>ruddercableleft</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>.03</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>ruddercableleft</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>-.008</factor>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>ruddercablelefthinge</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>40</factor>
        <center>
            <x-m> 4.97326</x-m>
            <y-m>-0.03545</y-m>
            <z-m>-0.54239</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>ruddercableright</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>3</factor>
        <center>
            <x-m> 4.75019</x-m>
            <y-m> 0.08448</y-m>
            <z-m>-0.54046</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>ruddercableright</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>-.03</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>ruddercableright</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>.008</factor>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>ruddercablerighthinge</object-name>
        <property>surface-positions/rudder-pos-norm</property>
        <factor>40</factor>
        <center>
            <x-m> 4.97487</x-m>
            <y-m> 0.03545</y-m>
            <z-m>-0.54239</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>0.0</y>
            <z>1.0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>fairing1</object-name>
        <object-name>NoseWheel</object-name>
        <object-name>NoseWheelStrut</object-name>
        <object-name>TopLink</object-name>
        <object-name>BottomLink</object-name>
        <object-name>Axle</object-name>
        <!-- Bushkit Mod -->
        <object-name>NoseWheelBK</object-name>
        <object-name>NoseWheelStrutBK</object-name>
        <object-name>AxleBK.001</object-name>
        <object-name>NoseSki</object-name>
        <object-name>NoseSkiAxle</object-name>
        <object-name>NoseSkiAxleBl</object-name>
        <object-name>NoseSkiAxleBr</object-name>
        <object-name>NoseSkiBraceL</object-name>
        <object-name>NoseSkiBraceR</object-name>
        <object-name>NoseSkiWireF</object-name>
        <object-name>NoseCableConnect</object-name>
        <object-name>NoseSkiWheel</object-name>
        <object-name>NoseSkiWheelAxleL</object-name>
        <object-name>NoseSkiWheelAxleR</object-name>
        <property>fdm/jsbsim/fcs/steer-pos-deg</property>
        <axis>
            <x1-m>-0.975</x1-m>
            <y1-m>0</y1-m>
            <z1-m>-0.6781</z1-m>
            <x2-m>-1.123</x2-m>
            <y2-m>0.0</y2-m>
            <z2-m>-1.172</z2-m>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>fairing1</object-name>
        <object-name>NoseWheel</object-name>
        <object-name>NoseWheelStrut</object-name>
        <object-name>BottomLink</object-name>
        <object-name>Axle</object-name>
        <!-- Bushkit Mod -->
        <object-name>NoseWheelBK</object-name>
        <object-name>NoseWheelStrutBK</object-name>
        <object-name>AxleBK.001</object-name>
        <object-name>NoseSki</object-name>
        <object-name>NoseSkiAxle</object-name>
        <object-name>NoseSkiAxleBl</object-name>
        <object-name>NoseSkiAxleBr</object-name>
        <object-name>NoseSkiBraceL</object-name>
        <object-name>NoseSkiBraceR</object-name>
        <object-name>NoseSkiWireF</object-name>
        <object-name>NoseCableConnect</object-name>
        <object-name>NoseSkiWheel</object-name>
        <object-name>NoseSkiWheelAxleL</object-name>
        <object-name>NoseSkiWheelAxleR</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <factor>0.30</factor>
        <axis>
            <x>0.3</x>
            <y>0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>TopLink</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <center>
            <x-m>-0.95412</x-m>
            <y-m>0.0</y-m>
            <z-m>-0.72408</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>-1.0</y>
            <z>0.0</z>
        </axis>
        <interpolation include="GearScissorInterpolation.xml"/>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>BottomLink</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <center>
            <x-m>-1.02349</x-m>
            <y-m>0.0</y-m>
            <z-m>-0.95449</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
        <interpolation include="GearScissorInterpolation.xml"/>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>fairing3</object-name>
        <object-name>RightWheelStrut</object-name>
        <object-name>RightWheel</object-name>
        <object-name>RightWheelBrake</object-name>
        <!-- Bushkit Mod -->
        <object-name>RightWheelBK</object-name>
        <object-name>RightWheelBKs</object-name>
        <object-name>RightSki</object-name>
        <object-name>RightSkiAxle</object-name>
        <object-name>RightSkiAxleBl</object-name>
        <object-name>RightSkiAxleBr</object-name>
        <object-name>RightSkiBraceL</object-name>
        <object-name>RightSkiBraceR</object-name>
        <object-name>RightSkiWireF</object-name>
        <object-name>RightSkiWireB</object-name>
        <object-name>RightCableConnectF</object-name>
        <object-name>RightCableConnectB</object-name>
        <object-name>RightSkiWheel</object-name>
        <object-name>RightSkiWheelAxle</object-name>
        <property>gear/gear[2]/compression-norm</property>
        <center>
            <x-m>0.711</x-m>
            <y-m>0.4518</y-m>
            <z-m>-0.70</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
        <interpolation include="MainRotationInterpolation.xml"/>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>fairing2</object-name>
        <object-name>LeftWheelStrut</object-name>
        <object-name>LeftWheel</object-name>
        <object-name>LeftWheelBrake</object-name>
        <!-- Bushkit Mod -->
        <object-name>LeftWheelBK</object-name>
        <object-name>LeftWheelBKs</object-name>
        <object-name>LeftSki</object-name>
        <object-name>LeftSkiAxle</object-name>
        <object-name>LeftSkiAxleBl</object-name>
        <object-name>LeftSkiAxleBr</object-name>
        <object-name>LeftSkiBraceL</object-name>
        <object-name>LeftSkiBraceR</object-name>
        <object-name>LeftSkiWireF</object-name>
        <object-name>LeftSkiWireB</object-name>
        <object-name>LeftCableConnectF</object-name>
        <object-name>LeftCableConnectB</object-name>
        <object-name>LeftSkiWheel</object-name>
        <object-name>LeftSkiWheelAxle</object-name>
        <property>gear/gear[1]/compression-norm</property>
        <center>
            <x-m>0.711</x-m>
            <y-m>-0.4518</y-m>
            <z-m>-0.70</z-m>
        </center>
        <axis>
            <x>-1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
        <interpolation include="MainRotationInterpolation.xml"/>
    </animation>

    <!-- Rotate front ski angle from 0 to 10 deg -->
    <animation>
        <type>rotate</type>
        <object-name>NoseSki</object-name>
        <object-name>NoseSkiAxle</object-name>
        <object-name>NoseSkiAxleBl</object-name>
        <object-name>NoseSkiAxleBr</object-name>
        <object-name>NoseSkiBraceL</object-name>
        <object-name>NoseSkiBraceR</object-name>
        <object-name>NoseSkiWireF</object-name>
        <object-name>NoseCableConnect</object-name>
        <object-name>NoseSkiWheel</object-name>
        <object-name>NoseSkiWheelAxleL</object-name>
        <object-name>NoseSkiWheelAxleR</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
            <entry>
                <ind>0.65</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.61</ind>
                <dep>10.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-1.113</x-m>
            <y-m>-0.004</y-m>
            <z-m>-1.202</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate front ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>NoseSkiWireF</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-3</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-2.1396</x-m>
            <y-m>-0.0177</y-m>
            <z-m>-1.1274</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate left ski atan above-equal 1.78 agl -->
    <animation>
        <type>rotate</type>
        <object-name>LeftSki</object-name>
        <object-name>LeftSkiAxleBl</object-name>
        <object-name>LeftSkiAxleBr</object-name>
        <object-name>LeftSkiBraceL</object-name>
        <object-name>LeftSkiBraceR</object-name>
        <object-name>LeftSkiWireF</object-name>
        <object-name>LeftSkiWireB</object-name>
        <object-name>LeftCableConnectF</object-name>
        <object-name>LeftCableConnectB</object-name>
        <object-name>LeftSkiWheel</object-name>
        <object-name>LeftSkiWheelAxle</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
            <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>10.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.528</x-m>
            <y-m>-1.179</y-m>
            <z-m>-1.148</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate left front bungee (top) ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>LeftSkiSpring</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>1</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.6362</x-m>
            <y-m>-0.5327</y-m>
            <z-m>-0.1468</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>LeftSkiSpring</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-6</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.6362</x-m>
            <y-m>-0.5327</y-m>
            <z-m>-0.1468</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate left front bottom ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>LeftSkiWireF</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-8</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.8426</x-m>
            <y-m>-0.9569</y-m>
            <z-m>-1.1537</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>LeftSkiWireF</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
            <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-6</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.8426</x-m>
            <y-m>-0.9569</y-m>
            <z-m>-1.1537</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate left back ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>LeftSkiWireB</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-3</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>1.4231</x-m>
            <y-m>-0.9603</y-m>
            <z-m>-1.3955</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate right ski atan above-equal 1.78 agl -->
    <animation>
        <type>rotate</type>
        <object-name>RightSki</object-name>
        <object-name>RightSkiAxleBl</object-name>
        <object-name>RightSkiAxleBr</object-name>
        <object-name>RightSkiBraceL</object-name>
        <object-name>RightSkiBraceR</object-name>
        <object-name>RightSkiWireF</object-name>
        <object-name>RightSkiWireB</object-name>
        <object-name>RightCableConnectF</object-name>
        <object-name>RightCableConnectB</object-name>
        <object-name>RightSkiWheel</object-name>
        <object-name>RightSkiWheelAxle</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
            <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>10.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 0.530</x-m>
            <y-m>1.189</y-m>
            <z-m>-1.145</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate right front bungee (top) ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>RightSkiSpring</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>2</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.6344</x-m>
            <y-m>0.5495</y-m>
            <z-m>-0.1629</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>RightSkiSpring</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>6</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.6344</x-m>
            <y-m>0.5495</y-m>
            <z-m>-0.1629</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate right front bottom ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>RightSkiWireF</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-8</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.844</x-m>
            <y-m> 0.9575</y-m>
            <z-m>-1.1582</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>RightSkiWireF</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
            <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>6</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-0.844</x-m>
            <y-m> 0.9575</y-m>
            <z-m>-1.1582</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- rotate right rear ski wire -->
    <animation>
        <type>rotate</type>
        <object-name>RightSkiWireB</object-name>
        <property>/fdm/jsbsim/ski/atan-actual</property>
        <interpolation>
             <entry>
                <ind>0.6517</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>0.493</ind>
                <dep>-3.5</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>1.4278</x-m>
            <y-m>0.9737</y-m>
            <z-m>-1.3889</z-m>
        </center>
        <axis>
            <x>0.0</x>
            <y>1.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- MOD: Spin to gears -->
    <animation>
        <type>spin</type>
        <object-name>RightWheel</object-name>
        <!-- Bushkit Mod -->
        <object-name>RightWheelBK</object-name>
        <object-name>RightWheelBKs</object-name>

        <expression>
            <product>
                <property alias="/params/gear/right-rollspeed-ms"/>
                <property>/fdm/jsbsim/gear/gear-spin-right</property>
            </product>
        </expression>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>0.53015</x-m>
            <y-m>1.127</y-m>
            <z-m>-1.14693</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>LeftWheel</object-name>
        <!-- Bushkit Mod -->
        <object-name>LeftWheelBK</object-name>
        <object-name>LeftWheelBKs</object-name>
        <expression>
            <product>
                <property alias="/params/gear/left-rollspeed-ms"/>
                <property>/fdm/jsbsim/gear/gear-spin-left</property>
            </product>
        </expression>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>0.53015</x-m>
            <y-m>-1.127</y-m>
            <z-m>-1.14693</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>NoseWheel</object-name>
        <!-- Bushkit Mod -->
        <object-name>NoseWheelBK</object-name>
        <expression>
            <product>
                <property alias="/params/gear/nose-rollspeed-ms"/>
                <property>/fdm/jsbsim/gear/gear-spin-nose</property>
            </product>
        </expression>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>-1.1149</x-m>
            <y-m>0.00000</y-m>
            <z-m>-1.1889</z-m>
        </center>
    </animation>

    <!-- Spin to Ski Wheels -->
    <animation>
        <type>spin</type>
        <object-name>NoseSkiWheel</object-name>
        <property alias="/params/gear-ski/ski-nose-rollspeed-ms"/>
        <factor>125</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>-0.56607</x-m>
            <y-m>-0.00027</y-m>
            <z-m>-1.34917</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>LeftSkiWheel</object-name>
        <property alias="/params/gear-ski/ski-left-rollspeed-ms"/>
        <factor>100</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>1.24648</x-m>
            <y-m>-1.30575</y-m>
            <z-m>-1.48968</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>RightSkiWheel</object-name>
        <property alias="/params/gear-ski/ski-right-rollspeed-ms"/>
        <factor>100</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>1.24648</x-m>
            <y-m>1.33153</y-m>
            <z-m>-1.48274</z-m>
        </center>
    </animation>
    <!-- MODEND: Spin to gears -->

    <!-- Damage Mod  -->

    <!-- Props Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>Propeller</object-name>
        <condition>
             <and>
                <less-than>
                    <property alias="/params/engine/rpm"/>
                    <value>500</value>
                </less-than>
                <not>
                    <property alias="/params/securing/cowl-plugs"/>
                </not>
                <not>
                    <property alias="/params/engine/crashed"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>Spinner</object-name>
        <condition>
            <not>
                <property alias="/params/engine/crashed"/>
            </not>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>Propeller.Fast</object-name>
        <nopreview/>
        <condition>
            <and>
                <greater-than>
                    <property alias="/params/engine/rpm"/>
                    <value>400</value>
                </greater-than>
                <not>
                    <property alias="/params/securing/cowl-plugs"/>
                </not>
                <not>
                    <property alias="/params/engine/crashed"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>blend</type>
        <object-name>Propeller.Fast</object-name>
        <property alias="/params/engine/rpm"/>
        <factor>0.0004</factor>
        <max>0.5</max>
        <min>0.0</min>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>Propeller</object-name>
        <object-name>Spinner</object-name>
        <property alias="/params/engine/rpm"/>
        <factor>-1</factor>
        <center>
            <x-m>-1.96139</x-m>
            <y-m>0.00127</y-m>
            <z-m>-0.0519</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>Propeller.Fast</object-name>
        <object-name>Spinner</object-name>
        <property alias="/params/engine/rpm"/>
        <factor>-0.001</factor>
        <center>
            <x-m>-1.96139</x-m>
            <y-m>0.00127</y-m>
            <z-m>-0.0519</z-m>
        </center>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- Prop Damaged -->
    <animation>
        <type>select</type>
        <object-name>PropellerD</object-name>
        <object-name>SpinnerD</object-name>
        <condition>
            <property alias="/params/engine/crashed"/>
        </condition>
    </animation>

    <!-- Left Wing No Damage -->
    <animation>
        <type>select</type>
        <object-name>wing_left</object-name>
        <object-name>wing_leading_edge_left</object-name>
        <object-name>wing_0</object-name>
        <object-name>leftaileron</object-name>
        <object-name>LeftNavLight</object-name>
        <object-name>landinglightcover</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Right Wing No Damage -->
    <animation>
        <type>select</type>
        <object-name>wing_right</object-name>
        <object-name>wing_leading_edge_right</object-name>
        <object-name>rightaileron</object-name>
        <object-name>RightNavLight</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Wings Collapsed -->
    <animation>
        <type>select</type>
        <object-name>wing_collapse_group</object-name>
        <condition>
            <property alias="/params/crash/property"/>
        </condition>
    </animation>

    <!-- Wings Broken -->
    <animation>
        <type>select</type>
        <object-name>wing_center_broke_left</object-name>
        <object-name>wingblockerleft</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>1</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>wing_center_broke_right</object-name>
        <object-name>wingblockerright</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>1</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Wings Right Damaged -->
    <animation>
        <type>select</type>
        <object-name>wing_right_damage_group</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Wings Left Damaged -->
    <animation>
        <type>select</type>
        <object-name>wing_left_damage_group</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Left Wing Damaged or Not -->
    <animation>
        <type>select</type>
        <object-name>lighttaxi</object-name>
        <object-name>lightlanding</object-name>
        <condition>
            <and>
                <or>
                    <equals>
                        <property alias="/params/wing_left_damaged/property"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/wing_left_damaged/property"/>
                        <value>2</value>
                    </equals>
                </or>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>lighttaxi</object-name>
        <object-name>lighttaxi1</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <axis>
            <x>0.02062</x>
            <y>0.0</y>
            <z>0.00613</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>lightlanding</object-name>
        <object-name>lightlanding1</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/wing_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <not>
                    <property alias="/params/crash/property"/>
                </not>
            </and>
        </condition>
        <axis>
            <x>0.03181</x>
            <y>0.0</y>
            <z>0.01843</z>
        </axis>
    </animation>

    <!-- Left Pontoons Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>L-FloatC</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Right Pontoons Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>R-FloatC</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Amphibious Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>L-Float</object-name>
        <object-name>LRwheel</object-name>
        <object-name>LRAxle</object-name>
        <object-name>LFrontWheel</object-name>
        <object-name>LAxle</object-name>
        <object-name>LRtarm</object-name>
        <object-name>Ldamper</object-name>
        <object-name>Lstrut.001</object-name>
        <object-name>Lstrut.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Right Amphibious Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>R-Float</object-name>
        <object-name>RRwheel</object-name>
        <object-name>RRAxle</object-name>
        <object-name>RFrontWheel</object-name>
        <object-name>RAxle</object-name>
        <object-name>RRtarm</object-name>
        <object-name>Rdamper</object-name>
        <object-name>Rstrut.001</object-name>
        <object-name>Rstrut.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Float Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>LHrudder</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>0</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!--Right Float Not Damaged -->
    <animation>
        <type>select</type>
        <object-name>RHrudder</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>0</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Pontoon and Amphibious -->
    <animation>
        <type>select</type>
        <object-name>RuddWires</object-name>
        <object-name>FloatStruts</object-name>
        <object-name>FloatReinforceLeft</object-name>
        <object-name>FloatReinforceRight</object-name>
        <object-name>FloatReinforceJoin</object-name>
        <object-name>RudderCatch</object-name>
        <object-name>RudderHandle</object-name>
        <object-name>RudderScrews</object-name>
        <object-name>RudderTube</object-name>
        <condition>
            <or>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </or>
        </condition>
    </animation>

    <!-- Rudder cable -->
    <animation>
        <type>select</type>
        <object-name>RudderCable</object-name>
        <condition>
            <and>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
                <not>
                    <property>/controls/gear/water-rudder</property>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>RudderHandle</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <binding>
                <command>property-toggle</command>
                <property>/controls/gear/water-rudder</property>
            </binding>
        </action>
        <hovered>
            <binding>
                <command>set-tooltip</command>
                <label>Water rudders: %s</label>
                <property>/controls/gear/water-rudder</property>
                <tooltip-id>water-rudders</tooltip-id>
                <mapping>down-up</mapping>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RudderHandle</object-name>
        <property alias="/params/controls/water-rudder-animation"/>
        <factor>-0.21348</factor>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
    </animation>

    <!-- Left Pontoon Damaged -->
    <animation>
        <type>select</type>
        <object-name>L-FloatCD</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Right Pontoon Damaged -->
    <animation>
        <type>select</type>
        <object-name>R-FloatCD</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Left Pontoon Broken -->
    <animation>
        <type>select</type>
        <object-name>L-FloatCB</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>1</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Right Pontoon Broken -->
    <animation>
        <type>select</type>
        <object-name>R-FloatCB</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>1</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Amphibious Damaged -->
    <animation>
        <type>select</type>
        <object-name>L-FloatOD</object-name>
        <object-name>LRwheelOD</object-name>
        <object-name>LdamperOD</object-name>
        <object-name>LstrutOD.001</object-name>
        <object-name>LstrutOD.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Right Amphibious Damaged -->
    <animation>
        <type>select</type>
        <object-name>R-FloatOD</object-name>
        <object-name>RRwheelOD</object-name>
        <object-name>RdamperOD</object-name>
        <object-name>RstrutOD.001</object-name>
        <object-name>RstrutOD.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Left Amphibious Broken -->
    <animation>
        <type>select</type>
        <object-name>L-FloatOB</object-name>
        <object-name>LRwheelOB</object-name>
        <object-name>LdamperOB</object-name>
        <object-name>LstrutOB.001</object-name>
        <object-name>LstrutOB.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>1</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!--Right Amphibious Broken -->
    <animation>
        <type>select</type>
        <object-name>R-FloatOB</object-name>
        <object-name>RRwheelOB</object-name>
        <object-name>RdamperOB</object-name>
        <object-name>RstrutOB.001</object-name>
        <object-name>RstrutOB.002</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>1</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Float Damaged -->
    <animation>
        <type>select</type>
        <object-name>LHrudderD</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>2</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!--Right Float Damaged -->
    <animation>
        <type>select</type>
        <object-name>RHrudderD</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>2</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!--Left Float Broken -->
    <animation>
        <type>select</type>
        <object-name>LHrudderB</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_left_damaged/property"/>
                    <value>1</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!--Right Float Broken -->
    <animation>
        <type>select</type>
        <object-name>RHrudderB</object-name>
        <condition>
            <and>
                <equals>
                    <property alias="/params/pontoon_right_damaged/property"/>
                    <value>1</value>
                </equals>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>3</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>4</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Nose Gear No Damage -->
    <animation>
        <type>select</type>
        <object-name>NoseWheel</object-name>
        <object-name>Axle</object-name>
        <object-name>NoseWheelStrut</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>NoseWheelBK</object-name>
        <object-name>NoseWheelStrutBK</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>AxleBK.001</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>TopLink</object-name>
        <object-name>BottomLink</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Nose Gear Damage -->
    <animation>
        <type>select</type>
        <object-name>NoseWheelD</object-name>
        <object-name>AxleD.001</object-name>
        <object-name>NoseWheelStrutD</object-name>
        <object-name>TopLinkD</object-name>
        <object-name>BottomLinkD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_nose_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>NoseWheelBKD</object-name>
        <object-name>AxleBKD.001</object-name>
        <object-name>NoseWheelStrutBKD</object-name>
        <object-name>TopLinkBKD</object-name>
        <object-name>BottomLinkBKD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_nose_broken/property"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Left Gear No Damage -->
    <animation>
        <type>select</type>
        <object-name>LeftWheel</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelBKs</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>1</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelBK</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelStrut</object-name>
        <object-name>LeftWheelBrake</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Left Gear Damage -->
    <animation>
        <type>select</type>
        <object-name>LeftWheelD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_left_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelBKsD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_left_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>1</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelBKD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_left_broken/property"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>LeftWheelStrutBKD</object-name>
        <object-name>LeftWheelBrakeD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_left_broken/property"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Right Gear No Damage -->
    <animation>
        <type>select</type>
        <object-name>RightWheel</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelBKs</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>1</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelBK</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelStrut</object-name>
        <object-name>RightWheelBrake</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Right Gear Damage -->
    <animation>
        <type>select</type>
        <object-name>RightWheelD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_right_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelBKsD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_right_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>1</value>
                </equals>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelBKD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_right_broken/property"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightWheelStrutBKD</object-name>
        <object-name>RightWheelBrakeD</object-name>
        <condition>
            <and>
                <property alias="/params/gear_right_broken/property"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>5</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Nose Ski No Damage -->
    <animation>
        <type>select</type>
        <object-name>NoseSki</object-name>
        <object-name>NoseSkiAxle</object-name>
        <object-name>NoseSkiAxleBl</object-name>
        <object-name>NoseSkiAxleBr</object-name>
        <object-name>NoseSkiBraceL</object-name>
        <object-name>NoseSkiBraceR</object-name>
        <object-name>NoseSkiWireF</object-name>
        <object-name>NoseCableConnect</object-name>
        <object-name>NoseSkiWheel</object-name>
        <object-name>NoseSkiWheelAxleL</object-name>
        <object-name>NoseSkiWheelAxleR</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Nose Ski Damage -->
    <animation>
        <type>select</type>
        <object-name>NoseSkid</object-name>
        <object-name>NoseSkiAxled</object-name>
        <object-name>NoseSkiAxleBld</object-name>
        <object-name>NoseSkiAxleBrd</object-name>
        <object-name>NoseSkiBraceLd</object-name>
        <object-name>NoseSkiBraceRd</object-name>
        <object-name>NoseSkiWireFd</object-name>
        <object-name>NoseCableConnectd</object-name>
        <object-name>NoseSkiWheeld</object-name>
        <object-name>NoseSkiWheelAxleLd</object-name>
        <object-name>NoseSkiWheelAxleRd</object-name>
        <condition>
            <and>
                <property alias="/params/gear_nose_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Ski No Damage -->
    <animation>
        <type>select</type>
        <object-name>LeftSki</object-name>
        <object-name>LeftSkiAxle</object-name>
        <object-name>LeftSkiAxleBl</object-name>
        <object-name>LeftSkiAxleBr</object-name>
        <object-name>LeftSkiBraceL</object-name>
        <object-name>LeftSkiBraceR</object-name>
        <object-name>LeftSkiWireF</object-name>
        <object-name>LeftSkiWireB</object-name>
        <object-name>LeftCableConnectF</object-name>
        <object-name>LeftCableConnectB</object-name>
        <object-name>LeftSkiWheel</object-name>
        <object-name>LeftCableConnectT</object-name>
        <object-name>LeftSkiSpring</object-name>
        <object-name>LeftSkiWheelAxle</object-name>
       <condition>
            <and>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Left Ski Damage -->
    <animation>
        <type>select</type>
        <object-name>LeftSkid</object-name>
        <object-name>LeftSkiAxled</object-name>
        <object-name>LeftSkiAxleBld</object-name>
        <object-name>LeftSkiAxleBrd</object-name>
        <object-name>LeftSkiBraceLd</object-name>
        <object-name>LeftSkiBraceRd</object-name>
        <object-name>LeftSkiWireFd</object-name>
        <object-name>LeftSkiWireBd</object-name>
        <object-name>LeftCableConnectFd</object-name>
        <object-name>LeftCableConnectBd</object-name>
        <object-name>LeftCableConnectTd</object-name>
        <object-name>LeftSkiWheeld</object-name>
        <object-name>LeftSkiSpringd</object-name>
        <object-name>LeftSkiWheelAxled</object-name>
        <condition>
            <and>
                <property alias="/params/gear_left_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Right Ski No Damage -->
    <animation>
        <type>select</type>
        <object-name>RightSki</object-name>
        <object-name>RightSkiAxle</object-name>
        <object-name>RightSkiAxleBl</object-name>
        <object-name>RightSkiAxleBr</object-name>
        <object-name>RightSkiBraceL</object-name>
        <object-name>RightSkiBraceR</object-name>
        <object-name>RightSkiWireF</object-name>
        <object-name>RightSkiWireB</object-name>
        <object-name>RightCableConnectF</object-name>
        <object-name>RightCableConnectB</object-name>
        <object-name>RightSkiWheel</object-name>
        <object-name>RightCableConnectT</object-name>
        <object-name>RightSkiSpring</object-name>
        <object-name>RightSkiWheelAxle</object-name>
        <condition>
            <and>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>
    <!-- End Damage Mod-->

    <!-- Right Ski Damage -->
    <animation>
        <type>select</type>
        <object-name>RightSkid</object-name>
        <object-name>RightSkiAxled</object-name>
        <object-name>RightSkiAxleBld</object-name>
        <object-name>RightSkiAxleBrd</object-name>
        <object-name>RightSkiBraceLd</object-name>
        <object-name>RightSkiBraceRd</object-name>
        <object-name>RightCableConnectTd</object-name>
        <object-name>RightSkiWireFd</object-name>
        <object-name>RightSkiWireBd</object-name>
        <object-name>RightCableConnectFd</object-name>
        <object-name>RightCableConnectBd</object-name>
        <object-name>RightSkiWheeld</object-name>
        <object-name>RightSkiSpringd</object-name>
        <object-name>RightSkiWheelAxled</object-name>
        <condition>
            <and>
                <property alias="/params/gear_right_broken/property"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>5</value>
                </equals>
            </and>
        </condition>
    </animation>
    <!-- End Damage Mod-->

    <animation>
        <type>select</type>
        <object-name>fairing1</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing1</property>
                <not>
                    <property alias="/params/gear_nose_broken/property"/>
                </not>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>fairing2</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing2</property>
                <not>
                    <property alias="/params/gear_left_broken/property"/>
                </not>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>fairing3</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing3</property>
                <not>
                    <property alias="/params/gear_right_broken/property"/>
                </not>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>

    <!-- Damage Mod -->
    <animation>
        <type>select</type>
        <object-name>fairing1D</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing1</property>
                <property alias="/params/gear_nose_broken/property"/>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>fairing2D</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing2</property>
                <property alias="/params/gear_left_broken/property"/>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>fairing3D</object-name>
        <condition>
            <and>
                <property>sim/model/c172p/fairing3</property>
                <property alias="/params/gear_right_broken/property"/>
                <not>
                    <property alias="/params/bushkit"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>RightWheelStrut</object-name>
        <object-name>LeftWheelStrut</object-name>
        <object-name>fairing1</object-name>
        <object-name>fairing2</object-name>
        <object-name>fairing3</object-name>
        <object-name>fuselage</object-name>
        <object-name>fuselage_cowling</object-name>
        <object-name>fuselage_cowling_top</object-name>
        <object-name>charniere1</object-name>
        <object-name>charniere2</object-name>
        <object-name>charniere3</object-name>
        <object-name>charniere4</object-name>
        <object-name>leftdoor</object-name>
        <object-name>leftdoorhandle</object-name>
        <object-name>rightdoor</object-name>
        <object-name>rightdoorhandle</object-name>
        <object-name>baggagedoorexterior</object-name>
        <object-name>baggagedoorhandle</object-name>
        <object-name>Spinner</object-name>
        <object-name>Propeller</object-name>
        <object-name>PropellerCowlPlugs</object-name>
        <object-name>LeftNavLight</object-name>
        <object-name>RightNavLight</object-name>
        <object-name>radi_box</object-name>
        <object-name>ruddercableports</object-name>
        <object-name>windowframeleftext</object-name>
        <object-name>windowframerightext</object-name>
        <object-name>oildoor</object-name>
        <object-name>vent</object-name>
        <object-name>handle</object-name>
        <object-name>airvent</object-name>
        <object-name>TransponderAntenna</object-name>
        <object-name>MarkerAntenna</object-name>
        <object-name>Antenna_ADF</object-name>
        <object-name>Antenna_VOR</object-name>
        <object-name>VHFAntenna</object-name>
        <object-name>ELTAntenna</object-name>
        <!-- damage mod -->
        <object-name>RightWheelStrutBKD</object-name>
        <object-name>LeftWheelStrutBKD</object-name>
        <object-name>RightNavLight_C</object-name>
        <object-name>LeftNavLight_C</object-name>
        <object-name>RightNavLight_D</object-name>
        <object-name>LeftNavLight_D</object-name>
        <object-name>fairing1D</object-name>
        <object-name>fairing2D</object-name>
        <object-name>fairing3D</object-name>
        <object-name>PropellerD</object-name>
        <object-name>SpinnerD</object-name>
        <property-base>sim/model/livery/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>fuselage.png </texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>wing_left</object-name>
        <object-name>wing_center</object-name>
        <object-name>wing_right</object-name>
        <object-name>wing_leading_edge_left</object-name>
        <object-name>wing_leading_edge_right</object-name>
        <object-name>wing_leading_edge_center</object-name>
        <object-name>flaps</object-name>
        <object-name>rightaileron</object-name>
        <object-name>leftaileron</object-name>
        <object-name>wing_1Ledge</object-name>
        <object-name>wing_1Redge</object-name>
        <object-name>courtesyoff</object-name>

        <!-- damage mod -->
        <object-name>wing_right_C</object-name>
        <object-name>rightaileron_C</object-name>
        <object-name>wing_leading_edge_right_C</object-name>
        <object-name>wing_left_C</object-name>
        <object-name>leftaileron_C</object-name>
        <object-name>wing_leading_edge_left_C</object-name>
        <object-name>wing_center_broke_left</object-name>
        <object-name>wing_center_broke_right</object-name>
        <object-name>wing_left_D</object-name>
        <object-name>leftaileron_D</object-name>
        <object-name>wing_leading_edge_left_D</object-name>
        <object-name>wing_right_D</object-name>
        <object-name>rightaileron_D</object-name>
        <object-name>wing_leading_edge_right_D</object-name>

        <property-base>sim/model/liverywing/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>wing.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>vstab</object-name>
        <object-name>hstab</object-name>
        <object-name>rudder_1</object-name>
        <object-name>elevatorleft</object-name>
        <object-name>elevatorright</object-name>
        <object-name>elevatortrim</object-name>
        <property-base>sim/model/liverytail/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>tail.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>Propeller.Fast</object-name>
        <property-base>sim/model/liveryprop/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>prop.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <object-name>L-Float</object-name>
        <object-name>R-Float</object-name>
        <object-name>L-FloatC</object-name>
        <object-name>R-FloatC</object-name>
        <object-name>LHrudder</object-name>
        <object-name>RHrudder</object-name>
        <object-name>FloatStruts</object-name>
        <!-- damage mod -->
        <object-name>L-FloatCD</object-name>
        <object-name>R-FloatCD</object-name>
        <object-name>L-FloatCB</object-name>
        <object-name>R-FloatCB</object-name>
        <object-name>L-FloatOD</object-name>
        <object-name>R-FloatOD</object-name>
        <object-name>L-FloatOB</object-name>
        <object-name>R-FloatOB</object-name>
        <object-name>LHrudderD</object-name>
        <object-name>RHrudderD</object-name>
        <object-name>LHrudderB</object-name>
        <object-name>RHrudderB</object-name>
        <property-base>sim/model/liveryfloat/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>floats.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>GROUP_Interior</object-name>
        <object-name>Firewall</object-name>
        <property-base>sim/model/liveryinterior/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>interior.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>GROUP_FrontPanels</object-name>
        <property-base>sim/model/liverypanel/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>panel.png</texture>
    </animation>
    <animation>
        <type>material</type>
        <!--global type="bool">true</global-->
        <object-name>GROUP_InteriorParts</object-name>
        <property-base>sim/model/liveryparts/</property-base>
        <texture-prop>texture</texture-prop>
        <texture>panel_parts.png</texture>
    </animation>

    <!-- Pilot, co-pilot, and passengers -->
    <model>
        <name>Pilot</name>
        <path>Human/female-pilot.xml</path>
        <offsets>
            <x-m> 0.2 </x-m>
            <y-m> -0.251 </y-m>
            <z-m> -1.4 </z-m>
        </offsets>
    </model>
    <model>
        <name>Copilot</name>
        <path>Human/male-copilot.xml</path>
        <offsets>
            <x-m> 0.2 </x-m>
            <y-m> 0.251 </y-m>
            <z-m> -1.4 </z-m>
        </offsets>
    </model>
    <model>
        <name>LeftPassenger</name>
        <path>Human/male-copilot.xml</path>
        <offsets>
            <x-m> 0.9 </x-m>
            <y-m> -0.2 </y-m>
            <z-m> -1.45 </z-m>
        </offsets>
    </model>
    <model>
        <name>RightPassenger</name>
        <path>Human/male-copilot.xml</path>
        <offsets>
            <x-m> 0.9 </x-m>
            <y-m> 0.2 </y-m>
            <z-m> -1.45 </z-m>
        </offsets>
    </model>

    <!-- Pilot visible only when not in the cockpit, the walker is not activated and if there is enough weight on his seat -->
    <animation>
        <type>select</type>
        <object-name>Pilot</object-name>
        <condition>
            <and>
                <!-- Note: the sim/ properties do NOT start with a /,
                     which means that FlightGear tries to find them in
                     either:

                        (a) the root (/) for the local aircraft, or:
                        (b) in /ai/models/multiplayer[i]

                     In the case of (b), the properties do not exist, thus
                     the <not-equals> gets evaluated to true (always), which
                     is what we want, but this behavior is error-prone.
                -->
                <not-equals>
                    <property>/sim/current-view/name</property>
                    <value>Cockpit View</value>
                </not-equals>
                <not-equals>
                    <property>/sim/current-view/name</property>
                    <value>IFR Training View</value>
                </not-equals>
                <not>
                    <property>/sim/walker/outside</property>
                </not>
                <property>pax/pilot/present</property>
                <property>sim/model/occupants</property>
            </and>
        </condition>
    </animation>

    <!-- Co-pilot not visible if not enough weight on his seat or if using Cockpit Right Seat View-->
    <animation>
        <type>select</type>
        <object-name>Copilot</object-name>
        <condition>
            <and>
                <not-equals>
                    <property>sim/current-view/name</property>
                    <value>Cockpit Right Seat View</value>
                </not-equals>
                <property>pax/co-pilot/present</property>
                <property>sim/model/occupants</property>
            </and>
        </condition>
    </animation>

    <!-- Passangers not visible if not enough weight on their seats or if using their view -->
    <animation>
        <type>select</type>
        <object-name>LeftPassenger</object-name>
        <condition>
            <and>
                <not-equals>
                    <property>sim/current-view/name</property>
                    <value>Left Passenger Seat View</value>
                </not-equals>
                <property>pax/left-passenger/present</property>
                <property>sim/model/occupants</property>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>RightPassenger</object-name>
        <condition>
            <and>
                <not-equals>
                    <property>sim/current-view/name</property>
                    <value>Right Passenger Seat View</value>
                </not-equals>
                <property>pax/right-passenger/present</property>
                <property>sim/model/occupants</property>
            </and>
        </condition>
    </animation>

    <!-- MOD: Pontoon Gear -->
    <animation>
        <name>LeftFrontGear</name>
        <object-name>Lstrut.001</object-name>
        <object-name>Ldamper</object-name>
        <object-name>LAxle</object-name>
        <object-name>LFrontWheel</object-name>
    </animation>
    <animation>
        <name>RightFrontGear</name>
        <object-name>Rstrut.001</object-name>
        <object-name>Rdamper</object-name>
        <object-name>RAxle</object-name>
        <object-name>RFrontWheel</object-name>
    </animation>

    <!-- Retractable Gear -->
    <animation>
        <type>rotate</type>
        <object-name>Ldamper</object-name>
        <object-name>LAxle</object-name>
        <object-name>LFrontWheel</object-name>
        <property alias="/params/gear-amphibious/front-left-compression-ft"/>
        <factor>8</factor>
        <center>
            <x-m>-3.599</x-m>
            <y-m>1.434</y-m>
            <z-m>-2.189</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>LeftFrontGear</object-name>
        <property alias="/params/gear-amphibious/front-left-position-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.220</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-3.553</x-m>
            <y-m>1.430</y-m>
            <z-m>-1.901</z-m>
        </center>
        <axis>
            <x>0.342</x>
            <y>0</y>
            <z>0.940</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>Lstrut.002</object-name>
        <property alias="/params/gear-amphibious/front-left-position-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.115</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-3.553</x-m>
            <y-m>1.430</y-m>
            <z-m>-1.901</z-m>
        </center>
        <axis>
            <x>0.342</x>
            <y>0</y>
            <z>0.940</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>Rdamper</object-name>
        <object-name>RAxle</object-name>
        <object-name>RFrontWheel</object-name>
        <property alias="/params/gear-amphibious/front-right-compression-ft"/>
        <factor>8</factor>
        <center>
            <x-m>-3.599</x-m>
            <y-m>-1.434</y-m>
            <z-m>-2.189</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>RightFrontGear</object-name>
        <property alias="/params/gear-amphibious/front-right-position-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.220</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-3.553</x-m>
            <y-m>-1.430</y-m>
            <z-m>-1.901</z-m>
        </center>
        <axis>
            <x>0.342</x>
            <y>0</y>
            <z>0.940</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>Rstrut.002</object-name>
        <property alias="/params/gear-amphibious/front-right-position-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.115</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.0</dep>
            </entry>
        </interpolation>
        <center>
            <x-m>-3.553</x-m>
            <y-m>-1.430</y-m>
            <z-m>-1.901</z-m>
        </center>
        <axis>
            <x>0.342</x>
            <y>0</y>
            <z>0.940</z>
        </axis>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>LFrontWheel</object-name>
        <property alias="/params/gear-amphibious/front-left-rollspeed-ms"/>
        <factor>75</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>-2.1152</x-m>
            <y-m>-1.14871</y-m>
            <z-m>-2.07563</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>RFrontWheel</object-name>
        <property alias="/params/gear-amphibious/front-right-rollspeed-ms"/>
        <factor>75</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>-2.10993</x-m>
            <y-m>1.16615</y-m>
            <z-m>-2.06557</z-m>
        </center>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>LRtarm</object-name>
        <object-name>LRAxle</object-name>
        <object-name>LRwheel</object-name>
        <expression>
            <sum>
                <product>
                    <sum>
                        <value>0.07</value>
                        <property alias="/params/gear-amphibious/rear-left-compression-ft"/>
                    </sum>
                    <value>15</value>
                </product>
                <product>
                    <table>
                        <property alias="/params/gear-amphibious/rear-left-position-norm"/>
                        <entry>
                            <ind>1</ind>
                            <dep>0</dep>
                        </entry>
                        <entry>
                            <ind>0</ind>
                            <dep>10</dep>
                        </entry>
                    </table>
                </product>
            </sum>
        </expression>
        <center>
            <x-m>-0.6019</x-m>
            <y-m>-1.1513</y-m>
            <z-m>-1.8621</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>RRtarm</object-name>
        <object-name>RRAxle</object-name>
        <object-name>RRwheel</object-name>
        <expression>
            <sum>
                <product>
                    <sum>
                        <value>0.07</value>
                        <property alias="/params/gear-amphibious/rear-right-compression-ft"/>
                    </sum>
                    <value>15</value>
                </product>
                <product>
                    <table>
                        <property alias="/params/gear-amphibious/rear-right-position-norm"/>
                        <entry>
                            <ind>1</ind>
                            <dep>0</dep>
                        </entry>
                        <entry>
                            <ind>0</ind>
                            <dep>10</dep>
                        </entry>
                    </table>
                </product>
            </sum>
        </expression>
        <center>
            <x-m>-0.6019</x-m>
            <y-m>1.1676</y-m>
            <z-m>-1.8621</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>LRwheel</object-name>
        <property alias="/params/gear-amphibious/rear-left-rollspeed-ms"/>
        <factor>52</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>0.88361</x-m>
            <y-m>-1.15147</y-m>
            <z-m>-2.14853</z-m>
        </center>
    </animation>
    <animation>
        <type>spin</type>
        <object-name>RRwheel</object-name>
        <property alias="/params/gear-amphibious/rear-right-rollspeed-ms"/>
        <factor>52</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>0.88416</x-m>
            <y-m>1.16754</y-m>
            <z-m>-2.14826</z-m>
        </center>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RHrudder</object-name>
        <property alias="/params/water-rudder-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.09</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 3.48832</x-m>
            <y-m> 1.15971</y-m>
            <z-m>-1.61943</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>-1</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>RHrudder</object-name>
        <expression>
            <product>
                <value>30</value>
                <property>surface-positions/rudder-pos-norm</property>
                <property alias="/params/water-rudder-norm"/>
            </product>
        </expression>
        <center>
            <x-m> 3.5172</x-m>
            <y-m> 1.1571</y-m>
            <z-m>-1.4308</z-m>
        </center>
        <axis>
            <x>-0.087</x>
            <y> 0</y>
            <z> 0.996</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>RHrudder</object-name>
        <property alias="/params/water-rudder-norm"/>
        <factor>90</factor>
        <center>
            <x-m> 3.47</x-m>
            <y-m> 1.434</y-m>
            <z-m>-1.63</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>
    <animation>
        <type>translate</type>
        <object-name>LHrudder</object-name>
        <property alias="/params/water-rudder-norm"/>
        <interpolation>
            <entry>
                <ind>0.0</ind>
                <dep>0.0</dep>
            </entry>
            <entry>
                <ind>1.0</ind>
                <dep>0.09</dep>
            </entry>
        </interpolation>
        <center>
            <x-m> 3.48777</x-m>
            <y-m>-1.15794</y-m>
            <z-m>-1.6197</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>-1</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>LHrudder</object-name>
        <expression>
            <product>
                <value>30</value>
                <property>surface-positions/rudder-pos-norm</property>
                <property alias="/params/water-rudder-norm"/>
            </product>
        </expression>
        <center>
            <x-m> 3.5172</x-m>
            <y-m>-1.1571</y-m>
            <z-m>-1.4308</z-m>
        </center>
        <axis>
            <x>-0.087</x>
            <y> 0</y>
            <z> 0.996</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>LHrudder</object-name>
        <property alias="/params/water-rudder-norm"/>
        <factor>90</factor>
        <center>
            <x-m> 3.47</x-m>
            <y-m>-1.434</y-m>
            <z-m>-1.63</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

    <!-- Baggage models -->
    <model>
        <name>suitcase1</name>
        <path>Interior/Baggages/suitcase1.xml</path>
        <offsets>
            <x-m>1.68</x-m>
            <y-m>-0.14</y-m>
            <z-m>-0.59</z-m>
        </offsets>
    </model>
    <model>
        <name>suitcase2</name>
        <path>Interior/Baggages/suitcase2.xml</path>
        <offsets>
            <x-m>1.68</x-m>
            <y-m>0.14</y-m>
            <z-m>-0.59</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>suitcase1</object-name>
        <condition>
            <greater-than>
                <property>payload/weight[4]/weight-lb</property>
                <value>70.0</value>
            </greater-than>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>suitcase2</object-name>
        <condition>
            <greater-than>
                <property>payload/weight[4]/weight-lb</property>
                <value>20.0</value>
            </greater-than>
        </condition>
    </animation>

    <!-- Pitot tube cover "remove before flight" -->
    <model>
        <name>rbf-pitot</name>
        <path>Exterior/rbf/rbf.xml</path>
        <offsets>
            <x-m>-0.19</x-m>
            <y-m>-1.525</y-m>
            <z-m> 0.300</z-m>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>rbf-pitot</object-name>
        <condition>
            <property alias="/params/securing/pitot-cover"/>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>rbf-pitot</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/pitot-cover-removable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/pitot-cover"/>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/pitot-cover-removable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-pitot-tube-cap</tooltip-id>
                <label>Remove Pitot Tube Cap</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>PitotTube</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/pitot-cover-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/pitot-cover"/>
                <value>true</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
                <value>0.0</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/pitot-cover-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>put-pitot-tube-cap</tooltip-id>
                <label>Put Pitot Tube Cap</label>
            </binding>
        </hovered>
    </animation>

    <!-- Cowl Plugs -->
    <model>
        <name>CowlPlugs</name>
        <path>Exterior/cowlplugs/cowlplugs.xml</path>
    </model>

    <animation>
        <type>select</type>
        <object-name>CowlPlugs</object-name>
        <condition>
            <and>
                <property alias="/params/securing/cowl-plugs"/>
                <not>
                    <property alias="/params/engine/crashed"/>
                </not>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>CowlPlugHotSpot</object-name>
        <condition>
            <property>/sim/model/c172p/securing/cowl-plugs-addable</property>
            <or>
                <not>
                    <property>/sim/current-view/internal</property>
                </not>
                <property>/nasal/tutorial/loaded</property>
            </or>
        </condition>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>CowlPlugs</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <property>/sim/model/c172p/securing/cowl-plugs-removable</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property>/sim/model/c172p/securing/cowl-plugs-removable</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-cowl-plugs</tooltip-id>
                <label>Remove Cowl Plugs</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>CowlPlugHotSpot</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <property>/sim/model/c172p/securing/cowl-plugs-addable</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property>sim/model/c172p/securing/cowl-plugs-visible</property>
                <value>true</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property>/sim/model/c172p/securing/cowl-plugs-addable</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>put-cowl-plugs</tooltip-id>
                <label>Put Cowl Plugs</label>
            </binding>
        </hovered>
    </animation>

    <!-- Small wheel chock -->
    <model>
        <name>chock1</name>
        <path>Exterior/chock/chock.xml</path>
        <offsets>
            <x-m>-0.01</x-m>
            <y-m>0.0</y-m>
            <z-m>0.008</z-m>
        </offsets>
    </model>
    <model>
        <name>chock2</name>
        <path>Exterior/chock/chock.xml</path>
        <offsets>
            <x-m>0.32</x-m>
            <y-m>0.0</y-m>
            <z-m>0.020</z-m>
        </offsets>
    </model>
    <animation>
        <type>translate</type>
        <object-name>chock1</object-name>
        <object-name>chock2</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <factor>0.30</factor>
        <axis>
            <x>0.3</x>
            <y>0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>select</type>
        <object-name>chock1</object-name>
        <object-name>chock2</object-name>
        <condition>
            <and>
                <property alias="/params/securing/chocks"/>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>0</value>
                </equals>
            </and>
        </condition>
    </animation>

    <!-- Wooden chocks -->
    <model>
        <name>woodenchock</name>
        <path>Exterior/wooden-chock/woodenchock.xml</path>
        <offsets>
            <x-m>-0.029</x-m>
            <y-m>0.0</y-m>
            <z-m>-0.08</z-m>
        </offsets>
    </model>
    <animation>
        <type>translate</type>
        <object-name>woodenchock</object-name>
        <property>gear/gear[0]/compression-norm</property>
        <factor>0.30</factor>
        <axis>
            <x>0.3</x>
            <y>0</y>
            <z>1.0</z>
        </axis>
    </animation>
    <animation>
        <type>select</type>
        <object-name>woodenchock</object-name>
        <condition>
            <and>
                <property alias="/params/securing/chocks"/>
                <or>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property alias="/params/bushkit"/>
                        <value>2</value>
                    </equals>
                </or>
            </and>
        </condition>
    </animation>

    <!-- Pick animations to show/hide chocks -->
    <animation>
        <type>pick</type>
        <object-name>chock1</object-name>
        <object-name>chock2</object-name>
        <object-name>woodenchock</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/securing/chock</property>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property>/sim/model/c172p/securing/chock</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-wheel-chock</tooltip-id>
                <label>Remove Wheel Chock</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>NoseWheel</object-name>
        <object-name>NoseWheelBK</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/chock-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property>sim/model/c172p/securing/chock</property>
                <value>true</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/chock-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>secure-with-wheel-chock</tooltip-id>
                <label>Secure With Wheel Chock</label>
            </binding>
        </hovered>
    </animation>

    <!-- Left Tiedowns -->
    <model>
        <name>tiedownL</name>
        <path>Exterior/tiedowns/tiedownL.xml</path>
        <offsets>
            <x-m> 0.108 </x-m>
            <y-m>-2.2422</y-m>
            <z-m> 0.3528</z-m>
            <heading-deg>-90.0</heading-deg>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>tiedownL</object-name>
        <condition>
            <property alias="/params/securing/tiedowns/left/visible"/>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>tiedownL</object-name>
        <object-name>TieDownLeft</object-name> <!-- tiedown handle -->
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/left/visible"/>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property alias="/params/securing/tiedowns/left/visible"/>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-left-tiedowns</tooltip-id>
                <label>Remove Left Tie-Down</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>select</type>
        <object-name>TiedownHotSpotLeft</object-name>
        <condition>
            <property>/sim/model/c172p/securing/tiedownL-addable</property>
            <or>
                <not>
                    <property>/sim/current-view/internal</property>
                </not>
                <property>/nasal/tutorial/loaded</property>
            </or>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>TiedownHotSpotLeft</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownL-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/left/visible"/>
                <value>true</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownL-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>secure-with-left-tiedowns</tooltip-id>
                <label>Secure With Tie-Down</label>
            </binding>
        </hovered>
    </animation>

    <!-- Right Tiedowns -->
    <model>
        <name>tiedownR</name>
        <path>Exterior/tiedowns/tiedownR.xml</path>
        <offsets>
            <x-m>0.09974</x-m>
            <y-m>2.24654</y-m>
            <z-m>0.35544</z-m>
            <heading-deg>90.0</heading-deg>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>tiedownR</object-name>
        <condition>
            <property alias="/params/securing/tiedowns/right/visible"/>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>tiedownR</object-name>
        <object-name>TieDownRight</object-name> <!-- tiedown handle -->
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/right/visible"/>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property alias="/params/securing/tiedowns/right/visible"/>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-right-tiedowns</tooltip-id>
                <label>Remove Right Tie-Down</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>select</type>
        <object-name>TiedownHotSpotRight</object-name>
        <condition>
            <property>/sim/model/c172p/securing/tiedownR-addable</property>
            <or>
                <not>
                    <property>/sim/current-view/internal</property>
                </not>
                <property>/nasal/tutorial/loaded</property>
            </or>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>TiedownHotSpotRight</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownR-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/right/visible"/>
                <value>true</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownR-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>secure-with-right-tiedowns</tooltip-id>
                <label>Secure With Tie-Down</label>
            </binding>
        </hovered>
    </animation>

    <!-- Tail Tiedowns -->
    <model>
        <name>tiedownT</name>
        <path>Exterior/tiedowns/tiedownT.xml</path>
        <offsets>
            <x-m> 4.6955 </x-m>
            <y-m>-0.00184</y-m>
            <z-m>-0.677  </z-m>
            <heading-deg>180.0</heading-deg>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>tiedownT</object-name>
        <condition>
            <property alias="/params/securing/tiedowns/tail/visible"/>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>tiedownT</object-name>
        <object-name>TieDownTail</object-name> <!-- tiedown handle -->
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/tail/visible"/>
                <value>false</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <property alias="/params/securing/tiedowns/tail/visible"/>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>remove-tail-tiedowns</tooltip-id>
                <label>Remove Tail Tie-Down</label>
            </binding>
        </hovered>
    </animation>
    <animation>
        <type>select</type>
        <object-name>TiedownHotSpotTail</object-name>
        <condition>
            <property>/sim/model/c172p/securing/tiedownT-addable</property>
            <or>
                <not>
                    <property>/sim/current-view/internal</property>
                </not>
                <property>/nasal/tutorial/loaded</property>
            </or>
        </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>TiedownHotSpotTail</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownT-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property alias="/params/securing/tiedowns/tail/visible"/>
                <value>true</value>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/sim/model/c172p/securing/tiedownT-addable</property>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>secure-with-tail-tiedowns</tooltip-id>
                <label>Secure With Tie-Down</label>
            </binding>
        </hovered>
    </animation>

    <!-- Left Tank Drain Sump -->
    <animation>
        <type>select</type>
        <object-name>SumpHotSpotLeft</object-name>
            <condition>
                <and>
                    <property>/consumables/fuel/contamination_allowed</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </and>
            </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>SumpHotSpotLeft</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/consumables/fuel/contamination_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-toggle</command>
                <property>sim/model/open-pfuel-sump</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    var show = getprop("sim/model/open-pfuel-sump");
                    if (show)
                        fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-left-fuel-sample-dialog"}));
                   else
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-left-fuel-sample-dialog"}));
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/running</property>
                        <property>/consumables/fuel/contamination_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check for fuel contamination with the engine running!", 2);
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <or>
                                <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                                <property>/fdm/jsbsim/hydro/active-norm</property>
                            </or>
                        </not>
                        <property>/consumables/fuel/contamination_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check for fuel contamination while in the air!", 2);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/consumables/fuel/contamination_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>left-tank-drain-sump</tooltip-id>
                <label>Left Tank Drain Sump</label>
            </binding>
        </hovered>
    </animation>

    <!-- Right Tank Drain Sump -->
    <animation>
        <type>select</type>
        <object-name>SumpHotSpotRight</object-name>
            <condition>
                <and>
                    <property>/consumables/fuel/contamination_allowed</property>
                    <or>
                        <not>
                            <property>/sim/current-view/internal</property>
                        </not>
                        <property>/nasal/tutorial/loaded</property>
                    </or>
                </and>
            </condition>
    </animation>
    <animation>
        <type>pick</type>
        <object-name>SumpHotSpotRight</object-name>
        <visible>true</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/consumables/fuel/contamination_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-toggle</command>
                <property>sim/model/open-sfuel-sump</property>
            </binding>
            <binding>
                <command>nasal</command>
                <script>
                    var show = getprop("sim/model/open-sfuel-sump");
                    if (show)
                        fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-right-fuel-sample-dialog"}));
                    else
                        fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-right-fuel-sample-dialog"}));
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/running</property>
                        <property>/consumables/fuel/contamination_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check for fuel contamination with the engine running!", 2);
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <or>
                                <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                                <property>/fdm/jsbsim/hydro/active-norm</property>
                            </or>
                        </not>
                        <property>/consumables/fuel/contamination_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check for fuel contamination while in the air!", 2);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <property>/consumables/fuel/contamination_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>right-tank-drain-sump</tooltip-id>
                <label>Right Tank Drain Sump</label>
            </binding>
        </hovered>
    </animation>

    <!-- oil level check -->
    <animation>
        <type>pick</type>
        <object-name>OilCap</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                        <equals>
                            <property>sim/model/door-positions/oilDoor/position-norm</property>
                            <value>1</value>
                        </equals>
                    </and>
                </condition>
                <command>property-toggle</command>
                <property>sim/model/show-dip-stick</property>
            </binding>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    var show = getprop("sim/model/show-dip-stick");
                    var engine = getprop("controls/engines/active-engine");
                    if (show) {
                        if (!engine)
                            fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-oil-dialog-160"}));
                        else
                            fgcommand("dialog-show", props.Node.new({"dialog-name": "c172p-oil-dialog-180"}));
                    } else {
                        if (!engine)
                            fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-oil-dialog-160"}));
                        else
                            fgcommand("dialog-close", props.Node.new({"dialog-name": "c172p-oil-dialog-180"}));
                    }
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <property>/engines/active-engine/running</property>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check the oil level with the engine running!", 2);
                </script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <or>
                                <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                                <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                                <property>/fdm/jsbsim/hydro/active-norm</property>
                            </or>
                        </not>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                    </and>
                </condition>
                <command>nasal</command>
                <script>
                    gui.popupTip("You can't check the oil level while in the air!", 2);
                </script>
            </binding>
        </action>
        <hovered>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <or>
                            <property>/fdm/jsbsim/gear/unit[1]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[19]/WOW</property>
                            <property>/fdm/jsbsim/gear/unit[23]/WOW</property>
                            <property>/fdm/jsbsim/hydro/active-norm</property>
                        </or>
                        <property>/engines/active-engine/oil_consumption_allowed</property>
                    </and>
                </condition>
                <command>set-tooltip</command>
                <tooltip-id>oil-sump</tooltip-id>
                <label>Oil Sump</label>
            </binding>
        </hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>OilCap</object-name>
        <property>sim/model/show-dip-stick</property>
        <factor>0.3</factor>
        <axis>
            <x>0.01</x>
            <y>0.15</y>
            <z>1.0</z>
        </axis>
    </animation>

    <model>
        <name>extinguisher</name>
        <path>Interior/FE-ELT/fe.xml</path>
        <offsets>
            <x-m>-1.3</x-m>
            <y-m>0.15</y-m>
            <z-m>-0.2</z-m>
            <roll-deg>-90.0</roll-deg>
            <heading-deg>0.0</heading-deg>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>extinguisher</object-name>
        <condition>
            <and>
                <not-equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </not-equals>
                <not-equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </not-equals>
            </and>
        </condition>
    </animation>

   <model>
        <name>extinguisher-amphibious</name>
        <path>Interior/FE-ELT/fe2.xml</path>
        <offsets>
            <x-m>-1.3</x-m>
            <y-m>-0.075</y-m>
            <z-m>-0.2</z-m>
            <roll-deg>-90.0</roll-deg>
            <heading-deg>0.0</heading-deg>
        </offsets>
    </model>
    <animation>
        <type>select</type>
        <object-name>extinguisher-amphibious</object-name>
        <condition>
            <or>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>3</value>
                </equals>
                <equals>
                    <property alias="/params/bushkit"/>
                    <value>4</value>
                </equals>
            </or>
        </condition>
    </animation>

    <!-- Preflight surface checks -->
    <!-- elevator surface check -->
    <animation>
        <type>pick</type>
        <object-name>elevatorleft</object-name>
        <object-name>elevatorright</object-name>
        <object-name>elevatortrim</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.control_surface_check_elevator();</script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/control-surfaces/elevator-checked</property>
                <value>true</value>
            </binding>
        </action>
    </animation>

    <!-- left aileron surface check -->
    <animation>
        <type>pick</type>
        <object-name>leftaileron</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.control_surface_check_left_aileron();</script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/control-surfaces/left-aileron-checked</property>
                <value>true</value>
            </binding>
        </action>
    </animation>

    <!-- right aileron surface check -->
    <animation>
        <type>pick</type>
        <object-name>rightaileron</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.control_surface_check_right_aileron();</script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/control-surfaces/right-aileron-checked</property>
                <value>true</value>
            </binding>
        </action>
    </animation>

    <!-- rudder surface check -->
    <animation>
        <type>pick</type>
        <object-name>rudder</object-name>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>nasal</command>
                <script>c172p.control_surface_check_rudder();</script>
            </binding>
            <binding>
                <condition>
                    <and>
                        <not>
                            <property>/engines/active-engine/running</property>
                        </not>
                        <not>
                            <property>/sim/model/c172p/cockpit/control-lock-placed</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <or>
                            <not>
                                <property>/sim/current-view/internal</property>
                            </not>
                            <property>/nasal/tutorial/loaded</property>
                        </or>
                    </and>
                </condition>
                <command>property-assign</command>
                <property>/sim/model/c172p/control-surfaces/rudder-checked</property>
                <value>true</value>
            </binding>
        </action>
    </animation>

</PropertyList>