<?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/fs22/vehicle.xsd">
    <annotation>Copyright (C) DD ModPassion, All Rights Reserved.</annotation>

    <storeData>
        <name>Raptor</name>
        <specs>
            <workingWidth>2.7</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_shovelInfo</function>
        </functions>
        <image>textures/bucket.dds</image>
        <price>3700</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Lizard</brand>
        <category>wheelLoaderTools</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopHeight>3</shopHeight>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_wheelLoaderTool</typeDesc>
        <filename>i3d/bucket.i3d</filename>
        <size width="2" length="3"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="400"/>
            <component solverIterationCount="10" mass="400"/>
            <joint component1="1" component2="2" node="0>4|3" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="300 0 0" rotLimitDamping="30 0 0" rotLimitForceLimit="50 -1 -1"/>
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
    </base>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulic01_inC" filename="$data/shared/connectionHoses/connectors.i3d"/>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulic02_outC" filename="$data/shared/connectionHoses/connectors.i3d"/>
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration>
                <inputAttacherJoint jointType="wheelLoader" node="attacherJoint"/>
                <inputAttacherJoint jointType="hookLift" node="0>0|0"/>
                <inputAttacherJoint jointType="hookLift" node="0>0|1"/>
                <objectChange node="1>2|0|0|2"/>
                <objectChange node="1>3" scaleActive="0 0 0" visibilityActive="false"/>
                <objectChange node="1>3|0|0"/>
                <objectChange node="1>3|0|0|0"/>
                <objectChange node="1>3|0|0|1"/>
                <objectChange node="1>3|0|0|2"/>
                <objectChange node="1>4" scaleActive="1 1 1" visibilityActive="true"/>
                <objectChange node="1>4|0|0"/>
                <objectChange node="1>4|0|0|0"/>
                <objectChange node="1>4|0|0|1"/>
                <objectChange node="1>4|0|0|2"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
    </attachable>

    <connectionHoses>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1" node="hydraulic01_in" type="hydraulicIn">
            <objectChange node="hydraulic_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1" node="hydraulic02_out" type="hydraulicOut"/>
        <localHose>
            <hose diameter="0.02" length="0.4" node="hydraulic01_inH" type="hydraulicIn"/>
            <target node="hydraulic01_inC" type="none"/>
        </localHose>
        <localHose>
            <hose diameter="0.02" length="0.4" node="hydraulic02_outH" type="hydraulicOut"/>
            <target node="hydraulic02_outC" type="none"/>
        </localHose>
        <localHose>
            <hose diameter="0.02" length="0.8" node="0>5|1|0|0|1" type="hydraulicIn"/>
            <target node="0>5|3|3" straighteningFactor="3.5" type="none"/>
        </localHose>
        <localHose>
            <hose diameter="0.02" length="0.8" node="0>5|1|0|0|2" type="hydraulicOut"/>
            <target node="0>5|3|4" straighteningFactor="3.5" type="none"/>
        </localHose>
        <localHose>
            <hose diameter="0.02" length="0.8" node="0>5|1|1|0|1" type="hydraulicIn"/>
            <target node="0>5|3|5" straighteningFactor="3.5" type="none"/>
        </localHose>
        <localHose>
            <hose diameter="0.02" length="0.8" node="0>5|1|1|0|2" type="hydraulicOut"/>
            <target node="0>5|3|6" straighteningFactor="3.5" type="none"/>
        </localHose>
    </connectionHoses>

    <cylindered>
        <movingParts>
            <movingPart isActiveDirty="true" limitedAxis="1" node="0>5|0" referenceFrame="1>8" referencePoint="1>8" maxUpdateDistance="40"/>
            <movingPart isActiveDirty="true" limitedAxis="1" node="0>5|1|0" referenceFrame="0>" referencePoint="0>5|0|0" maxUpdateDistance="40">
                <translatingPart node="0>5|1|0|0|0"/>
            </movingPart>
            <movingPart isActiveDirty="true" limitedAxis="1" node="0>5|1|1" referenceFrame="0>" referencePoint="0>5|0|1" maxUpdateDistance="40">
                <translatingPart node="0>5|1|1|0|0"/>
            </movingPart>
        </movingParts>
        <movingTools>
<!--            <movingTool node="0>4|3" playSound="true">
                <componentJoint anchorActor="0" index="1"/>
                <controls iconName="TOOL_OPEN_CLOSE" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.3"/>
                <rotation rotAcceleration="250" rotMax="0" rotMin="-50" rotSpeed="200"/>
                <objectChange node="grainEffect" visibilityActive="false" visibilityInactive="true"/>
            </movingTool>-->
        </movingTools>
        <sounds>
        	
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="4000" fillTypeCategories="bulk windrow" unitTextOverride="$l10n_unit_literShort" updateMass="false">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" fillUnitIndex="1" maxAllowedHeapAngle="15"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="1.3" length="0.1"/>
            </unloadInfo>
        </unloadInfos>
        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="1.3" length="0.1"/>
            </loadInfo>
        </loadInfos>
    </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" 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>
<!--			<dischargeStateSound file="scripts/belt.ogg" pitchScale="1.2" volumeScale="1" fadeIn="1" fadeOut="1"/>-->
        </dischargeNode>
    </dischargeable>

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

    <ai>
        <agentAttachment width="2.8" height="1.7" length="2" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.4" maxX="1.4" minZ="-0.5" maxZ="1.2" yOffset="0.02"/>
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="bucket" node="0>"/>
        <i3dMapping id="attacherJoint" node="0>4|0"/>
        <i3dMapping id="hydraulic01_in" node="0>5|3|0"/>
        <i3dMapping id="hydraulic02_out" node="0>5|3|1"/>
        <i3dMapping id="hydraulic_detached" node="0>5|3|2"/>
        <i3dMapping id="hydraulic01_inH" node="0>5|3|2|0"/>
        <i3dMapping id="hydraulic02_outH" node="0>5|3|2|1"/>
        <i3dMapping id="hydraulic01_inC" node="0>5|3|2|2|0"/>
        <i3dMapping id="hydraulic02_outC" node="0>5|3|2|2|1"/>
        <i3dMapping id="fillVolume" node="0>5|0|2|0|4"/>
        <i3dMapping id="fillVolumeLoadNode" node="0>5|0|2|0|1"/>
        <i3dMapping id="fillVolumeUnloadNode" node="0>5|0|2|0|2"/>
        <i3dMapping id="exactFillRootNode" node="0>5|0|2|0|3"/>
        <i3dMapping id="dischargeNode" node="0>5|2|1"/>
        <i3dMapping id="emitterShape" node="0>5|2|2"/>
        <i3dMapping id="grainEffect" node="0>5|2|3|0"/>
        <i3dMapping id="smokeEffect" node="0>5|2|3|1"/>
        <i3dMapping id="pickUpNode" node="0>5|0|2|4"/>
    </i3dMappings>
 
</vehicle>
