<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Scania_Kran_HKL">
	<name>
        <en>Scania Kran HKL</en>
        <de>Scania Kran HKL</de>
     </name>
    <description></description>
    <filename>ScaniaKranHKL.i3d</filename>
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="90" rotMax="35" rotMin="-35" driveMode="1" repr="0" driveNode="0" radius="0.82" deltaY="0.01" suspTravel="0.24" spring="100" damper="12" mass="0.5" lateralStiffness="30" />
        <wheel rotSpeed="90" rotMax="35" rotMin="-35" driveMode="1" repr="1" driveNode="1" radius="0.82" deltaY="0.01" suspTravel="0.24" spring="100" damper="12" mass="0.5" lateralStiffness="30" />
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="0.82" deltaY="0.01" suspTravel="0.24" spring="100" damper="12" mass="0.5" lateralStiffness="30" />
        <wheel rotSpeed="0" driveMode="1" repr="3" radius="0.82" deltaY="0.01" suspTravel="0.24" spring="100" damper="12" mass="0.5" lateralStiffness="30" />
    </wheels>
    <motor minRpm="300" maxRpm="470 1020 5950" brakeForce="15" forwardGearRatio="2.04" backwardGearRatio="1.5" differentialRatio="6" rpmFadeOutRange="20">
        <torque rpm="500" torque="6.5"/>
        <torque rpm="900" torque="8"/>
        <torque rpm="1500" torque="16"/>
        <torque rpm="2300" torque="18"/>
        <torque rpm="3780" torque="19"/>
        <torque rpm="4900" torque="21"/>
 <!--
        <torque rpm="2500" torque="16"/>
        <torque rpm="3300" torque="18"/>
        <torque rpm="4780" torque="19"/>
        <torque rpm="5900" torque="21"/>
 -->
    </motor>
    <fuelCapacity>965</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="22|0|0|2" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
        <camera4 index="22|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="16" low="true" />
        <trailerAttacherJoint index="26" />
        <trailerAttacherJoint index="22|0|0|0|0|0|0|0|0|0" low="true" />
        <trailerAttacherJoint index="22|0|0|0|0|0|0|0|0|0" />
    </trailerAttacherJoints>
    <tipCamera index="11" />
    
    <attachSound file="Sounds/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sounds/MAN_Start.wav" pitchOffset="0.7" />
    <motorSound file="Sounds/MAN_engine.wav" pitchOffset="0.65" pitchScale="0.03" pitchMax="0|1"/>
    <hydraulicSound file="Sounds/hydraulicUp.wav" pitchOffset="0.9" volume="1.0" />        
    <fillSound file="Sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />  
    
    <exhaustParticleSystems count="4">
      <exhaustParticleSystem1 position="1.2 4.34297 1.4" rotation="0 -90 0" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
       <exhaustParticleSystem2 position="1.2 4.34297 1.4" rotation="0 -90 0" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
        <exhaustParticleSystem3 position="1.2 4.34297 1.4" rotation="0 -90 0" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
         <exhaustParticleSystem4 position="1.2 4.34297 1.4" rotation="0 -90 0" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>
    <characterNode index="15" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="17" />        
    <components count="3">
        <component1 centerOfMass="0 -0.1 0" solverIterationCount="10" />
        <component2 centerOfMass="0 0 0" solverIterationCount="10" />
        <component3 centerOfMass="0 0 0" solverIterationCount="10" />
        <!-- <component4 centerOfMass="0 0 0" solverIterationCount="10" /> -->
        <!-- <component5 centerOfMass="0 0 0" solverIterationCount="10" /> -->
	<joint component1="0" component2="1"  index="0>22|1|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/>
        <joint component1="0" component2="2"  index="0>22|2|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/>
	<!--joint component1="0" component4="3"  index="0>22|1|0|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/-->
        <!--joint component1="0" component2="4"  index="0>22|2|0|0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/-->
    </components> 
    
	<attacherJoints> 
		<attacherJoint index="23|1|0|0|0|1|0" jointType="container"/>
		<attacherJoint index="23|1|0|0|0|1|0" jointType="HookJoint"/>
                <attacherJoint jointType="frontloader" index="22|0|0|0|0|0|0|0|0|0" allowsJointLimitMovement="false" allowsLowering="false" />
	</attacherJoints>
	    

	
<!--	<objectAttacher index="23|1|0|0|0|1|0" />		-->
	
	<tipReferencePoint index="11" />
<!--	<tipAnimation rootNode="23|1" speedScale="1" clip="tipAnimationClipSource" /> -->

	
	<!-- Value for Joint-Rotation-Limits-Calucaltion. This is needed, because Giants Engine don't support collisions between 2 joined objects-->	
	<!--<rotationMax xRot="22.330" />-->
	<rotationMax xRot="24.330" />

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

