<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="belarus_82">
  <annotation></annotation>
    <storeData>
     <name>
        <en>MTZ-80</en>
        <de>MTZ-80</de>
        <ru>МТЗ-80</ru>
	</name>
    <specs>
     <power>81</power>
     <maxSpeed>34</maxSpeed>
    </specs>
    <functions>
       <function>$l10n_function_tractor</function>
    </functions>
    <image>store.dds</image>
    <price>15500</price>
    <dailyUpkeep>20</dailyUpkeep>
    <lifetime>600</lifetime>
    <rotation>0</rotation>
    <brand>BELARUS</brand>
    <category>tractors</category>
    <vertexBufferMemoryUsage>1728608</vertexBufferMemoryUsage>
    <indexBufferMemoryUsage>295512</indexBufferMemoryUsage>
    <textureMemoryUsage>4700088</textureMemoryUsage>
    <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
    <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
   </storeData>

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

   <size width="2" length="4"/>
 
    <wheelConfigurations>
        <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
            <wheels autoRotateBackSpeed="1.5">
				<wheel rotSpeed="1" repr="1>1" driveNode="1>1|0|0" forcePointRatio="0.2" filename="wheels/wheels.xml"     configIndex="kolesa1" isLeft="true"  initialCompression="20" suspTravel="0.10" spring="15" damper="50" hasTireTracks="true" hasParticles="true" />
				<wheel rotSpeed="1" repr="1>2" driveNode="1>2|0|0" forcePointRatio="0.2" filename="wheels/wheels.xml"     configIndex="kolesa1" isLeft="false" initialCompression="20" suspTravel="0.10" spring="15" damper="50" hasTireTracks="true" hasParticles="true" />
				<wheel rotSpeed="0" repr="0>0|0" 				 forcePointRatio="0.3" filename="wheels/wheelsBack.xml" configIndex="kolesa2" isLeft="true"  initialCompression="20" suspTravel="0.10" spring="11" damper="50" hasTireTracks="true" hasParticles="true" />
				<wheel rotSpeed="0" repr="0>0|1" 				 forcePointRatio="0.3" filename="wheels/wheelsBack.xml" configIndex="kolesa2" isLeft="false" initialCompression="20" suspTravel="0.10" spring="11" damper="50" hasTireTracks="true" hasParticles="true" />
			</wheels>
        </wheelConfiguration>
    </wheelConfigurations>
  
    <ackermannSteeringConfigurations>
        <ackermannSteering rotSpeed="65" rotMax="42" rotCenterWheel1="2" rotCenterWheel2="3" />
    </ackermannSteeringConfigurations>
  
    <differentialConfigurations>
        <differentials>
            <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /><!-- back left-right -->
        </differentials>
    </differentialConfigurations>
  
   <motorConfigurations>
        <motorConfiguration name="Д-240Л" hp="80" price="0">
            <motor torqueScale="0.256" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="2.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.7" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
                <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.9" />
                <torque normRpm="1"    torque="1" />
            </motor>
        </motorConfiguration>
    </motorConfigurations>
  
   <fuelCapacity>120</fuelCapacity>
    <fuelUsage>19</fuelUsage>
  
   <cameras count="2">
    <camera1 index="0>1|0|0" rotatable="true" rotateNode="0>1|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
       <raycastNode index="0>1|2"/>
       <raycastNode index="0>1|3"/>
    </camera1>
     <camera2 index="0>1|1" rotatable="true" limit="true" useWorldXZRotation="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
   </cameras>
   
   	<vehicleEntering>
		<entering animatedNodeIndex="0>1|4|0" cameraNodeIndex="0>1|4|0|0" animClip="enteringCamera" doorAnimName="Dverlev" autoCloseDoors="true" />
		<exiting animatedNodeIndex="0>1|4|1" cameraNodeIndex="0>1|4|1|0" animClip="exitingCamera" doorAnimName="Dverlev" autoCloseDoors="true" />
	</vehicleEntering>
   
   	<lights>
        <low>
		    <light realLight="0>6|0|4" decoration="0>6|0|0" lightTypes="0"/>
			<light                                decoration="0>6|0|1" lightTypes="0"/>
		    <light realLight="0>6|0|5" decoration="0>6|0|2" lightTypes="1"/>
			<light realLight="0>6|0|6" decoration="0>6|0|3" lightTypes="2"/>
        </low>
        <high>
		    <light realLight="0>6|1|0" decoration="0>6|0|0" lightTypes="0"/>
			<light                                decoration="0>6|0|1" lightTypes="0"/>
		    <light realLight="0>6|1|1" decoration="0>6|0|2" lightTypes="1"/>
			<light realLight="0>6|1|2" decoration="0>6|0|3" lightTypes="2"/>
        </high>
        <states>
            <state lightTypes="0" />
			<state lightTypes="0 1" />
			<state lightTypes="0 1 2" />
        </states>
    </lights>
	
	<brakeLights>
        <brakeLight realLight="0>6|2|0" decoration="0>6|2|1" />
    </brakeLights>
	
	<turnLights>
        <turnLightLeft realLight="0>6|3|0|1" decoration="0>6|3|0|0" />
        <turnLightRight realLight="0>6|3|1|1" decoration="0>6|3|1|0" />
    </turnLights>
	
    <steering index="0>3|0" indoorRotation="180" outdoorRotation="40"/>
	
 
    <characterNode index="0>4|1|0" cameraMinDistance="1.5" ffilename="$dataS2/character/player/player.xml" spineRotation="180 0 108">
       <target ikChain="rightFoot" targetNode="0>4|1|1" setDirty="true"/>  
       <target ikChain="leftFoot" targetNode="0>4|1|2" setDirty="true"/>
       <target ikChain="rightArm" targetNode="0>3|0|0" setDirty="true"/>
       <target ikChain="leftArm" targetNode="0>3|0|1" setDirty="true"/>
    </characterNode>
	
    <enterReferenceNode index="0>"/>
	
    <exitPoint index="0>4|0"/>

    <ai>
       <trafficCollisionTrigger index="0>4|5"/>
    </ai>
	
    <exhaustEffects>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>4|2" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 6" minRpmScale="0.05" maxRpmScale="0.4" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>

    <attacherJoints>
        <attacherJoint index="0>5|0|0|0" rotationNode="0>5|0" rotationNode2="0>5|0|0" lowerRotation="-30 0 0" upperRotation="25 0 0"  upperDistanceToGround="0.95" lowerDistanceToGround="0.247" upperRotationOffset="-0.16"  moveTime="2.5" ptoOutputNode="0>5|5" comboTime="1">
            <bottomArm rotationNode="0>5|1" translationNode="0>5|1|0" referenceNode="0>5|1|0|0" zScale="-0.1" startRotation="16 0 0"/>
            <topArm rotationNode="0>5|2" translationNode="0>5|2|0" referenceNode="0>5|2|0|0" zScale="-0.1" startRotation="56 0 0"/>
            <schema position="1 0" rotation="0" invertX="false"/>	
	        <objectChange node="0>5|1|0|2|0" visibilityActive="false" visibilityInactive="true" />
        </attacherJoint>
        
        <attacherJoint index="0>5|1|0|2|0|0" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" ptoOutputNode="0>5|5" comboTime="1">
	    	<objectChange node="0>5|1|0|2|1" visibilityActive="false" visibilityInactive="true" />
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
        
        <attacherJoint index="0>5|1|0|2|0|0" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" ptoOutputNode="0>5|5" comboTime="1">
	    	<objectChange node="0>5|1|0|2|1" visibilityActive="false" visibilityInactive="true" />
           <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
     </attacherJoints>
	 
	<turnedOnRotationNodes>
		<turnedOnRotationNode index="0>2|4|0"      type="motor"   rotSpeed="500"   rotAxis="3" turnOnFadeTime="1" turnOffFadeTime="5" />
    </turnedOnRotationNodes>
	
	<indoorHud>
        <speed animName="speedDisplay"  />
        <rpm   animName="rpmDisplay"  />
    </indoorHud>
	
	<animations>
		<animation name="oknoz">
			<part node="0>2|2" startTime="0" endTime="3" startRot="0 0 0" endRot="22 0 0"/>
        </animation>
        <animation name="Dverlev">
			<part node="0>2|0" startTime="0" duration="3" startRot="0 0 0" endRot="0 -180 0"/>
        </animation>
        <animation name="Dverprav">
			<part node="0>2|1" startTime="0" duration="3" startRot="0 0 0" endRot="0 170 0"/>
        </animation>
        <animation name="luk">
			<part node="0>2|3" startTime="0" duration="3" startRot="0 0 0" endRot="-7 0 0"/>		
        </animation>
        <animation name="speedDisplay">
            <part node="0>2|4|2|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -150 0" />
        </animation>
        <animation name="rpmDisplay">
            <part node="0>2|4|2|1|0" startTime="0" endTime="1" startRot="0 34.6 0" endRot="0 -12 0" />
            <part node="0>2|4|2|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -2 0" />
            <part node="0>2|4|2|2|0" startTime="0" endTime="1" startRot="0 34.6 0" endRot="0 -1 0" />
            <part node="0>2|4|2|4|0" startTime="0" endTime="1" startRot="0 34.6 0" endRot="0 -2 0" />			
        </animation>		
    </animations>
	
	<interactiveComponents>
        <windows>
			<window name="oknoz" mark="0>2|2|2" size="0.1" animName="oknoz"    onMessage="ic_component_open" offMessage="ic_component_close" />
            <window name="Dverlev" mark="0>2|0|2" size="0.1" animName="Dverlev"  onMessage="ic_component_open" offMessage="ic_component_close" />
            <window name="Dverprav" mark="0>2|1|2" size="0.1" animName="Dverprav" onMessage="ic_component_open" offMessage="ic_component_close" />
            <window name="luk" mark="0>2|3|0" size="0.1" animName="luk"      onMessage="ic_component_open" offMessage="ic_component_close" />
        </windows>
    </interactiveComponents>
	
	<leftDoorOpener trigger="0>4|4|0" icIndex="2" />
	<rightDoorOpener trigger="0>4|4|1" icIndex="3" />
	
    <movingTools>
        <movingTool index="0>5|1">
           <dependentPart index="0>5|3"/>
          <dependentPart index="0>5|4"/>
        </movingTool>
    </movingTools>
	
    <movingParts>
        <!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>5|3" referencePoint="0>5|4|1" referenceFrame="0>" invertZ="true">
            <translatingPart index="0>5|3|0"/>
        </movingPart>
        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>5|4" referencePoint="0>5|1|0|1" localReferencePoint="0>5|4|2" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>5|4|2"/>
         </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>5|4|2" referencePoint="0>5|1|0|1" referenceFrame="0>5|4|0" invertZ="true"/>
        <!-- steering -->
        <movingPart index="1>1|1" referencePoint="1>2|1" referenceFrame="1>" isActiveDirty="true" playSound="false" scaleZ="false"></movingPart>
     </movingParts>
  
    <motorStartDuration>9500</motorStartDuration>
    <motorStartSound file="sounds/start_pd10.wav" pitchOffset="0.9" volume="0.9" indoorVolumeFactor="0.6" indoorLowpassGain="0.9" />
    <motorSound file="sounds/idle.ogg" pitchOffset="0.9" volume="0.9" indoorVolumeFactor="0.6" indoorLowpassGain="0.9" volumeMin="0.6" volumeMinSpeed="15" pitchMax="1.48" />
    <motorSoundLoad file="sounds/Load.wav" pitchOffset="0.44" volume="1.35" indoorVolumeFactor="0.6" indoorLowpassGain="0.9" pitchMax="1.34" minimalVolumeFactor="0.06" />
    <motorSoundRun file="sounds/run.ogg" pitchOffset="0.5" volume="0.95" indoorVolumeFactor="0.6" indoorLowpassGain="0.9" pitchMax="1.0" />
    <motorStopSound file="sounds/stop.wav" pitchOffset="0.9" volume="0.8" indoorVolumeFactor="0.7" indoorLowpassGain="0.9" />
    
    <gearboxSound file="$data/sounds/transmission/transmissionCVT_X.wav" pitchOffset="0.65" volume="0.25" indoorVolumeFactor="0.80" indoorLowpassGain="0.9" pitchMax="1" volumeMax="0.50" />
    <retarderSound file="$data/sounds/transmission/retarderET2015.wav" pitchOffset="0.65" volume="0.17" indoorVolumeFactor="0.93" indoorLowpassGain="0.9" minSpeed="1" pitchMax="1.47" volumeMax="0.30" />
    
    <attachSound file="$data/sounds/attach.wav" pitchOffset="1.0" volume="1.0" indoorVolumeFactor="0.70"  indoorLowpassGain="0.9" />
    <hydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.55" volume="0.90" indoorVolumeFactor="0.70" indoorLowpassGain="0.95" />

    <honkSound file="$data/sounds/horn.wav" pitchOffset="1.0" volume="1.0" indoorVolumeFactor="0.70"  indoorLowpassGain="0.9" radius="70" innerRadius="10" />
    
    <compressedAirSound file="sounds/brake_old.wav" pitchOffset="1.0" volume="0.80" indoorVolumeFactor="0.60" indoorLowpassGain="0.9" />
 
   <components count="2">
        <component1 centerOfMass="0 0.6 0.15" solverIterationCount="10" />
        <component2 centerOfMass="0 0 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="1>3" rotLimit="0 0 8" transLimit="0 0 0" breakable="false"/>
    </components>
	
	<washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
	
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0" /> 
</vehicle>
