<_templates Include="trucks">
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.5" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.65"
		HardpointDefaultZ="1.02"
	>
		<Wheel
			Type="koleso_mercedes"
			HardpointOffsetY="-0.55"
			HardpointX="-0.7"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.7"
			Torque="full"			
			SuspensionStrength="0.025"
			SuspensionDamping="0.5"
		/>
		<Wheel
			Type="koleso_mercedes"
			HardpointOffsetY="-0.55"
			HardpointX="-0.7"
			RightSide="true"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.7"
			Torque="full"			
			SuspensionStrength="0.025"
			SuspensionDamping="0.5"
		/>
		<Wheel
			ConnectedToHandbrake="true"
			Type="koleso_mercedes_double"
			HardpointOffsetY="-0.45"
			HardpointZ="0.88"				
			HardpointX="-4.207"
			SuspensionMin="-0.5"
			SuspensionStrength="0.025"
			ParentFrame="BoneRama_cdt"			
			Torque="default"
			SuspensionDamping="0.5"
		/>
		<Wheel
			ConnectedToHandbrake="true"
			Type="koleso_mercedes_double"
			HardpointOffsetY="-0.45"
			HardpointZ="0.88"				
			HardpointX="-4.207"
			RightSide="true"
			SuspensionMin="-0.5"
			SuspensionStrength="0.025"
			ParentFrame="BoneRama_cdt"			
			Torque="default"
			SuspensionDamping="0.5"
		/>
		<Wheel
			ConnectedToHandbrake="true"
			Type="koleso_mercedes_double"
			HardpointOffsetY="-0.45"
			HardpointZ="0.88"				
			HardpointX="-5.6"
			SuspensionMin="-0.5"
			SuspensionStrength="0.025"
			ParentFrame="BoneRama_cdt"			
			Torque="default"
			SuspensionDamping="0.5"
		/>
		<Wheel
			ConnectedToHandbrake="true"
			Type="koleso_mercedes_double"
			HardpointOffsetY="-0.45"
			HardpointZ="0.88"				
			HardpointX="-5.6"
			RightSide="true"
			SuspensionMin="-0.5"
			SuspensionStrength="0.025"
			ParentFrame="BoneRama_cdt"			
			Torque="default"
			SuspensionDamping="0.5"
		/>	
