<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="hTz">
	<annotation>SFM-Modding</annotation>
    <name>
        <en>hTz 17222</en>
        <de>hTz 17222</de>
    </name>
    <filename>hTz_17222.i3d</filename>
	<size width="4" length="8"/>
	
	<wheels autoRotateBackSpeed="1.6">
        <wheel rotSpeed="0" driveMode="1" repr="2>1" radius="0.7" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="0.2" longitudalStiffness="0.9" lateralStiffness="3.5" />
        <wheel rotSpeed="0" driveMode="1" repr="3>1" radius="0.7" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="0.2" longitudalStiffness="0.9" lateralStiffness="3.5" />
        <wheel rotSpeed="0" driveMode="2" repr="4>1" radius="0.7" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="0.2" longitudalStiffness="0.9" lateralStiffness="3.5" />
        <wheel rotSpeed="0" driveMode="2" repr="5>1" radius="0.7" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="0.2" longitudalStiffness="0.9" lateralStiffness="3.5" />
    </wheels>
    <motor minRpm="100" maxRpm="850 1350 2100 590" maxTorques="-1 -3 -1 -3" brakeForce="6.5" lowBrakeForceScale="0.4" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="19" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="40">
        <torque rpm="2100" torque="0.52"/>
	<backwardTorque rpm="350" torque="0.54"/>
	<backwardTorque rpm="455" torque="0"/>
    </motor>

	<accelerationSpeed maxAcceleration="0.15" deceleration="0.02" backwardDeceleration="0.2" />
	<fuelCapacity>316</fuelCapacity>
    <fuelUsage>0.007</fuelUsage>
    <downForce>7</downForce>
	<bunkerSiloCompacter compactingScale="4"/>
	
	<cameras count="2">
        <camera1 index="1>2|0" rotatable="true" rotateNode="1>2" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0.1" transMin="5.8" transMax="35" >
			<raycastNode index="0>7|0"/>
			<raycastNode index="0>7|1"/>
			<raycastNode index="0>7|2"/>
			<raycastNode index="1>14"/>
		</camera1>
        <camera2 index="0>12|3" rotatable="true" limit="true" useWorldXZRotation="true" rotMinX="-1.25" rotMaxX="0.2" transMin="0" transMax="0" />
    </cameras>

	<lights>
        <light realLight="0>10|2|3|5|0" fakeLight="0>10|2|3|5|1" decoration="0>10|2|3|5|2" lightType="0"/>

        <light decoration="1>15" lightType="0"/>
		<light realLight="0>12|9|0" decoration="0>12|9|1" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>12|6" />
		<brakeLight index="1>16" />
	</brakeLights>

	<lightsaddon lightsStayOn="true">
		<light type="dirLeft" index="0>12|7" />
		<light type="dirRight" index="0>12|8" />
		<light type="dirLeft" index="1>17" />
		<light type="dirRight" index="1>18" />
                            <light type="work" index="0>10|0|2" inputName="Kapot1" stayOn="true"/>
                            <light type="work" index="0>12|15" real="0>12|10" beam="0>12|10" inputName="frontwork" helptext="frontwork" stayOn="false"/>
		<flashers soundfile="sound/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.8" autoreturn="false" tolerance="0.5" pitch="0.5" />
	</lightsaddon>

    <steering index="0>10|2|5|9|1" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="0>12|5" />
	
    <trailerAttacherJoints>
        <trailerAttacherJoint index="1>7|0|2|0|0" maxRotLimit="15 85 85" ptoOutputNode="1>10" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" rootNode="1>"/>
        <trailerAttacherJoint index="1>7|0|2|0|0" maxRotLimit="15 85 85" low="true" ptoOutputNode="1>10" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" rootNode="1>"/>
    </trailerAttacherJoints>
	
    <attacherJoints>
        <attacherJoint index="1>6|0|0" rotationNode="1>6" rootNode="1>" minRot="22 0 0" minRot2="-4 0 0" maxRot="16 0 0" rotationNode2="1>6|0" maxRot2="-18 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5" ptoOutputNode="1>10" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="1>7" translationNode="1>7|0" referenceNode="1>7|0|0" zScale="-1" />
			<topArm rotationNode="1>4" translationNode="1>4|0" referenceNode="1>4|0|0" zScale="-1" />
        </attacherJoint>
    </attacherJoints>

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="1>7">
            <!-- cylinder 1 -->
            <dependentPart index="1>3" />
            <!-- cylinder 2 -->
            <dependentPart index="1>5" />
        </movingTool>
    </movingTools>
	
	<movingParts>
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="1>3" referencePoint="1>5|2" referenceFrame="1>" invertZ="false">
            <translatingPart index="1>3|0" />
        </movingPart>
		<!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="1>5" referencePoint="1>7|0|1" localReferencePoint="1>5|0" referenceFrame="1>" invertZ="false" >
			<dependentPart index="1>5|0" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="1>5|0" referencePoint="1>7|0|1" referenceFrame="1>5|1" invertZ="false">
			<translatingPart index="1>5|0|0" />
		</movingPart>
		
		<!-- left SteeringHydraulic -->
        <movingPart index="0>11|5" referencePoint="1>8" referenceFrame="1>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>11|5|0" />
        </movingPart>
		<!-- right SteeringHydraulic -->
        <movingPart index="0>11|6" referencePoint="1>9" referenceFrame="1>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>11|6|0" />
        </movingPart>
		
		<movingPart index="1>11" referencePoint="0>12|11" referenceFrame="1>11|0" isActiveDirty="true" playSound="false" />
	</movingParts>
	
	
	
	<characterNode index="0>12|2" cameraMinDistance="1.5" />
	<aiTrafficCollisionTrigger index="0>3" />
	
	<exhaustParticleSystems count="1">
		<exhaustParticleSystem1 node="0>12|4" position="0 0 0" rotation="0 0 0"  file="texturen/ExhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

