<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Deutz-Fahr Agrostar 6.21/6.31</name>
        <specs>
            <power>120</power>
			<maxSpeed>40</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store_631.png</image>
        <price>35500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DEUTZFAHR</brand>
        <category>tractorsM</category>
    </storeData>
	
    <base>
        <filename>DeutzAgrostar631.i3d</filename>
        <size width="3.5" length="7"/>
        <components>
            <component centerOfMass="0 0.75 0.1" solverIterationCount="10"/>
            <component centerOfMass="0 0.02 0" solverIterationCount="10"/>
            <joint component1="1" component2="2" node="1>0" rotLimit="0 0 10" transLimit="0 0 0"/>
        </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" brand="TRELLEBORG">
				<wheels autoRotateBackSpeed="2.2">
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/420_70R28.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.4" repr="1>2|0|0" driveNode="wheelFrontLeft" forcePointRatio="0.5" initialCompression="25" suspTravel="0.14" spring="36" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/420_70R28.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.4" repr="1>1|0|0" driveNode="wheelFrontRight" forcePointRatio="0.5" initialCompression="25" suspTravel="0.14" spring="36" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/520_70R38.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>2" forcePointRatio="0.5" initialCompression="20" suspTravel="0.24" spring="24" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/520_70R38.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>3" forcePointRatio="0.5" initialCompression="20" suspTravel="0.24" spring="24" damper="30"/>
                    </wheel>
                    <foliageBendingModifier index="1" minX="-1.15" maxX="1.15"/>
                    <foliageBendingModifier index="2" minX="-1.2" maxX="1.2"/>
				</wheels>
			</wheelConfiguration>
			<wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="2000" brand="TRELLEBORG">
				<wheels autoRotateBackSpeed="2.2">
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/480_70R28.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.4" repr="1>2|0|0" driveNode="wheelFrontLeft" forcePointRatio="0.5" initialCompression="25" suspTravel="0.11" spring="45" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM700/480_70R28.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.4" repr="1>1|0|0" driveNode="wheelFrontRight" forcePointRatio="0.5" initialCompression="25" suspTravel="0.11" spring="45" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM800/650_65R38.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>2" forcePointRatio="0.5" initialCompression="20" suspTravel="0.16" spring="35" damper="30"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TM800/650_65R38.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>3" forcePointRatio="0.5" initialCompression="20" suspTravel="0.16" spring="35" damper="30"/>
                    </wheel>
                    <foliageBendingModifier index="1" minX="-1.2" maxX="1.2"/>
                    <foliageBendingModifier index="2" minX="-1.25" maxX="1.25"/>
				</wheels>
			</wheelConfiguration>
		</wheelConfigurations>
	</wheels>
	
	<hubs>
            <hub linkNode="wheelFrontLeft"      filename="$data/shared/wheels/hubs/hub_n10_2.xml" isLeft="true"  scale="0.285 0.285 0.285" />
            <hub linkNode="wheelFrontRight"     filename="$data/shared/wheels/hubs/hub_n10_2.xml" isLeft="false" scale="0.285 0.285 0.285" />
            <hub linkNode="wheelBackLeftDummy"  filename="$data/shared/wheels/hubs/hub_n8_2.xml" isLeft="true"  scale="0.285 0.285 0.285" />
            <hub linkNode="wheelBackRightDummy" filename="$data/shared/wheels/hubs/hub_n8_2.xml" isLeft="false" scale="0.285 0.285 0.285" />
    </hubs>
	
    <vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="ohne Rundumleuchte" price="0" vehicleType="tractor">
            <objectChange node="0>35|4|17" visibilityActive="false"/>
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="eine Rundumleuchte" price="100" vehicleType="tractor">
            <objectChange node="0>35|4|17" visibilityActive="true"/>
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="zwei Rundumleuchten" price="200" vehicleType="tractor">
            <objectChange node="0>35|4|17" visibilityActive="true"/>
            <objectChange node="0>35|4|18" visibilityActive="true"/>
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
    <attacherJoints comboDuration="2">
        <attacherJoint node="0>12|0|0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.5 0" moveTime="2.5" comboTime="1">
            <distanceToGround lower="0.847" upper="0.85"/>
            <rotationNode node="0>12" upperRotation="24 0 0" lowerRotation="5 0 0"/>
            <rotationNode2 node="0>12|0" upperRotation="-17 0 0" lowerRotation="-5 0 0"/>
            <bottomArm rotationNode="0>13" translationNode="0>13|0" referenceNode="0>13|0|0" zScale="-1"/>
            <topArm baseNode="0>53|0" filename="$data/shared/vehicleParts/upperLink.i3d" zScale="-1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>16|0|0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.4 0" moveTime="2.5" comboTime="0">
            <distanceToGround lower="0.38" upper="1.1"/>
            <rotationNode node="0>16" upperRotation="-33 0 0" lowerRotation="0 0 0"/>
            <rotationNode2 node="16|0" upperRotation="20 0 0" lowerRotation="0 0 0"/>
            <bottomArm rotationNode="0>17" translationNode="17|0" referenceNode="17|0|0" zScale="1"/>
            <topArm baseNode="0>53|1" filename="$data/shared/vehicleParts/upperLink.i3d" zScale="-1"/>
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
        <attacherJoint node="0>20|0" jointType="trailer" lowerRotLimit="10 50 50" upperRotationOffset="0" comboTime="1" allowsJointLimitMovement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>20|1" jointType="trailerLow" lowerRotLimit="10 50 50" upperRotationOffset="0" comboTime="1" allowsJointLimitMovement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach file="$data/sounds/attach.wav">
                <pitch outdoor="1"/>
            </attach>
            <hydraulic file="$data/sounds/hydraulicUp.wav">
                <volume outdoor="0.8"/>
                <pitch outdoor="0.55"/>
            </hydraulic>
        </sounds>
    </attacherJoints>
	
    <powerTakeOffs>
        <output attacherJointIndices="1 3 4" outputNode="0>51"/>
		<output attacherJointIndices="2 5" outputNode="0>52"/>
    </powerTakeOffs>
	
    <frontloaderConfigurations>
        <frontloaderConfiguration name="$l10n_ui_no" price="0">
            <objectChange node="0>54|0" visibilityActive="false"/>
        </frontloaderConfiguration>
        <frontloaderConfiguration name="Aloe" price="800" icon="$dataS2/menu/hud/configurations/config_loader.png">
            <attacherJoint node="0>54|1|0" jointType="attachableFrontloader" lowerRotLimit="0 0 0" lowerTransLimit="0 0 0" moveTime="2">
                <rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
                <schema position="0 0.4" rotation="0" invertX="true"/>
            </attacherJoint>
            <objectChange node="0>54|1" visibilityActive="true" visibilityInactive="false"/>
        </frontloaderConfiguration>
        <frontloaderConfiguration name="Stoll" price="800" icon="$dataS2/menu/hud/configurations/config_loader.png">
            <attacherJoint node="0>54|0|0" jointType="attachableFrontloader" lowerRotLimit="0 0 0" lowerTransLimit="0 0 0" moveTime="2">
                <rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
                <schema position="0 0.4" rotation="0" invertX="true"/>
            </attacherJoint>
            <objectChange node="0>54|0" visibilityActive="true" visibilityInactive="false"/>
        </frontloaderConfiguration>
    </frontloaderConfigurations>
	
	<lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
        </states>
        <realLights>
            <low>
                <light node="frontLightLow"      lightTypes="0" excludedLightTypes="2 3" />
                <light node="workLightBackLow"   lightTypes="1"/>
                <light node="workLightFrontLow"  lightTypes="2"/>
                <light node="highBeamLow"        lightTypes="3" />
            </low>
            <high>
                <light node="frontLightHigh"     lightTypes="0" excludedLightTypes="2 3" />
                <light node="workLightBackHigh"  lightTypes="1"/>
                <light node="workLightFrontHigh" lightTypes="2"/>
                <light node="highBeamHigh"       lightTypes="3"/>
                <light node="backLightsHigh"     lightTypes="0"/>
                <brakeLight node="backLightsHigh" />
                <turnLightLeft node="turnLightLeftFront" />
                <turnLightRight node="turnLightRightFront" />
                <interiorLight node="interiorScreenLight"/>
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="lightsGlassStatic2"     lightTypes="0 3" intensity="3"/>
            <defaultLight shaderNode="frontlightStatic"     lightTypes="0 3" intensity="20"/>
            <defaultLight shaderNode="backlightStatic"      lightTypes="0" intensity="30"/>
            <defaultLight shaderNode="worklightBackStatic"  lightTypes="1" intensity="30"/>
            <defaultLight shaderNode="backlightStaticGlass"  lightTypes="1" intensity="30"/>
            <defaultLight shaderNode="worklightFrontStatic" lightTypes="2" intensity="30"/>
            <defaultLight shaderNode="frontlightStaticGlass" lightTypes="2" intensity="30"/>
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic" />
            <turnLightRight shaderNode="turnlightRightStatic" />
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="backlightStatic" />
        </brakeLights>

        <sounds>
            <switchLight template="SWITCH_01"  />
            <turnLight template="SWITCH_TURNLIGHT" />
        </sounds>
    </lights>
	
	<foliageBending>
        <bendingNode minX="-1.05" maxX="1.05" minZ="0.75" maxZ="2.05" yOffset="0.6"/>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-2.15" maxZ="-0.3" yOffset="0.6"/>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-0.3" maxZ="0.75" yOffset="0.6"/>
    </foliageBending>
	
    <enterable>
        <exitPoint node="0>8"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>21|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>21|1"/>
            <target ikChain="leftFoot" targetNode="0>21|2"/>
            <target ikChain="rightArm" targetNode="0>11|0|0"/>
            <target ikChain="leftArm" targetNode="0>11|0|1"/>
        </characterNode>
        <cameras>
            <camera node="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
                <raycastNode node="0>6"/>
                <raycastNode node="0>7"/>
            </camera>
            <camera node="0>43|0|0|0|0|0|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
        <mirrors>
            <mirror node="0>55|0" prio="1"/>
            <mirror node="0>55|1" prio="1"/>
        </mirrors>
    </enterable>
	
    <motorized>
        <motorConfigurations>
            <motorConfiguration name="6.21/F6L 913" hp="113" price="0">
                <motor torqueScale="0.501" minRpm="900" maxRpm="2450" maxForwardSpeed="42" 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="250" minBackwardGearRatio="40" maxBackwardGearRatio="250"/>
                <objectChange node="0>35|4|9" visibilityActive="false"/>
                <objectChange node="0>35|4|19" visibilityActive="true"/>
            </motorConfiguration>
            <motorConfiguration name="6.31/BF6L 913 T" hp="120" price="6540">
                <motor torqueScale="0.532"/>
                <objectChange node="0>35|4|9" visibilityActive="true"/>
                <objectChange node="0>35|4|19" visibilityActive="false"/>
            </motorConfiguration>
			<motorConfiguration name="6.31/BF6L 913 T Leistungssteigerung" hp="165" price="13460">
                <motor torqueScale="0.732"/>
                <objectChange node="0>35|4|9" visibilityActive="true"/>
                <objectChange node="0>35|4|19" visibilityActive="false"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>23" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 6" minRpmScale="0.05" maxRpmScale="0.4" xzRotationsForward="-180 0" xzRotationsBackward="80 0" xzRotationsLeft="0 60" xzRotationsRight="0 -60"/>
        </exhaustEffects>
        <motorStartDuration>2500</motorStartDuration>
        <sounds>
            <motorStart file="SoundData/Deutz631Start.wav">
                <volume outdoor="0.80"/>
                <pitch outdoor="1"/>
            </motorStart>
            <motor file="SoundData/Deutz631Idle.wav" innerRadius="30">
                <volume outdoor="0.80"/>
                <pitch outdoor="1"/>
            </motor>
            <motorStop file="SoundData/Deutz631Stop.wav">
                <volume outdoor="1.5"/>
                <pitch outdoor="1"/>
            </motorStop>
            <compressedAir file="$data/sounds/technicalAccessories/brakeBig.wav">
                <volume outdoor="1.25"/>
                <pitch outdoor="1"/>
            </compressedAir>
            <motor file="SoundData/Deutz631Run.wav">
                <volume indoor="0.54" outdoor="1.50"/>
                <pitch outdoor="0.44"/>
                <lowpassGain indoor="0.95"/>
            </motor>
            <motor file="$data/vehicles/steerable/deutz/deutzAgrostar661_run.wav">
                <volume indoor="0.60" outdoor="1.00"/>
                <pitch outdoor="0.50"/>
                <lowpassGain indoor="0.95"/>
            </motor>
        </sounds>
    </motorized>
	
    <drivable>
        <steeringWheel node="0>11|0" indoorRotation="540" outdoorRotation="60"/>
    </drivable>
	
    <animations>
        <animation name="fuelDisplay">
            <part node="0>35|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -80"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>35|1|1" startTime="0" endTime="0.27" startRot="0 0 0" endRot="0 0 0"/>
            <part node="0>35|1|1" startTime="0.27" endTime="1" startRot="0 0 0" endRot="0 0 -235"/>
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>13">
                <dependentPart node="0>28"/>
            </movingTool>
            <movingTool node="0>17">
                <dependentPart node="0>31"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>31" referencePoint="0>17|0|1" referenceFrame="0>17|0|1">
                <translatingPart node="0>31|0"/>
            </movingPart>
            <movingPart node="0>28" referencePoint="0>13|0|1" localReferencePoint="0>28|0" referenceFrame="0>36">
                <dependentPart node="0>28|0"/>
            </movingPart>
            <movingPart node="0>28|0" referencePoint="0>13|0|1" referenceFrame="0>13|0|1">
                <dependentPart node="0>29"/>
                <dependentPart node="0>30"/>
                <dependentPart node="0>33"/>
                <dependentPart node="0>34"/>
            </movingPart>
            <movingPart node="0>29" referencePoint="0>28|1" referenceFrame="0>28|1">
                <translatingPart node="0>29|0"/>
            </movingPart>
            <movingPart node="0>30" referencePoint="0>28|2" referenceFrame="0>28|2">
                <translatingPart node="0>30|0"/>
            </movingPart>
            <movingPart node="0>33" referencePoint="0>28|0|0" referenceFrame="0>28|0|0" scaleZ="true"/>
            <movingPart node="0>34" referencePoint="0>28|0|1" referenceFrame="0>28|0|1" scaleZ="true"/>
            <movingPart node="1>1|0|1" referencePoint="1>4|1" referenceFrame="1>4|1" isActiveDirty="true" scaleZ="false" playSound="false"/>
            <movingPart node="1>2|0|1" referencePoint="1>4|0" referenceFrame="1>4|0" isActiveDirty="true" scaleZ="false" playSound="false"/>
        </movingParts>
    </cylindered>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="132" unit="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
    <honk>
        <sound template="HONK_FENDT511C" />
    </honk>
    <ai>
        <collisionTrigger node="0>22"/>
    </ai>
</vehicle>
