<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="KrAZ258Z">
    <name>
        <en>KrAZ258Z</en>
        <de>KrAZ258Z</de>
    </name>
    <description>KrAZ258Z</description>
    <typeDesc>l10n_TypeDesc_Truck</typeDesc>
    <filename>KrAZ258Z.i3d</filename>

    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="60" rotMax="35" rotMin="-35" driveMode="2" repr="28" driveNode="28" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.18" />
        <wheel rotSpeed="60" rotMax="35" rotMin="-35" driveMode="2" repr="29" driveNode="29" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.18" />
        <wheel rotSpeed="0" driveMode="1" repr="30" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.2" />
        <wheel rotSpeed="0" driveMode="1" repr="31" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.2" />
        <wheel rotSpeed="0" driveMode="1" repr="32" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.2" />
        <wheel rotSpeed="0" driveMode="1" repr="33" radius="0.57" deltaY="0.1" suspTravel="0.2" spring="90" damper="90" mass="0.2" />
    </wheels>
    <motor minRpm="600" maxRpm="800 1300 3950" brakeForce="7" forwardGearRatio="2" backwardGearRatio="1" differentialRatio="8.0" rpmFadeOutRange="50">
        <torque rpm="800" torque="6"/>
        <torque rpm="1800" torque="9.5"/>
        <torque rpm="2300" torque="13.5"/>
        <torque rpm="2950" torque="15.5"/>
        <torque rpm="3950" torque="22.5"/>

		<backwardTorque rpm="300" torque="5"/>
		<backwardTorque rpm="500" torque="9"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.1" deceleration="0.4" />
    <fuelCapacity>170</fuelCapacity>
    <fuelUsage>0.002</fuelUsage>
    <downForce>4</downForce>
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="50" />
        <camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

    <lights count="1">
        <light1 index="12" />
    </lights>
    
    <brakelights count="1">
        <brakelight1 index="38" />
    </brakelights>
    <farlights count="1">
        <farlight1 index="34" />
    </farlights>
    
   <lightsaddon lightsStayOn="false">
	<light type="work" index="37|0" real="37|0|1" beam="37|0|2" inputName="frontwork" helptext="frontwork" stayOn="false"/> 	
	<light type="brake" index="37|4" />	        
	<light type="dirLeft" index="37|1" />
	<light type="dirRight" index="37|2" />
	<light type="reverse" index="37|3" />
   </lightsaddon>

  <beaconLights>										
	<beaconLight index="42|0|0" speed="0.016" />
	<beaconLight index="43|0|0" speed="0.016" />      
  </beaconLights>

    <steering index="35|0" rotationSpeed="8"/>
    <cuttingAreas count="0">
        <cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/>
    </cuttingAreas>
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    <size width="3.8" length="7.5" lengthOffset="-0.2"/>
<attacherJoints>
        <attacherJoint index="41" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="12 175 12" jointType="semitrailer" enableCollision="true" />
    </attacherJoints>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="10" />
        <trailerAttacherJoint index="16" low="true" />
        <trailerAttacherJoint index="26" />
 <trailerAttacherJoint index="41" low="true"/>
    </trailerAttacherJoints>
    <tipCamera index="11" />
    
    <attachSound file="Zvuky/attach.wav" pitchOffset="1" />
    <motorStartSound file="Zvuky/start.wav" pitchOffset="1" volume="1.0" />
    <motorSound file="Zvuky/mator.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.23" volume="9.8"/> 
    <compressedAirSound file="Zvuky/compressorWork.wav" pitchOffset="1" volume="1.5"/>
    <compressionSound file="Zvuky/compressorWork.wav" pitchOffset="1" volume="1.25"/>
    <compressedAirSound file="Zvuky/brake.wav" pitchOffset="1" volume="1"/>   
    <motorStopSound file="Zvuky/stop.wav" pitchOffset="1" />
    <hydraulicSound file="data/vehicles/trailers/baler.wav" pitchOffset="1.0" volume="1.5" />       
    <honkSound file="Zvuky/horn.wav" client="Zvuky/horn.wav" volume="1" radius="50" innerRadius="20" />        
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
    
    <exhaustParticleSystems count="2">
      <exhaustParticleSystem1 position="0.86197 3.04166 1.01501" rotation="0 0 0" file="particleSystems/exhaustParticleSystem.i3d" />
      <exhaustParticleSystem2 position="-0.82431 3.04166 1.01501" rotation="0 0 0" file="particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

   <attacherJoints>
	<attacherJoint jointType="frontloader" index="18" allowsJointLimitMovement="false" allowsLowering="false" />
        
        <attacherJoint index="0>3" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="12 175 12" jointType="semitrailer" enableCollision="true" />
        <attacherJoint index="41" rotationNode="3" maxRot="10 0 0" rotationNode2="3|0" maxRot2="-7 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="1.5">
            <bottomArm rotationNode="13" translationNode="13|0" referenceNode="13|0|0" zScale="0" />
            <topArm rotationNode="19" translationNode="19|0" referenceNode="19|0|0" zScale="0" />
        </attacherJoint>
   </attacherJoints>  

    <wheelParticleSystems file="wheelParticleSystem.i3d" >
        <wheelParticleSystem node="28" />
        <wheelParticleSystem node="29" />
        <wheelParticleSystem node="30" />
	<wheelParticleSystem node="31" />
        <wheelParticleSystem node="32" />
	<wheelParticleSystem node="33" />
    </wheelParticleSystems>

    <characterNode index="15" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="17" /> 
         
    <grainPlane>
        <node type="wheat" index="36|6|0"/>
        <node type="maize" index="36|6|1"/>
        <node type="rape" index="36|6|2"/>
        <node type="coal" index="36|6|3"/>
        <node type="barley" index="36|6|4"/>
        <node type="dung" index="36|6|5"/> 
        <node type="sunflower" index="36|6|6"/>
        <node type="sugarbeet" index="36|6|7"/>
        <node type="potato" index="36|6|8"/>
        <node type="carrot" index="36|6|9"/> 
        <node type="sorghum" index="36|6|10"/>
        <node type="soybean" index="36|6|11"/>
        <node type="rotkohl" index="36|6|12"/> 
        <node type="tomato" index="36|6|13"/>
        <node type="kohlrabi" index="36|6|14"/>
        <node type="sand" index="36|6|15"/>
        <node type="radish" index="36|6|16"/> 
        <node type="gravel" index="36|6|17"/>
        <node type="fertilizer" index="36|6|18"/>
        <node type="apples" index="36|6|19"/>
        <node type="manure" index="36|6|20"/>                                                    
		<key time="0" 	 y="0.00067" scale="1.4 0.01 1.2"/>
		<key time="1"    y="0.41568"  scale="1.4 1.5 1.2"/>		
    </grainPlane>
    
   <capacity>3000</capacity>
   <tipReferencePoint index="20" />
   <tipAnimation rootNode="36|1" speedScale="1" clip="TipClipSource" />

  <dischargeParticleSystems>
        <dischargeParticleSystem type="wheat" node="36|6|0" position="0 -0 -1.5" rotation="20 180 0"  file="particleSystems/dischargeWheat.i3d" />
        <dischargeParticleSystem type="maize" node="36|6|1" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeMaize.i3d" />
        <dischargeParticleSystem type="rape" node="36|6|2" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeRape.i3d" />
        <dischargeParticleSystem type="coal" node="36|6|3" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/coal.i3d" />
        <dischargeParticleSystem type="barley" node="36|6|4" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeWheat.i3d" />
        <dischargeParticleSystem type="dung" node="36|6|5" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/manureParticle.i3d" />
        <dischargeParticleSystem type="sunflower" node="36|6|6" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeRape.i3d" />
        <dischargeParticleSystem type="sugarbeet" node="36|6|7" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/sugarbeetParticel.i3d" />
        <dischargeParticleSystem type="potato" node="36|6|8" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargePotato.i3d" />
        <dischargeParticleSystem type="carrot" node="36|6|9" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeCorot.i3d" />
        <dischargeParticleSystem type="sorghum" node="36|6|10" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeWheat.i3d" />
        <dischargeParticleSystem type="soybean" node="36|6|11" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeWheat.i3d" />
        <dischargeParticleSystem type="rotkohl" node="36|6|12" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/tomato.i3d" />
        <dischargeParticleSystem type="tomates" node="36|6|13" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/tomato.i3d" />
        <dischargeParticleSystem type="kohlrabi" node="36|6|14" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeWheat.i3d" />
        <dischargeParticleSystem type="sand" node="36|6|15" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/Sand.i3d" />
        <dischargeParticleSystem type="radish" node="36|6|16" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeradish2.i3d" />
        <dischargeParticleSystem type="gravel" node="36|6|17" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/bagasse.i3d" />
        <dischargeParticleSystem type="fertilizer" node="36|6|18" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeFertilizer.i3d" />
        <dischargeParticleSystem type="apples" node="36|6|19" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/dischargeradish2.i3d" />
        <dischargeParticleSystem type="manure" node="36|6|20" position="0 -0 -1.5" rotation="20 180 0" file="particleSystems/manureParticle.i3d" />                           
    </dischargeParticleSystems>

    <allowFillFromAir value="true" />
    <fillRootNode index="0>" />
    <exactFillRootNode index="36|7" />
    <fillAutoAimTargetNode index="36|8" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat maize rape coal barley dung sunflower sugarbeet potato carrot sorghum soybean rotkohl tomates kohlrabi sand radish gravel fertilizer apples manure" />

