<_templates Include="trucks">
	<Wheel>
	<RearWheel
			ConnectedToHandbrake="true"
			Type="btr82a_wheel"
			HardpointOffsetY="-0.32"
			SuspensionMin="-0.24"
			SuspensionStrength="0.035"
			Torque="default"
                       
		/>
	


	<FrontWheel
			Type="btr82a_wheel"
			HardpointOffsetY="-0.32"
			SteeringAngle="32"
			SteeringCastor="8"
			SteeringJointOffset="0.2"
			SuspensionMin="-0.24"
			SuspensionStrength="0.035"
			Torque="default"
		/>
	
	</Wheel>

</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.75"
		HardpointDefaultZ="1.13"
	>
		<Wheel _template="FrontWheel" HardpointX="2.004" />
		<Wheel _template="FrontWheel" HardpointX="2.004" RightSide="true" />


		<Wheel _template="FrontWheel" HardpointX="0.649" />
		<Wheel _template="FrontWheel" HardpointX="0.649" RightSide="true" />

		<Wheel _template="RearWheel" HardpointX="-0.937" />
		<Wheel _template="RearWheel" HardpointX="-0.937" RightSide="true" />

	        <Wheel _template="RearWheel" HardpointX="-2.246" />
		<Wheel _template="RearWheel" HardpointX="-2.246" RightSide="true" />
	</Wheels>

<TruckData
		BackSteerSpeed="0.01"
                EngineIconMesh="env/engine_default"
                EngineIconScale="1.3"
		EngineStartDelay="2.0"
		ExhaustStartTime="1.9"
		FuelCapacity="420"
		Responsiveness="1.0"
		SteerSpeed="0.02"
	>
	<SteeringWheel Frame="rul_cdt" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.852"
		/>
		
		
		<Steam Origin="(4.03; 0.8; 0)" />
		<Steam Origin="(4.207; 1.2; 0)" Scale="0.5" />
		<Sounds Origin="(-2.35; 1.5; 0)">
                 	<HeadLight Sound="truck/headlight" />
			<Handbrake Sound="truck/handbrake" />
			<Gear Sound="truck/gear" />
                        <ExhaustShot Sound="truck/shot" />
                        <EngineStop Sound="kamaz5511_stop" />
			<EngineStart Sound="kamaz5511_start" />
			<EngineRev Sound="engine/ural_rev" />
			
			<EngineLow Sound="kamaz5511_low" />
			<EngineIdle AirHissInterval="16.0" Sound="engine/kamaz_idle" />
			<EngineHigh Sound="kamaz5511_high" />
			<EngineHeavy HeavyHighMult="0.4" Sound="kamaz5511_heavy" />
                        <DiffLock Sound="truck/difflock" />
			<Crackle Sound="truck/crackle" />
			<ChassisStress Sound="truck/stress" />
			
		      
			

		</Sounds>

		
		<OcclusionVolume
			HalfSizeZ="0.001"
			HeightFront="0.001"
			HeightRear="0.001"
			MinX="-0.001"
			MaxX="0.001"
		>
			<FullOcclusion HeightRear="0.1" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="2.10" MinX="-4.03" MaxX="4.03" />
		<Motor BrakesDelay="0.6" MaxDeltaAngVel="1.0" Torque="230000">
			<ReverseGear AngVel="1.5" />
			<HighGear AngVel="14.0" />
			<Gear AngVel="1.2" />
			<Gear AngVel="3.8" />
			<Gear AngVel="6.3" />
			<Gear AngVel="9.5" />
			<Gear AngVel="14.0" />
		</Motor>


	
	        <Exhaust Dir="(-1.0; 0; 0)" Origin="(-3.288; 1.733; 0.965)" Speed="3.65" />
                <Exhaust Dir="(-1.0; 0; 0)" Origin="(-3.288; 1.733; -0.965)" Speed="3.65" />
		<Damage
			Capacity="1000"
			SensationMin="(-0.08; 2.35; -0.5)"
			SensationMax="(1.043; 2.713; 0.5)"
			
		/>
		<Camera RadiusMultiplier="0.9">
			<Cockpit
				_template="Default"
				
				ViewPos="(0.121; 3.15; 0)"
				WindshieldDiffuseTexture="trucks/okna_maz__d_a.dds"
                                
			/>
		</Camera>
		<Axles>
			<Axle Frame="b1" IsIndependent="true" />
			<Axle Frame="b2" IsIndependent="true" />
                        <Axle Frame="b3" IsIndependent="true" />
			<Axle Frame="b4" IsIndependent="true" />
                        <Axle Frame="b5" IsIndependent="true" />
			<Axle Frame="b6" IsIndependent="true" />
                        <Axle Frame="b7" IsIndependent="true" />
			<Axle Frame="b8" IsIndependent="true" />
