<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			DefaultWheelType="ural_wheel"
			SteeringAngle="40"
                        Torque="full"
                        ConnectedToHandbrake="false"
		>			
                            
			<Suspension MinLimit="-0.37" Strength="0.018" />
		        <Steering Castor="8" />
	      </FrontWheel>
		<RearWheel
			DefaultWheelType="ural_wheel"
			SteeringAngle="0"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			<Suspension MinLimit="-0.37" Strength="0.017" />
		</RearWheel>
	</Wheel>
	<Flare>
		<FogSignal
			Color="g(193; 184; 160)"
			Size="0.4"
			Direction="(1.0; 0; 0)"
			DirectionAngle="100"
		/>
	</Flare>

</_templates>
<Truck>
		<GameData FuelCapacity="270">
		<AddonSockets>
			<UralCart2 ParentFrame="BoneChassisRear" />
		</AddonSockets>
                 <AddonSockets>
		        <UralCartTrailer2 ParentFrame="BoneChassisRear" Offset="(-2.741; 0.67; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<LoadLogsShort ParentFrame="BoneChassisRear" Offset="(0.436; 0; 0.0)" />
		</AddonSockets>
		<WinchSocket ParentFrame="BoneChassisFront" Offset="(4.66; 1.06; -0.42)" />
		<WinchSocket ParentFrame="BoneChassisFront" Offset="(4.66; 1.06; 0.42)" />
		<WinchSocket ParentFrame="BoneChassisRear" Offset="(-2.741; 0.67; 0)" />
	</GameData>
	<TruckData
		SteerSpeed="0.03"
		SteerResponsiveness="0.05"
		BackSteerSpeed="0.005"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="600"
			SensationOrigin="(2.21; 2.12; 0)"
			SensationSize="(0.94; 0.69; 1.68)"
			ParentFrame="CabinBone"
		/>
		<Sound
			_template="Ural"
			Offset="(0.44; 0.9; 0.0)"
			Range="12.0"
		/>
		<Exhaust ParentFrame="BoneChassisFront" Origin="(0.67; 0.7; -0.67)" Velocity="(-0.6; -1.4; -3.5)" />
		<Steam Origin="(2.744; 1.22; 0)" />
		<Steam
			Origin="(4.2; 1.2; 0)"
			ParentFrame="BoneChassisFront"
			Scale="0.5"
		/>
		<Camera Center="(0.5; 0; 0)" />
		<OcclusionMap
			Texture="occlusion/chassis__da_uncmp.tga"
			Size="(7.4; 3.8)"
			Offset="1.27"
		/>
		<OcclusionVolume
			Size="(6.0; 3.0)"
			HeightFront="1.0"
			HeightRear="0.8"
		>
			<FullOcclusion HeightRear="1.2" />
		</OcclusionVolume>
		<Axles>
			<Axle
				Frame="axle1"
				LeftWheel="0"
				RightWheel="1"
			/>
			<Axle
				Frame="axle2"
				LeftWheel="2"
				RightWheel="3"
			/>
		
		</Axles>
			<WheelsSets>
		         <WheelsSet Title="ural_wheels2">
				<WheelType Type="ural_wheel2" Wheels="0,1,2,3" />
			</WheelsSet>
                        <WheelsSet Title="ural_wheels3">
				<WheelType Type="ural_wheel3" Wheels="0,1" />
	                        <WheelType Type="ural_wheel4" Wheels="2,3" />
			</WheelsSet>
                         <WheelsSet Title="highway_wheels2">
				<WheelType Type="ural_wheel33" Wheels="0,1" />
	                        <WheelType Type="ural_wheel44" Wheels="2,3" />
			</WheelsSet>
		</WheelsSets>
	</TruckData>
	<HeadLight
		_template="Default"
		ParentFrame="BoneChassisFront"
		Offset="(2.0; 0.82; 0.0)"
	/>

	<PhysicsModel Mesh="ural-43206.xml">
<Body
 Mass="4100"
 CenterOfMassOffset="(0.7; -0.2; 0)"
 ImpactType="Truck"
CreateSubstanceParams="true"
 >
 <Body
 ModelFrame="BoneChassisRear"
 Mass="5200"
 CenterOfMassOffset="(-0.5; -0.2; 0)"
 ImpactType="Truck"
CreateSubstanceParams="true"
 >
