<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="MTZ1221">
    <name>
        <en>MTZ-1221</en>
        <de>MTZ-1221</de>
    </name>
    <description></description>
    <filename>MTZ1221k.i3d</filename>
     <wheels autoRotateBackSpeed="1">
		<wheel rotSpeed="46" rotMax="30" rotMin="-30" driveMode="2" repr="2>1" driveNode="2>1|0" radius="0.5" damper="80" mass="3.413" longitudalStiffness="0.9" lateralStiffness="2" hasTyreTracks="true"/>
 		<wheel rotSpeed="46" rotMax="30" rotMin="-30" driveMode="2" repr="3>1" driveNode="3>1|0" radius="0.5" damper="80" mass="3.413" longitudalStiffness="0.9" lateralStiffness="2" hasTyreTracks="true"/>
		<wheel rotSpeed="0" driveMode="1" repr="4>1" radius="0.85" suspTravel="0" spring="60" damper="50" mass="3.173" longitudalStiffness="0.9" lateralStiffness="2" hasTyreTracks="true"/>
		<wheel rotSpeed="0" driveMode="1" repr="5>1" radius="0.85" suspTravel="0" spring="60" damper="50" mass="3.173" longitudalStiffness="0.9" lateralStiffness="2" hasTyreTracks="true"/>
       </wheels>

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>
	
	<motor torqueScale="1.500" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="15" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="20.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.88"/>
        <torque normRpm="1" torque="0.72"/>
    </motor>
	
  <accelerationSpeed maxAcceleration="0.35" deceleration="0.35" backwardDeceleration="0.7" />
    <fuelCapacity>160</fuelCapacity>
    <fuelUsage>16</fuelUsage>
    <downForce>4</downForce>
    <cameras count="2">
        <camera1 index="0>5" rotatable="true" rotateNode="5" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
        <camera2 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="40" />
    </cameras>

    <steering index="0>14|0" indoorRotation="360" outdoorRotation="50" />
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->
    </cuttingAreas>

    <lights>
        <light realLight="0>27" decoration="0>29" lightType="0"/>
                  <light decoration="0>33|1|2" lightType="0"/>
        <light realLight="0>31" decoration="0>32" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>28" />
	</brakeLights>
 
           <turnSignals>
          <turnSignalLeft index="0>30|1" />
          <turnSignalRight index="0>30|2" />
        </turnSignals>

         <indoorHud>
           <speed animName="speedDisplay" />
           <fuel animName="fuelDisplay" />
           <rpm animName="rpmDisplay" />
         </indoorHud>	

        <ventelator1 index="0>24|16"/>

    <tipCamera index="11" />

    <!--motorStartDuration>2500</motorStartDuration-->
    <attachSound file="Sound/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sound/MTZ_1025_START.wav" pitchOffset="1" volume="0.61" />
    <motorSound file="Sound/MTZ_1025_IDLE.wav" pitchOffset="1" pitchScale="0.026" pitchMax="1.43" volume="0.61" radius="50" innerRadius="20" />
    <motorSoundRun file="Sound/MTZ_1025_RUN.wav" pitchOffset="0.45" pitchScale="0.0265" pitchMax="1.25" volume="0.61" />
    <motorStopSound file="Sound/out.wav" pitchOffset="1" volume="0.61" />
    <compressedAirSound file="$data/vehicles/shared/brakeOld.wav" pitchOffset="1" volume="1"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1"/>
    <honkSound file="$dataS2/sounds/horn.wav" volume="0.61" radius="80" innerRadius="35" />

        <attacherJoints>
        <attacherJoint index="11|0|0" rotationNode="11" maxRot="-12 0 0" rotationNode2="11|0" maxRot2="8 0 0" maxTransLimit="0 0.5 0" maxRotLimit="8 0 14" moveTime="2" ptoOutputNode="0>34" ptoFilename="$data/vehicles/shared/powerTakeoffBlack.i3d">
            <bottomArm rotationNode="12" translationNode="12|0" referenceNode="12|0|0" zScale="-1" />
            <topArm rotationNode="13" translationNode="13|0" referenceNode="13|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="0>38|0|0" jointType="attachableFrontloader" minRot="0 0 0" minRot2="0 0 0" maxRot="0 0 0" maxRot2="0 0 0" maxTransLimit="0 0 0" maxRotLimit="0 0 0" moveTime="2" />
                <attacherJoint index="0>17"   jointType="trailer" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" />
		<attacherJoint index="0>10"   jointType="trailer" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>34" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
		<attacherJoint index="0>15"   jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>34" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
    </attacherJoints> 

    <aiTrafficCollisionTrigger index="16" />     
    <components count="6">
         <component1 centerOfMass="0.00 0.00 -0.89" solverIterationCount="190" />
		<component2 centerOfMass="0 -1 0" solverIterationCount="190" />
		<component3 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<component4 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<component5 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<component6 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		
		<joint component1="0" component2="1" index="1>1" rotLimit="0 0 7" transLimit="0 0 0" breakable="false"/>
		<joint component1="1" component2="2" index="2>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<joint component1="1" component2="3" index="3>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<joint component1="0" component2="4" index="4>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<joint component1="0" component2="5" index="5>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		
		<collisionPair component1="0" component2="1" enabled="false"/>
		<collisionPair component1="1" component2="2" enabled="false"/>
		<collisionPair component1="1" component2="3" enabled="false"/>
		<collisionPair component1="1" component2="4" enabled="false"/>
		<collisionPair component1="1" component2="5" enabled="false"/>
		<collisionPair component1="0" component2="2" enabled="false"/>
		<collisionPair component1="0" component2="3" enabled="false"/>
		<collisionPair component1="0" component2="4" enabled="false"/>
		<collisionPair component1="0" component2="5" enabled="false"/>
    </components>  
	