<realExhaustParticleSystem hasSecondPS="true" parameter="exhaustingSystem" minAlpha="0.1" maxAlpha="1" >
		<SecondParticleSystem node="0>12|4" position="0 0.05 0.05" rotation="0 0 0" file="texturen/newRealParticles.i3d" />
	</realExhaustParticleSystem>

	 <motorStartDuration>8500</motorStartDuration>
    <attachSound file="sound/attach.wav" pitchOffset="1" />
    <motorStartSound file="sound/start.wav" pitchOffset="0.85" volume="1" />
    <motorSound file="sound/idle.wav" pitchOffset="0.85" pitchScale="0.026" pitchMax="1.6" volume="5.0" />
    <motorStopSound file="sound/out.wav" pitchOffset="1" volume="0.9" /> 
    <motorSoundRun file="sound/run2.wav" pitchOffset="1" pitchScale="0.026" pitchMax="1" volume="1.0" />
    <reverseDriveSound file="sound/revers.wav" volume="1.5" />
    <compressedAirSound file="sound/brake.wav" pitchOffset="1" volume="0.7"/>
    <compressionSound file="sound/compressor.wav" pitchOffset="1.5" volume="1.5"/> 
    <honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" pitchOffset="0.8" volume="1" radius="80" innerRadius="35" />
    <aiMotorSound  file="sound/idle2.wav" pitchOffset="0.85" radius="25" innerRadius="4" volume="1.0" />

<indoorSounds camIndex="2" >
		<sound id="attachSound" percent="0.3" />
		<sound id="motorSound" percent="0.3" volume="motorSoundVolume" />
		<sound id="motorStartSound" percent="0.3" />
		<sound id="motorStopSound" percent="0.3" />
		<sound id="motorSoundRun" percent="0.3" />
		<sound id="reverseDriveSound" percent="0.3" />
		<sound id="compressionSound" percent="0.3" />
		<sound id="honkSoundId" volume="honkSoundVolume" percent="0.3" />
	</indoorSounds>
	
	<articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="-25" rotMax="30" rotMin="-30">
	</articulatedAxis>
	
	<dynamicExhaustingSystem cap="0>12|14|0|0" maxRot="-81.5" minAlpha="0.1" maxAlpha="1.0" param="alphaScale" >
		<startSequence>
			<key time="0.0"  value="0 0 0 0"/>
			<key time="0.4"  value="0 0 0 0.5"/>
			<key time="0.58" value="0 0 0 0.2"/>
			<key time="0.6"  value="0 0 0 0.2"/>
			<key time="0.75" value="0 0 0 1"/>
			<key time="0.93" value="0 0 0 1"/>
			<key time="1.0"  value="0 0 0 0.2"/>
		</startSequence>
	</dynamicExhaustingSystem>

	<fan index="0>11|1|0"/>
              <motor1        index="0>11|1" minRot="0 0 -1" maxRot="0 0 1" rotTime="3" touchRotLimit="10" />
	<crankshaft1   index="0>10|1"/>
	<crankshaft4   index="1>12|0|0"/>
	
	<components count="6">
