<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointZ="0.98"
			HardpointOffsetY="-0.29"
			SuspensionMin="-0.3"
			SuspensionStrength="0.090"
			Torque="default"
			Type="kamaz_6460z_wheel_double"
			ParentFrame="BoneCabinBase_cdt"
			
		/>
		<FrontWheel
			HardpointOffsetY="-0.27"
			SteeringAngle="40"
			SteeringCastor="1"
			SuspensionMin="-0.3"
			SuspensionStrength="0.030"
			Type="kamaz_6460f_wheel"
			Torque="full"
			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.5"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels	
		HardpointDefaultY="0.520"
		HardpointDefaultZ="1.00"
	>
		<Wheel _template="FrontWheel" HardpointX="1.717" HardpointZ="1.05" />
		<Wheel _template="FrontWheel" HardpointX="1.717" HardpointZ="1.05" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.283" HardpointY="0.60" HardpointZ="0.95" ParentFrame="BoneBalans_cdt" />
		<Wheel
			_template="RearWheel"
			HardpointX="-1.283"
			HardpointY="0.60"
			HardpointZ="0.95"
			RightSide="true"
			ParentFrame="BoneBalans_cdt"
		/>
		<Wheel _template="RearWheel" HardpointX="-2.699" HardpointY="0.60" HardpointZ="0.95" ParentFrame="BoneBalans_cdt" />
		<Wheel
			_template="RearWheel"
			HardpointX="-2.699"
			HardpointY="0.60"
			HardpointZ="0.95"
			RightSide="true"
			ParentFrame="BoneBalans_cdt"
		/>
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="500"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; 0.0; 0)"
		LockClothScale="0.9"
		Responsiveness="0.1"
		SteerSpeed="0.02"
	>
	<SteeringWheel Frame="Rul" />
	<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.709"
		/>
		<Steam Origin="(1.712; 0.50; 0)" ParentFrame="BoneCabin" />
		<Sounds
			_template="Default"
			AirHissInterval="16.0"
			Origin="(1.25; 1.14; 0)"
		    ParentFrame="BoneCabinBase_cdt"
		>
			<Reverse _inheritRemove="true" />
			<EngineStop Sound="engine6460/kamaz6460_stop" />
			<EngineStart Sound="engine6460/kamaz6460_start" />
			<EngineRev Sound="engine6460/kamaz6460_rev" />
            <EngineNeutral Sound="engine6460/kamaz6460_neutral" />
			<EngineLow Sound="engine6460/kamaz6460_low" />
			<EngineIdle Sound="engine6460/kamaz6460_idle" />
			<EngineHigh Sound="engine6460/kamaz6460_high" />
			<EngineHeavy Sound="engine6460/kamaz6460_heavy" /> 
			<EngineTrans Sound="truck6460/fan" />
			<EngineTurbo Sound="truck6460/turbo" />
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.50"
			HeightFront="1.0"
			HeightRear="0.8"
			MinX="-1.73"
			MaxX="4.27"
		>
		    <FullOcclusion HeightRear="1.2" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="2.20" MinX="3.80" MaxX="-3.95" />
		<Motor BrakesDelay="0.3" MaxDeltaAngVel="0.02" Torque="240000">
			<ReverseGear AngVel="1.0" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="1.5" />
			<Gear AngVel="4.0" />
			<Gear AngVel="6.0" />
			<Gear AngVel="8.0" />
			<Gear AngVel="10.0" />
		</Motor>
		<Exhaust
			Dir="(-0.90; -1.00; 1.00)"
			IsLight="true"
			Origin="(-0.627; 0.408; 1.261)"
			Speed="1.60"
		/>
		<Driver Pos="(1.900; 1.731; 0.660)" SteeringWheelPos="(2.420; 2.065; 0.680)" ParentFrame="BoneCabin" />
		<Damage
			Capacity="600"
			SensationMin="(0.927; 3.866; 1.001)"
			SensationMax="(0.927; 3.866; 1.001)"
		/>
		<Camera Center="(-1.47; 1; 0.0)" ParentFrame="BoneCabinBase_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(53; 52; 50)"
				ControlsPos="(2.23; 2.80; 0.090)"
                ViewPos="(1.85; 2.41; 0.670)"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1"/>
			<Axle Frame="BoneAxle2"/>
			<Axle Frame="BoneAxle3"/>
		</Axles>
 
	</TruckData>
	<PhysicsModel Mesh="trucks/KAMAZ 6460">
	<Model Mesh="trucks/Scepka6460" Org="(0.0; 0.0; -0.0)" ParentFrame="BoneChassis_cdt" />
	<Model Mesh="trucks/7jup8g5q" Org="(-2.4; 0.08; 0.0)" ParentFrame="BoneCabinBase_cdt" />
		<Body
			CenterOfMassOffset="(0.0; -0.3; 0)"
			ImpactType="Truck"
			Mass="4500"
		>
			
			<Body
				CenterOfMassOffset="(-0.2; 0; 0)"
				ImpactType="Truck"
				Mass="3000"
				ModelFrame="BoneCabinBase_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-5"
					MaxLimit="5"
					Type="Hinge"
				>
					<Motor Damping="40000" Spring="140000" Type="Spring" />
				</Constraint>
				<Body
						AngularDamping="3.0"
						Collisions="None"
						Mass="10"
						ModelFrame="BoneFBZL"
					>
						<Constraint
							AxisLocal="(0.0; 0.0; 1.0)"
							MinLimit="-15"
							MaxLimit="5"
							Type="Hinge"
						/>
					</Body>
					<Body
						AngularDamping="3.0"
						Collisions="None"
						Mass="10"
						ModelFrame="BoneFBZP"
					>
						<Constraint
							AxisLocal="(0.0; 0.0; 1.0)"
							MinLimit="-15"
							MaxLimit="5"
							Type="Hinge"
						/>
				</Body>	
				<Body Collisions="None" Mass="5" ModelFrame="BoneChain_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="9"
						MaxLimit="6"
						Type="Hinge"
					/>
				</Body>
				<Body
					CenterOfMassOffset="(0.20; 0.4; 0)"
					ImpactType="Truck"
					Mass="400"
					ModelFrame="BoneCabin"
				>
					<Constraint
						Cone="2"
						PlaneAxisLocal="(0; 0; 1.0)"
						PlaneMin="-2"
						PlaneMax="2"
						TwistAxisLocal="(0; 1.0; 0)"
						Type="Ragdoll"
					>
						<PlaneMotor Damping="250000" Spring="550000" Type="Spring" />
						<ConeMotor Damping="30000" Spring="150000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
				<Body Collisions="None" Mass="500" ModelFrame="BoneBalans_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-7"
						MaxLimit="7"
						Type="Hinge"
					/>
			   </Body>
		 </Body>
