<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Tyson McCrary, Boertjie, Expendables</annotation>
    <storeData>
        <name>
            <en>John Deere 4000 Series</en></name>
        <specs>
            <power>155</power>
            <maxSpeed>34</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store.dds</image>
        <price>35000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>tractorsM</category>
        <vertexBufferMemoryUsage>1756048</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>301140</indexBufferMemoryUsage>
        <textureMemoryUsage>18918376</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>4640.i3d</filename>
        <size width="5.0" length="6"/>
        <components>
            <component centerOfMass="0 0.5 -0.5" solverIterationCount="100" mass="6159"/>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="550"/>
            <joint component1="1" component2="2" node="0>15" rotLimit="0 0 10" rotLimitSpring="0 0 4500" rotLimitDamping="0 0 85" maxRotDriveForce="0 0 30" rotDriveRotation="0 0 0" rotDriveSpring="0 0 40" rotDriveDamping="0 0 30" breakable="false"/>
        </components>
        <schemaOverlay attacherJointPosition="0.5 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-33" rotMax="33">
                        <physics rotSpeed="45" restLoad="3.56" repr="1>1|0" driveNode="1>1|0|0|0" forcePointRatio="0.51" radius="0.5" width="0.4" mass="0.5" suspTravel="0.03" deltaY="0.0" spring="100" damper="20" frictionScale="2.5" tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-33" rotMax="33">
                        <physics rotSpeed="45" restLoad="3.56" repr="1>2|0" driveNode="1>2|0|0|0" forcePointRatio="0.51" radius="0.5" width="0.4" mass="0.5" suspTravel="0.03" deltaY="0.0" spring="100" damper="20" frictionScale="2.5" tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel filename="wheels.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="2.4" repr="0>0" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="30" damper="60"/>
                    </wheel>
                    <wheel filename="wheels.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="2.4" repr="0>1" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="30" damper="60"/>
                    </wheel>
                </wheels>
            </wheelConfiguration> 
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="42" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <attacherJoints>
        <attacherJoint node="0>13|0|0|0" lowerRotLimit="15 40 40" lowerTransLimit="0 0.3 0" moveTime="2">
            <distanceToGround lower="0.88" upper="1.299"/>
            <rotationNode node="0>13|0" upperRotation="20 0 0" lowerRotation="0 0 0"/>
            <rotationNode2 node="0>13|0|0" upperRotation="-10 0 0" lowerRotation="0 0 0"/>
            <bottomArm rotationNode="0>13|1" translationNode="0>13|1|0" referenceNode="0>13|1|0|0" zScale="-1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>16" jointType="trailer" lowerRotLimit="10 50 50" comboTime="1" allowsJointLimitMovement="false" upperRotRotationOffset="0">
            <distanceToGround lower="0.52" upper="1.126"/>
            <transNode node="0>16" minY="0.4" maxY="1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>17" jointType="trailerLow" lowerRotLimit="10 45 50" comboTime="1" allowsJointLimitMovement="false" upperRotRotationOffset="0">
            <distanceToGround lower="0.51" upper="0.81"/>
            <steeringBars leftNode="0>17|0" rightNode="0>17|1"/>
            <transNode node="0>9" minY="0.4" maxY="0.7"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <powerTakeOffs>
        <output outputNode="0>18" attacherJointIndices="1 2 3"/>
    </powerTakeOffs>
    <lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
            <state lightTypes="0 1 2 3"/>
        </states>
        <realLights>
            <low>
                <light node="frontLightLow" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
                <brakeLight node="backLightHigh"/>
                <turnLightLeft node="turnLightLeft"/>
                <turnLightRight node="turnLightRight"/>
                <reverseLight node="reverseLight"/>
            </low>
            <high>
                <light node="frontLightLow" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
                <brakeLight node="backLightHigh"/>
                <turnLightLeft node="turnLightLeft"/>
                <turnLightRight node="turnLightRight"/>
                <reverseLight node="reverseLight"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>14|5|0" lightTypes="0" intensity=".4"/>
            <defaultLight shaderNode="0>14|5|1" lightTypes="0" intensity=".4"/>
            <defaultLight shaderNode="0>14|5|2" lightTypes="1" intensity=".4"/>
            <defaultLight shaderNode="0>14|5|3" lightTypes="1" intensity=".4"/>
        </defaultLights>
        <brakeLights>
            <brakeLight shaderNode="0>14|6"/>
            <brakeLight shaderNode="0>14|7"/>
        </brakeLights>
        <reverseLights>
            <reverseLight shaderNode="0>14|4|0"/>
            <reverseLight shaderNode="0>14|4|1"/>
        </reverseLights>
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>"/>
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>"/>
        </sounds>
    </lights>
    <enterable>
        <exitPoint node="0>6"/>
        <enterReferenceNode node="0"/>
        <characterNode node="0>19|0" cameraMinDistance="2.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>19|1"/>
            <target ikChain="leftFoot" targetNode="0>19|2"/>
            <target ikChain="rightArm" targetNode="0>7|0|0"/>
            <target ikChain="leftArm" targetNode="0>7|0|1"/>
        </characterNode>
        <cameras count="2">
            <camera node="outdoorCamera" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="40" translation="0 0 5.75" rotation="-10 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
                <raycastNode node="cameraRaycastNode3"/>
            </camera>
            <camera node="indoorCamera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" shadowFocusBox="shadowFocusBox"/>
        </cameras>
    </enterable>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="45" fillType="diesel"/>
                <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>
        <motorConfigurations>
            <motorConfiguration name="4000" hp="155" price="0">
                <motor torqueScale="1.608" minRpm="1000" maxRpm="2200" maxForwardSpeed="38" maxBackwardSpeed="15" brakeForce="4.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.001">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="14.5" maxForwardGearRatio="300" minBackwardGearRatio="40" maxBackwardGearRatio="300"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="3" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>3" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0" maxRpmColor="0 0 0 0" minRpmScale="0.09" maxRpmScale="0.5" xzRotationsOffset="100 0" xzRotationsForward="200 0" xzRotationsBackward="-100 0" xzRotationsLeft="-20 -150" xzRotationsRight="-20 150"/>
        </exhaustEffects>
        <motorStartDuration>2500</motorStartDuration>
        <animationNodes>
            <animationNode node="0>12|0" rotSpeed="600" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>
        </animationNodes>
        <sounds externalSoundFile="sounds/JD_4440.xml"/>
    </motorized>
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01"/>
        </sounds>
        <steeringWheel node="0>7|0" indoorRotation="540" outdoorRotation="60"/>
    </drivable>
    <cylindered>
        <movingTools>
            <movingTool node="0>13|1">
                <dependentPart node="0>13|7"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>13|7" referencePoint="0>13|1|0|1" localReferencePoint="0>13|7|0" referenceFrame="0>" playSound="false" invertZ="true">
                <dependentPart node="0>13|7|0"/>
            </movingPart>
            <movingPart node="0>13|7|0" referencePoint="0>13|1|0|1" referenceFrame="0>13|7|1" playSound="false" invertZ="true"/>
            <movingPart node="0>13|2" referencePoint="0>13|1|0|2|0|0|1" referenceFrame="0>13|1" isActiveDirty="true">
                <translatingPart node="0>13|2|0"/>
            </movingPart>
            <movingPart node="1>2|0|1" referencePoint="1>1|0|1" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false"/>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="386"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <designConfigurations title="series">
        <designConfiguration name="4020" price="1000">
            <objectChange node="0>23|4" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
		<designConfiguration name="4010" price="500">
            <objectChange node="0>23|2" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
		<designConfiguration name="4000" price="0">
            <objectChange node="0>23|3" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>
	<vehicleTypeConfigurations  title="Weights">
	<vehicleTypeConfiguration name="none" price="0" vehicleType="tractor">
            <objectChange node="0>26" visibilityActive="false" />
			<objectChange node="0>27" visibilityActive="false" />
			<objectChange node="0>28" visibilityActive="false" />
        </vehicleTypeConfiguration> 
        <vehicleTypeConfiguration name="bracket" price="0" vehicleType="tractor">
            <objectChange node="0>26" visibilityActive="true" />
			<objectChange node="0>27" visibilityActive="false" />
			<objectChange node="0>28" visibilityActive="false" />
        </vehicleTypeConfiguration> 
        <vehicleTypeConfiguration name="Weight set 1" price="0" vehicleType="tractor">
            <objectChange node="0>26" visibilityActive="true" />
            <objectChange node="0>27" visibilityActive="true" />
			<objectChange node="0>28" visibilityActive="false" />
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="Weight set 2" price="0" vehicleType="tractor">
            <objectChange node="0>26" visibilityActive="true" />
            <objectChange node="0>27" visibilityActive="true" />
			<objectChange node="0>28" visibilityActive="true" />
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-0.2" maxZ="2.3" yOffset="0.6"/>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-2.2" maxZ="-0.2" yOffset="0.6"/>
    </foliageBending>
    <honk>
        <sound template="HONK_JD6250R"/>
    </honk>
    <ai>
        <collisionTrigger node="0>8"/>
    </ai>
    <connectionHoses>
        <target attacherJointIndices="1 2 3" type="electric" node="0>21|2" socket="electric"/>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>21|0|0"/>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>21|0|1"/>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>21|1|0"/>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>21|1|1"/>
    </connectionHoses>
    <i3dMappings>
		<i3dMapping id="Tractor" node="0>"/>
        <i3dMapping id="outdoorCameraTarget" node="0>4"/>
        <i3dMapping id="outdoorCamera" node="0>4|0"/>
        <i3dMapping id="indoorCamera" node="0>5"/>
        <i3dMapping id="cameraRaycastNode1" node="0>22|0"/>
        <i3dMapping id="cameraRaycastNode2" node="0>22|1"/>
        <i3dMapping id="cameraRaycastNode3" node="0>22|2"/>
        <i3dMapping id="shadowFocusBox" node="0>22|3"/>
		<i3dMapping id="trafficCollisionTrigger" node="0>8"/>
        <i3dMapping id="highBeamHigh" node="0>14|0|1"/>
        <i3dMapping id="frontLightLow" node="0>14|0|0"/>
        <i3dMapping id="backLightHigh" node="0>14|1|0|1"/>
        <i3dMapping id="reverseLight" node="0>14|1|0|0"/>
        <i3dMapping id="turnLightLeft" node="0>14|2|0|0"/>
        <i3dMapping id="turnLightRight" node="0>14|2|1|0"/>
        <i3dMapping id="rearLightLow" node="0>8|0|0|0"/>
        <i3dMapping id="Brake" node="0>14|6"/>
        <i3dMapping id="Brake" node="0>14|7"/>
        <i3dMapping id="Reverselights1" node="0>14|4|0"/>
        <i3dMapping id="Reverselights2" node="0>14|4|1"/>
        <i3dMapping id="Low1" node="0>14|5|0"/>
        <i3dMapping id="Low2" node="0>14|5|1"/>
        <i3dMapping id="high1" node="0>14|5|2"/>
        <i3dMapping id="high2" node="0>14|5|3"/>
		<i3dMapping id="raycastnode1" node="0>9"/>
		<i3dMapping id="raycastnode2" node="0>10"/>
		<i3dMapping id="left" node="0>0|0"/>
		<i3dMapping id="right" node="0>1|0"/>
    </i3dMappings>
    <!--Non converted elements:


<?xml version="1.0" encoding="utf-8" standalone="no"?>

<vehicle>
<motorConfigurations>
<motorConfiguration hp="155"/>
</motorConfigurations>
<steering rotationSpeed="6"/>
</vehicle>

-->
</vehicle>
