<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			DefaultWheelType="deutz_wheel_f"
			SteeringAngle="28"
			Torque="full"
			ParentFrame="cdt"
			ConnectedToHandbrake="false"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.02"
				HardpointOffset="-0.1"
			/>
			<Steering Castor="4" />
		</FrontWheel>		
		<FrontWheel2
			DefaultWheelType="deutz_wheel_f"
			SteeringAngle="28"
			Torque="full"
			ParentFrame="cdt"
			ConnectedToHandbrake="false"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.02"
				HardpointOffset="-0.1"
			/>
			<Steering Castor="4" />
		</FrontWheel2>
		<RearWheel
			DefaultWheelType="deutz_wheel_r"
			SteeringAngle="0"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			
			<Suspension
				MinLimit="-0.1"
				MaxLimit="0.1"
				Strength="0.0089"
				
			/>
			<Softness ForceScale="0.8" MaxAccel="0.1" />
		</RearWheel>
		<RearWheel2
			DefaultWheelType="deutz_wheel_r"
			SteeringAngle="0"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			
			<Suspension
				MinLimit="-0.1"
				MaxLimit="0.1"
				Strength="0.0089"
				
			/>
			<Softness ForceScale="0.8" MaxAccel="0.1" />
		</RearWheel2>
	</Wheel>
	<Flare>
		<MarkerRed 
			Color="g(122; 61; 0) x 1.5" 
			Size="0.1" 
			Direction="(-1;0;0)"
			DirectionAngle="100"
		/> 
		<StopSignal
			Color="(150; 5; 5) x 2.0"
			Direction="(-1.0; 0; 0)"
			DirectionAngle="90"
			Size="0.1"
			SizeAtDay="0.1"
		/>
		<ReverseSignal
			Color="g(255; 255; 255) x 0.5"
			Direction="(-1.0; 0; 0)"
			DirectionAngle="90"
			Size="0.1"
			SizeAtDay="0.1"
		/>
	</Flare>
	
	
</_templates>
<Truck>
	<GameData Recallable="true" FuelCapacity="560" Title="LR90" Description="Desc." >

		<AddonSockets>
            <Deutzweght Offset="(2.941; 0.579; 0.0)" />
            <Deutzweght2 Offset="(2.941; 1.0; 0.0)" />			
		</AddonSockets>
		<AddonSockets>
			<TowBall Offset="(-2.164; 0.58; 0,0)" />
			<Deutztractor Offset="(-3.8; 1.1; 0,0)" />				
		</AddonSockets>	
		<AddonSockets>
	
		</AddonSockets>	
		
		<AddonSockets>
			<LogTrailer Offset="(-2.264; 0.58; 0,0)" />					
			<KamazTrailer Offset="(-5.0; 1.35; 0.0)" />	
		</AddonSockets>
				
		<AddonSockets>
			<LoadLogsMedium Offset="(-5.4; 1.9; 0.0)" />		
		</AddonSockets>	

		
		<WinchSocket Offset="(-2.244; 0.463; 0.0)" />
		<WinchSocket Offset="(2.069; 1.135; -0.0)" />
		
	</GameData>
	<TruckData
		SteerSpeed="0.02"
		SteerResponsiveness="1.0"
		BackSteerSpeed="0.06"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="1200"
			SensationOrigin="(0.747; 2.1; 0)"
			SensationSize="(0.747; 1.1; 1.68)"
		/>
		<Sound
			_template="Deutz"
			Offset="(0.81; 0.9; 0.0)"
			Range="12.0"
		/>
		<Exhaust Origin="(0.147; 3.033; 0.802)" Velocity="(3; 4; 3)" />	
		<Exhaust Origin="(0.147; 3.033; 0.802)" Velocity="(3; 4; 3)" />			
		<Steam Origin="(1.0; 0.9; 0)" />
		<Camera RadiusMultiplier="0.8" />
		<OcclusionMap
			Texture="occlusion/chassis_small__da_uncmp.dds"
			Size="(5.0; 3.2)"
			Offset="0.09"
		/>
		<OcclusionVolume
			Size="(3.8; 2.4)"
			HeightFront="0.5"
			HeightRear="0.75"
		/>
		<Axles>
			<Axle
				Frame="AxelBone"
				LeftWheel="0"
				RightWheel="1"
			/>
			<Axle Frame="axlerear" SingleWheel="2,3" />
			
		</Axles>
		<Shakers>
			<Shaker
				Frame="pweghtbone"
				MaxAngle="(2; 2; 0)"
				MaxFrequency="2"
			/>
			<Shaker
				Frame="zweghtbone"
				MaxAngle="(1; 1; 1)"
				MaxFrequency="4"
			/>
			<Shaker
				Frame="mirrorbone"
				MaxAngle="(1; 1; 1)"
				MaxFrequency="2"
			/>
				
		</Shakers>
	</TruckData>
	<PhysicsModel Mesh="deutz.xml">
		<Body Mass="5100" ImpactType="Truck" >
		<Body ModelFrame="driverbone" Mass="10" >
					<Shape>
						<Box HalfExtents="(0.3; 0.3; 0.3)" Translation="(0; 1; 0)" />
					</Shape>
					<Constraint Type="Ragdoll" TwistAxis="(0;1;0)" Cone="5">
						<AllMotor Type="Spring" Spring="100" Damping="20" />
					</Constraint>  
		</Body>
			
		