<Constraint
 Type="Ragdoll"
 PlaneAxis="(0; 0; 1.0)"
 TwistAxis="(1.0; 0; 0)"
 Cone="15"
 TwistMin="-15"
 TwistMax="15"
 PlaneMin="0"
 PlaneMax="0"
 PivotOffset="(1.8; 0.2; 0.0)"
 >
<PlaneMotor
 Type="Spring"
 Spring="590000"
 Damping="59000"
 />
 <TwistMotor
 Type="Spring"
 Spring="290000"
 Damping="59000"
 />
 </Constraint>
 </Body>
 </Body>
        </PhysicsModel>

	<ModelAttachments>
		<HeadLight>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Offset="(4.17; 1.244; -0.748)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Offset="(4.17; 1.244; 0.748)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneChassisFront"
				Offset="(4.17; 1.244; -0.748)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneChassisFront"
				Offset="(4.17; 1.244; 0.748)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneChassisFront"
				Org="(4.17; 1.244; -0.748)"
			/>
			<Model
				_template="HeadLightRay"
			        ParentFrame="BoneChassisFront"
				Org="(4.17; 1.244; 0.748)"
			/>
		</HeadLight>
		<Ignition>
			<Flare _template="RedSignal" ParentFrame="BoneChassisRear"  Offset="(-2.734; 0.993; 0.907)" />
			<Flare _template="RedSignal" ParentFrame="BoneChassisRear" Offset="(-2.734; 0.993; -0.907)" />
			<Flare
				ParentFrame="BoneChassisFront"
				_template="MarkerSignal"
				Offset="(2.516; 2.56; -0.243)"
			/>
			<Flare
				ParentFrame="BoneChassisFront"
				_template="MarkerSignal"
				Offset="(2.516; 2.56; 0.0)"
			/>
			<Flare
                                ParentFrame="BoneChassisFront"
				_template="MarkerSignal"
				Offset="(2.516; 2.56; 0.243)"
			/>
		</Ignition>
		<ReverseSignals>
			<Flare _template="ReverseSignal" ParentFrame="BoneChassisRear" Offset="(-2.734; 0.993; 0.668)" />
			<Flare _template="ReverseSignal" ParentFrame="BoneChassisRear" Offset="(-2.734; 0.993; -0.668)" />
			<Light _template="ReverseSignal" ParentFrame="BoneChassisRear" Offset="(-2.56; 0.993; 0)" />
		</ReverseSignals>
		<StopSignals>
			<Flare _template="StopSignal" ParentFrame="BoneChassisRear" Offset="(-2.734; 0.993; 0.907)" />
			<Flare _template="StopSignal" ParentFrame="BoneChassisRear" Offset="(-2.734; 0.993; -0.907)" />
			<Light _template="StopSignal" ParentFrame="BoneChassisRear" Offset="(-2.56; 0.993; 0)" />
		</StopSignals>

	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="120000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.04"
		/>
		<HighGear
			Torque="110000"
			AngVelMin="1.0"
			AngVelOpt="8.0"
			AngVelMax="10.0"
			MaxDeltaAngVel="0.08"
		/>
		<Gear
			Torque="120000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="7.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.06"
		/>
		<Gear
			Torque="40000"
			AngVelMin="-1.5"
			AngVelOpt="4.0"
			AngVelMax="14.0"
			AutoNextLinVel="4.0"
			MaxDeltaAngVel="0.1"
		/>
		<Gear
			Torque="40000"
			AngVelMin="0.4"
			AngVelOpt="6.0"
			AngVelMax="18.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="40000"
			AngVelMin="0.5"
			AngVelOpt="10.0"
			AngVelMax="26.0"
			MaxDeltaAngVel="0.05"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FrontWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(3.269; 0.15; 1.02)" />
		</Wheel>
		<Wheel _template="FrontWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(3.269; 0.15; -1.02)" />
		
		</Wheel>
		<Wheel _template="RearWheel" ParentFrame="BoneChassisRear" DiffGroup="axle2">
			<Suspension Hardpoint="(-1.025; 0.06; 1.02)" />
		</Wheel>
		<Wheel _template="RearWheel" ParentFrame="BoneChassisRear" DiffGroup="axle2">
			<Suspension Hardpoint="(-1.025; 0.06; -1.02)" />
	
		
	</Wheels>
</Truck>
