<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader" 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>Q8M</name>
        <specs>
            <neededPower>140</neededPower>
            <combination filterCategory="frontLoaderTools" />
        </specs>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>vehicles/quicke/q8M/store_q8M.png</image>
        <price>17000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>QUICKE</brand>
        <category>frontLoaders</category>
        <shopHeight>3</shopHeight>
        <shopTranslationOffset>0 0.285 0</shopTranslationOffset>
        <shopRotationOffset>11.822 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>942848</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>155648</indexBufferMemoryUsage>
        <textureMemoryUsage>1572864</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
        <filename>vehicles/quicke/q8M/q8M.i3d</filename>
        <size width="2.5" length="3.5" lengthOffset="1.4"/>
        <components>
            <component centerOfMass="0 0 0.2" solverIterationCount="10" mass="760" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="FRONTLOADER" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableFrontloader" >
                <subType name="Q8M" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <attacherJoints>
        <attacherJoint jointType="frontloader" node="attacherJointTools" nodeVisual="attacherJointTools_visuals" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="q8M_main_component1" />
        </sounds>
    </attacherJoints>

    <connectionHoses>
        <target attacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" straighteningFactor="2">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true" />
        </target>
        <target attacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" straighteningFactor="2">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true" />
        </target>
    </connectionHoses>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm01" startTime="0.00" endTime="0.75" startRot="0 0 0"  endRot="-82.697 0 0" />
            <part node="supportArm02" startTime="0.25" endTime="0.75" startRot="0 0 0"  endRot="-120.619 0 0" />

            <sound template="clackVar5" startTime="0.01" direction="0" volumeScale="0.7" pitchScale="2.8" linkNode="supportArm01"/>
            <sound template="clackVar1" startTime="0.74" direction="0" volumeScale="0.7" pitchScale="2"   linkNode="supportArm01"/>
        </animation>
    </animations>

    <cylindered>
      <movingTools>
          <movingTool node="mainArmPhys" delayedNode="mainArm">
              <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.8" iconName="FRONTLOADER_ARM_ROTATE" />
              <attacherJoint jointIndices="1" />
              <rotation rotSpeed="20" rotAcceleration="150" rotMax="5" rotMin="-80" startRot="0" detachingRotMinLimit="-10" />
              <dependentPart node="attacherRotPhys" />
              <dependentMovingTool node="attacherPhys" minRotLimits="-55 -60" maxRotLimits="100 65"/>
          </movingTool>
          <movingTool node="attacherPhys" delayedNode="attacher">
              <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
              <attacherJoint jointIndices="1" />
              <rotation rotSpeed="50" rotAcceleration="300" rotMax="100" rotMin="-60" startRot="0" syncMaxRotLimits="true" />
          </movingTool>
          <movingTool node="mainArm">
              <dependentPart node="attacherRot" />
              <dependentPart node="mainArmHydraulic" />
              <dependentPart node="mainArmAlignArm" />
          </movingTool>
          <movingTool node="attacher">
              <dependentPart node="attacherAlignArm" />
              <dependentPart node="mainArmAlignArmHydraulic" />
          </movingTool>
      </movingTools>

      <movingParts>
          <movingPart node="attacherRotPhys" referenceFrame="mainArmPhysRoot">
              <attacherJoint jointIndices="1" />
          </movingPart>
          <movingPart node="attacherRot" referenceFrame="q8M_main_component1">
              <attacherJoint jointIndices="1" />
              <dependentPart node="attacherAlignArm" />
          </movingPart>
          <movingPart node="mainArmHydraulic" referencePoint="mainArmHydraulicRef" referenceFrame="mainArmHydraulicRef">
            <translatingPart node="mainArmHydraulicPunch" />
          </movingPart>
          <movingPart node="mainArmAlignArm" localReferencePoint="mainArmAlignArmPart" referencePoint="mainArmAlignArmRef" referenceFrame="mainArmAlignArmRefFrame">
              <dependentPart node="mainArmAlignArmPart" />
              <dependentPart node="mainArmAlignArmHydraulic" />
          </movingPart>
          <movingPart node="mainArmAlignArmPart" referencePoint="mainArmAlignArmRef" referenceFrame="mainArmAlignArmRef"/>
          <movingPart node="attacherAlignArm" localReferencePoint="attacherAlignArmPart" referencePoint="attacherAlignArmRef" referenceFrame="attacherAlignArmRefFrame" >
              <dependentPart node="attacherAlignArmPart" />
          </movingPart>
          <movingPart node="attacherAlignArmPart" referencePoint="attacherAlignArmRef" referenceFrame="attacherAlignArmPartRefFrame"/>
          <movingPart node="mainArmAlignArmHydraulic" referencePoint="mainArmAlignArmHydraulicRef" referenceFrame="mainArmAlignArmHydraulicRef" playSound="true">
              <translatingPart node="mainArmAlignArmHydraulicPunch" />
          </movingPart>
      </movingParts>

      <sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="mainArmHydraulic"         actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="mainArmHydraulic"         fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="mainArmHydraulic"         actionNames="TRANSLATING_POS"                 nodes="mainArmHydraulic"         fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone2"   pitchScale="2.5" volumeScale="0.4" linkNode="mainArmAlignArmHydraulic" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="mainArmAlignArmHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="0.8" linkNode="mainArmAlignArmHydraulic" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="mainArmAlignArmHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalLowVar2"          pitchScale="1.0" volumeScale="3"   linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="cylinderPunch"         pitchScale="1.5" volumeScale="0.4" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="metalClose"            pitchScale="2.5" volumeScale="0.2" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="clackVar6"             pitchScale="1.0" volumeScale="1.0" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="metalLowVar2"          pitchScale="1.3" volumeScale="2.0" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="cylinderPunch"         pitchScale="1.8" volumeScale="0.2" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="metalClose"            pitchScale="2.8" volumeScale="0.1" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="mainArmPhys"/>
            <actionSound template="clackVar6"             pitchScale="1.8" volumeScale="0.5" linkNode="mainArmPhys"              actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="mainArmPhys"/>
        </sounds>
    </cylindered>

    <ai>
        <agentAttachment width="1.3" height="2.2" length="3.2" lengthOffset="1.4"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.62" maxX="0.62" minZ="-0.5" maxZ="2.15" yOffset="-0.2" node="mainArmAlignArmHydraulic" />
    </foliageBending>

    <baseMaterialConfigurations price="50" useDefaultColors="false">
        <baseMaterialConfiguration name="%s %s"                     color="QUICKE_BLACK1" params="Quicke|$l10n_ui_colorBlack"/>
        <baseMaterialConfiguration name="$l10n_ui_colorNatureGreen" color="FENDT_NATUREGREEN1" price="0" />
        <baseMaterialConfiguration name="$l10n_ui_colorGreen"       color="FENDT_NEWGREEN1"    price="1500" />
        <baseMaterialConfiguration name="$l10n_ui_colorBlack"       color="FENDT_BLACK1"       price="1500" />
        <baseMaterialConfiguration name="$l10n_ui_colorPetrol"      color="FENDT_PETROL"       price="2500" />
        <baseMaterialConfiguration name="$l10n_ui_colorPineGreen"   color="FENDT_PINEGREEN"    price="2500" />
        <baseMaterialConfiguration name="$l10n_ui_colorCommunal"    color="FENDT_ORANGE1"      price="2500" />
        <baseMaterialConfiguration name="$l10n_ui_colorWhite"       color="CLAAS_WHITE1"       price="2500" />
        <baseMaterialConfiguration name="$l10n_ui_colorBeige"       color="FENDT_BEIGE1"       price="3000" material="0" />
        <baseMaterialConfiguration name="$l10n_ui_colorWineRed"     color="FENDT_WINERED1"     price="3500" material="0" />
        <baseMaterialConfiguration name="$l10n_ui_colorGrey"        color="FENDT_S_GRAY1"        price="4500" material="0" />
        <baseMaterialConfiguration name="$l10n_ui_colorGrey"        color="FENDT_S_GRAY2"        price="4500" material="0" />
        <baseMaterialConfiguration name="$l10n_ui_colorGlossyGrey"  color="FENDT_S_GRAY2"        price="4500" material="27" />
        <baseMaterialConfiguration name="$l10n_ui_colorBlue"        color="0.01 0.025 0.06"    price="2500" />
        <material name="q8M_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <designMaterialConfigurations price="50" useDefaultColors="false">
        <designMaterialConfiguration name="%s %s"                     color="QUICKE_BLACK1" params="Quicke|$l10n_ui_colorBlack"/>
        <designMaterialConfiguration name="$l10n_ui_colorNatureGreen" color="FENDT_NATUREGREEN1" price="0" />
        <designMaterialConfiguration name="$l10n_ui_colorGreen"       color="FENDT_NEWGREEN1"    price="1500" />
        <designMaterialConfiguration name="$l10n_ui_colorBlack"       color="FENDT_BLACK1"       price="1500" />
        <designMaterialConfiguration name="$l10n_ui_colorPetrol"      color="FENDT_PETROL"       price="2500" />
        <designMaterialConfiguration name="$l10n_ui_colorPineGreen"   color="FENDT_PINEGREEN"    price="2500" />
        <designMaterialConfiguration name="$l10n_ui_colorCommunal"    color="FENDT_ORANGE1"      price="2500" />
        <designMaterialConfiguration name="$l10n_ui_colorWhite"       color="CLAAS_WHITE1"       price="2500" />
        <designMaterialConfiguration name="$l10n_ui_colorBeige"       color="FENDT_BEIGE1"       price="3000" material="0" />
        <designMaterialConfiguration name="$l10n_ui_colorWineRed"     color="FENDT_WINERED1"     price="3500" material="0" />
        <designMaterialConfiguration name="$l10n_ui_colorGrey"        color="FENDT_S_GRAY1"        price="4500" material="0" />
        <designMaterialConfiguration name="$l10n_ui_colorGrey"        color="FENDT_S_GRAY2"        price="4500" material="0" />
        <designMaterialConfiguration name="$l10n_ui_colorGlossyGrey"  color="FENDT_S_GRAY2"        price="4500" material="27" />
        <baseMaterialConfiguration name="$l10n_ui_colorBlue"        color="0.01 0.025 0.06"    price="2500" />
        <material name="q8M_mat" shaderParameter="colorMat6" />
    </designMaterialConfigurations>

    <baseMaterial>
        <material name="q8M_mat" baseNode="q8M_vis">
            <shaderParameter name="colorMat0" value="QUICKE_BLACK1"/>
            <shaderParameter name="colorMat6" value="QUICKE_BLACK1"/>
        </material>
    </baseMaterial>

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

    <i3dMappings>
        <i3dMapping id="q8M_main_component1" node="0>" />
        <i3dMapping id="q8M_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="mainArmPhys" node="0>0|1|0" />
        <i3dMapping id="attacherRotPhys" node="0>0|1|0|0" />
        <i3dMapping id="attacherPhys" node="0>0|1|0|0|0" />
        <i3dMapping id="attacherJointTools" node="0>0|1|0|0|0|0" />
        <i3dMapping id="mainArmPhysRoot" node="0>0|1|1" />
        <i3dMapping id="mainArm" node="0>0|1|2" />
        <i3dMapping id="attacherRot" node="0>0|1|2|0" />
        <i3dMapping id="attacher" node="0>0|1|2|0|0" />
        <i3dMapping id="attacherJointTools_visuals" node="0>0|1|2|0|0|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|1|2|0|0|0|1|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|1|2|0|0|0|1|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|1|2|0|0|0|1|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|1|2|0|0|0|1|1|0" />
        <i3dMapping id="attacherAlignArmRefFrame" node="0>0|1|2|0|0|1" />
        <i3dMapping id="attacherAlignArm" node="0>0|1|2|0|0|1|0" />
        <i3dMapping id="attacherAlignArmPartRefFrame" node="0>0|1|2|0|0|1|0|0" />
        <i3dMapping id="attacherAlignArmPart" node="0>0|1|2|0|0|1|0|0|0" />
        <i3dMapping id="mainArmAlignArmHydraulicRef" node="0>0|1|2|0|0|1|0|1" />
        <i3dMapping id="supportArm01" node="0>0|1|2|1" />
        <i3dMapping id="supportArm02" node="0>0|1|2|2" />
        <i3dMapping id="mainArmHydraulic" node="0>0|1|2|3" />
        <i3dMapping id="mainArmHydraulicPunch" node="0>0|1|2|3|0" />
        <i3dMapping id="attacherAlignArmRef" node="0>0|1|2|5" />
        <i3dMapping id="mainArmAlignArmRef" node="0>0|1|2|6" />
        <i3dMapping id="mainArmAlignArmRefFrame" node="0>0|1|3" />
        <i3dMapping id="mainArmAlignArm" node="0>0|1|3|0" />
        <i3dMapping id="mainArmAlignArmPart" node="0>0|1|3|0|0" />
        <i3dMapping id="mainArmAlignArmHydraulic" node="0>0|1|3|0|0|0" />
        <i3dMapping id="mainArmAlignArmHydraulicPunch" node="0>0|1|3|0|0|0|0" />
        <i3dMapping id="mainArmHydraulicRef" node="0>0|1|4" />
    </i3dMappings>
</vehicle>