</Body>		
	</PhysicsModel>
	
	<HeadLight
		_template="Default"
		ParentFrame="BoneCabinBase_cdt"
		Offset="(2.2; 1.4; 0.0)"
	/>
	
	<ModelAttachments>
		<HeadLight>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(0.245; 2.384; 0.802)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(0.245; 2.384; -0.802)"
			/>
			
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(0.267; 2.392; 0.829)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(0.267; 2.392; -0.84)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(-0.179; 3.113; 0.319)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(-0.179; 3.113; -0.331)"
			/>			
			
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(0.245; 2.384; 0.802)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(0.245; 2.384; -0.802)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(0.128; 3.099; 0.309)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(0.128; 3.099; -0.309)"
			/>

			<Flare _template="WSignal" Offset="(2.118; 1.906; -0.179)" />
			<Flare _template="WSignal" Offset="(2.118; 1.906; -0.092)" />
			<Flare _template="WSignal" Offset="(2.118; 1.906; -0.006)" />
			<Flare _template="WSignal" Offset="(2.118; 1.906; 0.081)" />
			<Flare _template="WSignal" Offset="(2.118; 1.906; 0.167)" />			
			<Flare _template="WSignal" Offset="(1.932; 1.516; -0.154)" />
			<Flare _template="WSignal" Offset="(1.932; 1.516; 0.142)" />			

			
			<Flare _template="RedSignal" Offset="(-2.225; 2.0; 0.802)" />
			<Flare _template="RedSignal" Offset="(-2.225; 2.0; -0.802)" />
		</HeadLight>	
		<ReverseSignals>
			<Flare _template="ReverseSignal" Offset="(-1.796; 3.121; 0.422)" />
			<Flare _template="ReverseSignal" Offset="(-1.796; 3.121; -0.434)" />
			<Light _template="ReverseSignal" Offset="(-1.796; 3.121; 0.422)" />
			<Light _template="ReverseSignal" Offset="(-1.796; 3.121; -0.434)" />
		</ReverseSignals>
		<StopSignals>
			<Flare _template="StopSignal" Offset="(-2.225; 2.0; 0.802)" />
			<Flare _template="StopSignal" Offset="(-2.225; 2.0; -0.802)" />
			<Light _template="StopSignal" Offset="(-2.225; 2.0; 0.802)" />
			<Light _template="StopSignal" Offset="(-2.225; 2.0; -0.802" />
		</StopSignals>
		</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="150000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.1"
		/>
		<HighGear
			Torque="50000"
			AngVelMin="1.0"
			AngVelOpt="10.0"
			AngVelMax="12.0"
			MaxDeltaAngVel="0.15"
		/>
		<Gear
			Torque="70000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="10.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.12"
		/>
		<Gear
			Torque="70000"
			AngVelMin="-1.5"
			AngVelOpt="2.8"
			AngVelMax="16.0"
			AutoNextLinVel="3.5"
			MaxDeltaAngVel="0.1"
		/>
		<Gear
			Torque="52000"
			AngVelMin="0.4"
			AngVelOpt="4.5"
			AngVelMax="24.0"
			AutoNextLinVel="5.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="48000"
			AngVelMin="0.5"
			AngVelOpt="8.0"
			AngVelMax="32.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.05"
		/>

	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FrontWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(1.41; 0.95; 1.0)" 	/>
		</Wheel>
		<Wheel _template="FrontWheel2" DiffGroup="axle1">
			<Suspension Hardpoint="(1.41; 0.95; -1.0)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle2">
			<Suspension Hardpoint="(-1.58; 0.95; 1.0)" />
		</Wheel>
		<Wheel _template="RearWheel2" DiffGroup="axle3">
			<Suspension Hardpoint="(-1.58; 0.95; -1.0)" />
		</Wheel>
	</Wheels>
</Truck>
