<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.25"
			SuspensionStrength="0.06"
			Torque="default"
			Type="6pea86u1"
		/>
		<FrontWheel
            HardpointZ="1.055"
			HardpointOffsetY="-0.13"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.3"
			SuspensionStrength="0.027"
			Type="6pea8681"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.773"
		HardpointDefaultZ="0.95"
	>
		<Wheel _template="FrontWheel" HardpointX=" 1.839" />
		<Wheel _template="FrontWheel" HardpointX=" 1.839" RightSide="true" />
		<Wheel _template="RearWheel"  HardpointX="-2.478" />
		<Wheel _template="RearWheel"  HardpointX="-2.478" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.005"
		EngineStartDelay="3.0"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		ExhaustStartTime="2.3"
		FuelCapacity="360"
		Responsiveness="0.05"
		SteerSpeed="0.03"
	>
		<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.829"
		/>
		<Steam Origin="(1.5; 0.9; 0)" />
		<Steam Origin="(3.75; 1.5; 0)" Scale="0.5" ParentFrame="BoneCabin_cdt" />
		<Sounds
			AirHissInterval="14.0"
			Origin="(1.54; 1.25; 0)"
			ParentFrame="BoneCabin_cdt"
		>
			<EngineTrans Sound="truck/trans" />
			<EngineStop Sound="ural_benzine_stop" />
			<EngineStart Sound="ural_benzine_start" />
			<EngineLow Sound="ural_benzine_low" />
			<EngineIdle Sound="ural_benzine_idle" />
			<EngineHigh Sound="ural_benzine_high" />
			<EngineHeavy Sound="ural_benzine_heavy" />
            <BrakePull Sound="engine/kraz2601/uq8tm4v8" />
			<Handbrake Sound="engine/uq8tm473" />
			<BrakeRelease Sound="engine/kraz2601/uq8tm4s7" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(2; 2; 2)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="0.75"
			HeightFront="0.45"
			HeightRear="0.45"
			MinX="-4.20"
			MaxX="3.40"
		>
			<FullOcclusion HeightRear="1.1" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.60" MinX="-4.0" MaxX="3.50" />
		<Motor MaxDeltaAngVel="0.01" Torque="140000">
			<ReverseGear AngVel="0.7" />
			<HighGear AngVel="5.0" />
			<Gear AngVel="1.0" />
			<Gear AngVel="3.0" />
			<Gear AngVel="5.3" />
			<Gear AngVel="7.0" />
			<Gear AngVel="9.8" />
		</Motor>
		<LimitedFluid
			Center="(-0.263; 1.033; 0.749)"
			SizeX="0.789"
			SizeY="0.4"
			SizeZ="0.588"
			Type="Box"
		/>
		<LimitedFluid
			Center="(-0.263; 1.033; -0.749)"
			SizeX="0.789"
			SizeY="0.4"
			SizeZ="0.588"
			Type="Box"
		/>
		<Intake Dir="(1.0; 0; 0)" Origin="(3.14; 1.339; 0)" Size="0.8" />
        <Intake Dir="(1.0; 0; 0)" Origin="(1.044; 1.496; 0.0)" Size="0.5" />
		<Exhaust Dir="(-0.16; -0.29; 0.99)" Origin="(-0.839; 0.893; 0.871)" Speed="3.82" />
		<Driver Pos="(1.9; 1.837; 0.65)" SteeringWheelPos="(2.408; 2.154; 0.694)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="500"
			SensationMin="(1.3; 1.6; -0.77)"
			SensationMax="(2.6; 2.0; 0.77)"
			ParentFrame="BoneCabin_cdt"
		/>
		<Camera ParentFrame="BoneCabin_cdt">
			<Cockpit
				ControlsDiffuse="g(66; 66; 66)"
				ControlsPos="(2.0; 2.107; 0.694)"
				ViewPos="(1.8; 2.5; 0.636)"
				WindshieldDiffuseTexture="trucks/maz500_glass__d_a.dds"
				LimitsHor="(-2.8; 2.4)"
				LimitsVer="(-0.32; 0.2)"
				ViewDir="(1.0; -0.05; 0)"
				ZoomViewDirOffset="(0;-0.05;0)"
				ZoomViewPosOffset="(0.2;0;0)"
			>
				<Rear
					HorTransitionEnd="-1.5"
					HorTransitionStart="-1.2"
					LimitsVer="(-1.2; 0.2)"
					RollAngle="-15"
					ViewDir="(1.0; -0.05; 0)"
					ViewPosOffset="(0.25; -0.1; 0.7)"
				/>
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="AxleBone1" />
			<Axle Frame="AxleBone2" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/maz500a">
		<Body
			CenterOfMassOffset="(-1.8; 0; 0)"
			ImpactType="Truck"
			Mass="3700"
		>
		    <Body
				CenterOfMassOffset="(-0.9; -0.3; 0)"
				ImpactType="Truck"
				Mass="3100"
				ModelFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-7"
					MaxLimit="7"
					Type="Hinge"
				>
					<Motor Damping="24000" Spring="160000" Type="Spring" />
				</Constraint>
                <Body AngularDamping="10.0" Collisions="None" Mass="5" ModelFrame="BoneLeftMudguard_cdt">
				<Constraint AxisLocal="(0;0;1)" MinLimit="-25" MaxLimit="18" Type="Hinge" />
				</Body>
				<Body AngularDamping="10.0" Collisions="None" Mass="5" ModelFrame="BoneRightMudguard_cdt">
				<Constraint AxisLocal="(0;0;1)" MinLimit="-25" MaxLimit="18" Type="Hinge" />
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
        <Ignition>
            <Light _template="IgnitionSignalWhite" Pos="(3.387; 0.4; 0.0)" />
            <Flare _template="MarkerBeacon" Pos="(3.055; 1.246; -0.84)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.055; 1.246; 0.866)" ParentFrame="BoneCabin_cdt" />
        </Ignition>
	    <Ignition>
			<Flare _template="MarkerBeacon" Pos="(2.491; 2.835; -0.162)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.491; 2.835; 0.0)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.491; 2.835; 0.168)" ParentFrame="BoneCabin_cdt" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.07; 1.246; -0.84)" ParentFrame="BoneCabin_cdt" />
			<Model _template="HeadLightRay" Org="(2.713; 1.128; 0.822)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(3.07; 1.437; -0.866)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(3.07; 1.437; 0.866)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(3.07; 1.437; -0.866)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(3.07; 1.437; 0.866)" ParentFrame="BoneCabin_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.8; 2.0; 0.0)" ParentFrame="BoneCabin_cdt" />
	<GameData BalancePoints="1" LogPoints="0">
		<WinchSocket Pos="(3.176; 1.032; 0)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(-4.196; 1.103; 0)" />
        <AddonSockets>
			<Socket Names="KrazCartCrane" Offset="(-0.77; 0.22; 0.0)" NamesBlock="Zapaska_500, Gabarit_500, BORT_500" />
		    <Socket Names="BORT_8t" ParentFrame="BoneBase_cdt" />
            <Socket Names="Gabarit_500" ParentFrame="BoneBase_cdt" />
       </AddonSockets>
        <AddonSockets>
			<Socket Names="Zapaska_ram" ParentFrame="BoneBase_cdt" />
		</AddonSockets>
        <AddonSockets>
            <Socket Names="Zapaska_500" ParentFrame="BoneCabin_cdt" />
			<Socket Names="BORT_500" ParentFrame="BoneBase_cdt" />
            <Socket Names="Kontener_500" ParentFrame="BoneBase_cdt" NamesBlock="KrazCartCrane, Gabarit_500, Zapaska_ram" />
		</AddonSockets>
        <AddonSockets>
			<Socket Names="MAZ500TrailerCart" Offset="(-4.250; 1.1; 0)" />
		</AddonSockets>
        <AddonSockets>
			<Socket Names="MazTrailerCart" Offset="(-4.23; 1.103; 0)" />
			<Socket Names="KamazTrailerCart" Offset="(-4.225; 1.103; 0)" />
		</AddonSockets>
		<AddonSockets>
            <Socket Names="Load_Logs_Short_500" /> 
			<Socket Names="LoadLogsShort" Offset="(0.596; -0.06; 0.0)" />
			<Socket Names="LoadLogsShortCrane" Offset="(-0.85;0.2;0)" />
			<Socket Names="LoadLogsMedium" Offset="(-0.55; 1.62; 0.0)" />
			<Socket Names="LoadLogsLong" Offset="(0; -0.05; 0.0)" />
		</AddonSockets>
	</GameData>
</Truck>