<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.154"
			SuspensionMin="-0.4"
			SuspensionStrength="0.0422"
			Torque="default"
			Type="kamaz5460rearwheel"
		/>
		<FrontWheel
			HardpointOffsetY="-0.100"
			SteeringAngle="45"
			SteeringCastor="8"
			SuspensionMin="-0.4"
			SuspensionStrength="0.0425"
			Torque="default"
			Type="kamaz5460wheel"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		_noinherit="true"
		HardpointDefaultY="0.45"
		HardpointDefaultZ="1.1"
	>
		<Wheel _template="FrontWheel" HardpointX="3.70" />
		<Wheel _template="FrontWheel" HardpointX="3.70" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.875" HardpointZ="1.0" />
		<Wheel _template="RearWheel" HardpointX="-1.875" RightSide="true" HardpointZ="1.0" />
		<Wheel _template="RearWheel" HardpointX="-0.665" HardpointZ="1.0" />
		<Wheel _template="RearWheel" HardpointX="-0.665" RightSide="true" HardpointZ="1.0" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.01"
		EngineIconMesh="env/engine_default"
		EngineIconScale="0.8"
		EngineStartDelay="1.6"
		ExhaustStartTime="0.4"
		FuelCapacity="795"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; 0.0; 0)"
		LockClothScale="0.9"
		Responsiveness="1.0"
		SteerSpeed="0.025"
	>
	<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
		/>
		<Steam Origin="(2.22; 1.13; 0)" />
		<Steam Origin="(3.881; 1.36; 0)" Scale="0.5" ParentFrame="BoneCabin_cdt" />
		<Sounds
			_template="Default"
			AirHissInterval="14.0"
			Origin="(3.4; 1.4; 0)"
			ParentFrame="BoneCabin_cdt"
		>
			 <Reverse Sound="kamaz5490/kamaz5490_signal" />
			<HeadLight Sound="truck/headlight" /> 
			<Handbrake Sound="kamaz5490/kamaz5490_brake" /> 
			<Gear Sound="kamaz5490/kamaz5490_gear" /> 
			<EngineTurbo Sound="kamaz5490/kamaz5490_turbo" /> 
			<EngineStop Sound="kamaz5490/kamaz5490_stop" /> 
			<EngineStart Sound="kamaz5490/kamaz5490_start" /> 
			<EngineNeutral Sound="kamaz5490/kamaz5490_neutral" /> 
			<EngineLow Sound="kamaz5490/kamaz5490_low" /> 
			<EngineIdle Sound="kamaz5490/kamaz5490_idle" /> 
			<EngineHigh Sound="kamaz5490/kamaz5490_high" />
			<EngineHeavy Sound="kamaz5490/kamaz5490_heavy" />
			<DiffLock Sound="truck/difflock" /> 
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.45"
			HeightFront="1.4"
			HeightRear="0.8"
			MinX="-2.10"
			MaxX="4.30"
		>
			<FullOcclusion HeightRear="1.2" MinX="-2.40" MaxX="4.40" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.90" MinX="-2.85" MaxX="5.15" />
		<Motor BrakesDelay="0.3" MaxDeltaAngVel="0.02" Torque="140000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="10.0" />
			<Gear AngVel="1.5" />
			<Gear AngVel="4.0" />
			<Gear AngVel="8.0" />
			<Gear AngVel="12.0" />
			<Gear AngVel="15.0" />
			<Gear AngVel="18.0" />
		</Motor>
		<!--<Intake Dir="(0; 1.0; 0)" Origin="(2.98; 3.14; 0.252)" Size="0.4" />-->
		<Intake Dir="(1.0; 0; 0)" Origin="(4.459; 1.493; 0.261)" Size="0.4" />
		<Intake Dir="(1.0; 0; 0)" Origin="(4.459; 1.493; -0.261)" Size="0.4" />
		<Exhaust Dir="(-0.5; -0.05; 0.93)" Origin="(2.359; 0.517; 0.834)" Speed="4.77" IsLight="true" />
		<Driver Pos="(4.1; 1.9; 0.7)" SteeringWheelPos="(4.6; 2.3; 0.7)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="1000"
			SensationMin="(3.097; 2.1; -0.84)"
			SensationMax="(4.379; 2.8; 0.84)"
			ParentFrame="BoneCabin_cdt"
		/>
		<Camera ParentFrame="BoneCabin_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(65; 59; 51)"
				ViewPos="(3.90; 2.6; 0.7)"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/kamaz65207_2013">
		<Body
			CenterOfMassOffset="(-0.6; -0.2; 0)"
			ImpactType="Truck"
			Mass="4700"
		>
			<Body
				CenterOfMassOffset="(-0.6; -0.4; 0)"
				ImpactType="Truck"
				Mass="4700"
				ModelFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					PivotOffset="(-2.0; -0.2; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="64000" Spring="320000" Type="Spring" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Light _template="IgnitionSignalWhite" Pos="(4.8; 0.6; 0)" />
			<Flare _template="IgnitionSignalWhite" Pos="(5.20; 0.85; 0.775)" ParentFrame="BoneFrame_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(5.20; 0.85; -0.775" ParentFrame="BoneFrame_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(5.20; 0.9; 0.95)" ParentFrame="BoneFrame_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(5.20; 0.9; -0.95" ParentFrame="BoneFrame_cdt" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(5.20; 0.85; -0.775)" ParentFrame="BoneCabin_cdt" />
			<Model _template="HeadLightRay" Org="(5.20; 0.85; 0.775)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(5.20; 0.55; -0.9)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(5.20; 0.55; 0.9)" ParentFrame="BoneCabin_cdt" />
		</HeadLight>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-4.0; 0.854; 0)" />
			<Flare _template="StopSignal" Pos="(-4.070; 0.9; 0.85)" />
			<Flare _template="StopSignal" Pos="(-4.070; 0.9; -0.85)" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-4.0; 0.854; 0)" />
			<Flare _template="ReverseSignal" Pos="(-4.070; 0.9; 0.7)" />
			<Flare _template="ReverseSignal" Pos="(-4.070; 0.9; -0.7)" />
		</ReverseSignals>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(4.586; 1.444; 0.0)" ParentFrame="BoneCabin_cdt" />
	<GameData
		BalancePoints="3"
		ExcludeAddons="ural_cistern,kraz_carriage,kraz_tent"
		LogPoints="0"
		Recallable="true"
	>
		<WinchSocket Pos="(5.2; 1.03; -0.54)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(5.2; 1.03; 0.54)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(-4.1; 0.9; -0.03)" />
		<WinchSocket Pos="(0.0; 0.9; -0.5)" />
		<WinchSocket Pos="(0.0; 0.9; 0.5)" />
		<AddonSockets>
			<Socket Names="magnit" Offset="(0.0; -0.1; 0.0)"  />
			<Socket Names="kran" Offset="(1.8; 0.1; 0.05)" />
			<Socket Names="kcisterna" Offset="(-1.5; -0.33; 0.0)" ParentFrame="BoneRear_cdt" />
			<Socket Names="kremka" Offset="(0.0; -0.2; 0.0)" ParentFrame="BoneRear_cdt" />
		    <Socket Names="kmetan" Offset="(1.12; 0.1; 0)" ParentFrame="BoneCabin_cdt"  />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="pricep_4" ParentFrame="" Offset="(-4.1; 0.8; 0.0)" />
			<Socket Names="43110pricep_ps3" ParentFrame="" Offset="(-4.1; 0.8; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="bort_4" Offset="(1.0; -0.3; 0.0)" />
			<Socket Names="ko505b" NamesBlock="Ko505ag,Ko505A" Offset="(0.0; -0.35; 0.0)"  />
			<Socket Names="Ko505A" NamesBlock="ko505b,Ko505ag" Offset="(0.75; 0.05; 0.0)" />
			<Socket Names="43110roga" Offset="(1.0; -0.3; 0.0)" />
		</AddonSockets>
		 <AddonSockets>
			<Socket Names="gruz_fekalii" Offset="(0.0; 0.13; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Gruz_BREVNA" Offset="(0.0; 0.0; 0.0)" ParentFrame="BoneChassis_cdt" />
			<Socket Names="LoadLogsShort" Offset="(1.4; 0.01; 0.0)" />
			<Socket Names="LoadLogsShortCrane" Offset="(0.558; 0; 0)" />
			<Socket Names="LoadLogsMedium" Offset="(-0.25; 1.64; 0.0)" />
			<Socket Names="actros_GF" Offset="(1.0; -0.3; 0.0)" />
			<Socket Names="korotkiekamaz52114" Offset="(-1.9; -0.05; 0.0)" />
			<Socket Names="LoadMishkiDar" Offset="(-1.2; 0.05; 0.0)" />
			<Socket Names="43110gruzqroga3" Offset="(7.65; -0.03; 0.0)" ParentFrame="BoneChassis_cdt" />
			<Socket Names="43110gruzqroga4" Offset="(0.3; -0.25; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
</Truck>
