<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"			
			SuspensionMin="-0.47"
			HardpointOffsetY="-0.15"
			SuspensionStrength="0.033"
			SuspensionDamping="0.31"
			Torque="default"
			Type="kamaz_offroad"
		/>
		<FrontWheel		
			SteeringAngle="42"
			SteeringCastor="5"
			SuspensionMin="-0.47"
			HardpointOffsetY="-0.15"
			SuspensionStrength="0.031"
			SuspensionDamping="0.31"
			Torque="full"
			Type="kamaz_offroad"
			ParentFrame="BoneCabinBase_cdt"
		/>
	</Wheel>	
	<Flare>
		<FogSignal
			AspectRatio="1.5"
			Color="g(193; 184; 160) x 0.6"
			Dir="(1.0; 0; 0)"
			DirAngle="100"
			Size="0.8"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.4"
		HardpointDefaultZ="1.05"
	>
		<Wheel _template="FrontWheel" HardpointX="3.297" />
		<Wheel _template="FrontWheel" HardpointX="3.297" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-0.035" />
		<Wheel _template="RearWheel" HardpointX="-0.035" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.421" />
		<Wheel _template="RearWheel" HardpointX="-1.421" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.035"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="350"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; 0.0; 0)"
		LockClothScale="0.9"
		Responsiveness="1.0"
		SteerSpeed="0.027"
	>
		<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.842"
		/>
		<Steam Origin="(3.712; 1.267; 0)" ParentFrame="BoneCabin_cdt" />
		<Sounds
			_template="Default"
			AirHissInterval="16.0"
			Origin="(3.3; 1.3; 0)"
			ParentFrame="BoneCabinBase_cdt"
		>
			<Reverse _inheritRemove="true" />
			<EngineStop Sound="engine/kamaz_stop" />
			<EngineStart Sound="engine/kamaz_start" />
			<EngineRev Sound="engine/ural_rev" />
			<EngineNeutral Sound="engine/kamaz_neutral" />
			<EngineLow Sound="engine/kamaz_low" />
			<EngineIdle Sound="engine/kamaz_idle" />
			<EngineHigh Sound="engine/kamaz_high" />
			<EngineHeavy Sound="ural_benzine_heavy" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(2; 2; 2)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.50"
			HeightFront="1.0"
			HeightRear="0.8"
			MinX="-1.73"
			MaxX="4.27"
		>
			<FullOcclusion HeightRear="1.2" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.95" MinX="-2.53" MaxX="5.07" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="1.02" Torque="235000" EngineResponsiveness="0.4" ClutchDelay="0.09" >
			<ReverseGear AngVel="1.2" />
			<HighGear AngVel="8.5" />
			<Gear AngVel="1.0" />
			<Gear AngVel="3.6" />
			<Gear AngVel="6.2" />
			<Gear AngVel="8.8" />
			<Gear AngVel="11.4" />
		</Motor>
		<LimitedFluid
			Center="(1.591; 0.811; 0.799)"
			SizeX="1.271"
			SizeY="0.469"
			SizeZ="0.683"
			Type="Box"
		/>
		<!--<Intake Dir="(-0.626; 0.78; 0)" Origin="(2.766; 1.8; 0.476)" Size="0.4" />-->
		<Intake Dir="(1.0; 0; 0)" Origin="(4.622; 1.311; -0.332)" Size="0.4" />
		<Intake Dir="(1.0; 0; 0)" Origin="(4.622; 1.311; 0.332)" Size="0.4" />
		<Exhaust
			Dir="(-0.26; -0.26; 0.93)"
			IsLight="true"
			Origin="(0.88; 0.40; 0.96)"
			Speed="3.77"
		/>
		<Driver Pos="(3.577; 1.7; 0.612)" SteeringWheelPos="(3.929; 2.104; 0.621)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="600"
			SensationMin="(3.2; 1.986; -0.95)"
			SensationMax="(4.25; 2.848; 0.95)"
		/>
		<Camera Center="(0.4; 0; 0)" ParentFrame="BoneCabinBase_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(53; 52; 50)"
				ControlsPos="(4.092; 2.1; 0.745)"
				ViewPos="(3.4; 2.45; 0.611)"
				WindshieldDiffuseTexture="trucks/ural4320_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/kamaz6522">
		<Body
			CenterOfMassOffset="(-1.45; -0.2; 0)"
			ImpactType="Truck"
			Mass="4400"
		>
			<Body
				CenterOfMassOffset="(-0.2; 0; 0)"
				ImpactType="Truck"
				Mass="3550"
				ModelFrame="BoneCabinBase_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-22"
					MaxLimit="22"
					Type="Hinge"
				>
					<Motor Damping="31000" Spring="260000" Type="Spring" />
				</Constraint>
				<Body
					CenterOfMassOffset="(0; -0.4; 0)"
					ImpactType="Truck"
					Mass="1000"
					ModelFrame="BoneCabin_cdt"
				>
					<Constraint
						Cone="7"
						PlaneAxisLocal="(0; 0; 1.0)"
						PlaneMin="-7"
						PlaneMax="7"
						TwistAxisLocal="(0; 1.0; 0)"
						Type="Ragdoll"
					>
						<PlaneMotor Damping="8000" Spring="60000" Type="Spring" />
						<ConeMotor Damping="8000" Spring="60000" Type="Spring" />
					</Constraint>
					<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
					<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-2.2; 0.854; 0)" />
			<Flare _template="StopSignal" Pos="(-2.270; 0.763; 0.911)" />
			<Flare _template="StopSignal" Pos="(-2.270; 0.763; -0.911)" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-3.2; 0.75; 0)" />
			<Flare _template="ReverseSignal" Pos="(-2.270; 0.756; 0.678)" />
			<Flare _template="ReverseSignal" Pos="(-2.270; 0.756; -0.678)" />
			<Flare _template="BlueStreak" Dir="(-1; 0; 0)" Pos="(-2.270; 0.756; 0.678)" />
			<Flare _template="BlueStreak" Dir="(-1; 0; 0)" Pos="(-2.270; 0.756; -0.678)" />
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-3.2; 0.75; 0)" />
			<Flare _template="MarkerBeacon" Pos="(3.99; 2.85; 0.27)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.99; 2.85; 0)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(3.99; 2.85; -0.27)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.270; 0.763; 0.79)" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.270; 0.763; -0.79)" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(4.667; 0.919; 0.87)" ParentFrame="BoneCabinBase_cdt" />
			<Model _template="HeadLightRay" Org="(4.667; 0.919; -0.87)" ParentFrame="BoneCabinBase_cdt" />
			<Flare _template="HeadLight" Pos="(4.667; 0.919; 0.87)" ParentFrame="BoneCabinBase_cdt" />
			<Flare _template="HeadLight" Pos="(4.667; 0.919; -0.87)" ParentFrame="BoneCabinBase_cdt" />
			<Flare _template="BlueStreak" Pos="(4.667; 0.919; 0.87)" ParentFrame="BoneCabinBase_cdt" />
			<Flare _template="BlueStreak" Pos="(4.667; 0.919; -0.87)" ParentFrame="BoneCabinBase_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(4.576; 0.905; 0.0)" ParentFrame="BoneCabinBase_cdt" />
	<GameData
		BalancePoints="3"
		ExcludeAddons="ural_cistern,kraz_carriage,kraz_tent"
		LogPoints="2"
	>
		<WinchSocket Pos="(4.649; 0.927; -0.445)" ParentFrame="BoneCabinBase_cdt" />
		<WinchSocket Pos="(4.649; 0.927; 0.445)" ParentFrame="BoneCabinBase_cdt" />
		<WinchSocket Pos="(-2.367; 0.94; 0)" />
		<WinchSocket Pos="(0.9; 0.893; -1.213)" />
		<WinchSocket Pos="(0.9; 0.893; 1.213)" />
		<CompletionStarsDecal Dir="(0.026; 0; 0.999)" Pos="(3.897; 1.718; 1.15)" />
		<AddonSockets>
			<Socket Names="UralCart" NamesBlock="KrazCartTrailer" Offset="(0.25; 0.1; 0.0)" />
			<Socket Names="KrazTractor,KrazCart" Offset="(0.6; -0.02; 0.0)" />
			<Socket Names="KamazCartNoBackup" Offset="(0.4; -0.02; 0.0)" />
			<Socket Names="KrazCartCrane" NamesBlock="KamazTrailer,UralCartTrailer,KrazCartTrailer,KamazBackupWheel" Offset="(0.55; 0.02; 0.0)" />
			<Socket Names="KrazCistern" NamesBlock="KamazBackupWheel" Offset="(0.5; -0.02; 0.0)" />
			<Socket Names="KamazCart" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazBackupWheel" Offset="(-0.081; -0.255; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailer" Offset="(-0.57; 1.18; 0.0)" />
			<Socket Names="KamazTrailerCart" Offset="(-2.437; 0.926; 0)" />
			<Socket Names="UralCartTrailer" Offset="(-2.377; 0.82; 0.0)" />
			<Socket Names="KrazCartTrailer" Offset="(-1.7; 1.3; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsShort" Offset="(1.4; 0.01; 0.0)" />
			<Socket Names="LoadLogsShortCrane" Offset="(0.558; 0; 0)" />
			<Socket Names="LoadLogsMedium" Offset="(-0.6; 1.8; 0.0)" />
			<Socket Names="LoadLogsLong" Offset="(0.41; -0.015; 0)" />
		</AddonSockets>
	</GameData>
</Truck>
<!-- Original_Grilles -->