<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="soilSampler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>SCOUT</name>
        <specs>
        </specs>
        <functions>
            <function>$l10n_function_soilSampler</function>
        </functions>
        <rotation>0</rotation>
        <image>vehicles/fritzmeier/isariaScout/store_isariaScout.png</image>
        <price>17000</price>
        <lifetime>600</lifetime>
        <brand>ISARIA</brand>
        <category>misc</category>
        <shopHeight>2</shopHeight>
        <shopTranslationOffset>0 0.008 0</shopTranslationOffset>
        <shopRotationOffset>1.085 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_soilSampler</typeDesc>
        <filename>vehicles/fritzmeier/isariaScout/isariaScout.i3d</filename>
        <size width="2.5" length="1.5"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="260" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerTransLimitScale="0 1 0" lowerRotLimitScale="0 0 0" upperRotationOffset="1" lowerRotationOffset="0">
                <distanceToGround lower="0.55" upper="1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.8" diameter="0.0175" straighteningFactor="1">
            <objectChange node="hydraulic_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.8" diameter="0.0175" straighteningFactor="1"/>

        <hose inputAttacherJointIndices="1" type="electric"  node="electric"  length="1.2" diameter="0.01" straighteningFactor="1.4">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulic_connector01"   filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulic_connector02"   filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector"      filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
    </lights>

    <soilSampler node="samplingNode" radius="32.5" actionName="IMPLEMENT_EXTRA" animationName="soilSamplingAnimation" animationSpeed="1" foldMinLimit="1" foldMaxLimit="1">
        <samplesAnimation name="sampleContainerAnimation" speed="0.5" minSamples="1" maxSamples="3"/>
        <visualSamples updateTime="0.35">
            <visualSample node="soilSample01"/>
            <visualSample node="soilSample02"/>
            <visualSample node="soilSample03"/>
        </visualSamples>
    </soilSampler>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="0">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="moveSupport">
            <part node="supportFeet" startTime="0.00"  endTime="0.30" startTrans="0 0.2 0" endTrans="0 0 0" />
            <part node="supportFeet" startTime="0.00"  endTime="0.29" visibility="false" />
            <part node="supportFeet" startTime="0.29"  endTime="0.30" visibility="true" />

            <sound template="clackVar6"  startTime="0.26" direction="-1" volumeScale="0.8" pitchScale="1" />
            <sound template="latchSmall" startTime="0.26" direction="-1" volumeScale="0.3" pitchScale="2"   />
        </animation>

        <animation name="soilSamplingAnimation">
            <part node="drillingUnit"               startTime="0" endTime="1" startTrans="0 0 0"     endTrans="0 -0.13 0"/>
            <part node="drillMotorHydraulicPunch"   startTime="1" endTime="4" startTrans="0 0 0"     endTrans="0 -1 0"/>
            <part node="drillMotor"                 startTime="1" endTime="4" startTrans="0 0 0"     endTrans="0 -1 0"/>
            <part node="drill"                      startTime="1" endTime="4" startRot="0 0 0"       endRot="0 -3600 0"/>
            <part node="drill"                      startTime="4" endTime="6" startRot="0 -3600 0"   endRot="0 0 0"/>
            <part node="drillMotor"                 startTime="4" endTime="6" startTrans="0 -1 0"    endTrans="0 0 0"/>
            <part node="drillMotorHydraulicPunch"   startTime="4" endTime="6" startTrans="0 -1 0"    endTrans="0 0 0"/>
            <part node="drillingUnit"               startTime="6" endTime="7" startTrans="0 -0.13 0" endTrans="0 0 0"/>

            <sound linkNode="0>" file="sounds/tools/isaria_scout_sampling.wav" startTime="0.01" innerRadius="5.0" outerRadius="80.0" fadeOut="0.3">
                <volume indoor="0.15" outdoor="0.65" />
                <pitch indoor="1.0" outdoor="1.0" />
                <lowpassGain indoor="0.10" outdoor="1.00" />
            </sound>
        </animation>

        <animation name="folding">
            <part node="drillMotorHydraulic"     startTime="1.266" endTime="3.797"  startRot="0.0 0.0 179.99" endRot="0.0 0.0 0.0" />
            <part node="drillHydraulicJointAnim" startTime="1.266" endTime="3.797"  startTrans="-0.076 1.725 0.261" endTrans="0.001 1.637 0.279" startRot="5.039 0.0 43.378" endRot="0.0 0.0 0.0" />
            <part node="drillMotorHydraulicLock" startTime="3.481" endTime="3.608"  startTrans="0.06 1.758 0.08" endTrans="0.073 1.758 0.08" />
            <part node="drillMotorHydraulicLock" startTime="3.608" endTime="3.797"  startTrans="0.073 1.758 0.08" endTrans="0.063 1.758 0.08" />
            <part node="drillMotorHydraulicLock" startTime="3.797" endTime="3.924"  startTrans="0.063 1.758 0.08" endTrans="0.06 1.758 0.08" />
            <part node="drillMotorHydraulicPunchLock" startTime="0" endTime="3.924"  visibility="false" />
            <part node="drillMotorHydraulicPunchLock" startTime="3.924" endTime="5"  visibility="true" />
            <part node="backCover"               startTime="0.0"   endTime="1.25"   startTrans="-0.0 0.197 0.01" endTrans="-0.0 0.204 0.007" startRot="0.0 0.0 0.0" endRot="-17.969 0.0 0.0" />
            <part node="backCover"               startTime="3.75"  endTime="5.0"    startTrans="-0.0 0.204 0.007" endTrans="-0.0 0.197 0.01" startRot="-17.969 0.0 0.0" endRot="0.0 0.0 0.0" />

            <part node="lockBolt02"     startTime="0" endTime="0.1"  startTrans="-0.018 1.728 -0.202" endTrans="-0.018 1.734 -0.202" />
            <part node="lockBolt02"     startTime="0.1" endTime="0.2"  startTrans="-0.018 1.734 -0.202" endTrans="-0.018 1.728 -0.202" />
            <part node="lockBolt02"     startTime="4.8" endTime="4.9"  startTrans="-0.018 1.728 -0.202" endTrans="-0.018 1.734 -0.202" />
            <part node="lockBolt02"     startTime="4.9" endTime="5.0"  startTrans="-0.018 1.734 -0.202" endTrans="-0.018 1.728 -0.202" />

            <part node="lockBolt01"     startTime="1.266" endTime="1.366"  startTrans="-0.148 1.720 -0.167" endTrans="-0.148 1.720 -0.174" />
            <part node="lockBolt01"     startTime="1.366" endTime="1.466"  startTrans="-0.148 1.720 -0.174" endTrans="-0.148 1.720 -0.167" />

            <sound linkNode="0>" file="sounds/tools/isaria_scout_unfold_loop.wav" startTime="0.01" endTime="4.99" direction="0" innerRadius="5.0" outerRadius="80.0" fadeOut="0.08">
                <volume indoor="1.2" outdoor="2.2" />
                <pitch indoor="1.0" outdoor="1.4" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </sound>
            <sound template="clackVar6"  startTime="4.99" direction="1"  volumeScale="0.9" pitchScale="0.9" />
            <sound template="sheetImp01" startTime="4.99" direction="1"  volumeScale="0.3" pitchScale="0.6" />
            <sound template="metalClose" startTime="4.99" direction="1"  volumeScale="0.5" pitchScale="1.3" />
            <sound template="clackVar6"  startTime="1.2" direction="1"   volumeScale="0.7" pitchScale="1.2" />
            <sound template="sheetImp02" startTime="1.2"  direction="1"  volumeScale="1"   pitchScale="0.9" />
            <sound template="clackVar5"  startTime="3.6"  direction="1"  volumeScale="0.6" pitchScale="0.9" />
            <sound template="clackVar6"  startTime="1.3"  direction="-1" volumeScale="0.6" pitchScale="1.2" />
            <sound template="clackVar1"  startTime="0.3"  direction="-1" volumeScale="0.6" pitchScale="1.2" />
            <sound template="clackVar6"  startTime="3.7"  direction="-1" volumeScale="0.6" pitchScale="1.2" />
            <sound template="sheetImp02" startTime="3.7"  direction="-1" volumeScale="0.9" pitchScale="1.6" />
        </animation>

        <animation name="sampleContainerAnimation">
            <part node="sampleContainers" startTime="0" endTime="1" startTrans="0.204 0 0" endTrans="0 0 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="sampleContainers" playSound="false">
                <dependentPart node="sampleContainersHydraulic" />
            </movingTool>
            <movingTool node="drillingUnit"/>
            <movingTool node="drillMotorHydraulicPunch"/>
        </movingTools>

        <movingParts>
            <movingPart node="sampleContainersHydraulic" referencePoint="sampleContainersHydraulicRef" referenceFrame="sampleContainersHydraulicRef">
                <translatingPart node="sampleContainersHydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <foliageBending>
        <bendingNode node="drillingUnit" minX="-0.57" maxX="0.57" minZ="-0.4" maxZ="0.25" yOffset="0.14" />
    </foliageBending>

    <baseMaterial>
        <material name="isariaScout_mat" baseNode="isariaScout_vis">
            <shaderParameter name="colorMat0" value="ISARIA_BLUE1"/>
            <shaderParameter name="colorMat5" value="ISARIA_BLUE1"/>
        </material>
    </baseMaterial>

    <ai>
        <agentAttachment width="1.2" height="1.88" length="0.9" lengthOffset="0.025"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="isariaScout_main_component1" node="0>" />
        <i3dMapping id="isariaScout_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supportFeet" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|3|0" />
        <i3dMapping id="hydraulic_detached" node="0>0|0|3|0|0" />
        <i3dMapping id="hydraulic_connector01" node="0>0|0|3|0|0|0" />
        <i3dMapping id="hydraulic_connector02" node="0>0|0|3|0|0|1" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|3|1" />
        <i3dMapping id="drillingUnit" node="0>0|1|0" />
        <i3dMapping id="drillMotor" node="0>0|1|0|0" />
        <i3dMapping id="drill" node="0>0|1|0|0|0" />
        <i3dMapping id="drillMotorHydraulic" node="0>0|1|0|1" />
        <i3dMapping id="drillMotorHydraulicPunch" node="0>0|1|0|1|0" />
        <i3dMapping id="drillMotorHydraulicLock" node="0>0|1|0|2" />
        <i3dMapping id="drillMotorHydraulicPunchLock" node="0>0|1|0|3" />
        <i3dMapping id="sampleContainers" node="0>0|1|0|4" />
        <i3dMapping id="sampleContainersHydraulicRef" node="0>0|1|0|4|0" />
        <i3dMapping id="soilSample01" node="0>0|1|0|4|1" />
        <i3dMapping id="soilSample02" node="0>0|1|0|4|2" />
        <i3dMapping id="soilSample03" node="0>0|1|0|4|3" />
        <i3dMapping id="sampleContainersHydraulic" node="0>0|1|0|5" />
        <i3dMapping id="sampleContainersHydraulicPunch" node="0>0|1|0|5|0" />
        <i3dMapping id="backCover" node="0>0|1|0|6" />
        <i3dMapping id="electric" node="0>0|1|0|7|0" />
        <i3dMapping id="electric_detached" node="0>0|1|0|7|0|0" />
        <i3dMapping id="electric_connector" node="0>0|1|0|7|0|0|0" />
        <i3dMapping id="drillHydraulicJointAnim" node="0>0|1|0|11" />
        <i3dMapping id="lockBolt01" node="0>0|1|0|12" />
        <i3dMapping id="lockBolt02" node="0>0|1|0|13" />
        <i3dMapping id="samplingNode" node="0>0|2" />
    </i3dMappings>
</vehicle>
