<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="shovel">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_frontloaderShovel</name>
        <specs>
           <combination>$l10n_PFN_0_9</combination>
        </specs>
        <image>stores/pfn_09_ToolShovel_08.png</image>
        <price>550</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ROSTSELMASH</brand>
        <category>frontLoaders</category>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>tools/pfn_09_ToolShovel_08.i3d</filename>
        <size width="2.5" length="1.5" lengthOffset="0.2"/>
        <components>
            <component centerOfMass="0 0.07 0.25" solverIterationCount="10" mass="245"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk windrow" capacity="800">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" allSidePlanes="false" 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="800">
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="1.1" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect" lifespan="0.2"/>
                    <effectNode effectNode="grainEffect" materialType="unloading" materialTypeId="1" fadeTime="0.5" alignXAxisToWorldY="true"/>
                </effectNode>
                <effectNode effectNode="smokeEffect" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="1.1" length="0.3" needsMovement="true" maxPickupAngle="105"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="180"/>
    </shovel>

    <foliageBending>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-0.1" maxZ="0.64" yOffset="0.02"/>
    </foliageBending>

    <baseMaterial>
        <material name="pfn_09_tools_mat" baseNode="pfn_09_ToolShovel_08_vis">
            <shaderParameter name="colorMat0" value="0.3 0.02 0.02 1"/>
			<shaderParameter name="colorMat1" value="0.03 0.03 0.03 1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="200">
        <baseMaterialConfiguration name="$l10n_Red"    color="0.3 0.02 0.02 1"/>
		<baseMaterialConfiguration name="$l10n_Blue"   color="0.0 0.27 0.70 1"/>
		<baseMaterialConfiguration name="$l10n_Yellow" color="0.8 0.55 0.05 1"/>
        <material name="pfn_09_tools_mat" shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>

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

    <i3dMappings>
        <i3dMapping id="pfn_09_ToolShovel_08_main_component1" node="0>"/>
        <i3dMapping id="attacherJoint"            node="0>0"/>
        <i3dMapping id="pfn_09_ToolShovel_08_vis" node="0>1"/>
        <i3dMapping id="fillVolume"               node="0>1|0|0"/>
        <i3dMapping id="fillVolumeLoadNode"       node="0>1|0|1"/>
        <i3dMapping id="fillVolumeUnloadNode"     node="0>1|0|2"/>
        <i3dMapping id="dischargeNode"            node="0>1|1"/>
        <i3dMapping id="emitterShape"             node="0>1|2"/>
        <i3dMapping id="grainEffect"              node="0>1|3|0"/>
        <i3dMapping id="smokeEffect"              node="0>1|3|1"/>
        <i3dMapping id="pickUpNode"               node="0>1|4"/>
        <i3dMapping id="exactFillRootNode"        node="0>1|5"/>
    </i3dMappings>
</vehicle>