<?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_name_silageFork|$l10n_configuration_inputAttacherTeleLoaders">%s (%s)</name>
        <specs>
            <combination filterCategory="teleLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>silageFork/store_silageFork.dds</image>
        <price>2800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JCB</brand>
        <category>teleLoaderTools</category>
        <vertexBufferMemoryUsage>150016</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>38656</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>silageFork/silageFork.i3d</filename>
        <size width="2.6" length="1.8" height="1.5" />
        <components>
            <component centerOfMass="0.00 0.48 0.00" solverIterationCount="10" mass="1000" />
        </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="bracketsSF" visibilityActive="true" visibilityInactive="false"/>
                <objectChange node="bracketsSF_Q" visibilityActive="false" visibilityInactive="true"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_qbrackets" price="0" isSelectable="true">
                <inputAttacherJoint node="attacherJointQ" jointType="telehandler" />
                <objectChange node="bracketsSF" visibilityActive="false" visibilityInactive="true"/>
                <objectChange node="bracketsSF_Q" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_qbrackets" price="0" isSelectable="false">
                <inputAttacherJoint node="attacherJointWL" jointType="wheelLoader" />
                <objectChange node="bracketsSF" visibilityActive="false" visibilityInactive="true"/>
                <objectChange node="bracketsSF_Q" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
    </attachable>

    <dynamicMountAttacher node="mainComponent">
        <fork node="tineCollision01" />
    </dynamicMountAttacher>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits allowFoldingWhileFilled="false">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="4500">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="4500" 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="2.2" length="0.2" />
            </loadInfo>
        </loadInfos>
        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="2.2" length="0.2" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="2500">
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2" />
            <info width="2.6" length="1" zOffset="0.5" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emiterShape" materialType="unloadingParticle" effectClass="ParticleEffect" lifespan="0.2" />
                    <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.6" length="0.4" needsMovement="true" maxPickupAngle="105" />
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="130" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="2.6" zOffset="0.9" yOffset="-0.1" minDropWidth="1.5" maxDropWidth="2.8" 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>

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

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

    <foliageBending>
        <bendingNode minX="1.3" maxX="-1.3" minZ="-0.5" maxZ="0.75" 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="levelerNode" node="0>0" />
        <i3dMapping id="pickUpNode" node="0>1" />
        <i3dMapping id="dischargeNode" node="0>2|0" />
        <i3dMapping id="effectNodesBack" node="0>2|1" />
        <i3dMapping id="effectGrainBack" node="0>2|1|0" />
        <i3dMapping id="effectSmokeBack" node="0>2|1|1" />
        <i3dMapping id="tipTrigger" node="0>3" />
        <i3dMapping id="emiterShape" node="0>4|0" />
        <i3dMapping id="tineCollision01" node="0>5|0" />
        <i3dMapping id="attacherJointQ" node="0>6|0" />
        <i3dMapping id="attacherJoint" node="0>6|1" />
        <i3dMapping id="attacherJointWL" node="0>6|2" />
        <i3dMapping id="exactFillRootNode" node="0>7|0" />
        <i3dMapping id="fillVolume" node="0>7|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>8|0" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>8|1" />
        <i3dMapping id="bracketsSF" node="0>9" />
        <i3dMapping id="bracketsSF_Q" node="0>10" />
        <i3dMapping id="JCBsilageFork_vis" node="0>12" />
        <i3dMapping id="tensionBeltMesh01" node="0>13" />
    </i3dMappings>
</vehicle>
