<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			Type="mefro_375_double"
			HardpointOffsetY="-0.25"
			HardpointZ="0.86"
			SuspensionMin="-0.15"
			SuspensionStrength="0.025"
			Torque="default"
			ParentFrame="BoneShoulder_cdt"
		/>
		<FrontWheel
			Type="mefro_375"
			HardpointOffsetY="-0.18"
			HardpointZ="1.04"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.3"
			SuspensionStrength="0.04"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.3" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.6"
		HardpointDefaultZ="1.05"
	>
		<Wheel _template="FrontWheel" HardpointX="2.12" />
		<Wheel _template="FrontWheel" HardpointX="2.12" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.545" />
		<Wheel _template="RearWheel" HardpointX="-1.545" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.91" />
		<Wheel _template="RearWheel" HardpointX="-2.91" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.4"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="350"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; 0.0; 0)"
		LockClothScale="0.9"
		Responsiveness="0.1"
		SteerSpeed="0.02"
	>
		<WheelsSets>
			<WheelsSet Title="ID 304">
				<WheelType Type="koleso_kamaz_53215_2" Wheels="0,1" />
				<WheelType Type="koleso_kamaz_53215_double2" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="KAMA 310">
				<WheelType Type="kama310" Wheels="0,1" />
				<WheelType Type="kama310_double" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="0 40 BM">
				<WheelType Type="kama_0_40_bm" Wheels="0,1" />
				<WheelType Type="kama_0_40_bm_double" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="ID 304">
				<WheelType Type="koleso_kamaz" Wheels="0,1" />
				<WheelType Type="koleso_kamaz_double" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="IN 142BM">
				<WheelType Type="zilowskiy_romb" Wheels="0,1" />
				<WheelType Type="zilowskiy_romb_doouble" Wheels="2,3,4,5" />
			</WheelsSet>
			<WheelsSet Title="RAZNIE KOLESA">
				<WheelType Type="raznie_kolesa3" Wheels="1" />
				<WheelType Type="kama_310_2" Wheels="0" />
				<WheelType Type="zilowskiy_romb_doouble" Wheels="2" />
				<WheelType Type="raznie_kolesa2" Wheels="3" />
				<WheelType Type="raznie_kolesa" Wheels="4,5" />
			</WheelsSet>
		</WheelsSets>
		<Steam Origin="(1.3; 1.0; 0)" Scale="5.5" />
		<Sounds
			AirHissInterval="16.0"
			EngineHeavyVolume="0.4"
			Origin="(2.1; 1.14; 0)"
			Range="10.0"
		>
			<Headlight Sound="vqb33sk" />
			<Handbrake Sound="vqb336h" />
			<ExhaustShot Sound="vqb3303" />
			<EngineStop Sound="vqb337h" />
			<EngineStart ExhaustStart="0.9" Sound="vqb33o2" />
			<EngineRev Sound="vqb336p" />
			<EngineNeutral Sound="vqb336s" />
			<EngineLow Sound="vqb335v" />
			<EngineIdle AirHissInterval="16.0" Sound="vqb33hi" />
			<EngineHigh Sound="vqb33h2" />
			<EngineHeavy HeavyHighMult="0.4" Sound="vqb33et" />
			<DiffLock Sound="vqb333m" />
			<Crackle Sound="vqb33oq" />
			<ChassisStress Sound="vqb33m9" />
			<BrakeRelease Sound="vqb33s7" />
			<BrakePull Sound="vqb334o" />
			<AbruptStop Sound="vqb33ni" />
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.40"
			HeightFront="1.1"
			HeightRear="0.7"
			MinX="-2.50"
			MaxX="2.50"
		>
			<FullOcclusion HeightRear="1.1" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.90" MinX="-3.6" MaxX="5.07" />
		<Motor BrakesDelay="0.3" MaxDeltaAngVel="0.02" Torque="120000">
			<ReverseGear AngVel="1.0" />
			<HighGear AngVel="10.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.3; -0.37; 0.93)"
			IsLight="true"
			Origin="(-0.55; 0.45; 0.92)"
			Speed="3.77"
		/>
		<Driver Pos="(2.4; 1.66; 0.7)"  SteeringWheelPos="(2.869; 2.019; 0.632)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="600"
			SensationMin="(1.77; 2.02; -0.77)"
			SensationMax="(2.72; 2.66; 0.77)"
		/>
		<Camera Center="(0.4; 0; 0)" ParentFrame="BoneCabinBase_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(53; 52; 50)"
				ControlsPos="(0.092; 100.1; 0.745)"
				ViewPos="(2.38; 2.35; 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/kamaz_53215">
		<Body
			CenterOfMassOffset="(0.4; -0.2; 0)"
			ImpactType="Truck"
			Mass="7000"
		>
			<Body
				CenterOfMassOffset="(-0.4; -0.3; 0)"
				ImpactType="Truck"
				Mass="1500"
				ModelFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-4"
					MaxLimit="4"
					PivotOffset="(-2.0; -0.2; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="24000" Spring="240000" Type="Spring" />
				</Constraint>
				<Body
					Collisions="None"
					Mass="150"
					ModelFrame="BoneSteeringWheel_cdt"
					ParentFrame="BoneCabin_cdt"
				>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-*"
						MaxLimit="*"
						Name="ChassisSteer"
						Type="Hinge"
						ParentFrame="BoneCabin_cdt"
					>
						<Motor
							Damping="0.5"
							Force="350"
							Tau="0.04"
							Type="Position"
						/>
					</Constraint>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="20"
					ModelFrame="BoneVimpel_cdt"
					ParentFrame="BoneCabin_cdt"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-25"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="20"
					ModelFrame="BoneBriz1_cdt"
					ParentFrame="BoneCabin_cdt"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-45"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="20"
					ModelFrame="BoneBriz2_cdt"
					ParentFrame="BoneCabin_cdt"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-45"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
			 <Body
				AngularDamping="30.0"
				Collisions="None"
				Mass="60"
				ModelFrame="Boneyolichka_cdt"
			    ParentFrame="BoneCabin_cdt"
			>
				<Constraint Cone="20" TwistAxisLocal="(0;1;0)" Type="Ragdoll" />
			</Body>
			</Body>
				<Body Collisions="None" Mass="700" ModelFrame="BoneShoulder_cdt"> 
				<Constraint
					AxisLocal="(0;0;1)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Force="10" Type="Position" />
				</Constraint>
			</Body>
 	  </Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare _template="Sublight" Pos="(2.05; 1.377; 1.23)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="Sublight" Pos="(2.05; 1.377; -1.24)" ParentFrame="BoneCabin_cdt" />
		</Ignition>
	</ModelAttachments>
	<HeadLight
		AttenEnd="76"
		AttenStart="1"
		Color="g(255; 212; 154) x 9"
		Dir="(1.0; -0.2; 0)"
		InnerCone="0"
		OuterCone="120"
		Pos="(1.58; 1.275; 0.0)"
		ParentFrame="BoneFront_cdt"
	/>
	<GameData _noinherit="true" BalancePoints="2">
		<WinchSocket Pos="(-0.984; 0.9;  0.4)" ParentFrame="BoneChassis_cdt" />
		<WinchSocket Pos="(-4.37; 0.89;  0.0)" ParentFrame="BoneChassis_cdt" />
	   <AddonSockets>
			<Socket Names="gruz_fekalii" Offset="(0.0; 0.13; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Ko505A" NamesBlock="ko505b,Ko505ag" Offset="(0.0; 0.08; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="ko505b" NamesBlock="Ko505ag,Ko505A" Offset="(-0.65; -0.3; 0.0)"  />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Ko505ag" NamesBlock="ko505b,Ko505A" Offset="(0.0; 0.08; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="fari_na_ramu" NamesBlock="fara_na_bochku" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="morda2" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="morda1" NamesBlock="morda2" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
				<AddonSockets>
			<Socket Names="bamper" NamesBlock="stariy_bamper,bamper3,bamper2" NamesBlock="metan" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="bamper2" NamesBlock="stariy_bamper,bamper3,bamper" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
				<AddonSockets>
			<Socket Names="bamper3" NamesBlock="stariy_bamper,bamper2,bamper" Offset="(0.0; -0.02; 0.0)" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
				<AddonSockets>
			<Socket Names="stariy_bamper" NamesBlock="bamper3,bamper2,bamper" Offset="(-0.0; 0.0; -0.0)" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="fara_na_bochku" Offset="(0.0;  -0.02; 0.0)"  />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="kriliya_kamaz" NamesBlock="kriliya_kamaz2" Offset="(0.0;  0.12; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="kriliya_kamaz2" Offset="(0.0;  0.12; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="metan" ParentFrame="BoneCabin_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Zapaska_Right" Offset="(-0.1; 0.08; -0.003)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Zapaska_LEFT" Offset="(-0.1; 0.08; 0.03)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="bak" NamesBlock="metan" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
</Truck>