<component1 centerOfMass="0 0 0" solverIterationCount="35" />
<component2 centerOfMass="0 0 0" solverIterationCount="35" />
                                   <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="0>6" rotLimit="0 0 4" transLimit="0 0 0" />

                                   <joint component1="0" component2="2" index="2>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
		<joint component1="0" component2="3" index="3>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
		<joint component1="1" component2="4" index="4>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
		<joint component1="1" component2="5" index="5>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
		
		<collisionPair component1="0" component2="2" enabled="false"/>
		<collisionPair component1="0" component2="3" enabled="false"/>
		<collisionPair component1="1" component2="4" enabled="false"/>
		<collisionPair component1="1" component2="5" enabled="false"/>
    </components>
	
    <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>

<animParts> 
       <animPart index="0>10|2|0|0" id="Dver_L" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 60 0" moveTime="3" /> 
   <animPart index="0>10|2|1|0" id="okno_L" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 -20 0" moveTime="3" />
<animPart index="0>10|2|2|0" id="okno_R" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="0 20 0" moveTime="3" />
<animPart index="0>10|2|3" id="kapot" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="80 0 0" moveTime="3" />
<animPart index="0>10|2|4" id="luk" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="20 0 0" moveTime="3" />
</animParts>

 <rotation9 index="0>10|2|5|9" minRot="0 0 0" maxRot="-30 0 0" rotTime="3" touchRotLimit="10" />
<rotationPartPedal3 index="0>10|2|5|9|5|3|0" minRot="0 0 0" maxRot="0 0 90" rotTime="0.3" touchRotLimit="10" />
 <poworotnika    index="0>10|2|5|9|0|0" minRot="0 0 0" maxRot="0 30 0" rotTime="0.1" touchRotLimit="10"/>
      <poworotnikk    index="0>10|2|5|9|0|0" minRot="0 0 0" maxRot="0 -15 0" rotTime="0.1" touchRotLimit="10"/>
      <poworotnik     index="0>10|2|5|9|0|0" minRot="0 0 0" maxRot="0 15 0" rotTime="0.1" touchRotLimit="10"/>
      <poworotnik0    index="0>10|2|5|9|0|0" minRot="0 0 0" maxRot="0 0 0" rotTime="0.1" touchRotLimit="10"/>
<wiper1 index="0>11|3|0" minRot="0 0 0" maxRot="0 0 -90" rotTime="1" touchRotLimit="10" />
      <wiper2 index="0>11|4" minRot="0 0 0" maxRot="0 0 90" rotTime="1" touchRotLimit="10" />

 <wentelator3 index="0>12|13|1|2|0" />

   <rotationPartrichag1 index="0>10|2|5|3" minRot="20 0 0" maxRot="-20 0 0" rotTime="0.2" touchRotLimit="10" />
      <rotationPartrichag2 index="0>10|2|5|4" minRot="20 0 0" maxRot="-20 0 0" rotTime="0.2" touchRotLimit="10" />
      <rotationPartrichag3 index="0>10|2|5|5" minRot="20 0 0" maxRot="-20 0 0" rotTime="0.2" touchRotLimit="10" />
  <rotationPartBrake index="0>10|2|5|12" minRot="0 0 0" maxRot="-12 0 0" rotTime="2" touchRotLimit="10" />   
      <rotationPartPedal index="0>10|2|5|11|0" minRot="0 0 0" maxRot="30 0 0" rotTime="2" touchRotLimit="10" />
   <rotationPartPedal2 index="0>10|2|5|10" minRot="0 0 0" maxRot="-12 0 0" rotTime="3" touchRotLimit="10" />
  <rotationPartrichag4 index="0>10|2|5|6" minRot="0 0 0" maxRot="20 0 0" rotTime="0.2" touchRotLimit="10" />
 <rotationPartPedalr index="0>10|2|5|2" minRot="10 0 0" maxRot="20 0 0" rotTime="3" touchRotLimit="10" />

 <korobka0 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="0 0 0" rotTime="0.1" touchRotLimit="10"/>
      <korobka 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="12 0 -10" rotTime="0.1" touchRotLimit="10"/>
      <korobka1 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="-12 0 -10" rotTime="0.1" touchRotLimit="10"/>
      <korobka2 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="13 0 0" rotTime="0.1" touchRotLimit="10"/>
      <korobka3 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="-13 0 0" rotTime="0.1" touchRotLimit="10"/>
      <korobka4 	 index="0>10|2|5|7" minRot="0 0 0" maxRot="12 0 10" rotTime="0.1" touchRotLimit="10"/>
      <korobkazad  index="0>10|2|5|7" minRot="0 0 0" maxRot="-12 0 10" rotTime="0.1" touchRotLimit="10"/>

