<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<Wheel
			DefaultWheelType="maz_wheel"
			Torque="default"
			ConnectedToHandbrake="true"
		>
			<Suspension MinLimit="-0.4" Strength="0.008" />
		</Wheel>
		<FirstRowWheel
			_template="Wheel"
			SteeringAngle="28"
			Torque="full"
			ConnectedToHandbrake="false"
		>
			<Steering Castor="12" />
		</FirstRowWheel>
		<SecondRowWheel
			_template="Wheel"
			SteeringAngle="10"
			Torque="full"
			ConnectedToHandbrake="false"
		>
			<Steering Castor="4" />
		</SecondRowWheel>
	</Wheel>
	<Flare>
		<!--<HeadLightDim
			Color="(70; 61; 46) x 1.4"
			Direction="(1.0; 0; 0)"
			DirectionAngle="80"
			Size="0.5"
		/>-->
		<Marker
			Color="g(134; 82; 41) x 1.5"
			DirectionAngle="110"
			Size="0.2"
		/>
	</Flare>
</_templates>
<Truck>
	<GameData FuelCapacity="500">
		<AddonSockets>
			<KrazCart ParentFrame="BoneChassisRear" Offset="(-0.9; 0.36; 0.0)" />
			<UralCart ParentFrame="BoneChassisRear" Offset="(-1.02; 0.45; 0.0)" />
			<MazTractor ParentFrame="BoneChassisRear" />
		</AddonSockets>
		<AddonSockets>
			<KrazCartTrailer ParentFrame="BoneChassisRear" Offset="(-3.23; 1.66; 0.0)" />
			<KamazTrailer ParentFrame="BoneChassisRear" Offset="(-2.2; 1.56; 0.0)" />
			<UralCartTrailer ParentFrame="BoneChassisRear" Offset="(-3.661; 1.302; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<LoadLogsShort ParentFrame="BoneChassisRear" Offset="(-0.464; 0.36; 0.0)" />
			<LoadLogsMedium ParentFrame="BoneChassisRear" Offset="(-1.95; 2.1; 0.0)" />
			<LoadLogsLong ParentFrame="BoneChassisRear" Offset="(-0.9; 0.36; 0.0)" />
		</AddonSockets>
		<WinchSocket ParentFrame="BoneChassisRear" Offset="(-3.78; 0.79; 0)" />
		<WinchSocket ParentFrame="BoneChassisFront" Offset="(4.35; 1.155; 0)" />
	</GameData>
	<TruckData
		SteerSpeed="0.015"
		SteerResponsiveness="0.2"
		BackSteerSpeed="0.01"
		EngineStartTime="3.2"
	>
		<Damage
			Capacity="800"
			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="(1.86; 1.589; 1.3)" Velocity="(-0.6; -1.4; 3.5)" />
		<Exhaust Origin="(1.86; 1.589; -1.3)" Velocity="(-0.6; -1.4; -3.5)" />
		<Steam Origin="(0.9; 1.2; 0)" />
		<Camera CabinPos="(3.2; 2.42; 0.6)" />
		<OcclusionMap
			Texture="occlusion/chassis__da_uncmp.tga"
			Size="(10; 5.0)"
			Offset="0.3"
		/>
		<OcclusionVolume
			Size="(6.8; 3.1)"
			HeightFront="1.8"
			HeightRear="0.9"
			Offset="-0.2"
		>
			<FullOcclusion HeightFront="1.8" HeightRear="1.4" />
		</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="(2.8; 1.75363; 0.0)" />
	<PhysicsModel Mesh="maz_chassis.xml">
		<Body
			Mass="8000"
			CenterOfMassOffset="(0.0; -0.8; 0)"
			ImpactType="Truck"
		>
			<Body
				ModelFrame="BoneChassisRear"
				Mass="11000"
				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"
					PivotOffset="(1.8; 0.2; 0.0)"
				>
					<PlaneMotor
						Type="Spring"
						Spring="2200000"
						Damping="500000"
					/>
					<TwistMotor
						Type="Spring"
						Spring="400000"
						Damping="200000"
					/>
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				_template="Marker"
				Offset="(2.885; 1.745; 1.39)"
				Direction="(0; 0; 1.0)"
			/>
			<Flare
				_template="Marker"
				Offset="(2.885; 1.745; -1.39)"
				Direction="(0; 0; -1.0)"
			/>
			<Flare
				_template="Marker"
				Offset="(-3.6; 1.27; -0.83)"
				Direction="(-1.0; 0; 0)"
				ParentFrame="BoneChassisRear"
			/>
			<Flare
				_template="Marker"
				Offset="(-3.6; 1.27; 0.83)"
				Direction="(-1.0; 0; 0)"
				ParentFrame="BoneChassisRear"
			/>
		</Ignition>
		<HeadLight>
			<Flare _template="HeadLight" Offset="(4.25115; 1.75363; -0.79)" />
			<Flare _template="HeadLight" Offset="(4.25115; 1.75363; 0.79)" />
			<Flare _template="BlueStreak" Offset="(4.25115; 1.75363; -0.79)" />
			<Flare _template="BlueStreak" Offset="(4.25115; 1.75363; 0.79)" />
			<Model _template="HeadLightRay" Org="(4.25037; 1.73624; -0.79)" />
			<Model _template="HeadLightRay" Org="(4.25037; 1.73624; 0.79)" />
			<Flare
				_template="RedSignal"
				Offset="(-3.6; 1.25; 0.66)"
				ParentFrame="BoneChassisRear"
			/>
			<Flare
				_template="RedSignal"
				Offset="(-3.6; 1.25; -0.66)"
				ParentFrame="BoneChassisRear"
			/>
		</HeadLight>
		<ReverseSignals>
			<Flare
				_template="ReverseSignal"
				Offset="(-3.6; 1.25; 0.66)"
				ParentFrame="BoneChassisRear"
			/>
			<Flare
				_template="ReverseSignal"
				Offset="(-3.6; 1.25; -0.66)"
				ParentFrame="BoneChassisRear"
			/>
			<Light
				_template="ReverseSignal"
				Offset="(-3.4; 1.25; 0)"
				ParentFrame="BoneChassisRear"
			/>
		</ReverseSignals>
		<StopSignals>
			<Flare
				_template="StopSignal"
				Offset="(-3.6; 1.25; 0.66)"
				ParentFrame="BoneChassisRear"
			/>
			<Flare
				_template="StopSignal"
				Offset="(-3.6; 1.25; -0.66)"
				ParentFrame="BoneChassisRear"
			/>
			<Light
				_template="StopSignal"
				Offset="(-3.4; 1.25; 0)"
				ParentFrame="BoneChassisRear"
			/>
		</StopSignals>
	</ModelAttachments>
	<VehicleConstraint>
		<ReverseGear
			Torque="140000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.01"
		/>
		<HighGear
			Torque="140000"
			AngVelMin="1.0"
			AngVelOpt="7.0"
			AngVelMax="8.0"
			MaxDeltaAngVel="0.08"
		/>
		<Gear
			Torque="160000"
			AngVelMin="-2.0"
			AngVelOpt="0.2"
			AngVelMax="8.0"
			AutoNextLinVel="2.5"
			MaxDeltaAngVel="0.01"
		/>
		<Gear
			Torque="60000"
			AngVelMin="-1.5"
			AngVelOpt="2.8"
			AngVelMax="14.0"
			AutoNextLinVel="4.0"
			MaxDeltaAngVel="0.05"
		/>
		<Gear
			Torque="60000"
			AngVelMin="0.4"
			AngVelOpt="4.0"
			AngVelMax="18.0"
			AutoNextLinVel="6.0"
			MaxDeltaAngVel="0.05"
		/>
	</VehicleConstraint>
	<Wheels>
		<Wheel _template="FirstRowWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(2.623; 0.564; 1.091)" />
		</Wheel>
		<Wheel _template="FirstRowWheel" DiffGroup="axle0">
			<Suspension Hardpoint="(2.623; 0.564; -1.091)" />
		</Wheel>
		<Wheel _template="SecondRowWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(0.917; 0.564; 1.091)" />
		</Wheel>
		<Wheel _template="SecondRowWheel" DiffGroup="axle1">
			<Suspension Hardpoint="(0.917; 0.564; -1.091)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear"
			DiffGroup="axle2"
		>
			<Suspension Hardpoint="(-1.192; 0.564; 1.091)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear"
			DiffGroup="axle2"
		>
			<Suspension Hardpoint="(-1.192; 0.564; -1.091)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear"
			DiffGroup="axle3"
		>
			<Suspension Hardpoint="(-2.886; 0.564; 1.091)" />
		</Wheel>
		<Wheel
			_template="Wheel"
			ParentFrame="BoneChassisRear"
			DiffGroup="axle3"
		>
			<Suspension Hardpoint="(-2.886; 0.564; -1.091)" />
		</Wheel>
	</Wheels>
</Truck>
