<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.05"
			SuspensionMin="-0.2"
			SuspensionStrength="0.012"
			Torque="default"
			Type="t_150_6x6_wheel"
			SuspensionMax="0.1"
		/>
		<FrontWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.05"
			SuspensionMin="-0.3"
			SuspensionStrength="0.018"
			Torque="default"
			Type="t_150_6x6_wheel"
			ParentFrame="CabinBone_cdt"
		/>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.4" />
	</Flare>
	<Body>
		<Mudguard/>
		<Grappler
			Collisions="Internal"
			ForceBodyParams="true"
			Friction="4"
			Mass="100"
			NoClientCollisions="true"
		>
			<Constraint AxisLocal="(-1;0;0)" Type="Hinge">
				<Motor
					Damping="1.0"
					Force="12000"
					Tau="0.04"
					Type="Position"
				/>
			</Constraint>
		</Grappler>
	</Body>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.5"
		HardpointDefaultZ="0.905"
	>
		<Wheel _template="FrontWheel" HardpointX="1.69" />
		<Wheel _template="FrontWheel" HardpointX="1.69" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.9" />
		<Wheel _template="RearWheel" HardpointX="-2.9" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-4.6" />
		<Wheel _template="RearWheel" HardpointX="-4.6" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		DiffLockType="Always"
		EngineStartDelay="3.0"
		FuelCapacity="315"
		Responsiveness="0.07"
		SteerSpeed="0.02"
	>
		<SteeringWheel Frame="steer" />
		<Steam Origin="(2.5; 0.9; 0)" ParentFrame="CabinBone_cdt" />
		<Steam Origin="(-0.3; 1.0; 0)" Scale="0.15" ParentFrame="CabinBone_cdt" />
		<Steam Origin="(-2.9; 0.7; 0)" Scale="0.10" />
		<Steam Origin="(-4.6; 0.7; 0)" Scale="0.10" />
		<Sounds _template="Default" Origin="(1.0; 1.34; 0)" ParentFrame="CabinBone_cdt">
			<EngineTrans Sound="truck/trans" />
			<EngineStart ExhaustStart="1.3" Sound="engine/kraz_start" />
			<EngineRev Sound="engine/kraz_rev" />
			<EngineIdle AirHissInterval="12.0" />
		</Sounds>
		<Shakers>
			<Shaker Frame="arrow" MaxAngle="(100; 0; 0)" MaxFrequency="0.08" />
			<Shaker Frame="BoneExhaust" MaxAngle="(0; 5; 0)" MaxFrequency="0.3" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="0.92"
			HeightFront="1.3"
			HeightRear="0.7"
			MinX="-6.6"
			MaxX="2.50"
		>
			<FullOcclusion HeightFront="1.3" HeightRear="1.3" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.7" MinX="-6.5" MaxX="3.3" />
		<Motor MaxDeltaAngVel="0.01" Torque="120000">
			<ReverseGear AngVel="0.2" />
			<HighGear AngVel="3.5" />
			<Gear AngVel="0.2" />
			<Gear AngVel="3.5" />
			<Gear AngVel="5.0" />
			<Gear AngVel="6.5" />
		</Motor>
		<Exhaust
			Dir="(0.00; 1.00; 0.00)"
			Origin="(1.8; 3.2; -0.04)"
			Speed="3.00"
			ParentFrame="CabinBone_cdt"
		/>
		<Driver Pos="(0.5; 1.892; 0.39)" SteeringWheelPos="(1.035; 2.013; 0.368)" ParentFrame="CabinBone_cdt" />
		<Damage
			Capacity="600"
			SensationMin="(0.1; 2.0; -0.5)"
			SensationMax="(1.4; 2.9; 0.5)"
		/>
		<Camera RadiusMultiplier="0.9" ParentFrame="CabinBone_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(64; 57; 44)"
				ControlsPos="(1.34; 1.988; 0.066)"
				ViewPos="(0.64; 2.408; 0.378)"
				WindshieldDiffuseTexture="T150L_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="AxleBone1" />
			<Axle Frame="AxleBone2" />
			<Axle Frame="AxleBone3" />
		</Axles>
	</TruckData>
	<Rotator
		EngineTorqueFactor="0.5"
		RotationSpeed="-15.2"
		ParentFrame="vint"
	/>
	<PhysicsModel Mesh="trucks/t_150_6x6_v2">
		<Body
			CenterOfMassOffset="(-0.35; -0.6; -0.01)"
			Collisions="Internal"
			ImpactType="Truck"
			Mass="4700"
			ModelFrame="ChassisBone_cdt"
		>
			<Body
				CenterOfMassOffset="(0; 0; 0)"
				Collisions="Internal"
				ImpactType="Truck"
				Mass="500"
				ModelFrame="ReductorBone_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-30"
					MaxLimit="30"
					Type="Hinge"
				/>
				<Body
					CenterOfMassOffset="(1; -0.77; 0)"
					Mass="4300"
					ModelFrame="CabinBone_cdt"
				>
					<Constraint
						AxisLocal="(0;-1;0)"
						MinLimit="-30"
						MaxLimit="30"
						Name="ChassisCabin"
						Type="Hinge"
					>
						<Motor
							Damping="1.0"
							Force="100000"
							Tau="0.04"
							Type="Position"
						/>
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(0.06; 2.73; 0)" ParentFrame="CabinBone_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(0.06; 2.73; 0.44)" ParentFrame="CabinBone_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(0.06; 2.73; -0.44)" ParentFrame="CabinBone_cdt" />
			<Flare
				_template="Sublight"
				Color="g(168; 42; 42) x 1"
				Dir="(-1; 0; 0)"
				DirAngle="50"
				Pos="(1.25; 1.88; -0.615)"
				Size="0.05"
				SizeAtDay="0.05"
				ParentFrame="CabinBone_cdt"
			/>
		</StopSignals>
		<ReverseSignals>
			<Model
				_template="HeadLightRay"
				Dir="(-1.0; -0.4; 0)"
				Org="(0; 2.84; 0.675)"
				ParentFrame="CabinBone_cdt"
			/>
			<Model
				_template="HeadLightRay"
				Dir="(-1.0; -0.4; 0)"
				Org="(0; 2.84; -0.675)"
				ParentFrame="CabinBone_cdt"
			/>
			<Light _template="ReverseSignal" Pos="(0; 2.84; 0)" ParentFrame="CabinBone_cdt" />
			<Flare _template="ReverseSignal" Pos="(0; 2.84; 0.675)" ParentFrame="CabinBone_cdt" />
			<Flare _template="ReverseSignal" Pos="(0; 2.84; -0.675)" ParentFrame="CabinBone_cdt" />
		</ReverseSignals>
		<Ignition>
			<Flare
				_template="Sublight"
				Color="g(168; 168; 42) x 1"
				Dir="(-1; 0; 0)"
				DirAngle="50"
				Pos="(1.25; 1.88; -0.292)"
				Size="0.05"
				SizeAtDay="0.05"
				ParentFrame="CabinBone_cdt"
			/>
			<Flare
				_template="Sublight"
				Color="g(42; 168; 42) x 1"
				Dir="(-1; 0.3; 0)"
				DirAngle="50"
				Pos="(1.25; 1.88; -0.542)"
				Size="0.05"
				SizeAtDay="0.05"
				ParentFrame="CabinBone_cdt"
			/>
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.2; 1.25; 0.67)" ParentFrame="CabinBone_cdt" />
			<Model _template="HeadLightRay" Org="(3.2; 1.25; -0.67)" ParentFrame="CabinBone_cdt" />
			<Flare _template="HeadLight" Pos="(3.2; 1.25; 0.67)" ParentFrame="CabinBone_cdt" />
			<Flare _template="HeadLight" Pos="(3.2; 1.25; -0.67)" ParentFrame="CabinBone_cdt" />
			<Flare _template="BlueStreak" Pos="(3.2; 1.25; 0.67)" ParentFrame="CabinBone_cdt" />
			<Flare _template="BlueStreak" Pos="(3.2; 1.25; -0.67)" ParentFrame="CabinBone_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(0.06; 2.73; 0.50)" ParentFrame="CabinBone_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(0.06; 2.73; -0.50)" ParentFrame="CabinBone_cdt" />
			<Flare
				_template="Sublight"
				Color="g(42; 168; 42) x 1"
				Dir="(-1; 0; 0)"
				DirAngle="50"
				Pos="(1.25; 1.88; -0.165)"
				Size="0.05"
				SizeAtDay="0.05"
				ParentFrame="CabinBone_cdt"
			/>
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(0.0; 0.5; 0.0)" ParentFrame="CabinBone_cdt" />
	<GameData BalancePoints="4" ExcludeAddons="kraz_red_lights">
		<WinchSocket Pos="(3.12; 0.49; 0.42)" ParentFrame="CabinBone_cdt" />
		<WinchSocket Pos="(-6.52; 1; 0)" />
		<AddonSockets>
			<Socket Names="T150Cart" Offset="(0.2; -0.02; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-6.52; 1; 0)" />
			<Socket Names="MazTrailerCart" Offset="(-6.52; 1; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Cat584ForwarderCrane" Offset="(0.4; -0.5; 0.0)"  />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsMediumT150" Offset="(0; 0; 0)" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="CabinBone_cdt" IsLinkedSteering="true" Name="ChassisCabin" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="gidr1" ParentFrame="CabinBone_cdt">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(-0.3; 0; 0)"
				AttachToFrame="ReductorBone_cdt"
				ModelFrame="piston2"
			>
				<IKJoint AxisLocal="(-1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="gidr2" ParentFrame="CabinBone_cdt">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(-0.3; 0; 0)"
				AttachToFrame="ReductorBone_cdt"
				ModelFrame="piston1"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
</Truck>
