<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			DefaultWheelType="kamaz_wheel"
			SteeringAngle="40"
			Torque="full"
			ParentFrame="BoneCabinBase_cdt"
			ConnectedToHandbrake="false"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.02"
				HardpointOffset="-0.1"
			/>
			<Steering Castor="8" />
		</FrontWheel>
		<RearWheel
			DefaultWheelType="kamaz_wheel_double"
			SteeringAngle="0"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			<Suspension
				MinLimit="-0.3"
				Strength="0.02"
				HardpointOffset="-0.1"
			/>
		</RearWheel>
	</Wheel>
	<Flare>
		<FogSignal
			Color="g(193; 184; 160)"
			Size="0.4"
			Direction="(1.0; 0; 0)"
			DirectionAngle="100"
		/>
	</Flare>
</_templates>
<Truck>
	<GameData FuelCapacity="350">
		<AddonSockets>
			<UralCart Offset="(0.628; -0.15; 0.0)" />
			<KrazCart Offset="(0.749; -0.24; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<KamazTrailer Offset="(0; 0.91; 0.0)" />
			<UralCartTrailer Offset="(-2.133; 0.792; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<LoadLogsShort Offset="(1.064; -0.15; 0.0)" />
			<LoadLogsMedium Offset="(-0.302; 1.55; 0.0)" />
		</AddonSockets>
		<WinchSocket ParentFrame="BoneCabinBase_cdt" Offset="(3.9; 0.46; -0.65)" />
		<WinchSocket ParentFrame="BoneCabinBase_cdt" Offset="(3.9; 0.46; 0.65)" />
		<WinchSocket ParentFrame="BoneChassis_cdt" Offset="(-1.87; 0.881; 0)" />
	</GameData>
	<TruckData
		SteerSpeed="0.02"
		SteerResponsiveness="1.0"
		BackSteerSpeed="0.06"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="600"
			SensationOrigin="(3.26; 2.18; 0)"
			SensationSize="(1.34; 0.9; 1.9)"
		/>
		<Sound
			_template="Kamaz"
			Offset="(0.81; 0.9; 0.0)"
			Range="12.0"
		/>
		<Exhaust Origin="(0.894; 0.377; 0.822)" Velocity="(-1.0; -1.0; 3.5)" />
		<Steam Origin="(2.744; 1.22; 0)" />
		<Steam
			Origin="(4.2; 1.2; 0)"
			ParentFrame="BoneCabin_cdt"
			Scale="0.5"
		/>
		<Camera Center="(0.4; 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="AxleBone1"
				LeftWheel="0"
				RightWheel="1"
			/>
			<Axle
				Frame="AxleBone2"
				LeftWheel="2"
				RightWheel="3"
			/>
			<Axle
				Frame="AxleBone3"
				LeftWheel="4"
				RightWheel="5"
			/>
		</Axles>
		<WheelsSets>
			<WheelsSet Title="offroad_wheels">
				<WheelType Type="ural_wheel" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
		</WheelsSets>
	</TruckData>
	<HeadLight
		_template="Default"
		ParentFrame="BoneCabinBase_cdt"
		Offset="(2.0; 0.82; 0.0)"
	/>
	<PhysicsModel Mesh="kamaz_chassis.xml">
		<Body
			Mass="4000"
			CenterOfMassOffset="(-1.2; -0.2; 0)"
			ImpactType="Truck"
		>
			<Body
				ModelFrame="BoneCabinBase_cdt"
				Mass="3000"
				CenterOfMassOffset="(-0.2; 0; 0)"
				ImpactType="Truck"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 1.0)"
					TwistAxis="(1.0; 0; 0)"
					Cone="15"
					TwistMin="-15"
					TwistMax="15"
					PlaneMin="0"
					PlaneMax="0"
				>
					<PlaneMotor
						Type="Spring"
						Spring="800000"
						Damping="8000"
					/>
					<TwistMotor
						Type="Spring"
						Spring="640000"
						Damping="16000"
					/>
				</Constraint>
				<Body
					ModelFrame="BoneCabin_cdt"
					Mass="1000"
					CenterOfMassOffset="(0; -0.4; 0)"
					ImpactType="Truck"
				>
					<Constraint
						Type="Ragdoll"
						PlaneAxis="(0; 0; 1.0)"
						TwistAxis="(0; 1.0; 0)"
						Cone="5"
						PlaneMin="-5"
						PlaneMax="5"
					>
						<PlaneMotor
							Type="Spring"
							Spring="100000"
							Damping="16000"
						/>
						<ConeMotor
							Type="Spring"
							Spring="100000"
							Damping="16000"
						/>
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<!-- Top lights -->
			<Flare
				ParentFrame="BoneCabin_cdt"
				Offset="(3.93; 2.78; 0.298)"
				_template="MarkerSignal"
			/>
			<Flare
				ParentFrame="BoneCabin_cdt"
				Offset="(3.93; 2.78; 0)"
				_template="MarkerSignal"
			/>
			<Flare
				ParentFrame="BoneCabin_cdt"
				Offset="(3.93; 2.78; -0.298)"
				_template="MarkerSignal"
			/>
			<!-- Cabin bottom lights -->
			<Flare
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.55; 0.465; 0.87)"
				_template="FogSignal"
			/>
			<Flare
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.55; 0.465; -0.87)"
				_template="FogSignal"
			/>
			<Light
				ParentFrame="BoneCabinBase_cdt"
				Offset="(3.0; 0.6; 0.0)"
				Direction="(1.0; -0.2; 0)"
				Color="g(253; 240; 226) x 8"
				InnerCone="40"
				OuterCone="80"
				AttenEnd="4"
			/>
			<Flare _template="RedSignal" Offset="(-2.12; 0.454; 0.615)" />
			<Flare _template="RedSignal" Offset="(-2.12; 0.454; -0.615)" />
		</Ignition>
		<HeadLight>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.51; 0.74; 1.0)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.51; 0.74; -1.0)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.51; 0.74; 1.0)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="BoneCabinBase_cdt"
				Offset="(4.51; 0.74; -1.0)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(4.51; 0.74; 1.0)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="BoneCabinBase_cdt"
				Org="(4.51; 0.74; -1.0)"
			/>
			<Flare _template="RedSignal" Offset="(-2.12; 0.454; 0.615)" />
			<Flare _template="RedSignal" Offset="(-2.12; 0.454; -0.615)" />
		</HeadLight>
		<ReverseSignals>
			<Flare _template="ReverseSignal" Offset="(-2.12; 0.454; 0.615)" />
			<Flare _template="ReverseSignal" Offset="(-2.12; 0.454; -0.615)" />
			<Light _template="ReverseSignal" Offset="(-1.9; 0.754; 0)" />
		</ReverseSignals>
		<StopSignals>
			<Flare _template="StopSignal" Offset="(-2.12; 0.454; 0.8)" />
			<Flare _template="StopSignal" Offset="(-2.12; 0.454; -0.8)" />
			<Light _template="StopSignal" Offset="(-1.9; 0.754; 0)" />
		</StopSignals>
	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="90000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.1"
		/>
		<HighGear
			Torque="100000"
			AngVelMin="1.0"
			AngVelOpt="8.0"
			AngVelMax="10.0"
			MaxDeltaAngVel="0.12"
		/>
		<Gear
			Torque="90000"
			AngVelMin="-2.0"
			AngVelOpt="1.0"
			AngVelMax="8.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.08"
		/>
		<Gear
			Torque="30000"
			AngVelMin="-1.5"
			AngVelOpt="4.0"
			AngVelMax="14.0"
			AutoNextLinVel="4"
			MaxDeltaAngVel="0.1"
		/>
		<Gear
			Torque="30000"
			AngVelMin="0.4"
			AngVelOpt="6.0"
			AngVelMax="22.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="20000"
			AngVelMin="0.5"
			AngVelOpt="10.0"
			AngVelMax="32.0"
			MaxDeltaAngVel="0.05"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FrontWheel">
			<Suspension Hardpoint="(3.297; 0.3; 1.1)" />
		</Wheel>
		<Wheel _template="FrontWheel">
			<Suspension Hardpoint="(3.297; 0.3; -1.1)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(0.155; 0.3; 1.0)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(0.155; 0.3; -1.0)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(-1.163; 0.3; 1.0)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(-1.163; 0.3; -1.0)" />
		</Wheel>
	</Wheels>
</Truck>
