<_templates Include="trucks">
	<Wheel>
		<RearWheel
		    SuspensionDamping="0.15"
			ConnectedToHandbrake="true"
			Type="kamaz_54115stok_wheel_double"
			HardpointOffsetY="-0.3"
			SuspensionDamping="0.15"
			SuspensionMin="-0.4"
			SuspensionMax="0.3"
			SuspensionStrength="0.014"
			Torque="default"
			HardpointZ="1.0"
		/>
		<FrontWheel
			
			Type="kamaz_5415stok_wheel"
			HardpointOffsetY="-0.4"
			SteeringAngle="49"
			SteeringCastor="5"
			
			SuspensionMin="-0.5"
			SuspensionMax="-0.2"
			SuspensionStrength="0.022"
            Torque="full"
            ParentFrame="BoneCabinBase"
			HardpointZ="1.13"
		/>
	</Wheel>
	<Flare>
		<FogSignal
			Color="g(193; 184; 160)"
			Dir="(1.0; 0; 0)"
			DirAngle="100"
			Size="0.8"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.60"
		HardpointDefaultZ="1.15"
	>
		<Wheel _template="FrontWheel" HardpointX="1.858" />
		<Wheel _template="FrontWheel" HardpointX="1.858" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.149" />
		<Wheel _template="RearWheel" HardpointX="-2.149" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-3.581" />
		<Wheel _template="RearWheel" HardpointX="-3.581" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineStartDelay="0.8"
		FuelCapacity="800"
		SteerResponsiveness="1.5"
		Responsiveness="1.3"
		SteerSpeed="0.03"
	>
		<WheelsSets>
		<WheelsSet Title="kitayskie_wheels">
				<WheelType Type="em8rf17b" Wheels="0,1" />
				<WheelType Type="em8rf189" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="offroad_wheels">
				<WheelType Type="wheels_standart" Wheels="0,1" />
				<WheelType Type="wheels_standart" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="offroad_wheels">
				<WheelType Type="kamaz4310wheel" Wheels="0,1,2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="offroad_wheels">
				<WheelType HardpointOffsetY="-0.10" Type="e3cvoh1" Wheels="0,1" />
				<WheelType HardpointOffsetY="-0.10" Type="e3cvoh1" Wheels="2,3,4,5" />
			</WheelsSet>
			
		</WheelsSets>
		<Steam Origin="(2.74; 1.22; 0)" />
		<Steam Origin="(4.37; 1.2; 0)" Scale="0.5" ParentFrame="BoneCabin" />
		   <Sounds _template="Default" Origin="(4.2; 1.0; 0)" ParentFrame="BoneCabinBase">
			<Reverse _inheritRemove="true" />
		    <BrakePull Sound="65111/kamaz65111_brake_pull" />
            <Handbrake Sound="65111/kamaz65111_handbrake" />
            <EngineStop Sound="65111/kamaz65111_stop" />
			<EngineStart Sound="65111/kamaz65111_start" />
			<EngineRev Sound="65111/kamaz65111_rev" />
		    <EngineNeutral Sound="65111/kamaz65111_neutral" />
			<EngineLow Sound="65111/kamaz65111_low" />
			<EngineIdle AirHissInterval="14.0"              Sound="65111/kamaz65111_idle" />
			<EngineHigh Sound="65111/kamaz65111_high" />
                <EngineHeavy Sound="65111/kamaz65111_heavy" />
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.45"
			HeightFront="1.4"
			HeightRear="0.8"
			MinX="-2.10"
			MaxX="4.30"
		>
	    	<FullOcclusion HeightFront="1.1" HeightRear="1.3" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.95" MinX="-2.23" MaxX="5.18" />
		<Motor MaxDeltaAngVel="2.0" Torque="400000">
			<ReverseGear AngVel="0.337" />
			<HighGear AngVel="10.7318" />
			<Gear AngVel="0.2337" />
			<Gear AngVel="1.7277" />
			<Gear AngVel="3.4206" />
			<Gear AngVel="6.4061" />
			<Gear AngVel="12.8659" />
			
			
		</Motor>
		<Exhaust
			Dir="(-0.90; -1.00; 1.00)"
			IsLight="true"
			Origin="(-0.991; 0.598; 1.207)"
			Speed="1.60"
		/>
	<Driver Pos="(2.060; 1.88; 0.660)" SteeringWheelPos="(2.520; 2.2; 0.680)" ParentFrame="BoneCabin" />
		<Damage
			Capacity="1000"
			SensationMin="(3.374; 2.4; -0.95)"
			SensationMax="(4.272; 3.83; 0.95)"
		/>
			<Camera Center="(2.0; 0; 0)" ParentFrame="BoneCabin">
			<Cockpit
			    ControlsPos="(2.9; 2.2; 0.2)"
				LimitsVer="(-0.7; 0.4)"
				ViewDir="(1.0; -0.15; 0)"
				ViewPos="(1.9; 2.519; 0.618)"
				WindshieldDiffuseTexture="2gq004ua__d_a.dds"
				LimitsHor="(-2.8; 2.4)"
				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="BoneAxle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
			<Axle Frame="BoneAxle3" LeftWheel="4" RightWheel="5" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/KAMA65111">
		<Body
			CenterOfMassOffset="(-1.2; -1.2; 0)"
			ImpactType="Truck"
			Mass="7000"
		>
			<Body
				CenterOfMassOffset="(-0.2; -0.5; 0)"
				ImpactType="Truck"
				Mass="3000"
				ModelFrame="BoneCabinBase"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Damping="35000" Spring="350000" Type="Spring" />
				</Constraint>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardLeft"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-45"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardRight"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-45"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
				<Body
					CenterOfMassOffset="(0.70; 0.0; 0)"
					ImpactType="Truck"
					Mass="1000"
					ModelFrame="BoneCabin"
				>
					<Constraint
						Cone="5"
						PlaneAxisLocal="(0; 0; 1.0)"
						PlaneMin="-1"
						PlaneMax="1"
						TwistAxisLocal="(0; 1.0; 0)"
						Type="Ragdoll"
					>
						<PlaneMotor Damping="55000" Spring="150000" Type="Spring" />
						<ConeMotor Damping="55000" Spring="150000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Flare _template="MarkerSignal" Pos="(2.677; 2.967; 0.185)" ParentFrame="BoneCabin" />
			<Flare _template="MarkerSignal" Pos="(2.677; 2.967; -0.001)" ParentFrame="BoneCabin" />
			<Flare _template="MarkerSignal" Pos="(2.677; 2.967; -0.187)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Pos="(3.328; 0.905; 0.85)" ParentFrame="BoneCabinBase" />
			<Flare _template="HeadLight" Pos="(3.328; 0.905; -0.865)" ParentFrame="BoneCabinBase" />
			<Flare _template="HeadLight" Pos="(2.698; 2.84; 1.207)" ParentFrame="BoneCabinBase" />
			<Flare _template="HeadLight" Pos="(3.329; 0.682; -1.01)" ParentFrame="BoneCabinBase" />
			<Flare _template="HeadLight" Pos="(3.328; 0.682; 1.003)" ParentFrame="BoneCabinBase" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.0; 0.82; 0.0)" ParentFrame="BoneCabinBase" />
	<GameData BalancePoints="2">
		<WinchSocket Pos="(3.334; 0.912; -0.512)" ParentFrame="BoneCabinBase" />
		<WinchSocket Pos="(3.334; 0.912; 0.498)" ParentFrame="BoneCabinBase" />
		<WinchSocket Pos="(-4.865; 0.864; 0)" ParentFrame="BoneChassis" />
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-4.865; 0.864; 0)" />
			<Socket Names="KamazTrailer" Offset="(-3.23; 1.25; 0.0)" />
			<Socket Names="KamazTrailerCart3" Offset="(-4.9; 0.9; 0.0)" />
			<Socket Names="pricep4_54115" Offset="(-5.4; 1.2; 0.0)" />
			<Socket Names="M_Kontei_Pric" Offset="(-4.9; 1.0; 0.0)" ParentFrame="BoneChassis" />
			<Socket Names="RospusPric" Offset="(-4.8; 1.35; 0.0)" />
		</AddonSockets>
	
		<AddonSockets>
			<Socket Names="KrazTractor" NamesBlock="kung222,kran_1,Logs Platform S,KrazCartCrane,bort1,bytovka,budka,bort2,bort2-manipulator,sortimentovoz1,cisterna,trubovoz-platforma,lesovoz-platforma,samosval,Shell_Base,Kam6350T_TMM3_Opora,KrazCartNoBackup,KrazCart" Offset="(-2.2; -0.0; 0.0)" />
			<Socket Names="bort" NamesBlock=",," Offset="(-2.7; -0.3; 0.0)" />
			<Socket Names="bortles52114" NamesBlock="," Offset="(-2.6; -0.28; 0.0)" />
			<Socket Names="M_Konteinerovoz" Offset="(-0.3; 0.08; 0)" ParentFrame="BoneChassis" />
				<Socket Names="kung222" Offset="(-2.5; -0.3; 0.0)" NamesBlock=",,,,,,,,,," />
				<Socket Names="Ciste" Offset="(-1.1; -0.08; 0.0)" NamesBlock=",,,,,,,,,," />
				<Socket Names="PlatfRospu" Offset="(-2.7; -0.0; 0.0)" NamesBlock=",,,,,,,,,," />
			</AddonSockets>
			<AddonSockets>
			<Socket Names="kran_54115" Offset="(-6.05; 0.05; 0.0)" />
		</AddonSockets>
	<AddonSockets>
			<Socket Names="Mer_Trub" Offset="(1.8; 0.35; 0.0)"  ParentFrame="BoneCabinBase"/>
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Kran4310" Offset="(-1.05; 0.25; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Addon012" Offset="(-0.05; -0.2; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadLogsShortCrane" Offset="(-1.9; 0.26; 0.0)" />
			<Socket Names="LoadLogsShort" Offset="(-1.1; 0.0; -0.0)" />
			<Socket Names="LoadLogsMedium" Offset="(-2.19; 1.87; 0.0)" />
			<Socket Names="LoadLogsLong" Offset="(-1.43; 0.14; 0.0)" />
			<Socket Names="LoadLogsShortK" Offset="(-0.7; 0.0; 0.0)" />
			<Socket Names="LoadSKatushka" Offset="(-0.7; 0.2; 0.0)" />
			<Socket Names="korotkiekamaz52114" Offset="(-1.4; -0.05; 0.0)" />
			<Socket Names="M_Gr_Kontei" Offset="(-0.12; 0.08; 0)" />
			<Socket Names="LoadLogsLong3" Offset="(-2.2; -0.05; 0.0)" />
		</AddonSockets>
	
	</GameData>
</Truck>
