<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<Wheel
			DefaultWheelType="maz2_wheel"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			<Suspension
				MinLimit="-0.2"
				Strength="0.028"
				HardpointOffset="-0.1"
			/>
		</Wheel>
		<FirstRowWheel
			_template="Wheel"
			SteeringAngle="38"
			Torque="full"
			ConnectedToHandbrake="false"
		>
			<Steering Castor="22" />
			<Suspension Strength="0.024" />
		</FirstRowWheel>
		<SecondRowWheel
			_template="Wheel"
			SteeringAngle="20"
			Torque="full"
			ConnectedToHandbrake="false"
		>
			<Steering Castor="14" />
			<Suspension Strength="0.015" />
		</SecondRowWheel>
	</Wheel>
	<Flare>
		<Marker
			Color="g(134; 82; 41) x 1.5"
			DirectionAngle="110"
			Size="0.2"
		/>
	</Flare>
</_templates>
<Truck>
	<GameData FuelCapacity="800">
		<AddonSockets>
			<Maz2Tractor ParentFrame="BoneChassisTail_cdt" />
			<Maz2Utility ParentFrame="BoneChassisRear_cdt" />
			<KrazCart ParentFrame="BoneChassisRear_cdt" Offset="(-1.9; 0.36; 0.0)" />
			<UralCart ParentFrame="BoneChassisRear_cdt" Offset="(-2.02; 0.45; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Maz2CraneSupport ParentFrame="CabinBone" />
		</AddonSockets>
		<AddonSockets>
			<KrazCartTrailer ParentFrame="BoneChassisRear_cdt" Offset="(-4.23; 1.66; 0.0)" />
			<KamazTrailer ParentFrame="BoneChassisRear_cdt" Offset="(-3.2; 1.56; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<LoadLogsShort ParentFrame="BoneChassisRear_cdt" Offset="(-1.464; 0.36; 0.0)" />
			<LoadLogsMedium ParentFrame="BoneChassisRear" Offset="(-2.95; 2.1; 0.0)" />
			<LoadLogsLong ParentFrame="BoneChassisRear_cdt" Offset="(-1.9; 0.36; 0.0)" />
		</AddonSockets>
		<WinchSocket ParentFrame="BoneChassisTail_cdt" Offset="(-4.593; 0.752; 0)" />
		<WinchSocket ParentFrame="BoneChassisFront_cdt" Offset="(5.452; 1.245; 0)" />
	</GameData>
	<TruckData
		SteerSpeed="0.015"
		SteerResponsiveness="0.2"
		BackSteerSpeed="0.01"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="1000"
			SensationOrigin="(2.27; 2.4; 0)"
			SensationSize="(3.52; 0.8; 2.1)"
		/>
		<Sound
			_template="Maz2"
			Offset="(1.5; 1.96; 0.0)"
			Range="12.0"
		/>
		<Exhaust Origin="(2.143; 1.54; 1.45)" Velocity="(-2.0; -3.0; 1.2)" />
		<Exhaust Origin="(2.143; 1.54; -1.45)" Velocity="(-2.0; -3.0; -1.2)" />
		<Steam Origin="(0.9; 1.2; 0)" />
		<Camera RadiusMultiplier="1.1" CabinPos="(3.2; 2.42; 0.6)" />
		<OcclusionMap
			Texture="occlusion/chassis__da_uncmp.tga"
			Size="(12; 5.0)"
			Offset="0.2"
			ParentFrame="BoneChassisRear_cdt"
		/>
		<OcclusionVolume
			Size="(8.4; 3.5)"
			HeightFront="1.4"
			HeightRear="0.9"
			Offset="0"
			ParentFrame="BoneChassisRear_cdt"
		>
			<FullOcclusion HeightFront="1.8" HeightRear="1.7" />
		</OcclusionVolume>
		<Axles>
			<Axle Frame="BoneAxleLeft4" SingleWheel="0" />
			<Axle Frame="BoneAxleRight4" SingleWheel="1" />
			<Axle Frame="BoneAxleLeft3" SingleWheel="2" />
			<Axle Frame="BoneAxleRight3" SingleWheel="3" />
			<Axle Frame="BoneAxleLeft2" SingleWheel="4" />
			<Axle Frame="BoneAxleRight2" SingleWheel="5" />
			<Axle Frame="BoneAxleLeft1" SingleWheel="6" />
			<Axle Frame="BoneAxleRight1" SingleWheel="7" />
		</Axles>
		<Shakers>
			<Shaker
				Frame="BoneExhaustRight"
				MaxAngle="(2; 4; 0)"
				MaxFrequency="4"
			/>
			<Shaker
				Frame="BoneExhaustLeft"
				MaxAngle="(2; 4; 0)"
				MaxFrequency="4"
			/>
		</Shakers>
	</TruckData>
	<HeadLight _template="Default" Offset="(3.8; 1.636; 0.0)" />
	<PhysicsModel Mesh="maz2_chassis.xml">
		<Body Mass="8000" ImpactType="Truck">
			<Body
				ModelFrame="BoneChassisRear_cdt"
				Mass="12000"
				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="6400000"
						Damping="240000"
					/>
					<TwistMotor
						Type="Spring"
						Spring="1200000"
						Damping="120000"
					/>
				</Constraint>
				<Body
					ModelFrame="BoneChassisTail_cdt"
					Mass="6000"
					CenterOfMassOffset="(0.0; -0.2; 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="2400000"
							Damping="60000"
						/>
						<TwistMotor
							Type="Spring"
							Spring="600000"
							Damping="60000"
						/>
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				_template="Marker"
				Offset="(5.121; 1.655; -1.61)"
				Direction="(0; 0; -1.0)"
			/>
			<Flare
				_template="Marker"
				Offset="(5.121; 1.655; 1.61)"
				Direction="(0; 0; 1.0)"
			/>
		</Ignition>
		<HeadLight>
			<!--<Flare _template="HeadLight" Offset="(5.229; 1.64; -1.5)" />
			<Flare _template="HeadLight" Offset="(5.229; 1.64; 1.5)" />
			<Flare _template="BlueStreak" Offset="(5.229; 1.64; -1.5)" />
			<Flare _template="BlueStreak" Offset="(5.229; 1.64; 1.5)" />-->
			<Model _template="HeadLightRay" Org="(5.447; 1.318; -1.313)" />
			<Model _template="HeadLightRay" Org="(5.447; 1.318; 1.313)" />
			<Flare _template="HeadLight" Offset="(5.447; 1.318; -1.313)" />
			<Flare _template="HeadLight" Offset="(5.447; 1.318; 1.313)" />
			<Flare _template="BlueStreak" Offset="(5.447; 1.318; -1.313)" />
			<Flare _template="BlueStreak" Offset="(5.447; 1.318; 1.313)" />		
		</HeadLight>
	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="180000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.003"
		/>
		<HighGear
			Torque="180000"
			AngVelMin="1.0"
			AngVelOpt="7.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.004"
		/>
		<Gear
			Torque="240000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.002"
		/>
		<Gear
			Torque="60000"
			AngVelMin="-1.5"
			AngVelOpt="2.8"
			AngVelMax="14.0"
			AutoNextLinVel="4.0"
			MaxDeltaAngVel="0.01"
		/>
		<Gear
			Torque="60000"
			AngVelMin="0.4"
			AngVelOpt="3.5"
			AngVelMax="18.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.01"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FirstRowWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(2.725; 0.738; 1.323)" />
		</Wheel>
		<Wheel _template="FirstRowWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(2.725; 0.738; -1.323)" />
		</Wheel>
		<Wheel
			_template="SecondRowWheel"
			DiffGroup="axle1"
			ParentFrame="BoneChassisRear_cdt"
		>
			<Suspension Hardpoint="(0.543; 0.738; 1.323)" />
		</Wheel>
		<Wheel
			_template="SecondRowWheel"
			DiffGroup="axle1"
			ParentFrame="BoneChassisRear_cdt"
		>
			<Suspension Hardpoint="(0.543; 0.738; -1.323)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear_cdt"
			DiffGroup="axle2"
		>
			<Suspension Hardpoint="(-2.14; 0.738; 1.323)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear_cdt"
			DiffGroup="axle2"
		>
			<Suspension Hardpoint="(-2.14; 0.738; -1.323)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisTail_cdt"
			DiffGroup="axle3"
		>
			<Suspension Hardpoint="(-3.899; 0.738; 1.323)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisTail_cdt"
			DiffGroup="axle3"
		>
			<Suspension Hardpoint="(-3.899; 0.738; -1.323)" />
		</Wheel>
	</Wheels>
</Truck>
