<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
	<annotation>Copyright (C) RepiGaming, All Rights Reserved.</annotation>
	
    <storeData>
        <name>DPM 1500</name>
		
        <specs>
            <combination xmlFilename="xml/fendt380gta.xml" />
        </specs>
		
        <functions>
            <function>$l10n_function_fendtDumper</function>
        </functions>
		
        <image>store/store_gtaDumper.png</image>
        <price>3500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FENDT</brand>
        <category>fendtPackTool</category>
		
        <shopHeight>3</shopHeight>
        <shopTranslationOffset>0 0.126 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_dump</typeDesc>
        <filename>i3D/gtaDumper.i3d</filename>
        <size width="4" length="2" lengthOffset="0.05" widthOffset="-0.15"/>
        <components maxMass="1850">
            <component centerOfMass="0 0.8 0" solverIterationCount="10" mass="306" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
        <sounds volumeFactor="1.2" />
    </base>
	
	<dynamicallyLoadedParts>
		<dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
		<dynamicallyLoadedPart node="1|1" linkNode="electric_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableToolGTA02"/>
		</inputAttacherJoints>
		<support animationName="moveSupport" />
    </attachable>
	
	<tensionBelts>
		<tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="0>" width="0" maxEdgeLength="0" geometryBias="0" ratchetPosition="0" defaultOffset="0" defaultOffsetSide="0" defaultHeight="1" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="beltStart1" endNode="beltEnd1" />
                    <tensionBelt startNode="beltStart2" endNode="beltEnd2" />
					
                    <sounds>
                        <addBelt    template="beltOpen" />
                        <removeBelt template="beltClose" />
                    </sounds>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<lights>
        <defaultLights>
            <defaultLight shaderNode="defaultLight_static" lightTypes="0" />
        </defaultLights>
    </lights>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
				<foldingParts startMoveDirection="0" posDirectionText="$l10n_unfold_ObjectMode" negDirectionText="$l10n_fold_ObjectMode">
					<foldingPart animationName="folding" speedScale="1" />
				</foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	<cover>
        <coverConfigurations>
            <coverConfiguration startMoveDirection="0" posDirectionText="$l10n_dumperUp" negDirectionText="$l10n_fold_dumperDown" >
                <cover openAnimation="toggleCover" speedScale="1" openOnBuy="false"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <animations>
		<animation name="moveSupport">
            <part node="supportColliLeftBack"   startTime="0"    endTime="0.01" startTrans="0.5 1.593 -0.815"   endTrans="1.43 0 -0.815" />
			<part node="supportColliLeftFront"  startTime="0"    endTime="0.01" startTrans="0.383 1.241 0.367"  endTrans="0.571 0 0.778" />
			<part node="supportColliRightBack"  startTime="0"    endTime="0.01" startTrans="-0.5 1.593 -0.815"  endTrans="-1.488 0 -0.815" />
			<part node="supportColliRightFront" startTime="0"    endTime="0.01" startTrans="-0.383 1.241 0.367" endTrans="-0.571 0 0.778" />
			<part node="supportColli" 			startTime="0"    endTime="0.01" startTrans="0 1.234 0" 			endTrans="0 0 0" />
			<part node="dumperSupport" 			startTime="0"    endTime="0"   visibility="false" />
            <part node="dumperSupport" 			startTime="0.01" endTime="0"   visibility="true" />
			
            <sound template="clackVar5" startTime="0.01" direction="0" volumeScale="0.7" pitchScale="2.8" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.19" direction="0" volumeScale="0.7" pitchScale="2"   linkNode="attacherJoint"/>
        </animation>
	
		<animation name="tipAnimationFront">
            <part node="bodyMain"            startTime="0.2" endTime="8"   startRot="0 0 0"   endRot="50 0 0" />
            <part node="effectNodesFront"    startTime="0.2" endTime="8"   startRot="0 0 0"   endRot="-45 0 0" />
            <part node="frontDoor"        	 startTime="1.0" endTime="6"   startRot="0 0 0"   endRot="-35 0 0" />
            <part node="doorLeftBoltFront"   startTime="0.0" endTime="0.2" visibility="true" />
            <part node="doorLeftBoltFront"   startTime="0.2" endTime="8"  visibility="false" />
            <part node="doorRightBoltFront"  startTime="0.0" endTime="0.2" visibility="true" />
            <part node="doorRightBoltFront"  startTime="0.2" endTime="8"  visibility="false" />
			<part node="TipperBoltLeftBack"  startTime="0.0" endTime="0.2" visibility="true" />
            <part node="TipperBoltLeftBack"  startTime="0.2" endTime="8"  visibility="false" />
            <part node="TipperBoltRightBack" startTime="0.0" endTime="0.2" visibility="true" />
            <part node="TipperBoltRightBack" startTime="0.2" endTime="8"  visibility="false" />

            <sound template="cylinderPunch" startTime="0.8"  direction="1"  volumeScale="0.4" pitchScale="1.4" />
            <sound template="clackVar6"     startTime="0.8"  direction="1"  volumeScale="0.9" pitchScale="0.5" />
            <sound template="hingeMedium"   startTime="1"    endTime="1.8"  volumeScale="1.4" pitchScale="0.8" linkNode="frontDoor"/>
            <sound template="sheetImp02"    startTime="1.8"  direction="1"  volumeScale="2"   pitchScale="0.8" linkNode="frontDoor"/>
            <sound template="clackVar6"     startTime="1.8"  direction="1"  volumeScale="1"   pitchScale="0.7" linkNode="frontDoor"/>
            <sound template="clackVar6"     startTime="12.8" direction="1"  volumeScale="1"   pitchScale="0.6" />
            <sound template="cylinderPunch" startTime="12.8" direction="1"  volumeScale="0.6" pitchScale="1.4" />
            <sound template="thudVar2"      startTime="12.8" direction="-1" volumeScale="1.6" pitchScale="0.8" />
            <sound template="metalClose"    startTime="1"    direction="-1" volumeScale="1"   pitchScale="1.8" linkNode="frontDoor"/>
            <sound template="clackVar6"     startTime="1"    direction="-1" volumeScale="0.8" pitchScale="0.8" linkNode="frontDoor"/>
            <sound template="cylinderPunch" startTime="1"    direction="-1" volumeScale="0.6" pitchScale="1.4" linkNode="frontDoor"/>
            <sound template="cylinderPunch" startTime="0.8"  direction="-1" volumeScale="0.6" pitchScale="1.2" />
            <sound template="clackVar6"     startTime="0.8"  direction="-1" volumeScale="0.6" pitchScale="0.6" />
            <sound template="clackVar4"     startTime="0.8"  direction="-1" volumeScale="0.8" pitchScale="1.5" />
            <sound template="latchSmall"    startTime="0.1"  direction="0"  volumeScale="0.2" pitchScale="2" linkNode="frontDoor"/>
        </animation>

		<animation name="toggleCover">
			<part node="attacherBolt" 			startTime="0"    endTime="0.9" visibility="false" />
            <part node="attacherBolt" 			startTime="0.9" endTime="1" visibility="true" />
			<part node="frameDamper" 			startTime="0"    endTime="0.9" visibility="true" />
            <part node="frameDamper" 			startTime="0.9" endTime="1" visibility="false" />
			<part node="dumperFrame" 			startTime="0"    endTime="1" startTrans="0 1.236 0.393" endTrans="0 0.965 0.393"/>
			
			<sound template="clackVar2Small" startTime="0.05" direction="-1" volumeScale="1.2" pitchScale="1.5" linkNode="dumperFrame"/>
            <sound template="latchSmall"     startTime="0.1"  direction="1"  volumeScale="0.7" pitchScale="1.2" linkNode="dumperFrame"/>
            <sound template="metalClose"     startTime="0.01" direction="-1" volumeScale="0.7" pitchScale="1.0" linkNode="dumperFrame"/>
        </animation>
		
		<animation name="folding">
			<part node="objectMate" 	   startTime="0"    endTime="0.01" visibility="false" />
            <part node="objectMate" 	   startTime="0.01" endTime="0.15" visibility="true" />
			<part node="exactFillRootNode" startTime="0"    endTime="0.01" startTrans="0 0.253 -0.331" endTrans="0 -40 -0.331" />
			
			<sound template="fabricCover2" startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="1.5"/>
            <sound template="fabricCover1" startTime="0.05" direction="-1" volumeScale="1.4" pitchScale="1.8"/>
        </animation>
		
		<animation name="frontDoorDownRot">
			<part node="frontDoorDown" startTime="0" endTime="1.5" startRot="0 0 0" endRot="133 0 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
			<movingTool node="bodyMain" playSound="true">
                <dependentPart node="hydraulicCylinder1"/>
            </movingTool>
			
			<movingTool node="frontDoorDown">
                <controls axis="AXIS_CRANE_TOOL" invertAxis="true" mouseSpeedFactor="0.8" iconName="TOP_DOOR_ROTATE" />
                <animation animSpeed="0.8" animAcceleration="200" animName="frontDoorDownRot" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicCylinder1" referencePoint="hydraulicBodyRef" referenceFrame="hydraulicCylinderRefFrame">
                <dependentPart node="hydraulicPunch1" />
            </movingPart>
			<movingPart node="hydraulicPunch1" referencePoint="hydraulicBodyRef" referenceFrame="hydraulicCylinderRefFrame" divideTranslatingDistance="false">
                <translatingPart node="hydraulicPunch2"     maxZTrans="0.178"/>
                <translatingPart node="hydraulicPunch3"     maxZTrans="0.148"/>
            </movingPart>
		</movingParts>

		<sounds>
            <actionSound template="hydraulicLayerTone" pitchScale="0.5" volumeScale="1.1" linkNode="hydraulicCylinder1" actionNames="TRANSLATING_POS" nodes="hydraulicCylinder1">
                <pitch dropOffFactor="1.1" dropOffTime="0.2" />
            </actionSound>
            <actionSound template="defaultHydraulicSound" pitchScale="0.4" volumeScale="0.7" linkNode="hydraulicCylinder1"     actionNames="TRANSLATING_NEG"     nodes="hydraulicCylinder1"/>
            <actionSound template="cylinderPunch"         pitchScale="1.5"                   linkNode="hydraulicCylinder1"     actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch2"/>
            <actionSound template="cylinderPunch"         pitchScale="1.5"                   linkNode="hydraulicCylinder1"     actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch3"/>
        </sounds>
    </cylindered>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electricOut" length="0.01" diameter="0.008" straighteningFactor="0.2" adapterNode="electric_connector">
			<objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
		</hose>
		<hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicOut" length="0.01" diameter="0.008" straighteningFactor="0.2" adapterNode="hydraulicIn_connector">
			<objectChange node="hydraulicIn_detached" visibilityActive="false" visibilityInactive="true"/>
		</hose>
		
		<localHose>
            <hose type="electric" node="electricOut01" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="electricIn01" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="electricOut02" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="electricIn02" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="electricOut03" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="electricIn03" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="hydraulicIn" node="hydraulicOut01" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" straighteningFactor="0.1"/>
        </localHose>
    </connectionHoses>

    <fillUnit>
        <fillUnitConfigurations>
			<fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="BULK" capacity="2500">
                        <exactFillRootNode node="exactFillRootNode"/>
                        <autoAimTargetNode node="autoAimTargetNode" startZ="0.3" endZ="-1.3" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadInfo1" width="0.4" length="0.4" />
            </unloadInfo>
			<unloadInfo>
                <node node="unloadInfo2" width="0.4" length="0.4" />
            </unloadInfo>
			<unloadInfo>
                <node node="unloadInfo3" width="0.4" length="0.4" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable>
        <dischargeNode node="dischargeNodeFront" emptySpeed="900" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="2.0" length="0.5" />

            <effects>
				<effectNode effectClass="TipEffect">
					<effectNode effectNode="effectParticleFront" effectClass="ParticleEffect" materialType="unloadingParticle"/>
					<effectNode effectNode="effectGrainFront" materialType="unloading" materialTypeId="1" fadeTime="0.5" />
				</effectNode>
				<effectNode effectNode="effectSmokeFront" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
			</effects>
        </dischargeNode>
    </dischargeable>
	
	<trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationFront" speedScale="1.0" startTipTime="0.25"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <tipOccluder>
        <occlusionArea start="tipOcclusionAreaStart" width="tipOcclusionAreaWidth" height="tipOcclusionAreaHeight" />
    </tipOccluder>

    <foliageBending>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-1.3" maxZ="1.7" yOffset="0.95" />
    </foliageBending>
	
	<ai>
        <agentAttachment />
    </ai>
	
    <baseMaterial>
        <material name="tipperFrame_mat" baseNode="tipperFrame_vis">
            <shaderParameter name="colorMat0" value="FENDT_OLDGREEN1"/>
			<shaderParameter name="colorMat1" value="FENDT_RED1"/>
        </material>
		
		<material name="liquidTank_mat" baseNode="dumperSupport">
            <shaderParameter name="colorMat1" value="FENDT_RED1"/>
        </material>
    </baseMaterial>

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

    <i3dMappings>
        <i3dMapping id="fendtGTAdumper_main_component1" node="0>" />
		<i3dMapping id="dumperFrame" node="0>0" />
        <i3dMapping id="electricOut" node="0>0|0|0|0" />
        <i3dMapping id="electric_detached" node="0>0|0|0|0|0" />
        <i3dMapping id="electric_connector" node="0>0|0|0|0|0|0" />
        <i3dMapping id="hydraulicOut" node="0>0|0|0|1" />
        <i3dMapping id="hydraulicIn_detached" node="0>0|0|0|1|0" />
        <i3dMapping id="hydraulicIn_connector" node="0>0|0|0|1|0|0" />
        <i3dMapping id="electricOut01" node="0>0|0|1|0" />
        <i3dMapping id="electricIn01" node="0>0|0|1|1" />
        <i3dMapping id="electricOut02" node="0>0|0|1|2" />
        <i3dMapping id="electricIn02" node="0>0|0|1|3" />
        <i3dMapping id="electricOut03" node="0>0|0|1|4" />
		<i3dMapping id="electricIn03" node="0>0|0|1|5" />        
		<i3dMapping id="hydraulicOut01" node="0>0|0|1|6" />        
		<i3dMapping id="hydraulicIn01" node="0>0|0|1|7" />
        <i3dMapping id="dumperSupport" node="0>0|0|2" />
        <i3dMapping id="supportColliLeftBack" node="0>0|0|2|0" />
		<i3dMapping id="supportColliLeftFront" node="0>0|0|2|1" />
		<i3dMapping id="supportColliRightBack" node="0>0|0|2|2" />
		<i3dMapping id="supportColliRightFront" node="0>0|0|2|3" />
		<i3dMapping id="supportColli" node="0>0|0|2|4" />
        <i3dMapping id="attacherBolt" node="0>0|0|3" />
        <i3dMapping id="bodyMain" node="0>0|1|0" />
        <i3dMapping id="fillVolume" node="0>0|1|0|0|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|1|0|0|1" />
        <i3dMapping id="autoAimTargetNode" node="0>0|1|0|0|2" />
        <i3dMapping id="unloadInfo1" node="0>0|1|0|0|3|0" />
		<i3dMapping id="unloadInfo2" node="0>0|1|0|0|3|1" />
		<i3dMapping id="unloadInfo3" node="0>0|1|0|0|3|2" />
		<i3dMapping id="effectNodesFront" node="0>0|1|0|0|4|0" />
        <i3dMapping id="effectGrainFront" node="0>0|1|0|0|4|0|0" />
		<i3dMapping id="effectSmokeFront" node="0>0|1|0|0|4|0|1" />
		<i3dMapping id="effectParticleFront" node="0>0|1|0|0|4|1|0" />
        <i3dMapping id="tensionBelts" node="0>0|1|0|1" />
		<i3dMapping id="beltStart1" node="0>0|1|0|1|0" />
		<i3dMapping id="beltEnd1" node="0>0|1|0|1|0|0" />
        <i3dMapping id="beltStart2" node="0>0|1|0|1|1" />
        <i3dMapping id="beltEnd2" node="0>0|1|0|1|1|0" />
        <i3dMapping id="beltActivationTrigger" node="0>0|1|0|1|2" />
        <i3dMapping id="frontDoorDown" node="0>0|1|0|2" />
		<i3dMapping id="frontDoor" node="0>0|1|0|2|0" />
		<i3dMapping id="hydraulicBodyRef" node="0>0|1|0|3" />
        <i3dMapping id="objectMate" node="0>0|1|0|4|0" />
        <i3dMapping id="doorLeftBoltFront" node="0>0|1|0|6|0" />
        <i3dMapping id="doorRightBoltFront" node="0>0|1|0|6|1" />
        <i3dMapping id="hydraulicCylinder" node="0>0|1|1" />
        <i3dMapping id="hydraulicCylinder1" node="0>0|1|1|0" />
        <i3dMapping id="hydraulicPunch1" node="0>0|1|1|0|0" />
        <i3dMapping id="hydraulicPunch2" node="0>0|1|1|0|0|0" />
        <i3dMapping id="hydraulicPunch3" node="0>0|1|1|0|0|0|0" />
        <i3dMapping id="hydraulicCylinderRefFrame" node="0>0|1|1|0|1" />
        <i3dMapping id="dischargeNodeFront" node="0>0|1|2" />
        <i3dMapping id="tipOcclusionAreaStart" node="0>0|2|0" />
        <i3dMapping id="tipOcclusionAreaWidth" node="0>0|2|1" />
        <i3dMapping id="tipOcclusionAreaHeight" node="0>0|2|2" />
        <i3dMapping id="defaultLight_static" node="0>0|3|0" />
        <i3dMapping id="tipperFrame_vis" node="0>0|4|0" />
        <i3dMapping id="TipperBoltLeftBack" node="0>0|4|0|0" />
        <i3dMapping id="TipperBoltRightBack" node="0>0|4|0|1" />
		<i3dMapping id="frameDamper" node="0>1|0" />
		<i3dMapping id="attacherJoint" node="0>2" />
    </i3dMappings>
</vehicle>