<?xml version="1.0" encoding="utf-8" ?>
<vehicle type="dynamicMountAttacherShovelLeveler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs25/vehicle.xsd">
    <annotation>RossN Mods, All Rights Reserved.</annotation>
    <storeData>
        <name params="$l10n_shopItem_telehandlerFork|$l10n_configuration_inputAttacherTeleLoaders">%s (%s)</name>
        <specs>
            <combination filterCategory="teleLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>palletForks/store_palletForks.dds</image>
        <price>1500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>teleLoaderTools</category>
        <vertexBufferMemoryUsage>161024</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>40704</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_telehandlerTool</typeDesc>
        <filename>palletForks/palletForks.i3d</filename>
        <size width="1.5" length="1.8" lengthOffset="0.5" height="1.2" />
        <components>
            <component centerOfMass="0.00 0.00 0.30" solverIterationCount="10" mass="250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueDefault" price="0" isSelectable="true">
                <inputAttacherJoint node="attacherJoint" jointType="telehandler" />
                <objectChange node="standardAdapter" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_qbrackets" price="0" isSelectable="true">
                <inputAttacherJoint node="attacherJointQ" jointType="telehandler" />
                <objectChange node="standardAdapter" visibilityActive="false" visibilityInactive="true"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_qbrackets" price="0" isSelectable="false">
                <inputAttacherJoint node="attacherJointWL" jointType="wheelLoader" />
                <objectChange node="standardAdapter" visibilityActive="false" visibilityInactive="true"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
    </attachable>

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

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="connectionHoses1" length="0.2" diameter="0.017" straighteningFactor="2">
            <objectChange node="hosesDetatched" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="connectionHoses2" length="0.2" diameter="0.017" straighteningFactor="2" />
    </connectionHoses>

    <dynamicMountAttacher node="jointNode">
        <fork node="forkCollision01" />
        <fork node="forkCollision02" />
    </dynamicMountAttacher>

    <cylindered>
        <movingTools>
            <movingTool node="forkSliderLeft">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X" />
                <dependentMovingTool node="forkSliderRight" speedScale="-1" />
                <dependentMovingTool node="forkLeft" speedScale="1" />
                <dependentMovingTool node="forkRight" speedScale="-1" />
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.22" transMax="0.04" startTrans="-0.1" />
            </movingTool>
            <movingTool node="forkSliderRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.04" transMax="0.22" startTrans="0.1" />
            </movingTool>
            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.04" transMax="0.22" startTrans="0.1" />
            </movingTool>
            <movingTool node="forkLeft">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.22" transMax="0.04" startTrans="-0.1" />
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.6" volumeScale="2" linkNode="forkSliderLeft" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="forkLeft" />
            <actionSound template="clackVar6" pitchScale="1" volumeScale="1" linkNode="forkSliderLeft" actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="forkLeft" />
            <actionSound template="clackVar6" pitchScale="0.8" volumeScale="1" linkNode="forkSliderLeft" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="forkLeft" />
        </sounds>
    </cylindered>

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

    <animations>
        <animation name="folding">
            <part node="forkLeft" startTime="0.0" endTime="2.0" startRot="0 0 0" endRot="-150 0 0" startTrans="0 0 0" endTrans="0.05 0 0" />
            <part node="forkRight" startTime="0.0" endTime="2.0" startRot="0 0 0" endRot="-150 0 0" startTrans="0 0 0" endTrans="-0.05 0 0" />
            <part node="forkRest" startTime="1.99" endTime="2.0" startRot="0 0 0" endRot="-180 0 0" />
            <part node="forkSliderLeft" startTime="0.0" endTime="2.0" startTrans="0 0.694 -0.001" endTrans="0.05 0.694 -0.001" />
            <part node="forkSliderRight" startTime="0.0" endTime="2.0" startTrans="0 0.694 -0.001" endTrans="-0.05 0.694 -0.001" />
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="1" pitchScale="0.7" />
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="1" pitchScale="0.7" />
            <sound template="clackVar6" startTime="2" direction="-1" volumeScale="1" pitchScale="0.7" />
            <sound template="clackVar6" startTime="2" direction="-1" volumeScale="1" pitchScale="0.7" />
        </animation>
    </animations>

    <ai>
        <agentAttachment width="1.5" height="1.5" length="1.4" lengthOffset="0.5" />
    </ai>

    <tensionBeltObject>
        <meshNodes>
            <meshNode node="tensionBeltMesh01" />
        </meshNodes>
    </tensionBeltObject>

    <foliageBending>
        <bendingNode minX="-0.65" maxX="0.65" minZ="-0.2" maxZ="0.2" yOffset="0.1" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="-0.3" maxZ="0.6" yOffset="0.01" node="forkCollision01" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="-0.3" maxZ="0.6" yOffset="0.01" node="forkCollision02" />
    </foliageBending>

    <baseColorConfigurations useDefaultColors="true">
        <baseColorConfiguration materialTemplateName="SHARED_BLACK0" isDefault="true" />
        <material materialSlotName="black_calibratedGlossPaint_mat" />
    </baseColorConfigurations>

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

    <i3dMappings>
        <i3dMapping id="mainComponent" node="0>" />
        <i3dMapping id="upperPole" node="0>1" />
        <i3dMapping id="forkLeft" node="0>1|0" />
        <i3dMapping id="forkCollision01" node="0>1|0|0" />
        <i3dMapping id="forkRight" node="0>1|1" />
        <i3dMapping id="forkCollision02" node="0>1|1|0" />
        <i3dMapping id="forkSliderLeft" node="0>2" />
        <i3dMapping id="punchLeft" node="0>2|0" />
        <i3dMapping id="forkSliderRight" node="0>3" />
        <i3dMapping id="punchRight" node="0>3|0" />
        <i3dMapping id="hosesDetatched" node="0>4" />
        <i3dMapping id="hydDetatched2" node="0>4|0" />
        <i3dMapping id="hydDetatched1" node="0>4|1" />
        <i3dMapping id="hosesFixed" node="0>5" />
        <i3dMapping id="forkRest" node="0>6" />
        <i3dMapping id="standardAdapter" node="0>8" />
        <i3dMapping id="attacherJoint" node="0>10|0" />
        <i3dMapping id="attacherJointQ" node="0>10|1" />
        <i3dMapping id="attacherJointWL" node="0>10|2" />
        <i3dMapping id="connectionHoses1" node="0>11|0" />
        <i3dMapping id="connectionHoses2" node="0>11|1" />
        <i3dMapping id="jointNode" node="0>12" />
        <i3dMapping id="tensionBeltMesh01" node="0>13" />
    </i3dMappings>
</vehicle>