<frontRightWheel wheelIndex="1" componentJointIndex="2" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.4" />
<frontLeftWheel wheelIndex="2" componentJointIndex="3" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.4" />
<backRightWheel wheelIndex="3" componentJointIndex="4" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.45" />
<backLeftWheel wheelIndex="4" componentJointIndex="5" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.45" />
				
<schemaOverlay file="$data/vehicles/schemas/vehicleSchema.png" fileSelected="$data/vehicles/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" 
attacherJointPosition="0.5 0">
<attacherJoint position="1 0" rotation="0" invertX="false" />
<attacherJoint position="1 0" rotation="0" invertX="false" />
<attacherJoint position="1 0" rotation="0" invertX="false" />

</schemaOverlay>
	<hydraulics count="2">
		<hydraulic1 index="1>0|1|0" punch="1>0|1|0|0" punchFixpoint="1>0|1|0|0|0" fixpoint="3>1|3" />
		<hydraulic2 index="1>0|2|0" punch="1>0|2|0|0" punchFixpoint="1>0|2|0|0|0" fixpoint="2>1|3" />	
	</hydraulics>
	
	<wheelParticleSystems file="particle/wheelParticleSystem.i3d" >
        <wheelParticleSystem node="0>23|1|0"  />
        <wheelParticleSystem node="0>23|1|1"  />
        <wheelParticleSystem node="0>23|1|2"  />
		<wheelParticleSystem node="0>23|1|3" />
    </wheelParticleSystems>

    <animations>
    <animation name="speedDisplay">
     <part node="0>24|15|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -180 0" />
    </animation>
    <animation name="fuelDisplay">
     <part node="0>24|15|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -95 0" /> 
    </animation>
    <animation name="rpmDisplay">
     <part node="0>24|15|2|0" startTime="0" endTime="1" startRot="0 10 0" endRot="0 65 0" />
     <part node="0>24|15|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 70 0" />
     <part node="0>24|15|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -50 0" />
     <part node="0>24|15|5|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -48 0" />
    </animation>
       </animations>

    <animParts>
       <animPart index="0>33" id="Bonnet" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="50 0 0" moveTime="1.2" />
       <animPart index="0>18" id="DoorFL" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="0 50 0" moveTime="1" />
       <animPart index="0>19" id="DoorFR" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="0 -50 0" moveTime="1" />
       <animPart index="0>22|0" id="WindFL" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="0 0 8" moveTime="1" />
       <animPart index="0>21|0" id="WindFR" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="0 0 -8" moveTime="1" />
	   <animPart index="0>25" id="Door" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="25 0 0" moveTime="1.2" />
	   <animPart index="0>38" id="SV1" showHelp="false" autoReturn="false" scaleMin="2.5 3 3" scaleMax="0 0 0" moveTime="0" />
    </animParts>

    <exhaustEffects>
                <exhaustEffect index="0>23|1" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0 0 0 7.2" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="-250 0 50" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="-100 0 100" />
    </exhaustEffects>

        <lightsaddon lightsStayOn="true">
           <light type="work" index="4>1|2" inputName="blizniaki2" helptext="blizniaki2" stayOn="true"/>
           <light type="work" index="5>1|2" inputName="blizniaki2" stayOn="true"/>
		   <light type="work" index="0>38" inputName="blizniaki21" helptext="blizniaki21" stayOn="true"/>
           <light type="work" index="0>38" inputName="blizniaki21" stayOn="true"/>
		   <light type="work" index="0>36" inputName="blizniaki22" helptext="blizniaki22" stayOn="true"/>
           <light type="work" index="0>36" inputName="blizniaki22" stayOn="true"/>
		   <light type="work" index="0>37" inputName="blizniaki24" helptext="blizniaki24" stayOn="true"/>
           <light type="work" index="0>37" inputName="blizniaki24" stayOn="true"/>
        </lightsaddon>

    <washable dirtDuration="50" washDuration="1" workMultiplier="4" />

     <characterNode index="0>35|0" cameraMinDistance="2.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" rightArmIKChainId="rightArm" spineRotation="180 0 105" >
        <ikChains>
            <ikChain id="rightFoot" target="0>35|1" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true" >
                <node index="0|1" />
                <node index="0|1|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|1|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|1|0|0|0" />
            </ikChain>
            <ikChain id="leftFoot" target="0>35|2" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|2"     />
                <node index="0|2|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|2|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|2|0|0|0" />
            </ikChain>
            <ikChain id="rightArm" target="0>14|0|1" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|1" />
                <node index="0|0|0|1|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|1|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|1|0|0|0" />
                <rotationNode index="0|0|0|1|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
            <ikChain id="leftArm" target="0>14|0|2" targetOffset="-0.02 0.046 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|2" />
                <node index="0|0|0|2|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|2|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|2|0|0|0" />
                <rotationNode index="0|0|0|2|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|2|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
        </ikChains>
    </characterNode>

	<driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
    </driveGroundParticleSystems>
		
</vehicle>
