<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Peterbilt 388 AVENGERS</name>
        <specs>
            <power>850</power>
            <maxSpeed>105</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_truck</function>
        </functions>
        <image>Peterbilt 388 USA TFSG.dds</image>
        <price>161000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PETERBILT</brand>
        <category>trucks</category>
        <vertexBufferMemoryUsage>3542732</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>1089360</indexBufferMemoryUsage>
        <textureMemoryUsage>28049896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>CSM_Peterbilt_388_Package.i3d</filename>
        <size width="3.5" length="9" lengthOffset="-1"/>
        <components>
            <component centerOfMass="0 0.68 -0.3" solverIterationCount="10" mass="9535"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>

			<wheelConfiguration name="Chrome Wheel Package" price="0">
                <wheels autoRotateBackSpeed="5">
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="2.8" repr="wheel_LF" radius="0.55" forcePointRatio="0.5" initialCompression="25" suspTravel="0.23" spring="46" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="2.9" repr="wheel_RF" radius="0.55" forcePointRatio="0.5" initialCompression="25" suspTravel="0.23" spring="46" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="wheel_LFR" radius="0.50" initialCompression="15" suspTravel="0.12" spring="54" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="wheel_RFR" radius="0.50" initialCompression="15" suspTravel="0.12" spring="54" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.3" repr="wheel_LRR" radius="0.50" initialCompression="15" suspTravel="0.12" spring="54" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel configId="truck1" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.3" repr="wheel_RRR" radius="0.50" initialCompression="15" suspTravel="0.12" spring="54" mass="5" width="0.42" damper="40" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
   
		</wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>

<!--
        <rimColor material="8">0.98 0.98 0.98</rimColor>
-->
	</wheels>

	<lights>
	    <states>
			<state lightTypes="0" />
			<state lightTypes="0 1" />
			<state lightTypes="0 1 2" />
        </states>

        <realLights>
            <low>
                <light node="0>15|2|0|0"         lightTypes="1"/>
				<light node="0>15|2|1|0"          lightTypes="2"/>
            </low>
            <high>
				<light node="0>15|2|0|0"          lightTypes="1"/>
                <light node="0>15|2|1|0"          lightTypes="2"/>
				<reverseLight node="reverseLight" />
			</high>
        </realLights>
        <defaultLights>
<!--			<defaultLight node="Headlights" lightTypes="1 2"/>										-->
<!--				<defaultLight node="Headlights_Left" lightTypes="0"/>									-->
					<defaultLight shaderNode="0>15|2|2|0" lightTypes="1"/>
					<defaultLight shaderNode="0>15|2|2|1" lightTypes="2"/>

<!--				<defaultLight node="Headlights_Right" lightTypes="1 2"/>								-->
					<defaultLight shaderNode="0>15|2|3|0" lightTypes="1"/>
					<defaultLight shaderNode="0>15|2|3|1" lightTypes="2"/>

<!--				<defaultLight node="Dashboard_Lights_Switches_Accessories" lightTypes="0"/>				-->					
					<defaultLight shaderNode="0>6|3|2|0" lightTypes="0" intensity="5"/>							
					<defaultLight shaderNode="0>6|3|2|1" lightTypes="0" intensity="5"/>							
					<defaultLight shaderNode="0>6|3|2|2" lightTypes="0" intensity="5"/>							
					<defaultLight shaderNode="0>6|3|2|3" lightTypes="0" intensity="5"/>							
					<defaultLight shaderNode="0>6|3|2|4" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|5" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|5|16" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|6" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|7" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|8" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|9" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|10" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|11" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|12" lightTypes="0" intensity="5"/>												
					<defaultLight shaderNode="0>6|3|2|13" lightTypes="0" intensity="5"/>																	
					
<!--			<defaultLight node="Marker_Front_Headlights" lightTypes="0"/>								-->
<!--				<defaultLight node="Marker_Front_Headlights_Left" lightTypes="0"/>						-->
					<defaultLight shaderNode="0>15|5|2|6|0|0" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|2|6|0|1" lightTypes="0"/>

<!--				<defaultLight node="Marker_Front_Headlights_Right" lightTypes="0"/>						-->
					<defaultLight shaderNode="0>15|5|2|6|1|0" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|2|6|1|1" lightTypes="0"/>
			
