<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mower">
    <storeData>
        <name>New Holland 116 Haybine</name>
	<specs>
	    <neededPower>50</neededPower>
	    <workingWidth>9</workingWidth>
	</specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>store.dds</image>
        <price>12500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LEGACYNEWHOLLAND</brand>
        <category>mowers</category>
  	<shopTranslationOffset>0 1.0 0</shopTranslationOffset>
        <shopRotationOffset>4.405 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1265720</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>206112</indexBufferMemoryUsage>
        <textureMemoryUsage>6116856</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>nh116.i3d</filename>
        <size width="9.0" length="16" />
        <speedLimit value="10"/>
        <components>
            <component centerOfMass=".83 0 0" solverIterationCount="20" mass="600"/>
            <component centerOfMass="0.72 0.22 -1.21" solverIterationCount="20" mass="3000"/>
            <joint component1="1" component2="2" node="bodyRef" rotLimit="0 0 0" transLimit="0 0 0"/>
        </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>

    <attachable>
        <inputAttacherJoints>
           <inputAttacherJoint node="attacherJoint" jointType="implement" needsToolbar="true" lowerRotLimitScale="1 3.5 1" upperRotLimitScale="1 3.5 1" upperTransLimitScale="0 1 0">
               <distanceToGround lower="0.4871" upper="0.4871" />
           </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <lowerAnimation name="lowerAnimation" speed="1"/>
        <brakeForce>0.6</brakeForce>
    </attachable>

    <powerTakeOffs>
        <input inputNode="attacherPto" inputAttacherJointIndices="1" aboveAttacher="true"/>
    </powerTakeOffs>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.1" repr="rightWheel" radius="0.42" width="0.3" mass="0.068" tireType="offRoad" frictionScale="1.60" forcePointRatio="0.3" suspTravel="0.15" spring="14" damper="20" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2" useReprDirection="true" />
			  <tire maxDeformation="0.096" isCareWheel="false" tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.1" repr="leftWheel" radius="0.42" width="0.3" mass="0.068" tireType="offRoad" frictionScale="1.60" forcePointRatio="0.3" suspTravel="0.15" spring="14" damper="20" tireTrackAtlasIndex="4" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2" useReprDirection="true" />
			  <tire maxDeformation="0.096" isCareWheel="false" tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <powerConsumer ptoRpm="540" neededMaxPtoPower="50"/>

    <groundReferenceNodes>
        <groundReferenceNode node="groundRef" threshold="0.4"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="true">
            <area startNode="cutStartIndex" widthNode="cutWidthIndex" heightNode="cutHeightIndex"/>
            <groundReferenceNode index="1"/>
	    <mower dropWindrow="true" dropAreaIndex="2"/>
        </workArea>

        <workArea type="auxiliary" disableBackwards="true">
            <area startNode="droperStartIndex" widthNode="droperWidthIndex" heightNode="droperHeightIndex"/>
        </workArea>

    </workAreas>

    <animations>
        <animation name="moveSupport">
            <part node="boot" startTime="0" endTime="3" startTrans="-0.005 -0.199 0.003" endTrans="-0.005 -0.6 0.003"/>
            <part node="handle" startTime="0" endTime="3" startRot="0 0 0" endRot="1800 0 0"/>
            <part node="support" startTime="0" endTime=".5" startRot="60 0 0" endRot="-3 0 0"/>
        </animation>
        <animation name="lowerAnimation">
            <part node="swather" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 -0.21 0"/>
            <part node="Wheel_Cyl1" startTime="0" endTime="0.6" startRot="1.035 0 0" endRot="0 0 0"/>
            <part node="Wheel_Cyl1" startTime="0" endTime="0.6" startTrans="0 0 0" endTrans="0 0.24 -0.037"/>
            <part node="Wheel_Cyl" startTime="0" endTime="1" startRot="0 0 0" endRot="9.475 0 0"/>
            <part node="Wheel_Cyl" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 -0.224 -0.111"/>
            <part node="AxleLeft" startTime="0" endTime="1" startRot="90 0 0" endRot="-7.66 0 0"/>
            <part node="AxleRight" startTime="0" endTime="1" startRot="90 0 0" endRot="-7.66 0 0"/>
            <part node="AxleLeft" startTime="0" endTime="1" startTrans="2.717 -0.401 -1.475" endTrans="2.717 -0.18 -1.495"/>
            <part node="AxleRight" startTime="0" endTime="1" startTrans="-1.267 -0.401 -1.475" endTrans="-1.267 -0.18 -1.495"/>
            <part node="backSupport" startTime="0" endTime="1" startRot="90 0 0" endRot="132.0 0 0"/>
            <part node="backSupport" startTime="0" endTime="1" startTrans="1.628 -0.419 -1.108" endTrans="1.628 -0.30 -1.169"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="bodyRef" playSound="true">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="1" iconName="CRANE_ARM1_ROTATE_X"/>
                <rotation rotSpeed="-50" rotAcceleration="100" rotMax="40" rotMin="-40" rotationAxis="2"/>
                <componentJoint index="1" anchorActor="0"/>
            </movingTool>
            <movingTool node="support"/>
            <movingTool node="swather" playSound="true"/>
        </movingTools>
        <movingParts>
            <movingPart node="hydCyl" referencePoint="hydroRamRef" referenceFrame="ArmCol" isActiveDirty="true">
                <translatingPart node="hydRam"/>
            </movingPart>
        </movingParts>
        <sounds>
	    <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="ArmCol"/>
        </sounds>
    </cylindered>

    <mower fruitTypeConverter="MOWER">
        <animationNodes>
            <animationNode node="reel" rotSpeed="250" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="auger" rotSpeed="325" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="stemCrusherBottom" rotSpeed="350" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="stemCrusherTop" rotSpeed="350" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>

        <dropEffects>
            <dropEffect dropAreaIndex="2">
	        
                 <effectNode effectNode="windrowDropEffect" materialType="mower" materialTypeId="1" delay="0"/>

		 <!-- Auger effects -->
                 <effectNode effectNode="effectSide" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.5" worldSpace="false" extraDistance="6"/>	
                 <effectNode effectNode="effectSide1" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.5" worldSpace="false" extraDistance="6"/>	
                 <effectNode effectNode="effectSideInner" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.5" worldSpace="false" extraDistance="6"/>	
                 <effectNode effectNode="effectSide1Inner" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.5" worldSpace="false" extraDistance="6"/>

		 <!-- Sickle Effects -->
	         <effectNode effectNode="particleEffect" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.1" worldSpace="false"/>
	         <effectNode effectNode="particleEffect1" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.1" worldSpace="false"/>
	         <effectNode effectNode="particleEffect2" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.1" worldSpace="false"/>
	         <effectNode effectNode="particleEffect3" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.1" worldSpace="false"/>
	         <effectNode effectNode="particleEffect4" effectClass="ParticleEffect" particleType="pickup"  emitCountScale="10" lifespan="0.1" worldSpace="false"/>

            </dropEffect>
        </dropEffects>
    </mower>

    <foliageBending>
	<bendingNode minX="-1.66" maxX="4.2" minZ="-1.0" maxZ="0.9" yOffset="0" node="1>" />
    </foliageBending>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <sounds>
		<start template="DEFAULT_MOWER_START" file="sounds/start.ogg" linkNode="0>" />
		<stop template="DEFAULT_MOWER_STOP"   file="sounds/stop.ogg" linkNode="0>" />
		<work template="DEFAULT_MOWER_WORK"   file="sounds/work.ogg" linkNode="0>" />
        </sounds>
    </turnOnVehicle>

    <!--  Already worn with faded paint -->
    <washable dirtDuration="120" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
	    <i3dMapping id="ArmCol" node="0>" />
	    <i3dMapping id="attacherJoint" node="0>0|4" />
	    <i3dMapping id="attacherPto" node="0>0|3|0" />
	    <i3dMapping id="rightWheel" node="1>0" />
	    <i3dMapping id="leftWheel" node="1>1" />
	    <i3dMapping id="groundRef" node="1>3|0|10" />
	    <i3dMapping id="cutStartIndex" node="1>3|0|9|0|0" />
	    <i3dMapping id="cutWidthIndex" node="1>3|0|9|0|1" />
	    <i3dMapping id="cutHeightIndex" node="1>3|0|9|0|2" />
	    <i3dMapping id="droperStartIndex" node="1>3|0|9|1|0" />
	    <i3dMapping id="droperWidthIndex" node="1>3|0|9|1|1" />
	    <i3dMapping id="droperHeightIndex" node="1>3|0|9|1|2" />
	    <i3dMapping id="boot" node="0>0|7|0" />
	    <i3dMapping id="handle" node="0>0|7|1" />
	    <i3dMapping id="support" node="0>0|7" />
	    <i3dMapping id="swather" node="1>3|0" />
	    <i3dMapping id="Wheel_Cyl" node="1>3|1" />
	    <i3dMapping id="Wheel_Cyl1" node="1>3|1|0" />
	    <i3dMapping id="AxleLeft" node="1>3|0|7|0" />
	    <i3dMapping id="AxleRight" node="1>3|0|7|1" />
	    <i3dMapping id="backSupport" node="1>3|0|8" />
	    <i3dMapping id="bodyRef" node="0>0|0" />
	    <i3dMapping id="hydCyl" node="0>0|1" />
	    <i3dMapping id="hydroRamRef" node="1>2" />
	    <i3dMapping id="hydRam" node="0>0|1|0" />
	    <i3dMapping id="reel" node="1>3|0|5" />
	    <i3dMapping id="auger" node="1>3|0|2" />
	    <i3dMapping id="stemCrusherBottom" node="1>3|0|4|0" />
	    <i3dMapping id="stemCrusherTop" node="1>3|0|4|1" />
	    <i3dMapping id="windrowDropEffect" node="1>3|0|11|0" />
	    <i3dMapping id="effectSide" node="1>3|0|11|1" />
	    <i3dMapping id="effectSide1" node="1>3|0|11|2" />
	    <i3dMapping id="effectSideInner" node="1>3|0|11|3" />
	    <i3dMapping id="effectSide1Inner" node="1>3|0|11|4" />
	    <i3dMapping id="particleEffect" node="1>3|0|11|5" />
	    <i3dMapping id="particleEffect1" node="1>3|0|11|6" />
	    <i3dMapping id="particleEffect2" node="1>3|0|11|7" />
	    <i3dMapping id="particleEffect3" node="1>3|0|11|8" />
	    <i3dMapping id="particleEffect4" node="1>3|0|11|9" />
	    <i3dMapping id="smokeEmitter" node="1>3|0|11|10" />
    </i3dMappings>

</vehicle>