</PhysicsModel>
<ModelAttachments>
		 <ReverseSignals>
			<Light _template="ReverseSignal" Size="0.15" Pos="(0.94; 1.817; 0.229)"  ParentFrame="BoneCabin" />
			<Light _template="ReverseSignal" Size="0.15" Pos="(0.94; 1.817; -0.233)"  ParentFrame="BoneCabin" />
			<Flare _template="ReverseSignal" Size="0.15" Pos="(0.94; 1.817; 0.229)"  ParentFrame="BoneCabin" />
		    <Flare _template="ReverseSignal" Size="0.15" Pos="(0.94; 1.817; -0.233)"  ParentFrame="BoneCabin" />
		</ReverseSignals>
		<HeadLight>
		    <Flare _template="MarkerBeacon" Pos="(2.369; 2.955; 0.844)" ParentFrame="BoneCabin" /> 
			<Flare _template="MarkerBeacon" Pos="(2.369; 2.955; -0.848)" ParentFrame="BoneCabin" />
			<Flare _template="MarkerBeacon" Pos="(2.386; 2.957; -0.203)" ParentFrame="BoneCabin" />
			<Flare _template="MarkerBeacon" Pos="(2.387; 2.957; -0.002)" ParentFrame="BoneCabin" />
            <Flare _template="MarkerBeacon" Pos="(2.386; 2.957; 0.198)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Size="0.4" SizeAtDay="15" Pos="(2.953; 0.866; 0.93)" ParentFrame="BoneCabinBase_cdt" />
		    <Flare _template="HeadLight" Size="0.4" SizeAtDay="15" Pos="(2.953; 0.864; -0.956)" ParentFrame="BoneCabinBase_cdt" />
            <Flare _template="IgnitionSignalBlueStreak" Pos="(2.953; 0.866; 0.93)" ParentFrame="BoneCabinBase_cdt" />	
		    <Flare _template="IgnitionSignalBlueStreak" Pos="(2.953; 0.864; -0.956)" ParentFrame="BoneCabinBase_cdt" />
		    <Flare _template="HeadLight" Size="0.3" SizeAtDay="15" Pos="(2.969; 0.573; 0.641)" ParentFrame="BoneCabinBase_cdt" />
		    <Flare _template="HeadLight" Size="0.3" SizeAtDay="15" Pos="(2.969; 0.573; -0.665)" ParentFrame="BoneCabinBase_cdt" />
            <Flare _template="IgnitionSignalBlueStreak" Pos="(2.969; 0.573; 0.641)" ParentFrame="BoneCabinBase_cdt" />	
		    <Flare _template="IgnitionSignalBlueStreak" Pos="(2.969; 0.573; -0.665)" ParentFrame="BoneCabinBase_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Size="0.30" SizeAtDay="15.0" Pos="(2.969; 0.573; 0.0)" ParentFrame="BoneCabinBase_cdt" />
	<GameData
		BalancePoints="1"
		LogPoints="0"
	>
        <WinchSocket Pos="(2.961; 0.636; -0.383)" ParentFrame="BoneCabinBase_cdt" />
		<WinchSocket Pos="(2.961; 0.636; 0.378)" ParentFrame="BoneCabinBase_cdt" />
		<WinchSocket Pos="(-3.614; 0.855; -0.002)" ParentFrame="BoneChassis_cdt" />
	    <AddonSockets>
               <Socket Names="Kozirek6460" ParentFrame="BoneCabin" />
		</AddonSockets>
		<AddonSockets>
               <Socket Names="RKRILIA" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="Kengur6460" ParentFrame="BoneCabinBase_cdt" />
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="Faraarmy6460" ParentFrame="BoneCabinBase_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamAntena_arm" Offset="(3.6; 0.25; 0.42)" ParentFrame="BoneCabinBase_cdt" />	   
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="smufara6460" ParentFrame="BoneCabinBase_cdt" />
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="smukengur6460" ParentFrame="BoneCabinBase_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="obtekatel verkhniy6460" ParentFrame="BoneCabinBase_cdt" Offset="(-2.4; 0.08; 0.0)" />	   
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="zapaska 6460" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
	    <AddonSockets>
               <Socket Names="KamazTrailer" Offset="(-1.7; 1.1; 0.0)" ParentFrame="BoneChassis_cdt" />
			   <Socket Names="KamazTraile3" Offset="(-2.3; 0.9; 0.0)" ParentFrame="BoneChassis_cdt" />
		<Socket Names="T_tral" Offset="(-2.95; 1.6; 0)" />	
		<Socket Names="trailer_tral" Offset="(-2; 1.25; 0)" />
		</AddonSockets>
		<AddonSockets>
		<Socket Names="Load_Logs_Long" Offset="(6.5; 0.1; 0.0)" />
		</AddonSockets>
	</GameData>
</Truck>