<!--			<defaultLight node="Marker_Lights_Left" lightTypes="0"/>									-->
<!--				<defaultLight node="Marker_Lights_Hood_Cab_Sleeper_Left" lightTypes="0"/>				-->		
					<defaultLight shaderNode="0>15|5|0|0|0" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|0|0|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|0|0|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|4" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|5" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|6" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|7" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|8" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|9" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|10" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|0|11" lightTypes="0"/>			

<!--				<defaultLight node="Marker_Lights_Steps_Accessories_Left" lightTypes="0"/>				-->				
					<defaultLight shaderNode="0>15|5|0|1|0" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|0|1|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|4" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|5" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|6" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|7" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|8" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|1|9" lightTypes="0"/>			

<!--				<defaultLight node="Marker_Lights_Rear_Fender_Left" lightTypes="0"/>						-->		
					<defaultLight shaderNode="0>15|5|0|2|0" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|2|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|0|2|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|2|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|0|2|4" lightTypes="0"/>			
			
<!--				<defaultLight node="Marker_Lights_Mirrors_Left" lightTypes="0"/>						-->	
					<defaultLight shaderNode="0>15|5|0|3|0" lightTypes="0"/>			
				
<!--			<defaultLight shaderNode="Marker_Lights_Right" lightTypes="0"/>
<!--				<defaultLight node="Marker_Lights_Hood_Cab_Sleeper_Right" lightTypes="0"/>				-->				
					<defaultLight shaderNode="0>15|5|1|0|0" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|1|0|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|1|0|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|4" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|5" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|6" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|7" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|8" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|9" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|10" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|0|11" lightTypes="0"/>			
				
<!--				<defaultLight node="Marker_Lights_Steps_Accessories_Right" lightTypes="0"/>				-->			
					<defaultLight shaderNode="0>15|5|1|1|0" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|1|1|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|4" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|5" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|6" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|7" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|8" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|1|9" lightTypes="0"/>			
				
<!--				<defaultLight node="Marker_Lights_Rear_Fender_Right" lightTypes="0"/>					-->
					<defaultLight shaderNode="0>15|5|1|2|0" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|2|1" lightTypes="0"/>
					<defaultLight shaderNode="0>15|5|1|2|2" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|2|3" lightTypes="0"/>			
					<defaultLight shaderNode="0>15|5|1|2|4" lightTypes="0"/>			
				
<!--				<defaultLight node="Marker_Lights_Mirrors_Right" lightTypes="0"/>						-->		
					<defaultLight shaderNode="0>15|5|1|3|0" lightTypes="0"/>			
					
<!--			<defaultLight shaderNode="Marker_Lights_Front_Back_Top" lightTypes="0"/>						-->
<!--				<defaultLight node="Marker_Lights_Front_Bumper_Lights" lightTypes="0"/>					-->		
					<defaultLight shaderNode="0>15|5|2|0|0" lightTypes="0"/>							
					<defaultLight shaderNode="0>15|5|2|0|1" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|2" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|3" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|4" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|5" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|6" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|7" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|8" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|9" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|10" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|0|11" lightTypes="0"/>											
				
<!--				<defaultLight node="Marker_Lights_Air_Cleaner_Lights_Left" lightTypes="0"/>				-->					
					<defaultLight shaderNode="0>15|5|2|1|0" lightTypes="0"/>							
					<defaultLight shaderNode="0>15|5|2|1|1" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|1|2" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|1|3" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|1|4" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|1|5" lightTypes="0"/>															
				
<!--				<defaultLight node="Marker_Lights_Air_Cleaner_Lights_Right" lightTypes="0"/>				-->
					<defaultLight shaderNode="0>15|5|2|2|0" lightTypes="0"/>							
					<defaultLight shaderNode="0>15|5|2|2|1" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|2|2" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|2|3" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|2|4" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|2|5" lightTypes="0"/>																			
				
<!--				<defaultLight node="Marker_Lights_Cab_Lights" lightTypes="0"/>							-->
					<defaultLight shaderNode="0>15|5|2|3|5" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|3|6" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|3|7" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|3|8" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|3|9" lightTypes="0"/>											
				