<beaconLights>
		<beaconLight index="34|0" speed="0.016" />
		<beaconLight index="35|0" speed="0.016" />
</beaconLights>

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

	<kaercher pipe="31" lance="31" pressureWasher="31" actionDistance="1"  washDistance="1" literPerSecond="0.1" pricePerLiter="0.5" />
	<waterParticelSystem node="31" file="Textur/particleSystem.i3d" />
	
	<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-->
		<!--dirtComponent1 index="0" /-->
		<!--dirtComponent2 index="1" /-->
		<!--dirtComponent3 index="1|0" /-->
		<!--dirtComponent4 index="2" /-->
		<!--dirtComponent5 index="2|0" /-->
		<!--dirtComponent6 index="3" /-->
		<!--dirtComponent7 index="18" /-->
		<!--dirtComponent8 index="18|3" /-->
		<!--dirtComponent9 index="18|8" /-->
		<!--dirtComponent10 index="18|9" /-->
                <!--dirtComponent11 index="18|10" /-->
		<!--dirtComponent12 index="18|16" /-->
		<!--dirtComponent13 index="21" /-->
		<!--dirtComponent14 index="22" /-->
                <!--dirtComponent15 index="22|0" /-->
		<!--dirtComponent16 index="23" /-->
		<!--dirtComponent17 index="24" /-->
		<!--dirtComponent18 index="24|0" /-->
		<!--dirtComponent19 index="29" /-->
		<!--dirtComponent20 index="35" /-->
		<!--dirtComponent21 index="37" /-->
		<!--dirtComponent22 index="38" /-->
	</dirt>

    
    <!-- old
    <translationPart index="22|0|0|0" minTrans="-0.03 0.09 -1.33" maxTrans="-0.03 0.09 -3.5" transTime="10" touchTransLimit="10"/>
    <translationHook index="22|0|0|0|0" minTrans="0 -0.16 -0.35" maxTrans="0 -0.16 -1.95" transTime="10" touchTransLimit="10"/>
    <translationHyd index="22|1|0" minTrans="0 0 -1" maxTrans="0 0 -1.95" transTime="10" touchTransLimit="10"/>
    <rotation1 index="22|0" minRot="-9 0 0" maxRot="50 0 0" rotTime="10" touchRotLimit="10" />
    <rotation2 index="22|0|0" minRot="0 0 0" maxRot="-145 0 0" rotTime="10" touchRotLimit="10" />
    <rotation4 index="22|0|0|0|0|0" minRot="0 90 180" maxRot="0 -90 180" rotTime="5" touchRotLimit="10" />
    <rotation5 index="22|0|0|0|0|0|0" minRot="90 0 0" maxRot="-90 0 0" rotTime="20" touchRotLimit="10" />
    <rotation6 index="22" minRot="0 -90 0" maxRot="0 90 0" rotTime="10" touchRotLimit="10" />

    <!--frontloader jointIndex="22|0|0|0|0|0|0|0" jointType="frontloader" /-->  
    -->
    <crane_by_TN baseIndex="22" 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 0.99726 -0.84093" maxTrans="0.06895 0.44279 -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 0.99726 -0.84093" maxTrans="0.06895 0.44279 -0.84093" transTime="5"/>
        </rightDown>        
      </support>
      
      
      <!-- Base rotation -->
      <rotBase        index="|0"        minRot="0 270 0"      maxRot="0 -270 0"    rotTime="20"   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="5"  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="22|0|0|0|0|0|0|0|0|0" jointType="frontloader" />

    <blaulichter>
        <blaulicht rotNode="33|0|0" light="33|0|0" lightsource="33|0|0" rotSpeed="15" emitLight="true" />
    </blaulichter>
    
     <!-- WorkLights by TN (start) -->
    <!--worklights_by_TN count="2" needsActivation="0"-->
        <!--HUD     x="0.8200" y="0.250" /-->
        <!--HelpBox x="0.8225" y="0.250" /-->
        <!--worklight_1 name="front" count="1"-->
          <!--light_1 index="42" /-->
        <!--/worklight_1-->
        <!--worklight_2 name="rear" count="1"-->
          <!--light_1 index="43|1" /-->
        <!--/worklight_2--> 
    <!--/worklights_by_TN-->
    <!-- WorkLights by TN (end) -->        

    <!-- 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="22|1|0|0|1|0" />
          <light_2 index="22|2|0|0|1|0" />
        </flasher_1>
        <flasher_2 name="strassenfeger" count="1" dauer="2" pause="20" stay_on="1" collisiontrigger="33" lightsource="33|1" emitlight="0">
          <light_1 index="33|0" />
        </flasher_2>        
    </flasherlights_by_TN>
    
    <!-- FlasherLights by TN (end) -->   

    	<lightsaddon lightsStayOn="false">
			<light type="brake" index="27" />
			<light type="reverse" index="30" />
		</lightsaddon>

    
</vehicle>