<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Tatra8x8HKL_JN">
	<name>
        <en>Tatra8x8HKL_JN</en>
        <de>Tatra8x8HKL_JN</de>
     </name>
    <description></description>
    <filename>Tatra8x8HKL_JN.i3d</filename>
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="70" rotMax="35" rotMin="-35" driveMode="2" repr="0"  radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.2"/>
        <wheel rotSpeed="70" rotMax="35" rotMin="-35" driveMode="2" repr="1"  radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.2"/>
        <wheel rotSpeed="70" rotMax="35" rotMin="-35" driveMode="2" repr="32"  radius="0.05" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.2"/>
        <wheel rotSpeed="70" rotMax="35" rotMin="-35" driveMode="2" repr="33"  radius="0.05" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.2"/>		
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.5"/>
        <wheel rotSpeed="0" driveMode="1" repr="3" radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.5"/>
        <wheel rotSpeed="0" driveMode="1" repr="34" radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.5"/>
        <wheel rotSpeed="0" driveMode="1" repr="35" radius="0.65" deltaY="0.22" suspTravel="0.23" spring="120" damper="120" mass="0.5"/>		
    </wheels>
     <motor minRpm="100" maxRpm="500 1500 3600" brakeForce="55" forwardGearRatio="2.5" backwardGearRatio="1.5" differentialRatio="2.1" rpmFadeOutRange="20">
	<torque rpm="300" torque="33"/>
        <torque rpm="300" torque="47"/>
        <torque rpm="900" torque="55"/>
        <torque rpm="1250" torque="65"/>
        <torque rpm="1980" torque="79"/>
        <torque rpm="2200" torque="89"/>
		<torque rpm="3000" torque="95"/>
		<torque rpm="3200" torque="99"/>
		<torque rpm="3600" torque="125"/>
			

    </motor>
    <fuelCapacity>460</fuelCapacity>
    <fuelUsage>0.0045</fuelUsage>
    <downForce>4</downForce>
    <cameras count="4">
        <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" />
        <camera3 index="20|0|0|2" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
        <camera4 index="20|0|0|0|0|2" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>
    <lights count="2">
        <light1 index="12" />
    </lights>
    <steering index="13|0" rotationSpeed="10"/>
    <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"/>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="10" />
        <trailerAttacherJoint index="21" />
    </trailerAttacherJoints>
    <tipCamera index="11" />
    
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sounds/fendt936start.wav" pitchOffset="1" volume="1.2" />
    <motorSound file="Sounds/fendt936idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.45" volume="1.2" />
    <motorSoundRun file="Sounds/fendt936run.wav" pitchOffset="1" pitchScale="0.03" pitchMax="1.05" volume="0.5" />
    <motorStopSound file="Sounds/fendt936out.wav" pitchOffset="1" />
    <aiMotorSound  file="sounds/fendt936idleAI.wav" pitchOffset="1" radius="100" innerRadius="4" volume="3" />	
    <hydraulicSound file="$data/vehicles/steerable/fendt/hydraulicUp.wav" pitchOffset="0.9" volume="1.0" />       
    <fillSound file="Sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />  
	<reverseDriveSound file="$data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.5" />	    
    <exhaustParticleSystems count="4">
      <exhaustParticleSystem1 position="1.2 3.74 1.63" rotation="-45 0 -45" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
       <exhaustParticleSystem2 position="1.2 3.74 1.63" rotation="-45 0 -45" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
        <exhaustParticleSystem3 position="1.2 3.74 1.63" rotation="-45 0 -45" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
         <exhaustParticleSystem4 position="1.2 3.74 1.63" rotation="-45 0 -45" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>
    <characterNode index="14" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="15" />        
    <components count="3">
        <component1 centerOfMass="0 0.02 -1.6" solverIterationCount="10" />
        <component2 centerOfMass="0 0 0" solverIterationCount="10" />
        <component3 centerOfMass="0 0 0" solverIterationCount="10" />
		<joint component1="0" component2="1"  index="0>20|1|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/>
        <joint component1="0" component2="2"  index="0>20|2|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/>
    </components> 
    
	<attacherJoints> 
		<attacherJoint index="19|1|0|0|0|1|0" jointType="container"/>
		<attacherJoint jointType="frontloader" index="20|0|0|0|0|0|0|0|0|0" allowsJointLimitMovement="false" allowsLowering="false" />
	</attacherJoints>

	<tipReferencePoint index="11" />
	
	<rotationMax xRot="24.330" />
        <objectAttacher index="19|1|0|0|0|1|0" />

	<!-- Original: DumpingAngle: 50? -> Problems with port tiping point, because of collision between container and tipingpoint roof :-) -->
	<rootArm index="19|1"   minRot="0 0 0" maxRot="-40 0 0" rotTime="6" touchRotLimit="-90"/>
	<mainArm index="19|1|0" minRot="0 0 0 " maxRot="-144 0 0" rotTime="10" hydraulicPoint="19|1|0|1" touchRotLimit="-90"/>
	<workingArm index="19|1|0|0|0" minTrans="0 0 1" maxTrans="0 0 0" moveTime="3" touchTransLimit="-90"/>
	<objectLock index="19|1|0|0|0|0" minRot="0 0 0" maxRot="60 0 0" rotTime="2" touchRotLimit="-90"/>
	<containerAttacher index="19|1|0|0|0|1|0" minRot="0 0 0" maxRot="0 0 144" rotTime="15" touchRotLimit="-90"/>
	<moveStick index1="19|2" index2="19|3" index3="19|4" index4="19|5" minRot="0 0 0" maxRot="0 0 -18" rotTime="0.2" touchRotLimit="-60"/>
	<changeAttacherAngle name="containerJoint" rootNode="19|1|0|0|0|1" collision="19|1|0|0|0|1|0" collisionAttacher="19|1|0|0|0|1|0" armAttacher="19|1|0|0|0|1" />
	<hydraulic indexHydraulic="19|0" indexPunch="19|0|0" translationPunch="19|0|0|0" />
	<hydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.5" volume="1.0"/>
	<HookJointAttacher index="19|1|0|0|0|1|0" minRot="0 0 0" maxRot="0 0 144" rotTime="15" touchRotLimit="-90"/>
	<changeAttacherAngle name="HookJoint" rootNode="19|1|0|0|0|1" collision="19|1|0|0|0|1|0" collisionAttacher="19|1|0|0|0|1|0" armAttacher="19|1|0|0|0|1" />
	<animParts count="9">
 		<part1 name="pillar" 	animationClip="PillarClipSource" 		rootNode="19|6" armAttacher="19|6|0" />
		<part2 name="arm1u" 	animationClip="arm1uClipSource" 		rootNode="19|2" />
		<part3 name="arm1d" 	animationClip="arm1dClipSource" 		rootNode="19|2" />
		<part4 name="arm2u" 	animationClip="arm2uClipSource" 		rootNode="19|3" />
		<part5 name="arm2d" 	animationClip="arm2dClipSource" 		rootNode="19|3" />
		<part6 name="arm3u" 	animationClip="arm3uClipSource" 		rootNode="19|4" />
		<part7 name="arm3d" 	animationClip="arm3dClipSource" 		rootNode="19|4" />
		<part8 name="arm4u" 	animationClip="arm4uClipSource" 		rootNode="19|5" />
		<part9 name="arm5d" 	animationClip="arm4dClipSource" 		rootNode="19|5" />
    </animParts>

	<beaconLights>
		<beaconLight index="28|0" speed="0.016" />
		<beaconLight index="29|0" speed="0.016" />
	</beaconLights>

	<turnlights count="1">
		<turnlight1 index="24" /> <!--Blinker Rechts -->
	</turnlights>
	<turnlights2 count="1">
		<turnlight1 index="23" /> <!--Blinker Links -->
	</turnlights2>	

	<sounds compressor="Sounds/hpc_compressor.wav" compressorVolume="0.7" compressorPitchOffset="1" 
			washer="Sounds/hpc_wash.wav" washerVolume="0.7" washerPitchOffset="1"/>

	<dirt count="0" dirtInterval="1" cleaningInterval="0.15"><!--0.004-->
	</dirt>
    
    <crane_by_TN baseIndex="20" needsActivation="0">
      <support>
        <left count="1">
           <part1 index="|2|0" minTrans="0 0 0.00655" maxTrans="0 0 -1.633" transTime="10"/>
        </left>
        <leftDown count="1">
           <part1 index="|2|0|0|0" minTrans="0.06895 1 -0.84093" maxTrans="0.06895 0.34 -0.84093" transTime="5"/>
        </leftDown>        
        
        <right count="1">
           <part1 index="|1|0" minTrans="0 0 0.00655" maxTrans="0 0 -1.633" transTime="10"/>
        </right>
        <rightDown count="1">
           <part1 index="|1|0|0|0" minTrans="0.06895 1 -0.84093" maxTrans="0.06895 0.34 -0.84093" transTime="5"/>
        </rightDown>        
      </support>
      
      
      <!-- Base rotation -->
      <rotBase        index="|0"        minRot="0 270 0"      maxRot="0 -270 0"    rotTime="25"   touchRotLimit="10" />
      <!-- Main-Arm -->
      <rotMainArm     index="|0|0"      minRot="-38 0 0"      maxRot="70 0 0"      rotTime="10"   touchRotLimit="10" />
      <rotMainHyd     index="|0|1"      minRot="92 0 0"       maxRot="100 0 0"     rotTime="11"   touchRotLimit="10" />
      <transMainHyd   index="|0|1|0"  minTrans="0 0 -0.64"  maxTrans="0 0 -1.9"  transTime="10" touchTransLimit="10" />
      <!-- Fold-Arm -->
      <rotFoldArm     index="|0|0|0"      minRot="-179 0 0"     maxRot="-18 0 0"     rotTime="10"   touchRotLimit="10" />
      <rotFoldHyd     index="|0|0|1"      minRot="-4.77 0 0"    maxRot="-4.76 0 0"   rotTime="10"   touchRotLimit="10" />
      <transFoldHyd   index="|0|0|1|0"  minTrans="0 0 -0.56"  maxTrans="0 0 -1.95" transTime="10" touchTransLimit="10" />
      <!-- Working-Arm -->
      <rotWorkArm     index="|0|0|0|0"      minRot="-2 0 0"       maxRot="-166 0 0"    rotTime="10"   touchRotLimit="10" />
      <rotWorkHyd     index="|0|0|0|1"      minRot="-3.8 0 0"     maxRot="-1.77 0 0"   rotTime="10"   touchRotLimit="10" />
      <transWorkHyd   index="|0|0|0|1|0"  minTrans="0 0 -1.70"  maxTrans="0 0 -0.68" transTime="10" touchTransLimit="10" />

      <!-- Extension 1 -->
      <transExt1      index="|0|0|0|0|0"  minTrans="-0.03 0.09 -1.33" maxTrans="-0.03 0.09 -3.5" transTime="10" touchTransLimit="10" />

      <!-- Extension 2 -->
      <translationHook index="|0|0|0|0|0|0" minTrans="0 -0.16 -0.35" maxTrans="0 -0.16 -1.95" transTime="10" touchTransLimit="10"/>
      
      <!-- Haken rechts-links -->
      <rotation4  index="|0|0|0|0|0|0|0"    minRot="0 270 180"   maxRot="0 -270 180"  rotTime="25"  touchRotLimit="15" />
      <!-- Haken auf-ab -->
      <rotation5  index="|0|0|0|0|0|0|0|0"  minRot="270 0 0"     maxRot="-270 0 0"    rotTime="20" touchRotLimit="15" />

    </crane_by_TN>
    <frontloader jointIndex="20|0|0|0|0|0|0|0|0|0" jointType="frontloader" />

    <!-- FlasherLights by TN (start) -->
    <flasherlights_by_TN count="2" needsActivation="0">
        <HUD     x="0.8200" y="0.250" />
        <HelpBox x="0.8225" y="0.250" />
        
        <flasher_1 name="blitzer" count="2" dauer="5" pause="20" stay_on="1" collisiontrigger="4" lightsource="4" emitlight="0">
          <light_1 index="20|1|0|0|1|0" />
          <light_2 index="20|2|0|0|1|0" />
        </flasher_1>
        <flasher_2 name="strassenfeger" count="1" dauer="2" pause="20" stay_on="1" collisiontrigger="27" lightsource="27|0" emitlight="0">
          <light_1 index="27|0" />
        </flasher_2>        
    </flasherlights_by_TN>
    <!-- FlasherLights by TN (end) -->   

	<lightsaddon lightsStayOn="false">
		<light type="brake" index="22" />
		<light type="reverse" index="25" />
	</lightsaddon>

    <worklights_vo count="1">
        <worklight_vo1 index="36" />
    </worklights_vo>
	
</vehicle>