<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="terrafarmShovelLeveler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_wheelLoaderHighDumpBucket</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>$data/vehicles/mcCormack/overtippingBucket/store_overtippingBucket.png</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MCCORMACK</brand>
        <category>wheelLoaderTools</category>
        <shopHeight>2.5</shopHeight>
        <shopTranslationOffset>0 0.008 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>164864</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>47616</indexBufferMemoryUsage>
        <textureMemoryUsage>262144</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>$data/vehicles/mcCormack/overtippingBucket/overtippingBucket.i3d</filename>
        <size width="2.8" length="2.15" height="1.65" lengthOffset="-0.05"/>
        <components>
            <component centerOfMass="0 0.2 -0.2" solverIterationCount="20" mass="1700" collisionMask="0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL"/>
    </base>

    <machine type="shovel">
        <input modes="FLATTEN SMOOTH LOWER PAINT" />
    </machine>

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

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="1.1" diameter="0.028" straighteningFactor="2" isTwoPointHose="true" adapterNode="hydraulicIn01_detachedAdapter">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.1" diameter="0.028" straighteningFactor="2" isTwoPointHose="true" adapterNode="hydraulicOut01_detachedAdapter">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicIn02" length="1.1" diameter="0.028" straighteningFactor="2" isTwoPointHose="true" adapterNode="hydraulicIn02_detachedAdapter">
           <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicOut02" length="1.1" diameter="0.028" straighteningFactor="2" isTwoPointHose="true" adapterNode="hydraulicOut02_detachedAdapter">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <cylindered>
        <movingTools>
            <movingTool node="shovel" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.25" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="35" rotAcceleration="250" rotMax="60" rotMin="0" />
                <dependentPart node="shovelHydraulic" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="shovelHydraulic" referencePoint="shovelHydraulicRef" referenceFrame="shovelHydraulicRef" >
                <translatingPart node="shovelHydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="hydraulicOpen04"    volumeScale="1.6" pitchScale="1.10" linkNode="shovel" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"                     nodes="shovel" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="hydraulicClose02"   volumeScale="0.7" pitchScale="3.2"  linkNode="shovel" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"                     nodes="shovel" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="clackVar4"          volumeScale="4"   pitchScale="0.7"  linkNode="shovel" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="shovel"/>
            <actionSound template="cylinderPunch"      volumeScale="0.8" pitchScale="1.2"  linkNode="shovel" actionNames="TOOL_MOVE_END_POS_LIMIT"                         nodes="shovel"/>
            <actionSound template="cylinderPunch"      volumeScale="0.8" pitchScale="1"    linkNode="shovel" actionNames="TOOL_MOVE_END_NEG_LIMIT"                         nodes="shovel"/>
            <actionSound template="metalClose"         volumeScale="1.0" pitchScale="2"    linkNode="shovel" actionNames="TOOL_MOVE_END_NEG_LIMIT"                         nodes="shovel"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL BULK WINDROW" capacity="20000" updateMass="false" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL BULK WINDROW" capacity="40000" showInShop="false" updateMass="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxAllowedHeapAngle="25" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

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

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

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="30000" >
            <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.2"/>
                    <effectNode effectNode="grainEffect" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" extraDistance="0.3"/>
                </effectNode>
                <effectNode effectNode="smokeEffect" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="2.8" length="0.5" needsMovement="true" maxPickupAngle="105"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="130" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="2.8" zOffset="0.9" minDropWidth="1.5" maxDropWidth="3" 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 width="2.8" height="1.65" length="2.15" lengthOffset="-0.05"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-1.42" maxX="1.42" minZ="-0.8" maxZ="1.02" yOffset="0.02" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="overtippingBucket_main_component1" node="0>" />
        <i3dMapping id="overtippingBucket_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|1|0|0" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|1|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|1|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|1|1|0" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|0|1|1|0|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|1|2" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|1|2|0" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|1|2|0|0" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|1|3" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|1|3|0" />
        <i3dMapping id="hydraulicOut02_detachedAdapter" node="0>0|0|1|3|0|0" />
        <i3dMapping id="shovel" node="0>0|1|0" />
        <i3dMapping id="shovelHydraulicRef" node="0>0|1|0|0" />
        <i3dMapping id="fillVolume" node="0>0|1|0|1|0" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|1|0|1|1" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|1|0|1|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|1|0|1|3" />
        <i3dMapping id="dischargeNode" node="0>0|1|0|2" />
        <i3dMapping id="emitterShape" node="0>0|1|0|3" />
        <i3dMapping id="grainEffect" node="0>0|1|0|4|0" />
        <i3dMapping id="smokeEffect" node="0>0|1|0|4|1" />
        <i3dMapping id="pickUpNode" node="0>0|1|0|5" />
        <i3dMapping id="levelerNode" node="0>0|1|0|6" />
        <i3dMapping id="shovelHydraulic" node="0>0|1|1" />
        <i3dMapping id="shovelHydraulicPunch" node="0>0|1|1|0" />
        <i3dMapping id="tensionBeltMesh01" node="0>0|3" />
    </i3dMappings>
</vehicle>
