<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			DefaultWheelType="kraz_wheel"
			ConnectedToHandbrake="true"
			SteeringAngle="50"
			Torque="full"
			ParentFrame="CabinBone"
		>
			<Suspension MinLimit="-0.4" Strength="0.024" />
			<Steering Castor="8" />
		</FrontWheel>
		<RearWheel
			DefaultWheelType="kraz_wheel"
			ConnectedToHandbrake="true"
			SteeringAngle="-40"
			Torque="default"
		>
			<Suspension MinLimit="-0.4" Strength="0.02" />
		</RearWheel>
	</Wheel>
</_templates>
<Truck>
	<GameData FuelCapacity="3300">
		<AddonSockets>
			<KrazCartTrailer Offset="(-2.33; 1.3; 0.0)" />
			<UralCartTrailer Offset="(-2.424; 0.942; 0.0)" />
			<KamazTrailer Offset="(-1.2; 1.2; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<KrazСabinProtector ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazCabinBackupWheel ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazCabinLights ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazExhaust ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazCraneSupport ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazCrane />
		</AddonSockets>
		<AddonSockets>
			<KrazCart />
		</AddonSockets>
		<AddonSockets>
			<LoadLogsShort Offset="(0.436; 0; 0.0)" />
			<LoadLogsMedium Offset="(-0.75; 1.74; 0.0)" />
			<LoadLogsLong />
		</AddonSockets>
		<WinchSocket ParentFrame="CabinBone" Offset="(4.75; 0.78; 0)" />
		<WinchSocket Offset="(-2.38; 1.1; 0)" />
		<!--<WinchSocket Offset="(1; 2.5; 0)" />-->
	</GameData>
	<TruckData
		SteerSpeed="0.03"
		SteerResponsiveness="0.05"
		BackSteerSpeed="0.005"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="600"
			SensationOrigin="(2.25; 2.34; 0)"
			SensationSize="(0.95; 0.64; 1.54)"
			ParentFrame="CabinBone"
		/>
		<Sound
			_template="Kraz"
			Offset="(0.44; 0.9; 0.0)"
			Range="12.0"
		/>
		<Exhaust Origin="(1.35; 0.79; 1.11)" Velocity="(-0.6; -1.4; 3.5)" />
		<Steam Origin="(1.5; 0.9; 0)" />
		<Steam
			Origin="(4.0; 1.5; 0)"
			ParentFrame="CabinBone"
			Scale="0.5"
		/>
		<OcclusionMap
			Texture="occlusion/chassis__da_uncmp.tga"
			Size="(8.8; 3.8)"
			Offset="1.1"
		/>
		<OcclusionVolume
			Size="(7.0; 3.1)"
			HeightFront="1.3"
			HeightRear="0.75"
			Offset="0.9"
		>
			<FullOcclusion HeightFront="1.1" HeightRear="1.3" />
		</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="Small wheels">
				<WheelType Type="uaz_wheel" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="Truck wheels">
				<WheelType Type="ural_wheel" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="highway Double wheels">
				<WheelType Type="kamaz_wheel_double" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="Wider Double wheels">
				<WheelType Type="kraz_wheel_double" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="Chained Double wheels">
				<WheelType Type="zil_wheel_double_chained" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="BIG Front wheels">
				<WheelType Type="maz2_wheel" Wheels="0,1" />
			</WheelsSet>
			<WheelsSet Title="BIG Front and BACK">
				<WheelType Type="maz2_wheel" Wheels="0,1" />
				<WheelType Type="maz_wheel" Wheels="4,5" />
			</WheelsSet>
			<WheelsSet Title="BIG Front and Middle">
				<WheelType Type="maz2_wheel" Wheels="0,1" />
				<WheelType Type="maz_wheel" Wheels="2,3" />
			</WheelsSet>
			<WheelsSet Title="BIG Front and big back">
				<WheelType Type="maz2_wheel" Wheels="0,1" />
				<WheelType Type="maz_wheel_WIDER" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="BIG GOOD GRIP">
				<WheelType Type="maz_wheel_WIDER" Wheels="0,1" />
				<WheelType Type="maz_wheel_WIDER" Wheels="2,3,4,5" />
			</WheelsSet>
		</WheelsSets>
		<Shakers>
			<Shaker
				Frame="ExhaustBone"
				MaxAngle="(2; 2; 0)"
				MaxFrequency="4"
			/>
		</Shakers>
	</TruckData>
	<HeadLight
		_template="Default"
		ParentFrame="Cabin"
		Offset="(2.8; 2.0; 0.0)"
	/>
	<PhysicsModel Mesh="kraz_chassis.xml">
		<Body
			Mass="6500"
			CenterOfMassOffset="(0.4; 0; 0)"
			ImpactType="Truck"
		>
			<Body
				ModelFrame="CabinBone"
				Mass="5500"
				CenterOfMassOffset="(-0.5; -0.3; 0)"
				ImpactType="Truck"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 1.0)"
					TwistAxis="(1.0; 0; 0)"
					ConeMin="0"
					ConeMax="15"
					TwistMin="-15"
					TwistMax="15"
					PlaneMin="0"
					PlaneMax="0"
					PivotOffset="(-2.0; -0.2; 0.0)"
				>
					<PlaneMotor
						Type="Spring"
						Spring="800000"
						Damping="8000"
					/>
					<TwistMotor
						Type="Spring"
						Spring="640000"
						Damping="16000"
					/>
				</Constraint>
				<Body
					ModelFrame="LeftMudguardBone"
					Mass="10"
					AngularDamping="3.0"
					Collisions="None"
				>
					<Constraint
						Type="Hinge"
						MinLimit="-45"
						MaxLimit="5"
						Axis="(0.0; 0.0; 1.0)"
					/>
				</Body>
				<Body
					ModelFrame="RightMudguardBone"
					Mass="10"
					AngularDamping="3.0"
					Collisions="None"
				>
					<Constraint
						Type="Hinge"
						MinLimit="-45"
						MaxLimit="5"
						Axis="(0.0; 0.0; 1.0)"
					/>
				</Body>
			</Body>
		</Body>
		<Model
			Mesh="trucks/maz2_wheel.xml"
			MeshType="Wheel"
			Dir="(-1.0; 0; 0)"
			ParentFrame="CabinBone"
			Org="(1.331; 1.907; -0.634)"
		/>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				ParentFrame="Cabin"
				_template="MarkerSignal"
				Offset="(2.576; 2.75; -0.17)"
			/>
			<Flare
				ParentFrame="Cabin"
				_template="MarkerSignal"
				Offset="(2.576; 2.75; 0.0)"
			/>
			<Flare
				ParentFrame="Cabin"
				_template="MarkerSignal"
				Offset="(2.576; 2.75; 0.17)"
			/>
		</Ignition>
		<HeadLight>
			<Flare
				_template="HeadLight"
				ParentFrame="Cabin"
				Offset="(4.4; 1.44; -0.78)"
			/>
			<Flare
				_template="HeadLight"
				ParentFrame="Cabin"
				Offset="(4.4; 1.44; 0.78)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Offset="(4.4; 1.44; -0.78)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Offset="(4.4; 1.44; 0.78)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="Cabin"
				Org="(4.4; 1.44; -0.78)"
			/>
			<Model
				_template="HeadLightRay"
				ParentFrame="Cabin"
				Org="(4.4; 1.44; 0.78)"
			/>
		</HeadLight>
	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="125000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.02"
		/>
		<HighGear
			Torque="125000"
			AngVelMin="1.0"
			AngVelOpt="7.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.04"
		/>
		<Gear
			Torque="125000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.02"
		/>
		<Gear
			Torque="45000"
			AngVelMin="-1.5"
			AngVelOpt="3.5"
			AngVelMax="14.0"
			AutoNextLinVel="4.0"
			MaxDeltaAngVel="0.04"
		/>
		<Gear
			Torque="45000"
			AngVelMin="0.4"
			AngVelOpt="5.0"
			AngVelMax="18.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.04"
		/>
		<Gear
			Torque="45000"
			AngVelMin="0.5"
			AngVelOpt="8.0"
			AngVelMax="26.0"
			MaxDeltaAngVel="0.04"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FrontWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(3.8; 0.3; 1.06)" />
		</Wheel>
		<Wheel _template="FrontWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(3.8; 0.3; -1.06)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(-0.49; 0.3; 1.06)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(-0.49; 0.3; -1.06)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle2">
			<Suspension Hardpoint="(-1.93; 0.3; 1.06)" />
		</Wheel>
		<Wheel _template="RearWheel" DiffGroup="axle2">
			<Suspension Hardpoint="(-1.93; 0.3; -1.06)" />
		</Wheel>
	</Wheels>
</Truck>