</Wheels>
	<TruckData
		SteerSpeed="0.023"
		EngineStartDelay="2.0"
		ExhaustStartTime="1.1"
		FuelCapacity="500"
		Responsiveness="1.0"
		BackSteerSpeed="0.02"
	>
		<Steam Origin="(0.2; 0.2; 0)" />
		<Steam Origin="(0.2; 0.2; 0)" Scale="0.5" />
		<Sounds
			_template="Default"
			AirHissInterval="16.0"
			EngineHeavyVolume="0.4"
			Origin="(3.25; 1.14; 0)"
			ParentFrame="BoneCabinBase_cdt"
		>
			<Reverse _inheritRemove="true" />
			<EngineStop Sound="engine/freightliner_stop" />
			<EngineStart Sound="engine/freightliner_start" />
			<EngineRev Sound="engine/ural_rev" />
			<EngineNeutral Sound="engine/kamaz_neutral" />
			<EngineLow Sound="engine/freightliner_low" />
			<EngineIdle Sound="engine/freightliner_idle" />
			<EngineHigh Sound="engine/freightliner_heavy" />
			<EngineHeavy Sound="engine/freightliner_heavy" />
		</Sounds>
		<OcclusionVolume
			HalfSizeZ="1.3"
			HeightFront="0.2"
			HeightRear="0.7"
			MinX="-3.50"
			MaxX="1.50"
		>
			<FullOcclusion HeightRear="1.0" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.6" MinX="-4.0" MaxX="1.1" />
		<Motor MaxDeltaAngVel="0.1" Torque="370000">
			<ReverseGear AngVel="1.4" />
			<HighGear AngVel="8.0" />
			<Gear AngVel="1.4" />
			<Gear AngVel="3.5" />
			<Gear AngVel="5.8" />
			<Gear AngVel="7.5" />
			<Gear AngVel="8.9" />
			<Gear AngVel="12.9" />
		</Motor>
		<Exhaust Dir="(-2.00; -0.37; 2.0)" Origin="(-2.029; 0.433;  1.135)" Speed="1.77" />		
		<Damage
			Capacity="1200"
			SensationMin="(0.16; 5.67; -0.95)"
			SensationMax="(1.07; 9.27; 0.95)"
		/>
		<Driver Pos="(-0.4; 2.0; 0.75)" SteeringWheelPos="(0.16; 2.36; 0.7)" ParentFrame="BoneCabin_cdt" />		
		<Camera ParentFrame="BoneCabin_cdt">
			<Cockpit
				_template="Default"		        
				ControlsDiffuse="g(65; 59; 51)"
				ControlsPos="(0.6; 2.3; 0.738)"				
				ViewPos="(-0.6; 2.8; 0.65)"				
				WindshieldDiffuseTexture="trucks/kamaz4310_glass__d_a.tga"			
			/>
		</Camera>
		<Axles>
		    <Axle Frame="BoneAxle1" LeftWheel="2" RightWheel="3" />	
			<Axle Frame="BoneAxle2" LeftWheel="4" RightWheel="5" />
		</Axles>	
	</TruckData>
	<PhysicsModel Mesh="trucks/Mercedes_benz_actors_6x4">
		<Body ImpactType="Truck" Mass="10000"  CenterOfMassOffset="(-2.2; -0.5; 0)" >
			<Body ImpactType="Truck" Mass="1800" ModelFrame="BoneCabin_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-2"
					MaxLimit="2"
					Type="Hinge"
				>
					<Motor Damping="20000" Spring="280000" Type="Spring" />
				</Constraint>
			<Body
					Collisions="None"
					Mass="150"
					ModelFrame="BoneRul_cdt"
					ParentFrame="BoneCabin_cdt"
				>
					<Constraint
						AxisLocal="(0;-1;0)"
						MinLimit="-*"
						MaxLimit="*"
						Name="ChassisSteer"
						Type="Hinge"
						ParentFrame="BoneCabin_cdt"
					>
						<Motor
							Damping="0.5"
							Force="350"
							Tau="0.04"
							Type="Position"
						/>
					</Constraint>
				</Body>				
			</Body>	
		    <Body ImpactType="Truck" Mass="2500" ModelFrame="BoneRama_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-8"
					MaxLimit="8"
					Type="Hinge"
				>
					<Motor Damping="50000" Spring="220000" Type="Spring" />
				</Constraint>
			</Body>			
		</Body>
	</PhysicsModel>
		<ModelAttachments>
		<ReverseSignals>
			<Light
				Pos="(-6.325; 0.0; 0)"
				ParentFrame="BoneRama_cdt"
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-6.325; 0.62; 0.756)"
				ParentFrame="BoneRama_cdt"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.2"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-6.325; 0.62; -0.775)"
				ParentFrame="BoneRama_cdt"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.2"
				SizeAtDay="0.4"
			/>
		</ReverseSignals>				
		<Ignition>						
			  <Flare
				Pos="(-6.325; 0.62; -0.97)"
				Color="g(255; 0; 0) "
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="0.15"
				SizeAtDay="0.1"
				ParentFrame="BoneRama_cdt"
			/>
			  <Flare
				Pos="(-6.325; 0.62; 0.97)"
				Color="g(255; 0; 0) "
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="0.15"
				SizeAtDay="0.1"
				ParentFrame="BoneRama_cdt"
			/>
            <Flare
				Pos="(0.30; 3.45; -0.85)"
				Color="g(234; 222; 221) "
				Dir="(1.0; 0; 0)"
				DirAngle="90"
				Size="0.15"
				SizeAtDay="0.1"
				ParentFrame="BoneCabin_cdt"
			/>
			 <Flare
				Pos="(0.30; 3.45; 0.85)"
				Color="g(234; 222; 221) "
				Dir="(1.0; 0; 0)"
				DirAngle="90"
				Size="0.15"
				SizeAtDay="0.1"
				ParentFrame="BoneCabin_cdt"
			/>
			8888
			  <Flare
				Pos="(0.75; 0.63; -0.95)"
				Color="g(193; 184; 0)"
				Dir="(1.0; 0; 0)"
				DirAngle="90"
				Size="0.25"
				SizeAtDay="0.2"				
			/>
			 <Flare
				Pos="(0.75; 0.63; 0.95)"
				Color="g(193; 184; 0)"
				Dir="(1.0; 0; 0)"
				DirAngle="90"
				Size="0.25"
				SizeAtDay="0.2"
			/>
		</Ignition>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-6.325; 0.0; 0)" />
			<Flare _template="StopSignal" Pos="(-6.325; 0.62; -0.8)" ParentFrame="BoneRama_cdt" />
			<Flare _template="StopSignal" Pos="(-6.325; 0.62;  0.8)" ParentFrame="BoneRama_cdt" />		
		</StopSignals>	  
	  <HeadLight>
	        <Model Pos="(0.716; 0.817; 0.988)" Dir="(0.1; -0.01; 0)" Mesh="env/light_ray" ParentFrame="BoneChassisFront_cdt" />
			<Model Pos="(0.716; 0.817; -0.997)" Dir="(0.1; -0.01; 0)" Mesh="env/light_ray" ParentFrame="BoneChassisFront_cdt" />
			<Flare
				Pos="(0.716; 0.817; 0.988)"
				Color="g(141; 133; 117) x 2"
				Dir="(1.0; 0; 0)"
				DirAngle="250"
				Size="0.35"
			/>
			<Flare
				Pos="(0.716; 0.817; -0.997)"
				Color="g(141; 133; 117) x 2"
				Dir="(1.0; 0; 0)"
				DirAngle="250"
				Size="0.35"
			/>		
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.58; 1.275; 0.0)" />
	<GameData BalancePoints="1" ExcludeAddons="trailer_tent">
		<WinchSocket Pos="(0.772; 0.806; -0.471)" />
		<WinchSocket Pos="(0.772; 0.806; 0.471)" />
		<WinchSocket Pos="(-3.52; 0.806; -0.471)" />
		<WinchSocket Pos="(-3.52; 0.806; 0.471)" />		
		<WinchSocket Pos="(-6.6; 0.76; 0)" />
		<AddonSockets>
			<Socket Names="pricep" Offset="(-4.55; 1.06; 0)" />			
			<Socket Names="muka" Offset="(-4.7; 1.1; 0)" />		
			<Socket Names="leosovoz" Offset="(-4.3; 0.9; 0)" />			
			<Socket Names="krone" Offset="(-4.65; 1.0; 0)" />
		</AddonSockets>	
		<AddonSockets>
			<Socket Names="Bumper light L4" Offset="(-4.7; -0.32; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Mayak3" Offset="(0.8; 0.4; 0.0)" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
</Truck>