<!--				<defaultLight node="Marker_Lights_License_Plate" lightTypes="0"/>						-->
					<defaultLight shaderNode="0>15|5|2|4|0" lightTypes="0"/>															
				
<!--				<defaultLight node="Marker_Lights_Air_Lines_Pole_1" lightTypes="0"/>						-->
					<defaultLight shaderNode="0>15|5|2|5|0" lightTypes="0"/>							
					<defaultLight shaderNode="0>15|5|2|5|1" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|5|2" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|5|3" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|2|5|4" lightTypes="0"/>															

<!--				<defaultLight node="Marker_Tail_Lights" lightTypes="0"/>						-->
					<defaultLight shaderNode="0>15|5|4|0" lightTypes="0"/>											
					<defaultLight shaderNode="0>15|5|4|1" lightTypes="0"/>															
					
<!--				<defaultLight node="Marker_Lights_Accent_Lights" lightTypes="0"/>						-->

			</defaultLights>
		<turnLights>
            <turnLightLeft shaderNode="0>15|0|0|3" />
			<turnLightLeft shaderNode="0>15|0|0|4" />
			<turnLightLeft shaderNode="0>15|0|0|5" />
			<turnLightLeft shaderNode="0>15|0|0|6" />			
            <turnLightRight shaderNode="0>15|0|1|3" />
			<turnLightRight shaderNode="0>15|0|1|4" />
			<turnLightRight shaderNode="0>15|0|1|5" />
			<turnLightRight shaderNode="0>15|0|1|6" />			
        </turnLights>
		<brakeLights>
			<brakeLight shaderNode="0>15|1|1" />
			<brakeLight shaderNode="0>15|1|2" />
			<brakeLight shaderNode="0>15|1|3" />
			<brakeLight shaderNode="0>15|1|4" />
			<brakeLight shaderNode="0>15|1|5" />
			<brakeLight shaderNode="0>15|5|4|0" />
			<brakeLight shaderNode="0>15|5|4|1" />			
        </brakeLights>
		<reverseLights>
            <reverseLight shaderNode="0>15|3|0" />
			<reverseLight shaderNode="0>15|3|1" />
			<reverseLight shaderNode="0>15|3|2" />
			<reverseLight shaderNode="0>15|3|3" />
			<reverseLight shaderNode="0>15|3|4" />			
			<reverseLight shaderNode="0>15|3|5" />			
        </reverseLights>
		<dashboards>
 <!--    <dashboard displayType="EMITTER" valueType="lightState" node="0>14|2|10" intensity="5" lightTypes="0" groups="MOTOR_ACTIVE"/>-->
        </dashboards>
    </lights>

	
    <enterable>
        <exitPoint node="exitPoint"/>
        <enterReferenceNode node="CSM_Peterbilt_388_Package"/>
        <characterNode node="0>13" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="player_rightFoot" targetNode="0>13|1"/>
            <target ikChain="player_leftFoot" targetNode="0>13|2"/>
            <target ikChain="player_rightArm" targetNode="0>14"/>
            <target ikChain="player_leftArm" targetNode="0>12|0|0"/>
        </characterNode>
        <cameras>
            <camera node="10|0" rotatable="true" rotateNode="10" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35"/>
            <camera node="11" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
    </enterable>


    <enterable isTabbable="true" >
        <enterReferenceNode node="exitPoint" />
        <exitPoint node="exitPoint" />

	
        <cameras>
 			<camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="6" transMax="40" translation="0 0 11" rotation="-19 180 0">

				<raycastNode node="cameraRaycastNode1"/>
				<raycastNode node="cameraRaycastNode2"/>
				<raycastNode node="cameraRaycastNode3"/>

			</camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="shadowFocusBox" />
        </cameras>

        <characterNode node="playerSkin" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="rightFoot" targetNode="playerRightFootTarget" />
            <target ikChain="leftFoot"  targetNode="playerLeftFootTarget" />
            <target ikChain="rightArm"  targetNode="playerRightHandTarget" />
            <target ikChain="leftArm"   targetNode="playerLeftHandTarget" />
        </characterNode>

        <characterTargetNodeModifier node="playerRightFootTarget" transitionTime="0.1">
            <state node="playerRightFootTargetGas"   referenceNode="gasPedal" directionReferenceNode="playerRightFootTargetGasRef"/>
            <state node="playerRightFootTargetBrake" referenceNode="brakePedal" />
        </characterTargetNodeModifier>

        <mirrors>
            <mirror node="mirror1" prio="1" />
			<mirror node="mirror3" prio="2" />
            <mirror node="mirror2" prio="1" />
			<mirror node="mirror4" prio="2" />
        </mirrors>
    </enterable>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="186"  fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="300" fillType="air" permanentConsumption="false" refillLitersPerSecond="350" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="3" wheelIndex2="4" /> <!-- back 1-2 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="5" wheelIndex2="6" /> <!-- back 3-4 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2" /> <!-- back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
		
        <motorConfigurations>
            <motorConfiguration name="850 HP tfsgroup" hp="850" price="0">
                <motor torqueScale="20" minRpm="850" maxRpm="2500" maxForwardSpeed="105" maxBackwardSpeed="10" brakeForce="12" lowBrakeForceScale="0.22" rotInertia="0.0015">
                    <torque rpm="850" torque="0.9"/>
                    <torque rpm="1000" torque="1"/>
                    <torque rpm="1450" torque="1"/>
                    <torque rpm="1900" torque="0.75"/>
                    <torque rpm="2200" torque="0.63"/>
                    <torque rpm="2500" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="8.4" maxForwardGearRatio="200" minBackwardGearRatio="32.5" maxBackwardGearRatio="200"/>
            </motorConfiguration>

            <motorConfiguration name="900 HP tfsgroup" hp="900" price="2500">
                <motor torqueScale="30" minRpm="850" maxRpm="2500" maxForwardSpeed="121" maxBackwardSpeed="10" brakeForce="12" lowBrakeForceScale="0.22" rotInertia="0.0010">
                    <torque rpm="850" torque="0.9"/>
                    <torque rpm="1000" torque="1"/>
                    <torque rpm="1450" torque="1"/>
                    <torque rpm="1900" torque="0.75"/>
                    <torque rpm="2200" torque="0.63"/>
                    <torque rpm="2500" torque="0.2"/>
				</motor>
                <transmission minForwardGearRatio="8.6" maxForwardGearRatio="200" minBackwardGearRatio="32.5" maxBackwardGearRatio="200"/>
			</motorConfiguration>

			<motorConfiguration name="1250 HP tfsgroup" hp="1250" price="5000">
                <motor torqueScale="40" minRpm="850" maxRpm="2500" maxForwardSpeed="153" maxBackwardSpeed="10" brakeForce="12" lowBrakeForceScale="0.22" rotInertia="0.0005">
                    <torque rpm="850" torque="0.9"/>
                    <torque rpm="1000" torque="1"/>
                    <torque rpm="1450" torque="1"/>
                    <torque rpm="1900" torque="0.75"/>
                    <torque rpm="2200" torque="0.63"/>
                    <torque rpm="2500" torque="0.2"/>
				</motor>
                <transmission minForwardGearRatio="1" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
			</motorConfiguration>
		</motorConfigurations>

        <motorStartDuration>2500</motorStartDuration>		

		<exhaustEffects>
			<exhaustEffect node="exhaustParticles_R" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 50" minRpmScale="0.01" maxRpmScale="0.3" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
			<exhaustEffect node="exhaustParticles_L" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 50" minRpmScale="0.01" maxRpmScale="0.3" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
		</exhaustEffects>
 
		
        <sounds externalSoundFile="$data/sounds/vehicles/engine/lizard_truck/lizard_truck.xml" />

	</motorized>
	
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>
 
		<steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="540"/>
 
        <dashboards>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="brakePedal" minRot="0 180 0" maxRot="-30 180 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="gasPedal" minRot="0 180 0" maxRot="-30 180 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
	</drivable>
	
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="1250">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="5000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <attacherJoints>
        <attacherJoint node="semitrailerAttacherJoint_King_Pin" jointType="semitrailer" lowerRotLimit="12 175 12" allowsJointLimitMovement="false" allowsLowering="false" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
		</attacherJoint>
        <attacherJoint node="trailerAttacherJointLow_Rear" jointType="trailerLow" lowerRotLimit="10 80 50" lowerTransLimit="0 0 0" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
		</attacherJoint>
        <attacherJoint node="trailerAttacherJointLow_Front" jointType="trailerLow" lowerRotLimit="10 80 50" lowerTransLimit="0 0 0" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
		</attacherJoint>

        <sounds>

           <attachSound template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />				
        </sounds>
    </attacherJoints>

    <honk>
        <sound template="HONK_LIZARD_TRUCK" linkNode="0>" />
    </honk>

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>	
	
    <animations>
		<animation name="rpmDisplay">
            <part node="rpmDisplay" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -250"/>
        </animation>
		
		<animation name="speedDisplay">
            <part node="speedDisplay" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -107"/>
        </animation>

        <animation name="fuelDisplay">
            <part node="fuelDisplay" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -90"/>
        </animation>

        <animation name="engineTempDisplay">
            <part node="engineTempDisplay" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -90"/>
        </animation>

        <animation name="exhaustTempDisplay">
            <part node="exhaustTempDisplay" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -90"/>
        </animation>		
		
        <animation name="airPressure1Display">
            <part node="airPressure1Display" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -250"/>
        </animation>		

        <animation name="airPressure2Display">
            <part node="airPressure2Display" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -250"/>
        </animation>				
	</animations>
	
    <cylindered>
        <movingParts>
		</movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>

    <suspensions>
	</suspensions>


    <ai>
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>

	
<!--	
   <baseMaterial>
        <material name="truckL_mat" baseNode="truckL_vis">
            <shaderParameter name="colorMat0" value="SHARED_GREY2"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="4000" useDefaultColors="true" defaultColorIndex="16">
        <material name="truckL_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