<ruchnjak index="0>10|2|5|1" minRot="10 0 0" maxRot="20 0 0" rotTime="0.1" touchRotLimit="10"/>
  <rotationPartrichag4 index="0>10|2|5|0" minRot="10 0 0" maxRot="20 0 0" rotTime="0.2" touchRotLimit="10" />

  <tumbler index="0>10|2|5|9|4|1" minRot="-10 0 0" maxRot="10 0 0" rotTime="0.1" touchRotLimit="10"/>
<tumble index="0>10|2|5|9|4|0" minRot="-10 0 0" maxRot="10 0 0" rotTime="0.1" touchRotLimit="10"/>

  <rotationPartKmh1 index="0>10|2|5|9|5|0" minRot="0 140 0" maxRot="0 -125 0" rotTime="3" touchRotLimit="10" /> 
      <rotationPartDrehzahl1 index="0>10|2|5|9|5|1" minRot="0 140 0" maxRot="0 -10 0" rotTime="3" touchRotLimit="10" />
      <rotationPartTanknadel index="0>10|2|5|9|5|2" minRot="0 30 0" maxRot="0 -30 0" rotTime="5" touchRotLimit="10" />
<rotationPartDrehzahl2 index="0>10|2|5|9|5|4" minRot="0 0 0" maxRot="0 -25 0" rotTime="3" touchRotLimit="10" />

<wentelator2 index="1>26|0" />

<blends1>
	    <blend1 index="1>7|0|2" />
	</blends1>
    	<blends2>
	    <blend2 index="0>10|0|2" />
	</blends2>

                  <frontRightWheel wheelIndex="1" componentJointIndex="2" furrowDepth="0.23" fallSpeed="0.25" tireWidth="0.35" />
	<frontLeftWheel wheelIndex="2" componentJointIndex="3" furrowDepth="0.23" fallSpeed="0.25" tireWidth="0.35" />
	<backRightWheel wheelIndex="3" componentJointIndex="4" furrowDepth="0.23" fallSpeed="0.25" tireWidth="0.35" />
	<backLeftWheel wheelIndex="4" componentJointIndex="5" furrowDepth="0.23" fallSpeed="0.25" tireWidth="0.35" />

<wheelAreas count="4">
       <wheelArea1 pointIndex="2>0" width="0.15" height="0.25"/>
       <wheelArea2 pointIndex="3>0" width="0.15" height="0.25"/>
       <wheelArea3 pointIndex="4>0" width="0.15" height="0.25"/>
       <wheelArea4 pointIndex="5>0" width="0.15" height="0.25"/>
    </wheelAreas> 

    <drivingParticles threshold="0.005">
        <drivingParticle position="-1.0 0 1.9" rotation="0 0 0" file="system/dustParticleSystem.i3d" wheel="1" minSpeed="1" maxSpeed="100"/>
        <drivingParticle position="1.2 0 1.9" rotation="0 0 0" file="system/dustParticleSystem.i3d" wheel="2" minSpeed="1" maxSpeed="100"/>
        <drivingParticle position="-1.0 0 -1.5" rotation="0 0 0" file="system/dustParticleSystem.i3d" wheel="3" minSpeed="1" maxSpeed="100"/>
        <drivingParticle position="1.2 0 -1.5" rotation="0 0 0" file="system/dustParticleSystem.i3d" wheel="4" minSpeed="1" maxSpeed="100"/>
    </drivingParticles>	
</vehicle>
