<_templates Include="trucks">
	<Wheel>
		<RearAxles
			ConnectedToHandbrake="true"			
			SuspensionMin="-0.38"
			HardpointOffsetY="-0.15"
			SuspensionStrength="0.03"
			SuspensionDamping="0.28"
			Torque="default"
			Type="maz_big"
		/>
		<SecondAxle
		    ConnectedToHandbrake="true"
			_template="FirstAxle"
			SteeringAngle="35"
			SteeringCastor="5"
		/>		
		<FirstAxle	
			SteeringAngle="38"
			SteeringCastor="5"
			SuspensionMin="-0.38"
			HardpointOffsetY="-0.15"
			SuspensionStrength="0.02"
			SuspensionDamping="0.19"
			Type="maz_big"
			Torque="full"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.69"
		HardpointDefaultZ="1.33"
	>
		<Wheel _template="FirstAxle" HardpointX="2.725" />
		<Wheel _template="FirstAxle" HardpointX="2.725" RightSide="true" />
		<Wheel _template="SecondAxle" HardpointX="0.543" ParentFrame="BoneChassisRear_cdt" />
		<Wheel _template="SecondAxle" HardpointX="0.543" RightSide="true" ParentFrame="BoneChassisRear_cdt" />
		<Wheel _template="RearAxles" HardpointX="-2.14" ParentFrame="BoneChassisRear_cdt" />
		<Wheel _template="RearAxles" HardpointX="-2.14" RightSide="true" ParentFrame="BoneChassisRear_cdt" />
		<Wheel _template="RearAxles" HardpointX="-3.899" ParentFrame="BoneChassisTail_cdt" />
		<Wheel _template="RearAxles" HardpointX="-3.899" RightSide="true" ParentFrame="BoneChassisTail_cdt" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.022"
		DiffLockType="Always"
		EngineIconMesh="env/engine_big"
		EngineIconScale="1.5"
		EngineStartDelay="3.2"
		ExhaustStartTime="2.8"
		FuelCapacity="840"
		LockClothInvertDir="true"
		LockClothOrigin="(0.5; -0.75; 0)"
		LockClothScale="1.1"
		Responsiveness="0.5"
		SteerSpeed="0.019"
	>
		<SteeringWheel Frame="BoneSteering" />
		<Steam Origin="(2.573; 1.2; 0)" />
		<Sounds _template="Default" Origin="(3.4; 1.8; 0)">
			<EngineStop Sound="engine/maz_stop" />
			<EngineStart Sound="engine/maz_start" />
			<EngineLow Sound="engine/maz_high" />
			<EngineIdle Sound="engine/maz_big_idle" />
			<EngineHigh Sound="engine/maz_big_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="Shaftrla" SocketPointB="Shaftrlb" />
			<Shaft SocketPointA="Shaftrra" SocketPointB="Shaftrrb" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.75"
			HeightFront="1.4"
			HeightRear="0.9"
			MinX="-4.20"
			MaxX="4.20"
			ParentFrame="BoneChassisRear_cdt"
		>
			<FullOcclusion HeightFront="1.8" HeightRear="1.4" />
		</OcclusionVolume>
		<OcclusionMap
			HalfSizeZ="2.50"
			MinX="-5.7"
			MaxX="5.0"
			ParentFrame="BoneChassisRear_cdt"
		/>
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="1.02" Torque="430000" EngineResponsiveness="0.4" ClutchDelay="0.09" >
			<ReverseGear AngVel="0.8" />
			<HighGear AngVel="6.5" />
			<Gear AngVel="0.65" />
			<Gear AngVel="2.75" />
			<Gear AngVel="4.85" />
		</Motor>
		<LimitedFluid
			Center="(-0.8; 1.131; 1.199)"
			SizeX="0.861"
			SizeY="0.619"
			SizeZ="0.737"
			Type="Box"
		/>
		<LimitedFluid
			Center="(-0.8; 1.131; -1.199)"
			SizeX="0.861"
			SizeY="0.619"
			SizeZ="0.737"
			Type="Box"
		/>
		<Intake Dir="(1.0; 0; 0)" Origin="(5.342; 1.562; 0)" Size="0.8" />
		<Intake Dir="(1.0; 0; 0)" Origin="(5.342; 1.842; 0)" Size="0.8" />
		<Intake Dir="(0.033; 0.222; 0.975)" Origin="(2.406; 2.227; 1.607)" Size="0.8" />
		<Intake Dir="(0.033; 0.222; -0.975)" Origin="(2.406; 2.227; -1.607)" Size="0.8" />
		<Exhaust Dir="(-0.25; -0.5; 0.65)" Origin="(2.143; 1.54; 1.45)" Speed="4.5" />
		<Exhaust Dir="(-0.25; -0.5; -0.65)" Origin="(2.143; 1.54; -1.45)" Speed="4.5" />
		<Driver Pos="(4.239; 1.689; 1.154)" SteeringWheelPos="(4.599; 2.139; 1.154)" ParentFrame="BoneChassisFront_cdt" />
		<Damage
			Capacity="1000"
			SensationMin="(1.8; 2.2; -1.0)"
			SensationMax="(4.0; 3.0; 1.0)"
		/>
		<Camera Center="(-0.5; 0; 0)" ParentFrame="BoneChassisFront_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(72; 65; 65)"
				ControlsPos="(4.743; 2.13; 1.275)"
				LimitsHor="(-0.96; 1.08)"
				ViewPos="(4.15; 2.41; 1.16)"
				WindshieldDiffuseTexture="trucks/maz7310_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</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/maz7310">
		<Body ImpactType="Truck" Mass="12000" CenterOfMassOffset="(-1.6; -0.1; 0)" >
			<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
			<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
			<Body ImpactType="Truck" Mass="5000" CenterOfMassOffset="(-1.3; 0; 0)" 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="400000" Spring="2000000" Type="Spring" />
					<PlaneMotor Damping="800000" Spring="9000000" Type="Spring" />
				</Constraint>
				<Body
					CenterOfMassOffset="(-0.4; 0; 0)"
					ImpactType="Truck"
					Mass="5000"
					ModelFrame="BoneChassisTail_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="40000" Spring="400000" Type="Spring" />
						<PlaneMotor Damping="80000" Spring="4000000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Light _template="IgnitionSignalWhite" Pos="(6.4; 1.315; 0.0)" ParentFrame="BoneChassisFront_cdt"/>
			<Flare _template="IgnitionSignalWhite" Pos="(5.48; 1.313; 1.515)" ParentFrame="BoneChassisFront_cdt"/>
			<Flare _template="IgnitionSignalWhite" Pos="(5.48; 1.313; -1.515" ParentFrame="BoneChassisFront_cdt" />
		</Ignition>	
		<HeadLight>
			<Model _template="HeadLightRay" Org="(5.256; 1.636; -1.473)" />
			<Model _template="HeadLightRay" Org="(5.256; 1.636; 1.473)" />
			<Flare _template="HeadLight" Pos="(5.255; 1.637; -1.471)" Size="0.5" />
			<Flare _template="HeadLight" Pos="(5.255; 1.637; 1.471)" Size="0.5" />
			<Flare _template="BlueStreak" Pos="(5.255; 1.637; -1.471)" />
			<Flare _template="BlueStreak" Pos="(5.255; 1.637; 1.471)" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(5.232; 1.636; 0.0)" />
	<GameData BalancePoints="5" LogPoints="6">
		<WinchSocket Pos="(-4.593; 0.752; 0)" ParentFrame="BoneChassisTail_cdt" />
		<WinchSocket Pos="(1.33; 1.732; 1.603)" ParentFrame="BoneChassisFront_cdt" />
		<WinchSocket Pos="(1.33; 1.732; -1.603)" ParentFrame="BoneChassisFront_cdt" />		
		<WinchSocket Pos="(5.55; 1.245; 0)" ParentFrame="BoneChassisFront_cdt" />
		<WinchSocket Pos="(-0.79; 0.732; 1.5)" ParentFrame="BoneChassisRear_cdt" />
		<WinchSocket Pos="(-0.79; 0.732; -1.5)" ParentFrame="BoneChassisRear_cdt" />		
		<CompletionStarsDecal Dir="(0; 0; 1)" Pos="(4.935; 1.81; 1.619)" />
		<AddonSockets>
			<Socket Names="MazBigCart" ParentFrame="BoneChassisRear_cdt" />
			<Socket Names="MazBigCistern" ParentFrame="BoneChassisRear_cdt">
				<ExtraParent Frame="BoneChassisFront_cdt" />
			</Socket>
			<Socket Names="MazBigTractor" ParentFrame="BoneChassisTail_cdt">
				<ExtraParent Frame="BoneChassisRear_cdt" />
			</Socket>
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-4.68; 0.73; 0)" ParentFrame="BoneChassisTail_cdt" />
			<Socket Names="MazTrailerCart" Offset="(-4.68; 0.73; 0)" ParentFrame="BoneChassisTail_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsMediumWide" Offset="(0; -0.06; 0)" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="MazTrailer" Offset="(-2.5; 1.95; 0)" ParentFrame="BoneChassisRear_cdt" />
		</AddonSockets>
	</GameData>
</Truck>
