<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			DefaultWheelType="uaz_wheel"
			SteeringAngle="40"
			Torque="full"
			ConnectedToHandbrake="false"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.04"
				Damping="0.1"
			/>
			<Steering Castor="8" />
		</FrontWheel>
		<RearWheel
			DefaultWheelType="uaz_wheel"
			SteeringAngle="0"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.04"
				Damping="0.1"
			/>
		</RearWheel>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.2" />
	</Flare>
	<Body>
		<Mudguard
			Mass="10"
			AngularDamping="3.0"
			Collisions="None"
		>
			<Constraint
				Type="Hinge"
				MinLimit="-45"
				MaxLimit="15"
				Axis="(0.0; 0.0; 1.0)"
			/>
			<Shape>
				<Box HalfExtents="(0.08; 0.12; 0.12)" Translation="(0; -0.06; 0)" />
			</Shape>
		</Mudguard>
		<driver
			Mass="10"
			AngularDamping="3.0"
			Collisions="None"
		>
			<Constraint Type="Ragdoll" TwistAxis="(0;1;0)" Cone="15">
				<AllMotor Type="Spring" Spring="500" Damping="100" />
			</Constraint> 
			<Shape>
				<Box HalfExtents="(0.1;0.1;0.1)" Translation="(0;0.8;0)" />
			</Shape>
		</driver>
	</Body>
	<Sound>
		<quad>
			<EngineStartDelay Value="1.0" />
			<ExhaustStartTime Value="1.0" />
			<ExhaustFadeStartTime Value="1.5" />
			<ExhaustStopTime Value="2.0" />
			<Handbrake Sound="truck/handbrake" />
			<EngineIdle Sound="engine/quad/idle" />
			<EngineLow Sound="engine/quad/onlow" />
			<EngineHigh Sound="engine/quad/onhigh" />
			<EngineHeavy Sound="engine/quad/engine_heavy" />
			<EngineStart Sound="engine/quad/start" />
			<EngineStop Sound="engine/quad/engine_stop" />
			<EngineRev Sound="engine/quad/rev" />
			<Reverse Sound="engine/kraz_reverse" />
			<Handbrake Sound="truck/handbrake" />
			<Gears Sound="truck/gear" />
			<DiffLock Sound="truck/difflock" />
			<Crackle Sound="truck/crackle" />
			<ChassisStress Sound="truck/stress"/>
		</quad>
	</Sound>
</_templates>
<Truck>
	<GameData Recallable="true" FuelCapacity="80">
		<WinchSocket Offset="(1.612; 0.632; 0)" />
		<WinchSocket Offset="(-1.167; 0.814; 0)" />
	</GameData>
	<TruckData
		SteerSpeed="0.02"
		SteerResponsiveness="1.0"
		BackSteerSpeed="0.06"
		EngineStartTime="1.5"
	>
		<Damage
			Capacity="300"
			SensationOrigin="(-0.29; 1.55; 0)"
			SensationSize="(1.64; 0.7; 1.6)"
		/>
		<Sound
			_template="quad"
			Offset="(0; 0; 0)"
			Range="12.0"
		/>
		<Exhaust Origin="(-1.148; 0.855; -0.243)" Velocity="(-4.6; -0.4; 0.3)" />
		<Steam Origin="(1.0; 0.9; 0)" />
		<Camera RadiusMultiplier="0.8" />
		<OcclusionMap
			Texture="occlusion/chassis_small__da_uncmp.tga"
			Size="(4.5; 3.2)"
			Offset="0.2"
		/>
		<OcclusionVolume
			Size="(3.7; 2.2)"
			HeightFront="1.0"
			HeightRear="1.0"
		/>
		<Axles>
			<Axle
				Frame="Bone004"
				LeftWheel="0"
				RightWheel="1"
			/>
			<Axle
				Frame="Bone003"
				LeftWheel="2"
				RightWheel="3"
			/>
		</Axles>
	</TruckData>
	<HeadLight _template="Small" Offset="(0.0; 0.5; 0.0)" />
	<PhysicsModel Mesh="uaz_chassis.xml">
		<Body
			Mass="1400"
			CenterOfMassOffset="(-0.5; -1.2; 0)"
			ImpactType="Truck"
		>
			<Body ModelFrame="FrontLeftMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="FrontRightMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="RearLeftMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="RearRightMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="Bone005" _template="driver" />
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Flare
				_template="HeadLight"
				ParentFrame="CabinBase"
				Offset="(1.406; 0.949; 0.429)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="CabinBase"
				Offset="(1.406; 0.949; -0.429)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="CabinBase"
				Offset="(1.406; 0.949; 0.429)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="CabinBase"
				Offset="(1.406; 0.949; -0.429)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="CabinBase"
				Org="(1.406; 0.949; 0.429)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="CabinBase"
				Org="(1.406; 0.949; -0.429)"
			/>
		</HeadLight>
	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="20000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.1"
		/>
		<HighGear
			Torque="20000"
			AngVelMin="1.0"
			AngVelOpt="10.0"
			AngVelMax="12.0"
			MaxDeltaAngVel="0.15"
		/>
		<Gear
			Torque="20000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="10.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.12"
		/>
		<Gear
			Torque="16000"
			AngVelMin="-1.5"
			AngVelOpt="2.8"
			AngVelMax="16.0"
			AutoNextLinVel="3.5"
			MaxDeltaAngVel="0.1"
		/>
		<Gear
			Torque="12000"
			AngVelMin="0.4"
			AngVelOpt="4.5"
			AngVelMax="24.0"
			AutoNextLinVel="5.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="8000"
			AngVelMin="0.5"
			AngVelOpt="8.0"
			AngVelMax="32.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="6000"
			AngVelMin="8.5"
			AngVelOpt="16.0"
			AngVelMax="48.0"
			MaxDeltaAngVel="0.05"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FrontWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(1.093; 0.351; 0.552)" />
		</Wheel>
		<Wheel _template="FrontWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(1.093; 0.351; -0.552)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(-0.7; 0.351; 0.552)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(-0.7; 0.351; -0.552)" />
		</Wheel>
	</Wheels>
</Truck>
