<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="logGrab" 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>$l10n_shopItem_skidSteerLogFork</name>
        <specs>
            <combination filterCategory="skidSteerVehicles"/>
        </specs>
        <image>skidSteerAttachments/store_skidLogFork.png</image>
        <price>1200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>skidSteerTools</category>
        <shopTranslationOffset>0 0.042 0</shopTranslationOffset>
        <shopRotationOffset>17.489 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>75776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>17920</indexBufferMemoryUsage>
        <textureMemoryUsage>851968</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>skidSteerAttachments/skidLogFork.i3d</filename>
        <size width="2.2" length="1.1" height="0.9" lengthOffset="0.3"/>
        <components>
            <component centerOfMass="0 0.3 0.3" solverIterationCount="10" mass="350" />
            <component solverIterationCount="10" mass="134" />
            <joint component1="1" component2="2" node="grabJoint" 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" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="skidSteer" />
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicOut01"  length="1.0" diameter="0.016" straighteningFactor="2" isTwoPointHose="true">
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicIn01" length="1.0" diameter="0.016" straighteningFactor="2" isTwoPointHose="true">
        </hose>
    </connectionHoses>

    <logGrab>
        <grab jointNode="jcbLogFork" jointRoot="jcbLogFork" lockAllAxis="true" rotLimit="2">
            <trigger node="dynamicMountTrigger" />
            <treeDetection node="grabTreeDetectionNode" sizeY="1.2" sizeZ="1.5"/>

            <claw componentJointIndex="1" axis="1" rotationOffsetThreshold="10" rotationOffsetInverted="true" rotationOffsetTime="1000">
                <movingTool node="grabJoint" direction="1"/>
            </claw>
        </grab>
    </logGrab>

    <cylindered>
        <movingTools>
            <movingTool node="grabJoint" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.2" iconName="TOOL_OPEN_CLOSE" />
                <componentJoint index="1" anchorActor="0" />
                <rotation rotSpeed="60" rotAcceleration="400" rotMax="0" rotMin="-80"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabRef" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="200">
                <dependentPart node="hydraulic" />
            </movingPart>
            <movingPart node="hydraulic" referencePoint="hydraulicRef" referenceFrame="hydraulicRef" >
                <translatingPart node="hydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="hydraulicOpen04"       pitchScale="1.7" volumeScale="1.2" linkNode="grabJoint" actionNames="TOOL_MOVE_NEG" nodes="grabJoint" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="hydraulicClose01"       pitchScale="1.3" volumeScale="0.8" linkNode="grabJoint" actionNames="TOOL_MOVE_POS" nodes="grabJoint" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="clackVar6"             pitchScale="0.9" volumeScale="1.4" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="grabJoint"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.5" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="grabJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.6" volumeScale="1.7" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="grabJoint"/>
            <actionSound template="sheetImp02"            pitchScale="0.8" volumeScale="2"   linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="grabJoint"/>
        </sounds>
    </cylindered>

    <ai>
        <agentAttachment useSize="true"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-1.08" maxX="1.08" minZ="0.78" maxZ="-0.15" yOffset="0.2" />
    </foliageBending>

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

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

    <i3dMappings>
        <i3dMapping id="jcbLogFork" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="grabJoint" node="0>1" />
        <i3dMapping id="hydraulic" node="0>2" />
        <i3dMapping id="hydraulicPunch" node="0>2|0" />
        <i3dMapping id="grab" node="0>4" />
        <i3dMapping id="hydraulicRef" node="0>4|0" />
        <i3dMapping id="tensionBeltMesh01" node="0>6" />
        <i3dMapping id="grabTreeDetectionNode" node="0>8" />
        <i3dMapping id="dynamicMountTrigger" node="0>9" />
        <i3dMapping id="hydraulicIn01" node="0>11" />
        <i3dMapping id="hydraulicOut01" node="0>12" />
        <i3dMapping id="colGrab" node="1>" />
        <i3dMapping id="grabRef" node="1>1" />
        <i3dMapping id="tensionBeltMesh02" node="1>3" />
        <i3dMapping id="tensionBeltMesh03" node="1>4" />
    </i3dMappings>
</vehicle>
