<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon" 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>
            <en>Fortschritt HTS 71.04</en>
            <de>Fortschritt HTS 71.04</de>
	</name>
        <specs>
            <neededPower>40</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_forageWagon</function>
        </functions>
        <year>1978</year>
        <storePacks>
            <storePack>STARTER_GRASS</storePack>
        </storePacks>
	<image>store_HTS7104.dds</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FORTSCHRITT</brand>
        <category>loaderWagons</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3711744</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>1027328</indexBufferMemoryUsage>
        <textureMemoryUsage>4063232</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_forageWagon</typeDesc>
        <filename>HTS7104.i3d</filename>
        <size width="2.5" length="10" height="3.8" lengthOffset="-0.05"/>
        <components>
            <component centerOfMass="0.00 1.23 0.21" solverIterationCount="10" mass="440"/>
            <component centerOfMass="0.00 0.00 0.00" solverIterationCount="10" mass="1000" inertiaScale="4 4 4"/>
            <component centerOfMass="0.00 0.00 0.00" solverIterationCount="10" mass="1000" inertiaScale="4 4 4"/>
            <joint component1="1" component2="2" node="0>0|21|0" rotLimit="10 0 0"/>
            <joint component1="1" component2="3" node="0>0|21|1" rotLimit="10 0 0"/>
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
        <speedLimit value="17"/>
        <sounds volumeFactor="1" />
	<mapHotspot type="TRAILER" />
	</base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="wheels/hw_wheels.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.9" repr="1>3" forcePointRatio="0.55" initialCompression="25" suspTravel="0.15" spring="80" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/hw_wheels.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.9" repr="1>4" forcePointRatio="0.55" initialCompression="25" suspTravel="0.15" spring="80" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/hw_wheels.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.9" repr="2>3" forcePointRatio="0.55" initialCompression="25" suspTravel="0.15" spring="80" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/hw_wheels.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.9" repr="2>4" forcePointRatio="0.55" initialCompression="25" suspTravel="0.15" spring="80" damper="20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
    <licensePlates>
        <licensePlate node="0>0|17|1" position="Back" preferedType="SQUARISH"/>
    </licensePlates>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|3" jointType="trailerLow" attacherHeight="0.944"/>
        </inputAttacherJoints>
        <brakeForce force="0.45" maxForce="1.5" maxForceMass="12000"/>
		<support animationName="moveSupport"/>
    
	    <sounds>
            <active file="$data/sounds/tools/trailer/trailerRattle_02.wav" innerRadius="10" outerRadius="50" volumeScale="25" isLocalSound="true" pitchScale="0.9">
                <volume indoor="0.6" outdoor="0.9" >
                    <modifier type="WHEEL_SUSPENSION" value="-0.05" modifiedValue="0.35"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.03" modifiedValue="0.25"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.00" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.03" modifiedValue="0.25"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.05" modifiedValue="0.35"/>

                    <modifier type="SPEED" value="0.0" modifiedValue="0.0"/>
                    <modifier type="SPEED" value="2.0" modifiedValue="1.0"/>
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0"/>
                </volume>
                <lowpassCutoffFrequency indoor="300" outdoor="20000" />
                <lowpassGain indoor="0.7" outdoor="1" />
            </active>
        </sounds>
	</attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="0>0|23" aboveAttacher="true" detachNode="0>0|23|0" filename="$data/shared/assets/powerTakeOffs/walterscheidW_SC25.xml"/>
        <sounds>
            <turnedOn template="tractorPTO" volumeScale="0.5" />
        </sounds>
    </powerTakeOffs>

    <powerConsumer ptoRpm="500" neededMinPtoPower="5" neededMaxPtoPower="5"/>
	
    <lights>
        <realLights>
            <high>
                <light          node="0>0|12|1|0|0" lightTypes="0"/>
		<turnLightLeft  node="0>0|12|1|2|0|0"/>
                <turnLightRight node="0>0|12|1|2|1|0"/>
                <brakeLight     node="0>0|12|1|1|0"/>
            </high>
        </realLights>

		<sharedLight linkNode="0>0|12|0|0|0" filename="lights/rear3DDRLight_01_left.xml"/>
                <sharedLight linkNode="0>0|12|0|0|1" filename="lights/rear3DDRLight_01_right.xml"/>
	</lights>
	
    <workAreas>
        <workArea disableBackwards="true" functionName="processForageWagonArea" type="forageWagon">
            <area startNode="0>5|0" widthNode="0>5|1" heightNode="0>5|2"/>
            <groundReferenceNode index="1"/>
        </workArea>
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode node="0>0|0|4" threshold="0.2"/>
    </groundReferenceNodes>

    <animations>
        <animation name="moveSupport">
            <part node="0>0|18|0" duration="0.6" startTime="0" startRot="0 0 0" endRot="-138 0 0"/>
            <sound template="clackVar5"         startTime="0.1" volumeScale="1.5" pitchScale="1.2" linkNode="0>0|18"/>
            <sound template="clackVar1"         startTime="0.5" volumeScale="2"   pitchScale="1.4" linkNode="0>0|18"/>
            <sound template="clackVar2"         startTime="0.4" volumeScale="2"   pitchScale="1.6" linkNode="0>0|18"/>
            <sound template="clackVar3"         startTime="0.1" volumeScale="2.3" pitchScale="1.2" linkNode="0>0|18"/>
            <sound template="vibratingImp"      startTime="0.1" volumeScale="1.3" pitchScale="1.2" linkNode="0>0|18"/>
            <sound template="latchSmall"        startTime="0.9" volumeScale="0.4" pitchScale="2.2" linkNode="0>0|18"/>
            <sound template="clackVar5"         startTime="0.9" volumeScale="0.8" pitchScale="1"   linkNode="0>0|18"/>
            <sound template="metalHandleRotate" startTime="0.6" endTime="0.99" volumeScale="1" pitchScale="1" linkNode="0>0|18"/>
	</animation>

        <animation name="rotatePickup">
            <part node="0>0|0" startTime="0" endTime="0.7" startRot="0 0 0" endRot="38 0 0"/>
            <part node="0>0|0|1" startTime="0" endTime="0.7" startRot="0 0 0" endRot="-16 0 0"/>
	    <sound template="hydraulicOpen02" startTime="0.01" endTime="0.9" direction="1" volumeScale="1.3" pitchScale="1"   linkNode="0>0|0" fadeIn="0.01" fadeOut="0.01"/>
            <sound template="hydraulicClose01" startTime="0.01" endTime="0.9" direction="-1" volumeScale="2.0" pitchScale="0.8" linkNode="0>0|0" fadeIn="0.01" fadeOut="0.01"/>
            <sound template="vibratingImp" startTime="0.9" direction="1" volumeScale="0.9" pitchScale="1.5" linkNode="0>0|0"/>
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="1.2" pitchScale="0.8" linkNode="0>0|0"/>
            <sound template="vibratingImp" startTime="0.01" direction="-1" volumeScale="1.0" pitchScale="1.2" linkNode="0>0|0"/>
	</animation>

        <animation name="tipAnimationBack">
            <part node="0>0|2" startTime="0" endTime="1" startTrans="0 2.753 -3.518" endTrans="0 2.849 -3.518"/>
            <part node="0>0|2" startTime="1.01" endTime="6" startRot="0 0 0" endRot="84 0 0"/>
            <part node="0>0|8" startTime="1.01" endTime="6" startRot="-98 0 0" endRot="-92.5 0 0"/>
	    <sound template="hydraulicOpen02"       startTime="0.01"  endTime="6" direction="-1"    volumeScale="2.5"   startPitchScale="1.2" endPitchScale="1.3" fadeIn="0.1" fadeOut="0.2"/>
            <sound template="hydraulicClose03"      startTime="0.01"  endTime="6" direction="1"     volumeScale="6.5"   pitchScale="0.8" fadeIn="0.1" fadeOut="0.2"/>
            <sound template="trailerCloseImpact_01" startTime="0.1"   direction="-1" volumeScale="1"   pitchScale="0.8" />
            <sound template="hingeImp"              startTime="0.2"   direction="-1" volumeScale="0.7" pitchScale="0.8" />
            <sound template="metalClose"            startTime="0.2"   direction="-1" volumeScale="2"   pitchScale="0.6" />
            <sound template="cylinderPunch"         startTime="0.2"   direction="-1" volumeScale="2"   pitchScale="1.2" />
            <sound template="clackVar6"             startTime="0.01"  direction="-1" volumeScale="2"   pitchScale="0.8" />
            <sound template="cylinderPunch"         startTime="2.99"  direction="1"  volumeScale="1.4" pitchScale="1.2" />
            <sound template="clackVar6"             startTime="2.99"  direction="1"  volumeScale="2"   pitchScale="0.7"/>
            <sound template="vibratingImp"          startTime="2.99"  direction="1"  volumeScale="1.4" pitchScale="1.1"/>
            <sound template="thudVar2"              startTime="2.99"  direction="-1" volumeScale="4"   pitchScale="1.2" /> 
		</animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>0|2" playSound="true">
                <dependentPart node="0>0|8" />
	</movingTool>
       </movingTools>
        
	<movingParts>
            <movingPart node="0>0|8" referencePoint="0>0|2|0" referenceFrame="0>0|22" isActiveDirty="true" maxUpdateDistance="50" scaleZ="false" scaleY="false" invertZ="false">
                 <translatingPart node="0>0|8|0" />
        </movingPart>
    </movingParts> 
		
	<sounds>
			<hydraulic file="sounds/scraperFloor.ogg">
				<volume indoor="1.00" outdoor="2.00"/>
				<pitch outdoor="1.20"/>
			</hydraulic>
		 
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    
	    <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="1.5" linkNode="0>0"            actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>4|0"/>
            <actionSound template="clackVar6"             pitchScale="0.8" volumeScale="1"   linkNode="0>0|0"          actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="0>4|0|1"/>
            <actionSound template="sheetImp02"            pitchScale="1.3" volumeScale="1.2" linkNode="0>0|2"          actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="0>4|0|1"/>
            <actionSound template="cylinderPunch"         pitchScale="1"   volumeScale="0.5" linkNode="0>0|2"          actionNames="TOOL_MOVE_END_POS_LIMIT"         nodes="0>4|0|1"/>
             <actionSound template="clackVar6"             pitchScale="0.7" volumeScale="1.8" linkNode="0>0"          actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="0>4|0|1"/>
            <actionSound template="clackVar4"             pitchScale="1.3" volumeScale="0.5" linkNode="0>0"          actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="0>4|0|1"/>
            <actionSound template="sheetImp02"            pitchScale="0.8" volumeScale="2"   linkNode="0>0|2"          actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="0>4|0|1"/>
            <actionSound template="thudVar2"              pitchScale="0.8" volumeScale="2.5" linkNode="0>0"          actionNames="TOOL_MOVE_END_NEG_LIMIT"         nodes="0>0"/> 
        </sounds>
	</cylindered>
	
	<pickup>
            <animation isDefaultLowered="false" name="rotatePickup"/>
        </pickup>
    
	<fillUnit>
        <fillUnitConfigurations>    
			<fillUnitConfiguration name="$l10n_configuration_valueNo" price="0">
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="forageWagon" capacity="38000" allowAILoading="true">
                        <exactFillRootNode node="0>2" />
                        <autoAimTargetNode node="0>3" startZ="2.45" endZ="-2.45" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|1|0" fillUnitIndex="1"  maxDelta="0.1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>6" width="1.4" length="1.0"/>
            </unloadInfo>
        </unloadInfos>
        <loadInfos>
            <loadInfo>
                <node node="0>7" width="1.4" length="1.0"/>
            </loadInfo>
        </loadInfos>
    </fillVolume>
	
    <dischargeable>
        <dischargeNode node="0>6" emptySpeed="530" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="0.5" length="1.1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|10|0" effectClass="ParticleEffect" materialType="unloadingParticle" lifespan="0.11"/>
                    <effectNode effectNode="0>0|10|1" materialType="unloading" delay="0.1" fadeTime="0.5" extraDistanceNode="0>6"/>
                </effectNode>
                <effectNode effectNode="0>0|10|2" materialType="unloadingSmoke" fadeTime="0.5"/>
            </effects>
            <dischargeStateSound file="sounds/scraperFloor.ogg" pitchScale="1.0" volumeScale="5" fadeIn="0.5" fadeOut="0.5" linkNodeOffset="0 2 -2.5"/>
	</dischargeNode>
     </dischargeable>
	
     <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" startTipTime="1" />
		    <animationNodes>
                        <animationNode class="ScrollingAnimation" node="0>0|9|2" shaderParameterName="offsetUV" scrollSpeed="0.2" scrollLength="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
                    <animationNode node="0>0|9|0"    rotAxis="1" rotSpeed="-120"  turnOffFadeTime="1" turnOnFadeTime="1" />
                    <animationNode node="0>0|9|1"    rotAxis="1" rotSpeed="-120"  turnOffFadeTime="1" turnOnFadeTime="1" />                   
                    </animationNodes>
		   </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer> 
	
    <forageWagon fillUnitIndex="1" loadInfoIndex="1" maxPickupLitersPerSecond="350" workAreaIndex="1">
    <fillEffect>
            <effectNode effectClass="TypedMotionPathEffect" effectType="PICKUPIN" linkNode="0>0|10|5">
                <motionPathEffect textureFilename="$data/vehicles/poettinger/bossAlpin251/pickupEffectArray.dds" numRows="12" rowLength="10" minFade="0.15" shapeScale="0.75"/>
        </effectNode>		
	    <effectNode effectNode="0>0|10|3" effectClass="ParticleEffect" particleType="SMOKE" emitCountScale="0.1" />
            <effectNode effectNode="0>0|10|4" effectClass="ParticleEffect" particleType="SMOKE" emitCountScale="0.2" worldSpace="false"/>
        </fillEffect>
    </forageWagon>
    
    <turnOnVehicle>

        <sounds>
            <work file="sounds/work.ogg" linkNode="0>0|0" volumeScale="2"/>
        </sounds>

	<animationNodes>
            <animationNode node="0>0|0|0"   rotAxis="1" rotSpeed="-500"  turnOffFadeTime="1" turnOnFadeTime="1" />
	    <animationNode node="0>0|0|2"     rotAxis="1" rotSpeed="-500"  turnOffFadeTime="1" turnOnFadeTime="1" />
            <animationNode node="0>0|4"     rotAxis="1" rotSpeed="500"  turnOffFadeTime="1" turnOnFadeTime="1" />
	    <animationNode node="0>0|5"     rotAxis="1" rotSpeed="-500"  turnOffFadeTime="1" turnOnFadeTime="1" />
	    <animationNode node="0>0|6"     rotAxis="1" rotSpeed="500"  turnOffFadeTime="1" turnOnFadeTime="1" />
	    <animationNode node="0>0|7"     rotAxis="1" rotSpeed="-500"  turnOffFadeTime="1" turnOnFadeTime="1" />
            <animationNode node="0>0|9|0"    rotAxis="1" rotSpeed="-50"  turnOffFadeTime="1" turnOnFadeTime="1" />
            <animationNode node="0>0|9|1"    rotAxis="1" rotSpeed="-50"  turnOffFadeTime="1" turnOnFadeTime="1" />
	    <animationNode class="ScrollingAnimation" node="0>0|0|5|0" shaderParameterName="scrollPos" scrollSpeed="1" scrollLength="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
	    <animationNode class="ScrollingAnimation" node="0>0|9|2" shaderParameterName="offsetUV" scrollSpeed="0.08" scrollLength="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
       </animationNodes>
      </turnOnVehicle>
    
	<connectionHoses>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1.3" node="0>0|11|0|0" type="airDoubleRed">
            <objectChange node="0>0|11|1|5" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1.3" node="0>0|11|0|1" type="hydraulicIn">
            <objectChange node="0>0|11|1|4" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1.3" node="0>0|11|0|2" type="hydraulicOut">
            <objectChange node="0>0|11|1|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1.3" node="0>0|11|0|3" type="hydraulicIn">
            <objectChange node="0>0|11|1|3" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.02" inputAttacherJointIndices="1" length="1.3" node="0>0|11|0|4" type="hydraulicOut">
            <objectChange node="0>0|11|1|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose diameter="0.008" inputAttacherJointIndices="1" length="1.4" node="0>0|11|0|5" straighteningFactor="1.5" type="electric">
            <objectChange node="0>0|11|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    	</connectionHoses>
	
	<foliageBending>
        <bendingNode minX="-1.1" maxX="1.1" minZ="-3.1" maxZ="2.8" yOffset="0.9"/>
    </foliageBending>

    <baseColorConfigurations title="$l10n_configuration_chassisColor" useDefaultColors="false" price="0">
        <baseColorConfiguration name="RAL 2002 - Blutorange" color="0.564 0.021 0.02"/>
        <baseColorConfiguration name="Rot ausgeblichen" color="0.8 0.17 0.17"/>
		<material materialSlotName="Rahmen"/>
    </baseColorConfigurations>

    <rimColorConfigurations title="$l10n_configuration_rimColor" useDefaultColors="true" price="0">
        <rimColorConfiguration name="RAL 2002 - Blutorange" color="0.564 0.021 0.02"/>
        <rimColorConfiguration name="Rot ausgeblichen" color="0.8 0.17 0.17"/>
    </rimColorConfigurations>
	
	<wearable wearDuration="960" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    
	<tipOccluder>
        <occlusionArea start="tipOccluderStart" width="tipOccluderWidth" height="tipOccluderHeight"/>
    </tipOccluder>
	
    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="7"/>
        <agentAttachment jointNode="0>0|3" rotCenterWheelIndices="1 2 3 4" width="2.7" height="3.8" length="7.3" lengthOffset="0.1"/>
    </ai>
	<i3dMappings>
	<i3dMapping id="tipOccluderStart" node="0>9|0" />
    <i3dMapping id="tipOccluderWidth" node="0>9|1" />
    <i3dMapping id="tipOccluderHeight" node="0>9|2" />
	</i3dMappings>
</vehicle>