-->
	
    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-5.4" maxZ="3.6" yOffset="0.6" />
    </foliageBending>	
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

<!--END Script reworked above this point^^^***********************************************************************************************************************-->

<!--START - i3dMapping................................................................................................................-->

    <i3dMappings>

			
		
		<i3dMapping id="CSM_Peterbilt_388_Package" node="0>" />
        <i3dMapping id="wheel_LF" node="0>0" />
        <i3dMapping id="wheel_RF" node="0>1" />
        <i3dMapping id="wheel_LFR" node="0>2" />
        <i3dMapping id="wheel_RFR" node="0>3" />
        <i3dMapping id="wheel_LRR" node="0>4" />
        <i3dMapping id="wheel_RRR" node="0>5" />

        <i3dMapping id="Cab_Hood_Paint_Black" node="0>6|5|0" />
        <i3dMapping id="Cab_Hood_CSM_Trucking_Paint_Wrap" node="0>6|5|1" />		
        <i3dMapping id="Cab_Hood_Otis_Little_Bear_Paint_Wrap" node="0>6|5|2" />		
        <i3dMapping id="Cab_Hood_GRIM_Paint_Wrap" node="0>6|5|3" />
        <i3dMapping id="Cab_Hood_USA_Paint_Wrap" node="0>6|5|4" />
        <i3dMapping id="Cab_Hood_CAT_Paint_Wrap" node="0>6|5|5" />
		
        <i3dMapping id="Sleeper_Paint_Black" node="0>6|5|6" />
        <i3dMapping id="Sleeper_CSM_Trucking_Paint_Wrap" node="0>6|5|7" />
        <i3dMapping id="Sleeper_Otis_Little_Bear_Paint_Wrap" node="0>6|5|8" />		
        <i3dMapping id="Sleeper_GRIM_Paint_Wrap" node="0>6|5|9" />
        <i3dMapping id="Sleeper_USA_Paint_Wrap" node="0>6|5|10" />		
        <i3dMapping id="Sleeper_CAT_Paint_Wrap" node="0>6|5|11" />		
		
        <i3dMapping id="mirror1" node="0>6|6|0" />		
		<i3dMapping id="mirror2" node="0>6|6|1" />
        <i3dMapping id="mirror3" node="0>6|6|2|0" />		
		<i3dMapping id="mirror4" node="0>6|6|3|0" />		
		
		<i3dMapping id="attacherJointSemiTrailer_1" node="0>7" />
        <i3dMapping id="exitPoint" node="0>8" />
        <i3dMapping id="aiCollisionTrigger" node="0>9" />
        <i3dMapping id="outdoorCameraTarget" node="0>10" />
        <i3dMapping id="outdoorCamera1" node="0>10|0" />		
        <i3dMapping id="cameraRaycastNode1" node="0>10|1" />
        <i3dMapping id="cameraRaycastNode2" node="0>10|2" />
        <i3dMapping id="cameraRaycastNode3" node="0>10|3" />
        <i3dMapping id="shadowFocusBox" node="0>10|4" />
        <i3dMapping id="indoorCamera1" node="0>11" />		
		<i3dMapping id="steeringWheel" node="0>12|0"/>
        <i3dMapping id="player_leftArm" node="0>12|0|0"/>
        <i3dMapping id="playerLeftHandTarget" node="0>12|0|0"/>		

        <i3dMapping id="player_Skin" node="0>13|0"/>
        <i3dMapping id="player_rightFoot" node="0>13|1"/>
        <i3dMapping id="playerRightFootTarget" node="0>13|1" />		
        <i3dMapping id="player_leftFoot" node="0>13|2"/>
        <i3dMapping id="playerLeftFootTarget" node="0>13|2" />
        <i3dMapping id="gasPedal" node="0>13|3" />
        <i3dMapping id="brakePedal" node="0>13|4" />
        <i3dMapping id="playerRightFootTargetGas" node="0>13|5" />		
        <i3dMapping id="playerRightFootTargetGasRef" node="0>13|6" />
        <i3dMapping id="playerRightFootTargetBrake" node="0>13|7" />
        <i3dMapping id="player_rightArm" node="0>14"/>
        <i3dMapping id="playerRightHandTarget" node="0>14"/>
		
