<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="MTZ82">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
     <moreRealistic useMrTransmission="true">
    <dragArea value="4.9" />
    <engine rotInertiaFx="1" transmissionEfficiency="0.95" minSpeed="3" fuelUsageFactor="1" engineBrakeForceFx="1" />
    <lateralForces useSingleComponent="false" />
  </moreRealistic>
    <storeData>
        <name>MTZ-100</name>
        <specs>
            <power>82</power>
            <maxSpeed>45</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store.dds</image>
        <price>29000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BELARUS</brand>
        <category>tractors</category>
        <fieldJob sizeCategory="1" typeCategory="tractor" hasFrontAndBackHydraulics="true" />
        <vertexBufferMemoryUsage>1728608</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>295512</indexBufferMemoryUsage>
        <textureMemoryUsage>4700088</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_tractor</typeDesc>
    <filename>MTZ82.i3d</filename>

    <size width="3" length="5"/>

  
    	<wheelConfigurations>
        <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
            <wheels autoRotateBackSpeed="1.2">
				<wheel rotSpeed="1" repr="1>1" driveNode="1>1|0"    forcePointRatio="0.2" filename="wheels/wheels.xml" configIndex="kolesa1"     isLeft="true"  initialCompression="30" suspTravel="0.23" spring="32" damper="40" hasTireTracks="true" hasParticles="true" mrPressureFx="1" />
				<wheel rotSpeed="1" repr="1>2" driveNode="1>2|0"    forcePointRatio="0.2" filename="wheels/wheels.xml" configIndex="kolesa1"     isLeft="false" initialCompression="30" suspTravel="0.23" spring="32" damper="40" hasTireTracks="true" hasParticles="true" mrPressureFx="1" />
				<wheel rotSpeed="0" repr="0>6|0" 				      forcePointRatio="0.3" filename="wheels/wheelsZad.xml" configIndex="whBack"  isLeft="true" initialCompression="10" suspTravel="0.21" spring="35" damper="50" hasTireTracks="true" hasParticles="true" mrPressureFx="1" />
				<wheel rotSpeed="0" repr="0>6|1" 				      forcePointRatio="0.3" filename="wheels/wheelsZad.xml" configIndex="whBack"  isLeft="false"  initialCompression="10" suspTravel="0.21" spring="35" damper="50" hasTireTracks="true" hasParticles="true" mrPressureFx="1" />
			</wheels>
        </wheelConfiguration>
    </wheelConfigurations>
	
    <ackermannSteeringConfigurations>
        <ackermannSteering rotSpeed="65" rotMax="42" rotCenterWheel1="2" rotCenterWheel2="3" />
    </ackermannSteeringConfigurations>

    <differentialConfigurations>
        <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>
    </differentialConfigurations>

    <motorConfigurations>
        <motorConfiguration name="Д-243" hp="82" price="0">
            <motor torqueScale="0.42" minRpm="1000" maxRpm="2200" maxForwardSpeed="45" maxBackwardSpeed="15" brakeForce="4.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.001" minForwardGearRatio="14.5" maxForwardGearRatio="300" minBackwardGearRatio="40" maxBackwardGearRatio="300">
                 <torque normRpm="0.45" torque="0.5"/>
                <torque normRpm="0.5" torque="0.6"/>
                <torque normRpm="0.59" torque="0.7"/>
                <torque normRpm="0.72" torque="1"/>
                <torque normRpm="0.86" torque="0.88"/>
                <torque normRpm="1" torque="0.7"/>
            </motor>
        </motorConfiguration>
		<motorConfiguration name="Д-245" hp="116" price="2000">
            <motor torqueScale="0.54" minRpm="1000" maxRpm="2200" maxForwardSpeed="45" maxBackwardSpeed="15" brakeForce="4.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.001" minForwardGearRatio="14.5" maxForwardGearRatio="300" minBackwardGearRatio="40" maxBackwardGearRatio="300">
                 <torque normRpm="0.45" torque="0.5"/>
                <torque normRpm="0.5" torque="0.6"/>
                <torque normRpm="0.59" torque="0.7"/>
                <torque normRpm="0.72" torque="1"/>
                <torque normRpm="0.86" torque="0.88"/>
                <torque normRpm="1" torque="0.7"/>
            </motor>
        </motorConfiguration>
    </motorConfigurations>
 <frontloaderConfigurations>
    <frontloaderConfiguration name="$l10n_ui_no" price="0">
      <objectChange node="0>7" visibilityActive="false" />
    </frontloaderConfiguration>
    <frontloaderConfiguration name="$l10n_ui_yes" price="2000" icon="$dataS2/menu/hud/configurations/config_loader.png">
      <objectChange node="0>7" visibilityActive="true" visibilityInactive="false" />
      <!-- frontloader attacher -->
      <attacherJoint index="0>7|0" jointType="attachableFrontloader" upperRotation="0 0 0" lowerRotation="0 0 0" lowerTransLimit="0 0 0" lowerRotLimit="0 0 0" moveTime="2">
        <schema position="0 0.4" rotation="0" invertX="true" />
      </attacherJoint>
    </frontloaderConfiguration>
  </frontloaderConfigurations>
    <fuelCapacity>130</fuelCapacity>

    <cameras count="2">
        <camera1 index="0>0|0|0" rotatable="true" rotateNode="0>0|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="35" >
            <raycastNode index="0>0|2"/>
            <raycastNode index="0>0|3"/>
        </camera1>
        <camera2 index="0>0|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <enterReferenceNode index="0>"/>
    <exitPoint index="0>1"/>
	
	<indoorHud>
    <fuel animName="fuelDisplay" />
    <rpm animName="rpmDisplay" />
    </indoorHud>
	
   <animations>
          <animation name="rightDoor">
            <part node="0>5|1|0" startTime="1" endTime="2" startRot="0 0 0" endRot="0 -60 0"/>
            <part node="0>5|1|0|3|0" startTime="1" endTime="2" startTrans="0 0 0" endTrans="-0.165 0.014 0.097"/>
        </animation> 
        <animation name="leftDoor">
            <part node="0>5|0|0" startTime="1" endTime="2" startRot="0 0 0" endRot="0 60 0"/>
            <part node="0>5|0|0|3|0" startTime="1" endTime="2" startTrans="0 0 0" endTrans="0.006 0.015 -0.192"/>
        </animation>
        <animation name="rightWindow">
            <part node="0>5|3" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 -5"/>
        </animation>
        <animation name="leftWindow">
            <part node="0>5|2|0" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 5"/>
        </animation>
        <animation name="backWindow">
            <part node="0>5|4" startTime="0" endTime="2" startRot="0 0 0" endRot="25 0 0"/>
        </animation>
        <animation name="rpmDisplay">	
            <part node="0>5|37|0" startTime="0" endTime="1" startRot="0 90 0" endRot="0 -90 0" />
            <part node="0>5|37|3" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -25 0" />
            <part node="0>5|37|4" startTime="0" endTime="1" startRot="0 55 0" endRot="0 -30 0" />	
        </animation>
        <animation name="fuelDisplay">
            <part node="0>5|37|5" startTime="0" endTime="1" startRot="0 55 0" endRot="0 -50 0" />
        </animation>		
    </animations>	
	
    <interactiveComponents>
        <windows>
            <window name="rightDoor"   mark="0>5|1|0|3|0" size="0.2" animName="rightDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>		
            <window name="leftDoor"    mark="0>5|0|0|3|0" size="0.2" animName="leftDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
            <window name="rightWindow" mark="0>5|3|2|0" size="0.2" animName="rightWindow" onMessage="ic_component_open" offMessage="ic_component_close"/>
            <window name="leftWindow"  mark="0>5|2|0|2|0" size="0.2" animName="leftWindow" onMessage="ic_component_open" offMessage="ic_component_close"/>	
            <window name="backWindow"  mark="0>5|4|4|0" size="0.2" animName="backWindow" onMessage="ic_component_open" offMessage="ic_component_close"/>			
        </windows> 
    </interactiveComponents>

    <leftDoorOpener trigger="0>12|0" icIndex="2" />
    <rightDoorOpener trigger="0>12|1" icIndex="1" />	

    <steering index="0>2|0" indoorRotation="540" outdoorRotation="60" />
	
	<characterNode index="0>9|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100" >
        <target ikChain="rightFoot" targetNode="0>9|1" />
        <target ikChain="leftFoot"  targetNode="0>9|2" />
        <target ikChain="rightArm"  targetNode="0>2|0|0" setDirty="true"/>
        <target ikChain="leftArm"   targetNode="0>2|0|1" setDirty="true" />
    </characterNode>

    <ai>
        <trafficCollisionTrigger index="0>4" />
    </ai>
	
	   <turnLights>
        <turnLightLeft realLight="0>8|3|0|1" decoration="0>8|3|0|0" />
        <turnLightLeft realLight="0>8|3|0|2" />
        <turnLightRight realLight="0>8|3|1|1" decoration="0>8|3|1|0" />
        <turnLightRight realLight="0>8|3|1|2" />
    </turnLights>
	
	<mirrors>
    <mirror index="0>13|0" />
    <mirror index="0>13|1" />
    <mirror index="0>13|2" />
    </mirrors>
  
	    <lights>
        <low>
            <light                       decoration="0>5|47|2|0"   lightTypes="0 3" />		
            <light realLight="0>8|0|1"   decoration="0>8|0|0"                      lightTypes="0" excludedLightTypes="3" /> <!--FrontLights-->
            <light realLight="0>8|0|2"                          lightTypes="0" excludedLightTypes="3" /> <!--FrontLights-->
			
            <light realLight="0>8|0|5"   decoration="0>8|0|4"                      lightTypes="1" excludedLightTypes="3" /> <!--FrontLights-->			
        </low>
        <high>
            <light                       decoration="0>8|0|0"   lightTypes="0 3" />
            <light realLight="0>8|0|3"   decoration="0>8|0|0"   lightTypes="0 3" /> <!--BackLights-->
            <light                       decoration="0>5|47|2|0"   lightTypes="0 3" />		
            <light realLight="0>8|0|1"   decoration="0>8|0|0"                      lightTypes="0" excludedLightTypes="3" /> <!--FrontLights-->
            <light realLight="0>8|0|2"                          lightTypes="0" excludedLightTypes="3" /> <!--FrontLights-->	
            <light realLight="0>8|0|5"   decoration="0>8|0|4"                      lightTypes="1" excludedLightTypes="3" /> <!--FrontLights-->				
        </high>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />			
        </states>
    </lights>
	
	<brakeLights>
        <brakeLight realLight="0>8|4|1" decoration="0>8|4|0" />
    </brakeLights>
	
	<speedRotatingParts>
        <speedRotatingPart index="0>5|49|0|0" wheelIndex="2" wheelScale="2"/>
        <speedRotatingPart index="0>5|50|0|0" wheelIndex="2" wheelScale="2"/>
        <speedRotatingPart index="0>5|51|0|0" wheelIndex="2" wheelScale="2"/>
        <speedRotatingPart index="0>5|52|0|0" wheelIndex="2" wheelScale="2"/>
		<speedRotatingPart index="0>5|53|0|0" wheelIndex="2" wheelScale="2"/>
    </speedRotatingParts>
	
    <attacherJoints>
	
        <attacherJoint index="0>11|0|0|0" rotationNode="0>11|0" upperRotation="30 0 0" lowerRotation="-30 0 0" rotationNode2="0>11|0|0" upperDistanceToGround="0.708" lowerDistanceToGround="0.35" upperRotationOffset="0.49" moveTime="2.5" ptoOutputNode="0>11|5" comboTime="1">
            <bottomArm rotationNode="0>11|1" translationNode="0>11|1|0" referenceNode="0>11|1|0|0" zScale="-1" />
            <topArm rotationNode="0>11|2" translationNode="0>11|2|0" referenceNode="0>11|2|0|0" zScale="-1" />
            <schema position="1 0" rotation="0" invertX="false" />
            <objectChange node="0>11|1|0|3" visibilityActive="false" visibilityInactive="true" />
        </attacherJoint>

        <!-- trailer attacher -->
        <attacherJoint index="0>11|1|0|3|0" jointType="trailer"    lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>11|5" comboTime="1" >
            <schema position="1 0" rotation="0" invertX="false" />
            <objectChange node="0>11|1|0|2" visibilityActive="false"  visibilityInactive="true" />
        </attacherJoint>
        <attacherJoint index="0>11|1|0|3|0" jointType="trailerLow"    lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>11|5" comboTime="1" >
            <schema position="1 0" rotation="0" invertX="false" />
            <objectChange node="0>11|1|0|2" visibilityActive="false"  visibilityInactive="true" />
        </attacherJoint>
        <attacherJoint index="0>11|6" jointType="trailer" lowerRotLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
            <schema position="0 0" rotation="0" invertX="true" />
        </attacherJoint>
    </attacherJoints>
	
	<movingTools>
		
		<movingTool index="0>11|1" foldMinLimit="0.0" foldMaxLimit="0.01">
            <controls axis="AXIS_FRONTLOADER_ARM2" invertAxis="false" mouseSpeedFactor="0.7" />
            <attacherJoint jointIndices="0 1 2" />
            <rotation rotSpeed="20" rotAcceleration="100" rotMax="30" rotMin="-14" rotationAxis="1"/>
            <dependentPart index="0>11|4" />
            <dependentPart index="0>11|3" />
        </movingTool>		
    </movingTools>
	
    <movingParts>	
		<movingPart index="0>11|4" referencePoint="0>11|1|0|1" localReferencePoint="0>11|4|1" referenceFrame="0>11|0" >
            <dependentPart index="0>11|4|1" />
        </movingPart>
        <movingPart index="0>11|4|1" referencePoint="0>11|1|0|1" referenceFrame="0>11|1|0|1" >
            <dependentPart index="0>11|3" />
        </movingPart>
        <movingPart index="0>11|3" referencePoint="0>11|4|0" referenceFrame="0>11|4|0" >
            <translatingPart index="0>11|3|0" />
        </movingPart>
		<!-- steering -->
		<movingPart index="1>1|2|0" referencePoint="1>2|1" referenceFrame="1>" isActiveDirty="true" playSound="false" scaleZ="false">
        </movingPart>
		
        <movingPart index="0>5|4|3|1|0" referencePoint="0>5|56|0|1|0|0|0" referenceFrame="0>5|56|0|1|0|0|0" isActiveDirty="true" >
            <translatingPart index="0>5|4|3|1|0|0" />
        </movingPart>
        <movingPart index="0>5|4|3|0|0" referencePoint="0>5|56|0|0|0|0|0" referenceFrame="0>5|56|0|0|0|0|0" isActiveDirty="true" >
            <translatingPart index="0>5|4|3|0|0|0" />
        </movingPart>		
    </movingParts>   
	    <exhaustFlap index="0>5|43|6" maxRot="0.2" />
    <exhaustEffects>
        <exhaustEffect index="0>3" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.01" maxRpmColor="0 0 0 2.4" minRpmScale="0.05" maxRpmScale="0.5" xzRotationsOffset="0 0" xzRotationsForward="-250 0" xzRotationsBackward="50 0" xzRotationsLeft="0 100" xzRotationsRight="0 -100" />
    </exhaustEffects>
	
    <motorStartDuration>2750</motorStartDuration>
    <motorStartSound file="Sounds/MTZ1025START.wav"     pitchOffset="0.64"  volume="0.75" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>
    <motorSound file="Sounds/MTZ1025IDLE.wav"           pitchOffset="0.64"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95" volumeMin="0.60" volumeMinSpeed="15" pitchMax="1.3" />
    <motorStopSound file="Sounds/MTZ1025STOP.wav"   pitchOffset="0.85"  volume="1.00" indoorVolumeFactor="0.70"  indoorLowpassGain="0.95"/>

    <motorSoundRun file="Sounds/MTZ1025RUN.wav"         pitchOffset="0.50"  volume="1.00" indoorVolumeFactor="0.60"  indoorLowpassGain="0.95" pitchMax="1.00" />
    <motorSoundLoad file="Sounds/Load.wav"       pitchOffset="0.44"  volume="1.70" 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/hornBig.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"/>
	
	<washable dirtDuration="90" washDuration="1" workMultiplier="4" />
	
	<turnedOnRotationNodes>
    <turnedOnRotationNode index="0>5|9" type="motor" rotSpeed="580" rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="1" />
    </turnedOnRotationNodes>

	<components count="2">
        <component1 centerOfMass="0 0.71 -0.56" solverIterationCount="10" />
        <component2 centerOfMass="0 0 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>10" rotLimit="0 0 5" transLimit="0 0 0" maxRotDriveForce="0 0 50" rotDriveRotation="- - 0" rotDriveSpring="0 0 5" rotDriveDamping="0 0 5" breakable="false"/>	
    </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>