</Axles>
	</TruckData>
	

	<PhysicsModel Mesh="trucks/btr82a">
<Body
                       ModelFrame="BoneChassis"
			CenterOfMassOffset="(-0.1; -0.3; 0)"
			ImpactType="Truck"
			Mass="17000"
		>
<Body
ModelFrame="Bonebashnya_cdt"
Mass="1500"
>
<Constraint
Name="bashnya"
Type="Hinge"
AxisLocal="(0;1;0)"
MinLimit="-180"
MaxLimit="180"
>
<Motor Type="Position" Force="6000" />
</Constraint>


		</Body>


<Body ModelFrame="Boneant_cdt" Mass="20" 	
				AngularDamping="4.0"
				Collisions="None"
				>
				<Constraint
				Type="Ragdoll"
				MinLimit="-03" MaxLimit="03"
				AxisLocal="(1.0; 1.0; 0.0)"  Cone="10">
				<AllMotor Type="Spring" Spring="30" Damping="20" />
				</Constraint>
			</Body>			
<Body ModelFrame="Bonetros_cdt" Mass="20" 	
				AngularDamping="3.0"
				Collisions="None"
				>
			<Constraint
				PlaneAxisLocal="(0; 0; 1.0)"
				TwistAxisLocal="(1.0; 0; 0)"
				TwistMin="-20"
				TwistMax="20"
				Type="Ragdoll"
			>
				</Constraint>
			</Body>			
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		


  <StopSignals>
			
		       
                        <Flare _template="StopSignal" Color="(255; 0; 0)" Direction="20" Size="0.2" Pos="(-3.389; 1.706; 0.749)" />
			<Flare _template="StopSignal" Color="(255; 0; 0)" Direction="20" Size="0.2" Pos="(-3.389; 1.706; -0.749)" />

	                <Light _template="StopSignal" Pos="(-2.95; 0.8; 0)"  />
		</StopSignals>

<HeadLight>
                      
                        <Model _template="HeadLightRay" Org="(2.551; 1.507; 1.035)" />
			<Model _template="HeadLightRay" Org="(2.551; 1.507; -1.035)" />
                        <Model _template="HeadLightRay" Org="(2.386; 1.636; 0.898)" />
			<Model _template="HeadLightRay" Org="(2.386; 1.636; -0.898)" />

                        <Flare _template="HeadLight" Pos="(2.551; 1.507; 1.035)" />
			<Flare _template="HeadLight" Pos="(2.551; 1.507; -1.035)" />
                        <Flare _template="HeadLight" Pos="(2.386; 1.636; 0.898)" />
			<Flare _template="HeadLight" Pos="(2.386; 1.636; -0.898)" />
			


                <Light _template="IgnitionSignalRed" Pos="(-2.75; 0.83; 0)" />
		<Flare _template="IgnitionSignalRed" Direction="30" Size="0.3" Pos="(-3.389; 1.706; 0.795)" />
		<Flare _template="IgnitionSignalRed" Direction="30" Size="0.3" Pos="(-3.389; 1.706; -0.795)" />

		</HeadLight>




	</ModelAttachments>
	<HeadLight
		Pos="(3.0; 1.0; 0)"
		
		AttenEnd="76"
		AttenStart="1"
		Color="g(255; 212; 154) x 9"
		Dir="(1.0; -0.2; 0)"
		InnerCone="0"
		OuterCone="120"
	/>
	<GameData BalancePoints="3">
		<WinchSocket Pos="(3.271; 1.118; 0.723)" />
                <WinchSocket Pos="(3.271; 1.118; -0.723)" />
                <WinchSocket Pos="(-3.317; 1.226; 0)" />
                <WinchSocket Pos="(-3.154; 0.783; 1.056)" />
                <WinchSocket Pos="(-3.154; 0.783; -1.056)" />
<AddonSockets>
			<Socket Names="BtrKanist" />
		</AddonSockets>

		
	</GameData>
<ControlledConstraints>


		<Constraint Id="Bashnya" Name="bashnya" />
  </ControlledConstraints>
</Truck>