<!--        <i3dMapping id="wiper01" node="0>0|8|8|0" />-->
<!--        <i3dMapping id="wiper02" node="0>0|8|9|0" />-->				
		
        <i3dMapping id="Lights" node="0>15" />
        <i3dMapping id="turnlightStaticLeft" node="0>15|0|0" />
        <i3dMapping id="turnlightStaticRight" node="0>15|0|1" />
        <i3dMapping id="reverseLightStatic" node="0>15|0|2" />
        <i3dMapping id="backlightStatic" node="0>15|0|3" />
        <i3dMapping id="frontlightStatic" node="0>15|0|4" />
        <i3dMapping id="frontLightLow" node="0>15|1|0" />
        <i3dMapping id="highBeamLow" node="0>15|1|1" />
        <i3dMapping id="frontLightHigh" node="0>15|1|2" />
        <i3dMapping id="highBeamHigh" node="0>15|1|3" />
        <i3dMapping id="turnLightLeftBack" node="0>15|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>15|2|1" />
        <i3dMapping id="turnLightLeftFront" node="0>15|2|2" />
        <i3dMapping id="turnLightRightFront" node="0>15|2|3" />
        <i3dMapping id="backLightsHigh1" node="0>15|3|0" />
        <i3dMapping id="reverseLight" node="0>15|4|0" />

        <i3dMapping id="Headlights" node="0>15|2" />				
        <i3dMapping id="Headlights_Left" node="0>15|2|2" />				
        <i3dMapping id="Headlights_Right" node="0>15|2|3" />		
		
        <i3dMapping id="Marker_Lights" node="0>15|5" />		
        <i3dMapping id="Marker_Lights_Left" node="0>15|5|0" />		
		<i3dMapping id="Marker_Lights_Hood_Cab_Sleeper_Left" node="0>15|5|0|0" />		
		<i3dMapping id="Marker_Lights_Steps_Accessories_Left" node="0>15|5|0|1" />		
		<i3dMapping id="Marker_Lights_Rear_Fender_Left" node="0>15|5|0|2" />				
		<i3dMapping id="Marker_Lights_Mirrors_Left" node="0>15|5|0|3" />						
		
        <i3dMapping id="Marker_Lights_Right" node="0>15|5|1" />		
		<i3dMapping id="Marker_Lights_Hood_Cab_Sleeper_Right" node="0>15|5|1|0" />		
		<i3dMapping id="Marker_Lights_Steps_Accessories_Right" node="0>15|5|1|1" />		
		<i3dMapping id="Marker_Lights_Rear_Fender_Right" node="0>15|5|1|2" />				
		<i3dMapping id="Marker_Lights_Mirrors_Right" node="0>15|5|1|3" />						
		
        <i3dMapping id="Marker_Lights_Front_Back_Top" node="0>15|5|2" />		
        <i3dMapping id="Marker_Lights_Front_Bumper_Lights" node="0>15|5|2|0" />		
        <i3dMapping id="Marker_Lights_Air_Cleaner_Lights_Left" node="0>15|5|2|1" />				
        <i3dMapping id="Marker_Lights_Air_Cleaner_Lights_Right" node="0>15|5|2|2" />						
        <i3dMapping id="Marker_Lights_Cab_Lights" node="0>15|5|2|3" />								
        <i3dMapping id="Marker_Lights_License_Plate" node="0>15|5|2|4" />										
        <i3dMapping id="Marker_Lights_Air_Lines_Pole_1" node="0>15|5|2|5" />												

        <i3dMapping id="Marker_Front_Headlights" node="0>15|5|2|6" />														
        <i3dMapping id="Marker_Front_Headlights_Left" node="0>15|5|2|6|0" />														
        <i3dMapping id="Marker_Front_Headlights_Right" node="0>15|5|2|6|1" />														
		
        <i3dMapping id="Marker_Lights_Accent_Lights" node="0>15|5|3" />				
		
		<i3dMapping id="turnLightLeftBack" node="0>15|0|0|1|0" />
        <i3dMapping id="turnLightRightBack" node="0>15|0|0|1|0" />

		<i3dMapping id="Headlights_Low_Beam_Front_Right" node="0>15|2|0|0" />
        <i3dMapping id="Headlights_Low_Beam_Front_Left" node="0>15|2|0|0|0" />
        <i3dMapping id="Headlights_High_Beam_Front_Right" node="0>15|2|1|0" />
        <i3dMapping id="Headlights_High_Beam_Front_Left" node="0>15|2|1|0|0" />		
		
		<i3dMapping id="exhaustParticles_R" node="0>16" />
		<i3dMapping id="exhaustParticles_L" node="0>17" />

		<i3dMapping id="rpmDisplay" node="0>18|0" />
		<i3dMapping id="speedDisplay" node="0>18|1" />
		<i3dMapping id="fuelDisplay" node="0>18|2" />		
		<i3dMapping id="engineTempDisplay" node="0>18|3" />
		<i3dMapping id="exhaustTempDisplay" node="0>18|4" />
		<i3dMapping id="airPressure1Display" node="0>18|5" />
		<i3dMapping id="airPressure2Display" node="0>18|6" />
		
        <i3dMapping id="semitrailerAttacherJoint_King_Pin" node="0>21" />		
        <i3dMapping id="trailerAttacherJointLow_Rear" node="0>23" />
        <i3dMapping id="trailerAttacherJointLow_Front" node="0>25" />			
		
	</i3dMappings>
<!--END - i3dMapping................................................................................................................--> 

 <!--Non converted elements:


<?xml version="1.0"?>

<vehicle>
<motorConfigurations>
<motorConfiguration hp="1154918"/>
<motorConfiguration hp="1222854" dailyUpkeep="3500"/>
<motorConfiguration hp="2238810" dailyUpkeep="5000"/>
</motorConfigurations>
<fuelUsage>
110</fuelUsage>
<lights>
<states>
0 1 2</states>
</lights>
<indoorHud>
<speed animName="speedDisplay"/>
<rpm animName="rpmDisplay"/>
<fuel animName="fuelDisplay"/>
</indoorHud>
<exhaustEffects>
<exhaustEffect xzRotationOffset="0 0"/>
<exhaustEffect xzRotationOffset="0 0"/>
</exhaustEffects>
<motorSoundRun2 file="sound/run.wav" pitchOffset="0.7" volume="0.1" pitchMax="1.65" volumeMax="1"/>
<compressionSound file="sound/bremse.wav" pitchOffset="1" volume="1.5"/>
</vehicle>

-->
</vehicle>
