<?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_skidSteerShovel</name>
        <specs>
            <combination filterCategory="skidSteerVehicles"/>
        </specs>
        <image>skidSteerAttachments/store_skidShovel.png</image>
        <price>800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>skidSteerTools</category>
        <shopTranslationOffset>0 -0.008 0</shopTranslationOffset>
        <shopRotationOffset>1.057 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>52480</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>16640</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>skidSteerAttachments/jcbShovel.i3d</filename>
        <size width="2.45" length="1.2" height="1" lengthOffset="0.06"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="94" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="1284">
                        <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" allSidePlanes="true" maxAllowedHeapAngle="60" fillUnitIndex="1" />
                </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>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="1284">
            <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" materialType="unloadingParticle" effectClass="ParticleEffect" lifespan="0.3"/>
                    <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.4" length="0.5" needsMovement="true" maxPickupAngle="100"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="100" maxSpeedAngle="130" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="2.4" zOffset="0.9" minDropWidth="1.2" maxDropWidth="2.6" 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>

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

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.4" maxZ="0.55" yOffset="0.01" />
    </foliageBending>

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

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

    <i3dMappings>
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="fillVolume" node="0>2|0" />
        <i3dMapping id="fillVolumeLoadNode" node="0>2|1" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>2|2" />
        <i3dMapping id="pickUpNode" node="0>3" />
        <i3dMapping id="levelerNode" node="0>4" />
        <i3dMapping id="dischargeNode" node="0>5" />
        <i3dMapping id="exactFillRootNode" node="0>6" />
        <i3dMapping id="emitterShape" node="0>7" />
        <i3dMapping id="effectNodeRot" node="0>9" />
        <i3dMapping id="effectGrainBack" node="0>9|0" />
        <i3dMapping id="effectSmokeBack" node="0>9|1" />
        <i3dMapping id="tensionBeltMesh01" node="0>11" />
    </i3dMappings>
</vehicle>
