<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="shovelLeveler" 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_excavatorBucket3</name>
        <specs>
            <combination xmlFilename="JCB_220X.xml" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>attachments/store_GrBucket.dds</image>
        <price>11000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>forestryExcavatorTools</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 180 0</shopRotationOffset>
        <vertexBufferMemoryUsage>56320</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>18688</indexBufferMemoryUsage>
        <textureMemoryUsage>524288</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_excavatorTool</typeDesc>
        <filename>attachments/GrBucket.i3d</filename>
        <size width="2.95" length="2" lengthOffset="0.1" height="1.4"/>
        <components>
            <component centerOfMass="0.00 0.3 -0.15" solverIterationCount="10" mass="300" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueDefault" price="0">
                <inputAttacherJoint node="attacher" jointType="wheelLoader" >
        			<subType name="excavatorFastCoupler"/>
                </inputAttacherJoint>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
        <inputAttacherJoints>
        </inputAttacherJoints>
    </attachable>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="1600" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="10000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.5" maxAllowedHeapAngle="30" fillUnitIndex="1" maxSubDivEdgeLength="0.6" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="2.0" length="0.1" />
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="2.0" length="0.1" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="2000" >
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="2.0" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="effectGrain" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" extraDistance="0.15"/>
                </effectNode>
                <effectNode effectNode="effectSmoke" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="shovelNode" fillUnitIndex="1" loadInfoIndex="1" width="1.3" length="0.5" needsMovement="true" ignoreFarmlandState="true" maxPickupAngle="145"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="125" maxSpeedAngle="180" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30" ignoreFarmlandState="true">
        <levelerNode node="levelerNode" width="1.3" zOffset="0.2" minDropWidth="1" maxDropWidth="2.5" minDropDirOffset="1" maxDropDirOffset="1.5" minFillLevel="0.85">
            <smoothing allowed="true" radius="0.5" overlap="1.7" direction="0"/>
        </levelerNode>

        <pickUpDirection>1</pickUpDirection>
    </leveler>

    <suspensions>
        <suspension node="levelerNode" weight="150" minTranslation="0 -0.5 0.0" maxTranslation="0.0 0.5 0.0" suspensionParametersX="20 4" suspensionParametersY="1 1" suspensionParametersZ="20 4" serverOnly="true"/>
    </suspensions>

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

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-0.8" maxZ="0.55" yOffset="0.1" />
    </foliageBending>

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

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


    <i3dMappings>
        <i3dMapping id="Gr_component" node="0>" />
        <i3dMapping id="emitterShape" node="0>0|2|0" />
        <i3dMapping id="effectSmoke" node="0>0|2|1" />
        <i3dMapping id="effectGrain" node="0>0|2|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|0" />
        <i3dMapping id="fillVolume" node="0>0|3|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|3|2" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|3|3" />
        <i3dMapping id="dischargeNode" node="0>0|3|4" />
        <i3dMapping id="attacher" node="0>0|4" />
        <i3dMapping id="shovelNode" node="0>0|5" />
        <i3dMapping id="levelerNode" node="0>0|6" />
        <i3dMapping id="tensionBeltMesh01" node="0>0|7" />
    </i3dMappings>
</vehicle>