<animParts>
  <animPart index="0>27|0|1" id="TuerVL" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 -65 0" moveTime="2" />
  <animPart index="0>27|0|0" id="TuerVR" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 65 0" moveTime="2" />
  <animPart index="0>27|0|24|3" id="TuerHL" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 -65 0" moveTime="2" />
  <animPart index="0>27|0|24|2" id="TuerHR" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 65 0" moveTime="2" />
  <animPart index="0>27|0|2" id="Haube" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="-70 0 0" moveTime="2" />
</animParts>

    <plane index="36|2" />
     <planeA index="36|2" />	
       <plandeka index="36|4" />	
         <plandeka2 index="36|5" />
  <keys>
    <input name="PLANE1"  key="KEY_x" />
    <input name="PLANE2"  key="KEY_o" />
  </keys>
    
   <mirrors>   
        <mirror1 index="36|4" />   
        <mirror2 index="36|5" />   
  </mirrors>
 
    <components count="1">
        <component1 centerOfMass="0 -0.4 1.2" solverIterationCount="4" />
    </components>

    <extraWeights count="3">
        	<weight1 index="0>36|9|0" />
        	<weight2 index="0>36|9|1" />
        	<weight3 index="0>36|9|2" />
    </extraWeights>
	
   <keys>
        <input name="handbrake" key="KEY_space" />
	<input name="farlight" key="KEY_g" />	 
   </keys>
</vehicle>
