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

    <storeData>
        <name>$l10n_shopItem_frontloaderShovel</name>
        <specs>
            <combination xmlFilename="Systematic_short.xml"/>
            <combination filterCategory="frontLoaders" />
            <combination filterCategory="frontLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>store_tripShovel.png</image>
        <price>680</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>frontLoaderTools</category>
        <shopTranslationOffset>0 0.02 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>183808</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>41472</indexBufferMemoryUsage>
        <textureMemoryUsage>589824</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>TripShovel.i3d</filename>
        <size width="1.1" length="2"/>
        <components>
            <component centerOfMass="0 0 0.05" solverIterationCount="10" mass="120" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="frontloader" >
				<subType name="SystematicLoader"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_shopItem_frontloaderShovel" price="0" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="750" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="7500" showInShop="false" showOnHud="false"/>
                </fillUnits>
				<objectChange node="tripShovel"		visibilityInactive="false"/>
            </fillUnitConfiguration>
            <fillUnitConfiguration name="$l10n_configuration_rootCrops" price="150" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypes="potato sugarBeet" capacity="750" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="7500" showInShop="false" showOnHud="false"/>
                </fillUnits>
				<objectChange node="tripShovel_rootCrop"		visibilityActive="true"/>
            </fillUnitConfiguration>
            <fillUnitConfiguration name="$l10n_shopItem_frontloaderManureFork" price="75" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="FORK" capacity="750" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="7500" showInShop="false" showOnHud="false"/>
                </fillUnits>
				<objectChange node="tripShovel_fork"		visibilityActive="true"/>
				<objectChange node="tripShovel_sideLCol" 		compoundChildActive="false"/>
				<objectChange node="tripShovel_sideRCol" 		compoundChildActive="false"/>
				<objectChange node="tripShovel_bottomCol" 		compoundChildActive="false"/>
            </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="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="1000" >
            <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="grainEffect" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" extraDistance="0.15"/>
                </effectNode>
                <effectNode effectNode="smokeEffect" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

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

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="1.6" 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 width="1.1" height="0.9" length="1.2" lengthOffset="0.05"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.55" maxX="0.55" minZ="-0.55" maxZ="0.65" yOffset="0.02" />
    </foliageBending>
	
    <dynamicMountAttacher node="0>">
        <mountCollisionMask node="fork_col02" collisionMask="134225920" />
    </dynamicMountAttacher>
   
    <baseMaterial>
        <material name="frontloaderShovel_mat" baseNode="tripShovel">
            <shaderParameter name="colorMat0" value="SHARED_GREY2"/>
        </material>
    </baseMaterial>
	
    <baseMaterialConfigurations>
        <baseMaterialConfiguration color="MASSEYFERGUSON_ORIGINAL_GREY"	name="$l10n_ui_colorGrey" />
        <baseMaterialConfiguration color="AGCO_GREY3"			name="$l10n_ui_colorBlack" />
        <baseMaterialConfiguration color="PORSCHEDIESEL_RED1"	name="$l10n_ui_colorRed" />
        <baseMaterialConfiguration color="NEWHOLLAND_YELLOW1"	name="$l10n_ui_colorYellow" />
        <baseMaterialConfiguration color="QUICKE_ORANGE1"		name="$l10n_ui_colorOrange" />
        <baseMaterialConfiguration color="HOLMER_BROWN_1"		name="$l10n_ui_colorBrown" />
        <baseMaterialConfiguration color="GOLDHOFER_GREEN2"		name="$l10n_ui_colorGreen" />
        <baseMaterialConfiguration color="FENDT_BLUE1"			name="$l10n_ui_colorBlue" />
	    <baseMaterialConfiguration color="SAMASZ_WHITE"			material="4" name="$l10n_configuration_Galvanised" price="230" />	
        <material name="frontloaderShovel_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

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

    <i3dMappings>
        <i3dMapping id="frontloaderShovel_main_component1" node="0>" />
        <i3dMapping id="frontloaderShovel_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|1|0" />
        <i3dMapping id="fillVolume" node="0>0|1|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|1|2" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|1|3" />
        <i3dMapping id="dischargeNode" node="0>0|1|4" />
        <i3dMapping id="shovelNode" node="0>0|1|5" />
        <i3dMapping id="levelerNode" node="0>0|1|6" />
        <i3dMapping id="grainEffect" node="0>0|2|0" />
        <i3dMapping id="smokeEffect" node="0>0|2|1" />
        <i3dMapping id="emitterShape" node="0>0|2|2" />
        <i3dMapping id="tripShovel" node="0>0|3|0" />
        <i3dMapping id="tripShovel_rootCrop" node="0>0|3|1" />
        <i3dMapping id="tripShovel_fork" node="0>0|3|2" />
        <i3dMapping id="tripShovel_sideLCol" node="0>1|1" />
        <i3dMapping id="tripShovel_sideRCol" node="0>1|2" />
        <i3dMapping id="tripShovel_bottomCol" node="0>1|3" />
        <i3dMapping id="fork_col01" node="0>1|4" />
        <i3dMapping id="fork_col02" node="0>1|5" />
    </i3dMappings>
</vehicle>
