<?xml version="2.1" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
	<storeData>
        <name>D230 T</name>
		<specs>
            <power>230</power>
			<maxSpeed>53</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>source/store/store_deutzD80.png</image>
        <price>15900</price>
        <dailyUpkeep>30</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>DEUTZFAHR</brand>
        <category>tractors</category>
		<fieldJob sizeCategory="1" typeCategory="tractor" hasFrontAndBackHydraulics="false" />
    </storeData>
	
	<typeDesc>$l10n_typeDesc_tractor</typeDesc>
    <filename>deutz/deutzD80.i3d</filename>
	
    <size width="3.5" length="5.5"/>
	
	<wheelConfigurations>
		<!-- normale -->
		<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
            <wheels autoRotateBackSpeed="1.7">
                <wheel rotSpeed="1" restLoad="1.0" repr="0>1" driveNode="0>1|0" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="true"  configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="1" restLoad="1.0" repr="0>0" driveNode="0>0|0" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="false" configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|0"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="true"  initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|1"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="false" initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
            </wheels>
        </wheelConfiguration>
		
		<!-- schmale -->
		<wheelConfiguration name="$l10n_configuration_valueWheelNarrow" price="400" icon="$dataS2/menu/hud/configurations/config_wheel_thin.png" >
            <wheels autoRotateBackSpeed="1.7">
                <wheel rotSpeed="1" restLoad="1.0" repr="0>1" driveNode="0>1|3" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="true"  configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="1" restLoad="1.0" repr="0>0" driveNode="0>0|2" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="false" configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|2"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="true"  initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|3"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="false" initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
            </wheels>
        </wheelConfiguration>
		
		<!-- breite -->
		<wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="600" icon="$dataS2/menu/hud/configurations/config_wheel_broad.png" >
            <wheels autoRotateBackSpeed="1.7">
                <wheel rotSpeed="1" restLoad="1.0" repr="0>1" driveNode="0>1|4" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="true"  configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="1" restLoad="1.0" repr="0>0" driveNode="0>0|3" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="false" configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|4"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="true"  initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.3" repr="0>2|5"                 forcePointRatio="0.3" filename="deutz/TM700_520_70R34.xml" isLeft="false" initialCompression="20" suspTravel="0.18" spring="31" damper="40" hasTireTracks="true" hasParticles="true" />
            </wheels>
        </wheelConfiguration>
		
		<!-- twins back -->
		<wheelConfiguration name="$l10n_configuration_valueTwinWheelsBack" price="4000" icon="$dataS2/menu/hud/configurations/config_wheel_twin.png" >
            <wheels autoRotateBackSpeed="1.6" >
                <wheel rotSpeed="1" restLoad="1.0" repr="0>1" driveNode="0>1|0" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="true"  configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="1" restLoad="1.0" repr="0>0" driveNode="0>0|0" forcePointRatio="0.2" filename="deutz/TM600_280_85R20.xml" isLeft="false" configIndex="basic" initialCompression="20" suspTravel="0.22" spring="20" damper="40" hasTireTracks="true" hasParticles="true" />
                
				<wheel rotSpeed="0" restLoad="3.4" repr="0>2|0"                           forcePointRatio="0.3" filename="deutz/TM700_520_70R38.xml" configIndex="n10v9" isLeft="true"  initialCompression="20" suspTravel="0.33" spring="39" damper="145"                                           hasTireTracks="true" hasParticles="true" >
                    <additionalWheel filename="deutz/TM700_520_70R38.xml" configIndex="dual" isLeft="true" offset="0.2" hasTireTracks="true" hasParticles="true" addRaycast="true" >
                        <connector filename="$data/vehicles/wheels/rims/dual001.i3d" index="1|0"/>
                    </additionalWheel>
                </wheel>
                
				<wheel rotSpeed="0" restLoad="3.4" repr="0>2|1"                           forcePointRatio="0.3" filename="deutz/TM700_520_70R38.xml" configIndex="n10v9" isLeft="false" initialCompression="20" suspTravel="0.33" spring="39" damper="145"                                           hasTireTracks="true" hasParticles="true" >
                    <additionalWheel filename="deutz/TM700_520_70R38.xml" configIndex="dual" isLeft="false" offset="0.2" hasTireTracks="true" hasParticles="true" addRaycast="true" >
                        <connector filename="$data/vehicles/wheels/rims/dual001.i3d" index="1|1"/>
                    </additionalWheel>
                </wheel>
            </wheels>
			<objectChange node="0>36|0" translationActive="0.7 0 0"  translationInactive="0 0 0" />
            <objectChange node="0>36|1" translationActive="-0.7 0 0" translationInactive="0 0 0" />
            <size width="4.5" />
        </wheelConfiguration>
    </wheelConfigurations>
	
	<rimColorConfigurations useDefaultColors="true" defaultColorIndex="1" price="200" icon="$dataS2/menu/hud/configurations/config_rimColor.png">
        <colorNode node="0>0|0" />
        <colorNode node="0>1|0" />
        <colorNode node="0>2" />
		<colorNode node="0>0|2" />
        <colorNode node="0>1|3" />
    </rimColorConfigurations>
	
	<ackermannSteering rotSpeed="60" rotMax="37" rotCenterWheel1="2" rotCenterWheel2="3" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>
	
	
	<motorConfigurations>
        <motorConfiguration name="$l10n_configuration_valueDefault" price="0">
            <!-- 75 ps / 40kmh -->
            <motor torqueScale="0.32" minRpm="1000" maxRpm="2200" maxForwardSpeed="33" maxBackwardSpeed="15" brakeForce="1.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.0005" minForwardGearRatio="20" maxForwardGearRatio="250" minBackwardGearRatio="40" maxBackwardGearRatio="250">
                <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>
        </motorConfiguration>
    </motorConfigurations>
	
	<designConfigurations>
        <designConfiguration name="ohne Dach" price="0" icon="$dataS2/menu/hud/configurations/config_edition.png">
			<objectChange node="0>37" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>33" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
        
		<designConfiguration name="mit Dachrahmen" price="1000" icon="$dataS2/menu/hud/configurations/config_edition.png">
			<objectChange node="0>37" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="0>33" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
		
		<designConfiguration name="mit Dach" price="1500" icon="$dataS2/menu/hud/configurations/config_edition.png">
			<objectChange node="0>33" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="0>37" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
    </designConfigurations>
	
    <fuelCapacity>500</fuelCapacity>
    <fuelUsage>50</fuelUsage>
	
    <cameras count="2">
        <camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="30">
            <raycastNode index="0>19"/>
            <raycastNode index="0>20"/>
        </camera1>
        <camera2 index="4|1" rotatable="true" limit="true" rotMinX="-1" rotMaxX="1.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
	
    <lights>
        <low>
            <light realLight="0>5|0" decoration="0>18" lightTypes="0"/>
        </low>
        <high>
            <light realLight="0>5|0" decoration="0>18" lightTypes="0"/>
        </high>
		<states>
			<state lightTypes="0 1 2" />
        </states>
    </lights>
	
    <brakeLights>
        <brakeLight decoration="0>24"/>
    </brakeLights>
	
    <turnLights>
        <turnLightLeft decoration="0>25|0"/>
        <turnLightRight decoration="0>25|1"/>
    </turnLights>
	
    <exitPoint index="0>7"/>
    <steering index="0>8|0" indoorRotation="540" outdoorRotation="50"/>
	
    <enterReferenceNode index="0>"/>
    
	<motorStartDuration>2500</motorStartDuration>
    <motorStartSound file="$data/vehicles/steerable/deutz/deutzAgrostar661_start.wav"     pitchOffset="0.64"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>
    <motorSound file="$data/vehicles/steerable/deutz/deutzAgrostar661_idle.wav"           pitchOffset="0.64"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95" volumeMin="0.60" volumeMinSpeed="15" pitchMax="1.3" />
    <motorStopSound file="$data/vehicles/steerable/newHolland/newHollandT8320_stop.wav"   pitchOffset="0.85"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>
    <motorSoundRun file="$data/vehicles/steerable/deutz/deutzAgrostar661_run.wav"         pitchOffset="0.50"  volume="1.00" indoorVolumeFactor="0.60"  indoorLowpassGain="0.95" pitchMax="1.00" />
    <motorSoundLoad file="$data/vehicles/steerable/deutz/deutzAgrostar661_load.wav"       pitchOffset="0.44"  volume="1.20" indoorVolumeFactor="0.54"  indoorLowpassGain="0.95" pitchMax="1.34"  minimalVolumeFactor="0.06" />
    <gearboxSound file="$data/sounds/transmission/transmissionCVT_X.wav"                  pitchOffset="0.65"  volume="0.25" indoorVolumeFactor="0.80"  indoorLowpassGain="0.95" pitchMax="1" volumeMax="0.50"  />
    <retarderSound file="$data/sounds/transmission/retarderET2015.wav"                    pitchOffset="0.65"  volume="0.17" indoorVolumeFactor="0.93"  indoorLowpassGain="0.95" minSpeed="1" pitchMax="1.47"   volumeMax="0.30"  />
    <attachSound file="$data/sounds/attach.wav"                                           pitchOffset="1.00"  volume="0.80" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>
    <hydraulicSound file="$data/sounds/hydraulicUp.wav"                                   pitchOffset="0.55"  volume="0.80" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95" />
    <honkSound file="$data/sounds/horn.wav"                                               pitchOffset="1.00"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95" radius="70" innerRadius="10" />
    <brakeCompressor capacity="10000" fillSpeed="290" />
    <maximalAirConsumptionPerFullStop value="1500" />
    <brakeCompressorStartSound file="$data/sounds/technicalAccessories/regulator_valve2.wav"      pitchOffset="1.00" volume="1.10" indoorVolumeFactor="0.90"  indoorLowpassGain="0.95"/>
    <brakeCompressorRunSound file="$data/sounds/technicalAccessories/compressor_idle.wav"         pitchOffset="0.72" volume="0.25" indoorVolumeFactor="0.50"  indoorLowpassGain="0.95" pitchMax="1.00"   />
    <brakeCompressorStopSound file="$data/sounds/technicalAccessories/brakeOld.wav"               pitchOffset="0.85" volume="0.80" indoorVolumeFactor="0.60"  indoorLowpassGain="0.95"/>
    <compressedAirSound file="$data/sounds/technicalAccessories/compressor_stop.wav"              pitchOffset="1.00" volume="0.80" indoorVolumeFactor="0.60"  indoorLowpassGain="0.95"/>
    <airReleaseValveSound file="$data/vehicles/steerable/jcb/jcb_module.wav"                      pitchOffset="0.80" volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>
	<cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.80" volume="0.65" indoorVolumeFactor="1.00" indoorLowpassGain="0.75" />
	
	<exhaustEffects>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>16" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.15" maxRpmScale="0.7" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
	
     <attacherJoints>
        <attacherJoint index="10|0|0" rotationNode="10" lowerRotation="-12 0 0" rotationNode2="10|0" lowerRotation2="8 0 0" upperRotation2="" lowerRotLimit="0 0 20" lowerTransLimit="0 0.5 0" ptoOutputNode="0>23" upperRotation="20 0 0" upperDistanceToGround="1.19" lowerDistanceToGround="0.26" moveTime="1.5">
            <bottomArm rotationNode="0>11" translationNode="0>11|0" referenceNode="0>11|0|0" zScale="-1"/>
             <topArm baseNode="12" filename="$data/shared/vehicleParts/upperLink.i3d" zScale="-1" />
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>13|0" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="20 85 85">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>13|1" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="20 85 85">
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
        <attacherJoint index="0>14" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 80 80">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
	
	<frontloaderConfigurations>
        <frontloaderConfiguration name="$l10n_ui_no" price="0">
            <objectChange node="0>34" visibilityActive="false"/>
			<objectChange node="0>35" visibilityActive="false"/>
        </frontloaderConfiguration>
        <frontloaderConfiguration name="$l10n_ui_yes" price="800" icon="$dataS2/menu/hud/configurations/config_loader.png">
            <objectChange node="0>34" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="0>35" visibilityActive="true" visibilityInactive="false"/>
            <!-- frontloader attacher -->
            <attacherJoint index="34|0|2" jointType="frontloader" upperRotation="0 0 0" lowerRotation="0 0 0" lowerTransLimit="0 0 0" lowerRotLimit="0 0 180" moveTime="0.7" frontAxisLimitJoint="false">
                <schema position="0 0.4" rotation="0" invertX="true"/>
            </attacherJoint>
        </frontloaderConfiguration>
    </frontloaderConfigurations>
	
    <characterNode index="0>9|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 108">
        <target ikChain="rightFoot" targetNode="0>9|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>9|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>8|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>8|0|1" setDirty="true"/>
    </characterNode>
    <ai>
        <trafficCollisionTrigger index="0>15"/>
    </ai>
	
    <movingTools>
		<movingTool index="34|0"> 
			<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.0" iconFilename="$dataS2/menu/moveControls/frontloader_arm.png" />
			<rotation rotSpeed="20" rotAcceleration="80" rotMax="5" rotMin="-55" /> 
			<attacherJoint jointIndices="4" /> 
			<dependentPart index="0>34|1" /> 
		</movingTool>
        <movingTool index="0>35">
            <dependentPart index="0>35|0"/>
        </movingTool>
        <movingTool index="0>11">
            <dependentPart index="0>22"/>
        </movingTool>
    </movingTools>
	
    <movingParts>
		<!-- arm cylinder -->
        <movingPart index="0>34|1" referencePoint="0>34|0|0" referenceFrame="0>34|0|0" playSound="true">
            <translatingPart index="0>34|1|0"/>
        </movingPart>
        <movingPart index="0>35|0" referencePoint="0>34|0|1" referenceFrame="0>" scaleZ="true" playSound="false"/>
        <movingPart index="0>21" referencePoint="0>1|2" localReferencePoint="0>21|0" referenceFrame="0>21" isActiveDirty="true" playSound="false">
            <dependentPart index="0>21|0"/>
        </movingPart>
        <movingPart index="0>21|0" referencePoint="0>1|2" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false"/>
        <movingPart index="0>1|1" referencePoint="0>0|1" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false"/>
        <!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>22" referencePoint="0>11|0|1" localReferencePoint="0>22|0" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>22|0"/>
        </movingPart>
        <!-- attacher joint back bottom cylinder 1b -->
        <movingPart index="0>22|0" referencePoint="0>11|0|1" referenceFrame="0>11|0|1" scaleZ="true"/>
    </movingParts>
	
	<animations>
        <animation name="releaseAnim">
            <part node="0>35" startTime="0.0" endTime="0.3" startRot="0 0 0" endRot="-25 0 0"/>
            <part node="0>35" startTime="1.5" endTime="2.0" startRot="-25 0 0" endRot="0 0 0"/>
        </animation>
    </animations>
	
    <animatedFrontloader resetTime="1" attacherJointIndex="4" limits="-10 175" releaseAnim="releaseAnim"/>

    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
	
    <components count="1">
        <component1 centerOfMass="0 0.5 0.6" solverIterationCount="10"/>
    </components>
	
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
   
</vehicle>
