<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="policecar">
   <annotation>Done Conversion right & Turned into tenn highway Patrol truck by boss hog39 on 5-28-2017</annotation>
   
   <storeData>
        <name>
            <de>Peterbilt 388</de>
            <en>Peterbilt 388</en></name>
        <functions/>
        <specs>
            <power>550</power>
        </specs>
        <image>Store/store_Pete388.dds</image>
        <price>75000</price>
        <dailyUpkeep>5</dailyUpkeep>
        <lifetime>16000</lifetime>
        <rotation>0</rotation>
        <brand>PETERBILT</brand>
        <category>trucks</category>
    </storeData>
	
	<typeDesc>$l10n_typeDesc_car</typeDesc>
    <filename>Peterbilt_THP.i3d</filename>
    <size width="3.5" length="7"/>
	
    <wheels autoRotateBackSpeed="3">
	 
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0" radius="0.525" restLoad="7.03" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="3" width="0.42" hasParticles="true" tireType="street" />
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1" radius="0.525" restLoad="6.31" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="3" width="0.42" hasParticles="true" tireType="street" />
        <wheel rotSpeed="0" repr="0>2" radius="0.485" restLoad="4.40" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="45" damper="35" hasTireTracks="true" tireTrackAtlasIndex="4" mass="2" width="0.84" hasParticles="true" tireType="street"  />
        <wheel rotSpeed="0" repr="0>3" radius="0.485" restLoad="3.96" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="45" damper="35" hasTireTracks="true" tireTrackAtlasIndex="4" mass="2" width="0.84" hasParticles="true" tireType="street" />
        <wheel rotSpeed="0" repr="0>4" radius="0.485" restLoad="4.86" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="85" damper="65" hasTireTracks="true" tireTrackAtlasIndex="4" mass="2" width="0.84" hasParticles="true" tireType="street" />
        <wheel rotSpeed="0" repr="0>5" radius="0.485" restLoad="4.04" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="85" damper="65" hasTireTracks="true" tireTrackAtlasIndex="4" mass="2" width="0.84" hasParticles="true" tireType="street" />
    </wheels>
	
    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4"/>
	
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="4" wheelIndex2="5"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1"/>
        <!-- front-back -->
    </differentials>
	
   <motor torqueScale="5.779" minRpm="1000" maxRpm="3400" maxForwardSpeed="100" maxBackwardSpeed="15" brakeForce="15" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.0015" minForwardGearRatio="8.4" maxForwardGearRatio="150" minBackwardGearRatio="40" maxBackwardGearRatio="150">
                <torque normRpm="0.45" torque="0.5"/>
                <torque normRpm="0.5" torque="0.6"/>
                <torque normRpm="0.59" torque="0.7"/>
                <torque normRpm="0.72" torque="1"/>
                <torque normRpm="0.86" torque="0.88"/>
                <torque normRpm="1" torque="0.7"/>
            </motor>
			
    <fuelCapacity>1250</fuelCapacity>
    <fuelUsage>100</fuelUsage>
	
    <cameras count="2">
        <camera1 index="10|0" rotatable="true" rotateNode="10" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35"/>
        <camera2 index="11" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
	
   <lights>
        <low>
            <light                        decoration="0>37"   lightTypes="0 1" /> <!--Decoration for FrontLights and Highbeams-->
            <light realLight="0>15|0|1"                           lightTypes="1" /> 
             <light realLight="0>15|0|2"                           lightTypes="1" />
			 <light realLight="0>15|0|3"                           lightTypes="0" /> 
             <light realLight="0>15|0|4"                           lightTypes="0" /> 
			 <light realLight="0>15|0|5"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|6"                           lightTypes="0 1" /> 
			 <light realLight="0>15|0|7"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|8"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|9"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|10"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|11"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|12"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|13"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|14"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|15"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|16"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|17"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|18"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|19"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|20"                           lightTypes="0 1" /> 
			 <light realLight="0>15|0|21"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|22"                           lightTypes="0 1" /> 
   		     <light                        decoration="0>15|0|0"   lightTypes="0 1" /> <!--Decoration for FrontLights and Highbeams-->
          	 <light realLight="0>27|0|0"   decoration="0>27|0|1"   lightTypes="1" /> <!--Spot Light-->
        
          </low>
        <high>
            <light                        decoration="0>37"   lightTypes="0 1" /> <!--Decoration for FrontLights and Highbeams-->
          	 <light realLight="0>15|0|1"                           lightTypes="1" /> 
             <light realLight="0>15|0|2"                           lightTypes="1" /> 
			 <light realLight="0>15|0|3"                           lightTypes="0" /> 
             <light realLight="0>15|0|4"                           lightTypes="0" /> 
			 <light realLight="0>15|0|5"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|6"                           lightTypes="0 1" /> 
			  <light realLight="0>15|0|7"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|8"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|9"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|10"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|11"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|12"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|13"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|14"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|15"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|16"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|17"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|18"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|19"                           lightTypes="0 1" /> 
             <light realLight="0>15|0|20"                           lightTypes="0 1" /> 
			 <light realLight="0>15|0|21"                           lightTypes="0 1" /> 
		     <light realLight="0>15|0|22"                           lightTypes="0 1" /> 
   		     <light                        decoration="0>15|0|0"   lightTypes="0 1" /> <!--Decoration for FrontLights and Highbeams-->
          	 <light realLight="0>27|0|0"    decoration="0>27|0|1"   lightTypes="1" /> <!--Spot Light-->
        
          </high>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>
    </lights>
	 
    <brakeLights>
        <brakeLight decoration="0>15|1"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>15|2|0"/>
        <turnLightRight decoration="0>15|2|1"/>
    </turnLights>
    <reverseLights>
        <reverseLight realLight="0>15|3|1" decoration="0>15|3|0" />
    </reverseLights>

	
 
	  <LightAddon lightsStayOn="true" strobesAreBeacons="true">
	
		<!---Head Light strobes White--->
		<strobe decoration="0>26|4"  isBeacon="false" name="Strobe" sequence="250 250 250 250 250" invert="true" />
        <strobe decoration="0>26|5" isBeacon="false" name="Strobe" sequence="250 250 250 250 250" invert="false" />
        <strobe decoration="0>26|6"  isBeacon="false" name="Strobe" sequence="250 250 250 250 250" invert="true" />
        <strobe decoration="0>26|7"  isBeacon="false" name="Strobe" sequence="250 250 250 250 250" invert="false" />
   
		<!-- Blue Real light Strobes - Lightbar -->
		<strobe decoration="0>26|0"    isBeacon="false" name="Strobe" sequence="50 50 50 50 200" invert="false" />
		<strobe decoration="0>26|1"    isBeacon="false" name="Strobe" sequence="50 50 50 50 200" invert="true" />
		<strobe decoration="0>26|2"    isBeacon="false" name="Strobe" sequence="50 50 50 50 200" invert="false" />
		<strobe decoration="0>26|3"    isBeacon="false" name="Strobe" sequence="50 50 50 50 200" invert="true" />
	
		<!---Light Bar-Boss Hog39 5-26-2017 ---->
        <strobe decoration="0>24|2|0"  isBeacon="false" name="Strobe" sequence="150 100 150 200" invert="false" />
		<strobe decoration="0>24|2|1"  isBeacon="false" name="Strobe" sequence="100 150 100 200" invert="false" />
    	<strobe decoration="0>24|2|2"  isBeacon="false" name="Strobe" sequence="150 100 150 200" invert="true" />
		<strobe decoration="0>24|2|3"  isBeacon="false" name="Strobe" sequence="100 150 100 200" invert="true" />
   
  </LightAddon>
	  	                                                                                                                                                                                                                                                                   <!--Converted truck To TST (THP) on 5-17-2017 By Boss Hog39--->
	
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
	
	
        <movingTools><!---Spot Light Left/Right--->
            <movingTool index="0>27">
            <controls axis="AXIS_FRONTLOADER_TOOL" iconFilename="Store/Spot Light Left Right.dds" invertAxis="false" invertMouseAxis="false" speedFactor="-2"/>
            <rotation rotSpeed="40" rotAcceleration="80" rotMax="140" rotMin="-60" rotationAxis="2"/>
	    </movingTool><!---Spot Light Up/Down--->
            <movingTool index="0>27|0">
            <controls axis="AXIS_FRONTLOADER_ARM" iconFilename="Store/Spot Light Up Down.dds" invertAxis="false" invertMouseAxis="false" speedFactor="0.6"/>
			<rotation rotSpeed="40" rotAcceleration="80" rotMax="30" rotMin="-30" rotationAxis="1"/>
	    </movingTool>
    </movingTools>

    <animations>
        <animation name="speedDisplay">
            <part node="0>18|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -107"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>18|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -250"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>18|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -90"/>
        </animation>
    </animations>
	
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>
	
    <attacherJoints>
        <attacherJoint index="0>7" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
	
    <steering index="0>12|0" indoorRotation="540" outdoorRotation="540"/>
    <characterNode index="0>13|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100">
        <target ikChain="rightFoot" targetNode="0>13|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>13|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>14" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>12|0|0" setDirty="true"/>
    </characterNode>
	
    <ai>
        <trafficCollisionTrigger index="0>9"/>
    </ai>
	
    <exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>16" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.01" maxRpmScale="0.3" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>17" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.01" maxRpmScale="0.3" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
	
    <motorStartDuration>2500</motorStartDuration>
    <motorStartSound file="sounds/start.wav"                                               pitchOffset="0.77" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.95"/>
    <motorSound file="sounds/idle.wav"                                                     pitchOffset="0.77" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.95" pitchMax="1.20" volumeMin="0.50" volumeMinSpeed="36" pitchScale="0.02" />
    <motorStopSound file="sounds/stop.wav"                                                 pitchOffset="0.90" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.65" />

    <motorSoundRun file="sounds/Run.wav"                                                   pitchOffset="0.55" volume="0.75" indoorVolumeFactor="0.50" indoorLowpassGain="0.75" pitchMax="1.10" />
    <motorSoundLoad file="$data/vehicles/steerable/newHolland/newHollandT9560_load.wav"    pitchOffset="0.45" volume="0.90" indoorVolumeFactor="0.50" indoorLowpassGain="0.75" pitchMax="1.08"  minimalVolumeFactor="0.05" />
    <gearboxSound file="$data/sounds/transmission/transmissionCVT.wav"                     pitchOffset="0.50" volume="0.05" indoorVolumeFactor="0.62" indoorLowpassGain="0.75" pitchMax="0.95"  volumeMax="0.60"    reverseVolumeMax="0.30"/>
    <retarderSound file="$data/sounds/transmission/retarderET2015.wav"                     pitchOffset="0.48" volume="0.10" indoorVolumeFactor="0.65" indoorLowpassGain="0.80" pitchMax="0.87"  volumeMax="0.58"    minSpeed="6" />
    <honkSound       file="sounds/siren.wav" volume="4.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.75" radius="70" innerRadius="0"/>
  
    <components count="1">
        <component1 centerOfMass="0 0.65 0" solverIterationCount="10"/>
    </components>
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
   
</vehicle>
