<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.25"
			SuspensionMin="-0.4"
			SuspensionStrength="0.022"
			Torque="default"
			Type="chip_rear"
		/>
		<FrontWheel
			HardpointOffsetY="-0.244"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.4"
			SuspensionStrength="0.042"
			Torque="full"
			Type="chip_front"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.662"
		HardpointDefaultZ="1.02"
	>
		<Wheel _template="FrontWheel" HardpointX="3.048" />
		<Wheel _template="FrontWheel" HardpointX="3.048" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-0.603" />
		<Wheel _template="RearWheel" HardpointX="-0.603" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.008" />
		<Wheel _template="RearWheel" HardpointX="-2.008" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.01"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="330"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; -0.1; 0)"
		LockClothScale="1.0"
		Responsiveness="0.05"
		SteerSpeed="0.02"
	>
		<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.865"
		/>
		<Steam Origin="(2.299; 1.246; 0)" />
		<Steam Origin="(4.004; 1.509; 0)" Scale="0.5" ParentFrame="BoneCabin_cdt" />
		<Sounds
			_template="Default"
			AirHissInterval="12.0"
			Origin="(3.08; 1.45; 0)"
			ParentFrame="BoneCabin_cdt"
		>
			<EngineStop Sound="engine/chip_stop" />
			<EngineStart Sound="engine/chip_start" />
			<EngineRev Sound="engine/chip_rev" />
			<EngineLow Sound="engine/chip_low" />
			<EngineIdle Sound="engine/chip_idle" />
			<EngineHigh Sound="engine/chip_high" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(2; 2; 0)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.6"
			HeightFront="1.5"
			HeightRear="0.75"
			MinX="-2.70"
			MaxX="4.20"
		>
			<FullOcclusion HeightFront="1.3" HeightRear="1.3" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.90" MinX="-3.30" MaxX="4.6" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.01" Torque="150000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="1.0" />
			<Gear AngVel="3.5" />
			<Gear AngVel="5.0" />
			<Gear AngVel="6.5" />
			<Gear AngVel="8.0" />
		</Motor>
		<LimitedFluid
			Center="(0.645; 0.937; 0.85)"
			SizeX="0.975"
			SizeY="0.389"
			SizeZ="0.695"
			Type="Box"
		/>
		<LimitedFluid
			Center="(1.47; 0.937; -0.803)"
			SizeX="1.267"
			SizeY="0.389"
			SizeZ="0.695"
			Type="Box"
		/>
		<Intake Dir="(1.0; 0; 0)" Origin="(4.276; 1.583; -0.332)" Size="0.4" />
		<Intake Dir="(1.0; 0; 0)" Origin="(4.276; 1.583; 0.332)" Size="0.4" />
		<Exhaust Dir="(-0.63; -0.002; 0.777)" Origin="(1.504; 0.671; 1.094)" Speed="3.82" />
		<Driver
			LegsOffset="(0; 0; -0.08)"
			Pos="(3.38; 2.018; 0.645)"
			SteeringWheelPos="(3.78; 2.415; 0.64)"
			ParentFrame="BoneCabin_cdt"
		/>
		<Damage
			Capacity="600"
			SensationMin="(2.548; 2.215; -0.871)"
			SensationMax="(3.947; 3.017; 0.871)"
			ParentFrame="BoneCabin_cdt"
		/>
		<Camera ParentFrame="BoneCabin_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(62; 64; 59)"
				ControlsPos="(4.0; 2.37; 0.748)"
				ViewPos="(3.3; 2.678; 0.63)"
				WindshieldDiffuseTexture="trucks/maz6317_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/maz6317">
		<Body
			CenterOfMassOffset="(-0.4; -0.2; 0)"
			ImpactType="Truck"
			Mass="8500"
		>
			<Body
				CenterOfMassOffset="(-0.2; -0.5; 0)"
				ImpactType="Truck"
				Mass="5500"
				ModelFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-22"
					MaxLimit="22"
					PivotOffset="(-2.0; -0.2; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="24000" Spring="240000" Type="Spring" />
				</Constraint>
				<Body _template="Mudguard" ModelFrame="BoneLeftMudguard_cdt">
					<Constraint AxisLocal="(1.0; 0.0; 0.0)" MinLimit="-5" MaxLimit="45" />
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneRightMudguard_cdt">
					<Constraint AxisLocal="(1.0; 0.0; 0.0)" MinLimit="-5" MaxLimit="45" />
				</Body>
				<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
				<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-2.9; 0.966; 0)" />
			<Flare _template="StopSignal" Pos="(-2.919; 0.966; 0.886)" />
			<Flare _template="StopSignal" Pos="(-2.919; 0.966; -0.886)" />
		</StopSignals>
		<Ignition>
			<Light _template="IgnitionSignalWhite" Pos="(4.8; 0.883; 0.0)" />
			<Light _template="IgnitionSignalRed" Pos="(-2.9; 0.973; 0)" />
			<Flare _template="IgnitionSignalWhite" Pos="(4.517; 0.883; 0.896)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(4.517; 0.883; -0.896)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(4.291; 1.622; 0.937)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(4.291; 1.622; -0.937" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.894; 3.217; -0.147)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.894; 3.217; 0)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.894; 3.217; 0.147)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.919; 0.973; 1.026)" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.919; 0.973; -1.026)" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(4.545; 1.081; -0.895)" ParentFrame="BoneCabin_cdt" />
			<Model _template="HeadLightRay" Org="(4.545; 1.081; 0.895)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(4.545; 1.081; -0.895)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(4.545; 1.081; 0.895)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(4.545; 1.081; -0.895)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(4.545; 1.081; 0.895)" ParentFrame="BoneCabin_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(4.073; 1.038; 0)" ParentFrame="BoneCabin_cdt" />
	<GameData
		BalancePoints="3"
		ExcludeAddons="ural_cistern"
		LogPoints="5"
	>
		<WinchSocket Pos="(4.490; 1.109; 0.002)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(-3.011; 0.811; 0.028)" />
		<WinchSocket Pos="(0.397; 0.901; 1.218)" />
		<WinchSocket Pos="(0.397; 0.901; -1.185)" />
		<CompletionStarsDecal Dir="(0.022; 0; 0.998)" Pos="(3.64; 2.034; 1.09)" />
		<AddonSockets>
			<Socket Names="KamazTrailer" Offset="(-1.2; 1.3; 0.0)" />
			<Socket Names="KamazTrailerCart" Offset="(-3.06; 0.81; 0)" />
			<Socket Names="MazTrailerCart" Offset="(-3.06; 0.81; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KrazTractor" Offset="(0; 0.12; 0)" />
			<Socket Names="KrazCartCrane" NamesBlock="KamazTrailer,KrazBackupWheel" Offset="(-0.05;0.16;0)" />
			<Socket Names="KrazCistern" Offset="(-0.1; 0.12; 0)" />
			<Socket Names="KamazCart" Offset="(-0.6; 0.2; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsShort" Offset="(0.819; 0.185; 0.0)" />
			<Socket Names="LoadLogsShortCrane" Offset="(-0.05;0.16;0)" />
			<Socket Names="LoadLogsMedium" Offset="(-0.55; 1.62; 0.0)" />
			<Socket Names="LoadLogsLong" Offset="(0; -0.05; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="ChipBackupWheel" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
	</GameData>
</Truck>
