﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mower">
    <annotation>Deutz</annotation>

    <storeData>
        <name>
            <en>cutter bar</en>
            <de>Messerbalken</de>
		</name>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <specs>
            <workingWidth>2</workingWidth>
            <combination>Güldner G 75</combination>
        </specs>
        <image>store_messer.dds</image>
        <price>700</price>
        <dailyUpkeep>5</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DEUTZFAHR</brand>
        <category>mowers</category>
    </storeData>
			
	<base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>messerbalken.i3d</filename>
        <size width="6" widthOffset="-1.5" length="2.5" lengthOffset="-0.5"/>
        <speedLimit value="10"/>
        <components count="1">
            <component centerOfMass="-0.40 -0.5 -0.2" solverIterationCount="10" mass="150" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>	
	
	<powerConsumer ptoRpm="540" neededMinPtoPower="0" neededMaxPtoPower="1" />
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" fixedRotation="true"/>
        </inputAttacherJoints>
    </attachable>

    <enterReferenceNode node="messer_component"/>
	
	<workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="true" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="0.1" />
            <mower dropWindrow="true" dropAreaIndex="2" />
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="dropAreaStart" widthNode="dropAreaWidth" heightNode="dropAreaHeight" />
        </workArea>
    </workAreas>
	
	<mower fruitTypeConverter="MOWER"> 
        <dropEffects>
            <dropEffect dropAreaIndex="2">
                <effectNode effectNode="moverEffect" materialType="mower"   materialTypeId="1" delay="0" />
            </dropEffect>
        </dropEffects>
    </mower>
	
    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.5"/>
    </groundReferenceNodes>

	<onlyActiveWhenLowered value="true"/>
	
	<foldable>
	    <foldingParts startMoveDirection="1">
            <foldingPart componentJointIndex="1" anchorActor="1" animationName="undeniable" speedScale="1"/>
        </foldingParts>
	</foldable>
	
	<turnOnVehicle turnOffIfNotAllowed="true" externalSoundFile="sounds/soundTemplates.xml">
<turnedOnAnimation name="turnOnAnimation" speedScale="15" turnOnFadeTime="1" turnOffFadeTime="1"/>
<sounds>

<work template="messerbalken" linkNode="messer_component"node=" 0>" />

</sounds>
</turnOnVehicle>
	
	<cylindered>
        <movingTools>
		    <movingTool node="Messer">
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="0.6" />
                <rotation rotSpeed="50" rotAcceleration="125" rotMax="-28" rotMin="-90" startRot="-90" rotationAxis="3"/>
            </movingTool>
            <movingTool node="Messerkonsole1">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="0.6" />
                <rotation rotSpeed="60" rotAcceleration="40" rotMax="26" rotMin="0" startRot="0" rotationAxis="3"/>
            </movingTool>
		 </movingTools>
		 <sounds externalSoundFile="soundTemplates.xml" />
    </cylindered>
	
    <animations>
        <animation name="undeniable">
			<part node="MesserSchutz" startTime="0" endTime="0.01" endScale="1.4 1.14 1" startScale="0 0 0" />
			<part node="Schwadblech" startTime="0.01" endTime="0" endScale="1 1 1" startScale="1 1 1" />
		</animation>
		
		<animation name="turnOnAnimation" looping="true">
            <part node="0>0|0|0|17|0" startTime="0" endTime="1"  startTrans="0 0 0" endTrans="-0.09 0 0" />
            <part node="0>0|0|0|17|0" startTime="1" endTime="2"  startTrans="-0.09 0 0" endTrans="0 0 0" />
            <part node="0>0|0|0|18|0" startTime="0" endTime="1"  startTrans="0 0 0" endTrans="0.09 0 0" />
            <part node="0>0|0|0|18|0" startTime="1" endTime="2"  startTrans="0.09 0 0" endTrans="0 0 0" />
        </animation>
    </animations>
		
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
	<i3dMappings>
        <i3dMapping id="messer_component" node="0>" />
        <i3dMapping id="messerbalken" node="0>0" />
		<i3dMapping id="Messerkonsole1" node="0>0|0" />
		<i3dMapping id="Messer" node="0>0|0|0" />
		<i3dMapping id="MesserSchutz" node="0>0|0|0|0" />
		<i3dMapping id="groundReferenceNode" node="0>0|0|0|2" />
		<i3dMapping id="workAreaStart" node="0>0|0|0|4" />
		<i3dMapping id="workAreaWidth" node="0>0|0|0|5" />
		<i3dMapping id="workAreaHeight" node="0>0|0|0|6" />
		<i3dMapping id="dropAreaStart" node="0>0|0|0|7" />
		<i3dMapping id="dropAreaWidth" node="0>0|0|0|8" />
		<i3dMapping id="dropAreaHeight" node="0>0|0|0|8" />
		<i3dMapping id="messer" node="0>0|0|0|10" />
		<i3dMapping id="moverEffect" node="0>0|0|0|14|0" />
		<i3dMapping id="Schwadblech" node="0>0|0|0|16" />
		<i3dMapping id="blades" node="0>0|0|0|17" />
		<i3dMapping id="cutter1" node="0>0|0|0|17|0" />
		<i3dMapping id="wiperArm1" node="0>0|0|0|17|0|0" />
		<i3dMapping id="cutter2" node="0>0|0|0|17|1" />
		<i3dMapping id="wiperArm1Ref" node="0>0|0|0|17|1|0" />
		<i3dMapping id="blades2" node="0>0|0|0|18" />
		<i3dMapping id="cutter3" node="0>0|0|0|18|0" />
		<i3dMapping id="wiperArm2" node="0>0|0|0|18|0|0" />
		<i3dMapping id="cutter4" node="0>0|0|0|18|1" />
		<i3dMapping id="wiperArm2Ref" node="0>0|0|0|18|1|0" />
		<i3dMapping id="attacherJoint" node="0>1" />
    </i3dMappings>
 
</vehicle>
