<_templates Include="trucks">
	<Wheel>
		<SecondAxle
			_template="FirstAxle"
			SteeringAngle="24"
			SteeringCastor="4"
		/>
		<RearAxles
			ConnectedToHandbrake="true"
			SuspensionMin="-0.1"
			SuspensionMax="0.1"
			SuspensionStrength="1.0"
			Torque="default"
			Type="maz"
		/>
		<FirstAxle
			HardpointOffsetY="-0.2"
			SteeringAngle="36"
			SteeringCastor="12"
			SuspensionMin="-0.4"
			SuspensionStrength="0.009"
			Torque="full"
			Type="maz"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.764"
		HardpointDefaultZ="1.1"
	>
		<Wheel _template="FirstAxle" HardpointX="2.623" />
		<Wheel _template="FirstAxle" HardpointX="2.623" RightSide="true" />
		<Wheel _template="SecondAxle" HardpointX="0.917" />
		<Wheel _template="SecondAxle" HardpointX="0.917" RightSide="true" />
		<Wheel _template="RearAxles" HardpointX="-1.192" ParentFrame="ShoulderLeft_cdt" />
		<Wheel
			_template="RearAxles"
			HardpointX="-1.192"
			RightSide="true"
			ParentFrame="ShoulderRight_cdt"
		/>
		<Wheel _template="RearAxles" HardpointX="-2.886" ParentFrame="ShoulderLeft_cdt" />
		<Wheel
			_template="RearAxles"
			HardpointX="-2.886"
			RightSide="true"
			ParentFrame="ShoulderRight_cdt"
		/>
	</Wheels>
	<TruckData
		BackSteerSpeed="0.01"
		EngineIconMesh="env/engine_big"
		EngineIconScale="1.5"
		EngineStartDelay="3.2"
		ExhaustStartTime="2.8"
		FuelCapacity="600"
		LockClothInvertDir="true"
		LockClothOrigin="(0.5; -0.5; 0)"
		LockClothScale="1.1"
		Responsiveness="0.04"
		SteerSpeed="0.018"
	>
		<SteeringWheel Frame="BoneSteering" />
		<Steam Origin="(1.643; 1.288; 0)" />
		<Sounds _template="Default" Origin="(1.5; 1.96; 0)">
			<EngineTurbo Sound="engine/maz_turbo" />
			<EngineStop Sound="engine/maz_stop" />
			<EngineStart Sound="engine/maz_start" />
			<EngineLow Sound="engine/maz_low" />
			<EngineIdle Sound="engine/maz_idle" />
			<EngineHigh Sound="engine/maz_high" />
			<EngineHeavy Sound="engine/maz_heavy" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaustRight" MaxAngle="(2; 4; 0)" MaxFrequency="4" />
			<Shaker Frame="BoneExhaustLeft" MaxAngle="(2; 4; 0)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaftrla" SocketPointB="Shaftrlb" />
			<Shaft SocketPointA="Shaftrra" SocketPointB="Shaftrrb" />
			<Shaft SocketPointA="Shaftfla" SocketPointB="Shaftflb" />
			<Shaft SocketPointA="Shaftfra" SocketPointB="Shaftfrb" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.55"
			HeightFront="1.8"
			HeightRear="0.9"
			MinX="-3.60"
			MaxX="3.20"
		>
			<FullOcclusion HeightFront="1.8" HeightRear="1.4" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="2.20" MinX="-4.50" MaxX="4.9" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.01" Torque="220000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="3.4" />
			<Gear AngVel="1.0" />
			<Gear AngVel="2.8" />
			<Gear AngVel="3.6" />
		</Motor>
		<Intake Dir="(0.594; 0; 0.804)" Origin="(2.291; 2.157; 1.116)" Size="0.8" />
		<Intake Dir="(0.594; 0; -0.804)" Origin="(2.291; 2.157; -1.116)" Size="0.8" />
		<Intake Dir="(0.708; 0.706; 0)" Origin="(2.318; 2.899; 0)" Size="1.0" />
		<Exhaust Dir="(-0.16; -0.37; 0.92)" Origin="(1.86; 1.589; 1.3)" Speed="3.82" />
		<Exhaust Dir="(-0.16; -0.37; -0.92)" Origin="(1.86; 1.589; -1.3)" Speed="3.82" />
		<Driver Pos="(3.306; 1.788; 0.608)" SteeringWheelPos="(3.666; 2.238; 0.608)" />
		<Damage
			Capacity="800"
			SensationMin="(1.51; 2.00; -1.05)"
			SensationMax="(4.03; 2.80; 1.05)"
		/>
		<Camera>
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(59; 61; 56)"
				ControlsPos="(3.81; 2.22; 0.725)"
				ViewPos="(3.18; 2.49; 0.63)"
				WindshieldDiffuseTexture="trucks/maz535_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxleLeft4" IsIndependent="true" />
			<Axle Frame="BoneAxleRight4" IsIndependent="true" />
			<Axle Frame="BoneAxleLeft3" IsIndependent="true" />
			<Axle Frame="BoneAxleRight3" IsIndependent="true" />
			<Axle Frame="BoneAxleLeft2" IsIndependent="true" />
			<Axle Frame="BoneAxleRight2" IsIndependent="true" />
			<Axle Frame="BoneAxleLeft1" IsIndependent="true" />
			<Axle Frame="BoneAxleRight1" IsIndependent="true" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/maz535">
		<Body
			CenterOfMassOffset="(0.0; -0.8; 0)"
			ImpactType="Truck"
			Mass="8000"
		>
			<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
			<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
			<Body
				CenterOfMassOffset="(0.0; -0.2; 0)"
				ImpactType="Truck"
				Mass="9000"
				ModelFrame="BoneChassisRear_cdt"
			>
				<Constraint
					Cone="15"
					PlaneAxisLocal="(0; 0; 1.0)"
					PlaneMin="0"
					PlaneMax="0"
					TwistAxisLocal="(1.0; 0; 0)"
					TwistMin="-15"
					TwistMax="15"
					Type="Ragdoll"
				>
					<TwistMotor Damping="160000" Spring="320000" Type="Spring" />
					<PlaneMotor Damping="500000" Spring="3500000" Type="Spring" />
				</Constraint>
				<Body Collisions="None" Mass="1000" ModelFrame="ShoulderRight_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
				<Body Collisions="None" Mass="1000" ModelFrame="ShoulderLeft_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-3.4; 1.25; 0)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="StopSignal" Pos="(-3.6; 1.25; 0.66)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="StopSignal" Pos="(-3.6; 1.25; -0.66)" ParentFrame="BoneChassisRear_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-3.4; 1.25; 0)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-3.6; 1.25; 0.66)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-3.6; 1.25; -0.66)" ParentFrame="BoneChassisRear_cdt" />
			<Flare
				_template="BlueStreak"
				Dir="(-1; 0; 0)"
				Pos="(-3.6; 1.25; 0.66)"
				ParentFrame="BoneChassisRear_cdt"
			/>
			<Flare
				_template="BlueStreak"
				Dir="(-1; 0; 0)"
				Pos="(-3.6; 1.25; -0.66)"
				ParentFrame="BoneChassisRear_cdt"
			/>
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-3.4; 1.25; 0)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-3.6; 1.25; 0.66)" ParentFrame="BoneChassisRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-3.6; 1.25; -0.66)" ParentFrame="BoneChassisRear_cdt" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Dir="(0.905; -0.2; 0)" Org="(4.016; 2.968; -0.483)" />
			<Model _template="HeadLightRay" Dir="(0.905; -0.2; 0)" Org="(4.016; 2.968; 0.483)" />
			<Flare _template="HeadLight" Dir="(0.905; -0.2; 0)" Pos="(4.016; 2.968; -0.483)" />
			<Flare _template="HeadLight" Dir="(0.905; -0.2; 0)" Pos="(4.016; 2.968; 0.483)" />
			<Flare _template="BlueStreak" Dir="(0.905; -0.2; 0)" Pos="(4.016; 2.968; -0.483)" />
			<Flare _template="BlueStreak" Dir="(0.905; -0.2; 0)" Pos="(4.016; 2.968; 0.483)" />
			<!--<Flare
				Color="(70; 61; 46) x 1.4"
				Dir="(1.0; 0; 0)"
				DirAngle="80"
				Pos="(4.30; 1.755; -0.0)"KrazCartTrailer
				Size="1"
			/>-->
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Dir="(0.905; -0.2; 0)" Pos="(4.265; 1.75363; 0.0)" />
	<GameData ExcludeAddons="ural_cistern,kraz_cart">
		<WinchSocket Pos="(-3.78; 0.79; 0)" ParentFrame="BoneChassisRear_cdt" />
		<WinchSocket Pos="(0.892; 1.737; 1.348)" ParentFrame="BoneChassisFront_cdt" />
		<WinchSocket Pos="(0.892; 1.737; -1.348)" ParentFrame="BoneChassisFront_cdt" />
		<WinchSocket Pos="(4.35; 1.155; 0)" ParentFrame="BoneChassisFront_cdt" />
		<CompletionStarsDecal Dir="(1; 0; 0)" Pos="(4.251; 1.759; 0)" />
		<AddonSockets>
			<Socket Names="KrazCart" Offset="(-0.9; 0.36; 0.0)" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="MazTractor" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-3.837; 0.8; 0)" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="MazTrailerCart" Offset="(-3.837; 0.8; 0)" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsShort" Offset="(-0.364; 0.22; 0.0)" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="LoadLogsShortCrane" Offset="(-1.4; 0.36; 0.0)" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="LoadLogsMedium" Offset="(-1.4; 1.96; 0.0)" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="LoadLogsLong" Offset="(-0.9; 0.28; 0.0)" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="MazTrailer" Offset="(-1.6; 2.14; 0)" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
	</GameData>
</Truck>
