<?xml version="1.0" encoding="utf-8" ?>
<vehicle type="dynamicMountAttacherShovel" 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_frontloaderManureFork|$l10n_configuration_inputAttacherTeleLoaders">%s (%s)</name>
        <specs>
            <combination filterCategory="teleLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>grab/store_grab.dds</image>
        <price>2900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>teleLoaderTools</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>1.855 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>205568</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>60672</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>grab/grab.i3d</filename>
        <size width="2.8" length="1.5" height="1.2" />
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="550" />
            <component solverIterationCount="10" mass="150" />
            <joint component1="1" component2="2" node="componentJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="300 0 0" rotLimitDamping="30 0 0" rotLimitForceLimit="10 -1 -1" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

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

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

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits allowFoldingWhileFilled="false">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="2000">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="2000" showInShop="false" showOnHud="false" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxAllowedHeapAngle="30" fillUnitIndex="1" maxSubDivEdgeLength="0.6" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="1.1" length="0.1" />
            </loadInfo>
        </loadInfos>
        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="1.1" length="0.1" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <cylindered>
        <movingTools>
            <movingTool node="componentJoint" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.15" iconName="TOOL_OPEN_CLOSE" />
                <componentJoint index="1" anchorActor="0" />
                <rotation rotSpeed="200" rotAcceleration="50" rotMax="2" rotMin="-80" startRot="2" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="grabTop_vis" referencePoint="grabRef" referenceFrame="grabRef" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="100">
                <dependentPart node="hydraulic" />
            </movingPart>
            <movingPart node="hydraulic" referencePoint="hydraulicRef" referenceFrame="hydraulicRef">
                <translatingPart node="hydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="hydraulicSmallClose" pitchScale="1.35" volumeScale="2" linkNode="componentJoint" actionNames="TOOL_MOVE_NEG" nodes="componentJoint" fadeIn="0.1" fadeOut="0.1" />
            <actionSound template="hydraulicClose02" pitchScale="1.5" volumeScale="2" linkNode="componentJoint" actionNames="TOOL_MOVE_POS" nodes="componentJoint" fadeIn="0.1" fadeOut="0.1" />
            <actionSound template="metalImpHigh01" pitchScale="0.84" volumeScale="0.65" linkNode="componentJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="componentJoint" />
            <actionSound template="vibratingImp" pitchScale="0.9" volumeScale="0.8" linkNode="componentJoint" actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="componentJoint" />
            <actionSound template="grabImp" pitchScale="0.9" volumeScale="0.8" linkNode="componentJoint" actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="componentJoint" />
        </sounds>
    </cylindered>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="880">
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2" />
            <info width="1.0" length="0.2" zOffset="0.5" />
            <movingToolActivation node="componentJoint" isInverted="true" openFactor="0.4" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect" materialType="unloadingParticle" />
                    <effectNode effectNode="effectGrainBack" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" />
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="2.8" length="0.2" needsMovement="true" maxPickupAngle="105">
            <movingToolActivation node="componentJoint" isInverted="true" openFactor="0.4" />
        </shovelNode>
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="180" />
    </shovel>

    <ai>
        <agentAttachment width="2.8" height="1.5" length="1.5" lengthOffset="0" />
    </ai>

    <dynamicMountAttacher node="mainComponent">
        <fork node="tineCollision01" />
        <fork node="tineCollision02" />
        <grab openMountType="TYPE_FORK" closedMountType="TYPE_AUTO_ATTACH_XYZ">
            <movingToolActivation node="componentJoint" isInverted="true" openFactor="0.4" />
        </grab>
    </dynamicMountAttacher>

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

    <foliageBending>
        <bendingNode minX="1.35" maxX="-1.35" minZ="-0.6" maxZ="0.6" yOffset="0.02" />
    </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="6" fieldMultiplier="2" />

    <i3dMappings>
        <i3dMapping id="mainComponent" node="0>" />
        <i3dMapping id="grab_vis" node="0>0" />
        <i3dMapping id="grabTop_vis" node="0>0|0" />
        <i3dMapping id="hydraulicRef" node="0>0|0|0" />
        <i3dMapping id="tensionBeltMesh02" node="0>0|0|1" />
        <i3dMapping id="componentJoint" node="0>0|3" />
        <i3dMapping id="bracketsQ" node="0>0|4" />
        <i3dMapping id="brackets" node="0>0|5" />
        <i3dMapping id="attacherJoint" node="0>0|6|0" />
        <i3dMapping id="attacherJointQ" node="0>0|6|1" />
        <i3dMapping id="attacherJointWL" node="0>0|6|2" />
        <i3dMapping id="hydraulicIn" node="0>0|6|3|0" />
        <i3dMapping id="hydraulicOut" node="0>0|6|3|1" />
        <i3dMapping id="hosesDetatched" node="0>0|6|3|2" />
        <i3dMapping id="hoseAdapterDetached1" node="0>0|6|3|2|0" />
        <i3dMapping id="hoseAdapterDetached2" node="0>0|6|3|2|1" />
        <i3dMapping id="pickUpNode" node="0>0|7" />
        <i3dMapping id="dischargeNode" node="0>0|8|0" />
        <i3dMapping id="emitterShape" node="0>0|8|1" />
        <i3dMapping id="effectNodesBack" node="0>0|8|2" />
        <i3dMapping id="effectGrainBack" node="0>0|8|2|0" />
        <i3dMapping id="effectSmokeBack" node="0>0|8|2|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|9|0" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|9|1" />
        <i3dMapping id="fillVolume" node="0>0|9|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|10|0" />
        <i3dMapping id="hydraulic" node="0>0|11" />
        <i3dMapping id="hydraulicPunch" node="0>0|11|0" />
        <i3dMapping id="tineCollision01" node="0>2|0" />
        <i3dMapping id="tensionBeltMesh01" node="0>2|1" />
        <i3dMapping id="grabComponent" node="1>" />
        <i3dMapping id="grabRef" node="1>0" />
        <i3dMapping id="tineCollision02" node="1>1" />
    </i3dMappings>
</vehicle>
