<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			HardpointOffsetY="-0.1"
			SuspensionDamping="0.4"
			SuspensionMin="-0.22"
			SuspensionStrength="0.026"
			Torque="default"
			Type="uaz_zad_Rear"
		/>
		<FrontWheel
			HardpointOffsetY="-0.18"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionDamping="0.4"
			SuspensionMin="-0.22"
			SuspensionStrength="0.026"
			Torque="full"
			Type="uaz_pered_Rear"
		/>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.4" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.28"
		HardpointDefaultZ="0.8"
	>
		<Wheel _template="FrontWheel" HardpointX="1.2" />
		<Wheel _template="FrontWheel" HardpointX="1.2" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.19" />
		<Wheel _template="RearWheel" HardpointX="-1.19" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.26" />
		<Wheel _template="RearWheel" HardpointX="-2.26" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineIconMesh="env/engine_small"
		EngineIconScale="1.2"
		EngineStartDelay="1.7"
		ExhaustStartTime="1.6"
		FuelCapacity="80"
		LockClothOrigin="(0.25; -0.15; 0)"
		LockClothScale="0.7"
		Responsiveness="0.6"
		SteerSpeed="0.025"
	>
		<Steam Origin="(1.290; 0.900; 0)" />
		<Sounds EngineHeavyVolume="0.6" Origin="(1.1; 0.9; 0)">
			<HeadLight Sound="truck/headlight" />
			<Handbrake Sound="truck/handbrake" />
			<Gear Sound="truck/zaz_gear" />
			<ExhaustShot Sound="truck/shot" />
			<EngineStop Sound="engine/uaz_stop" />
			<EngineStart Sound="engine/uaz_start" />
			<EngineLow Sound="engine/uaz_low" />
			<EngineIdle Sound="engine/uaz_idle" />
			<EngineHigh Sound="engine/uaz_high" />
			<EngineHeavy Sound="engine/uaz_heavy" />
			<DiffLock Sound="truck/difflock" />
		</Sounds>
		<LimitedFluid
			Center="(0.429;  0.617; -0.717)"
			SizeX="0.5"
			SizeY="0.26"
			SizeZ="0.44"
			Type="Box"
		/>
		<LimitedFluid
			Center="(0.1;  0.613; 0.719)"
			SizeX="0.65"
			SizeY="0.25"
			SizeZ="0.44"
			Type="Box"
		/>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.10"
			HeightFront="1.0"
			HeightRear="1.3"
			MinX="-1.65"
			MaxX="1.85"
		/>
		<OcclusionMap
			HalfSizeZ="1.4"
			MinX="-2.4"
			MaxX="2.5"
			Texture="trucks/occlusion/chassis_small__s_d_a.tga"
		/>
		<Motor MaxDeltaAngVel="0.1" Torque="76000">
			<ReverseGear AngVel="1.5" />
			<HighGear AngVel="12.0" />
			<Gear AngVel="2.0" />
			<Gear AngVel="4.0" />
			<Gear AngVel="6.0" />
			<Gear AngVel="12.0" />
			<Gear AngVel="18.0" />
		</Motor>
		<Exhaust
			Dir="(-1.0; 0; 0)"
			IsLight="true"
			Origin="(-1.6; 0.542; 0.377)"
			Speed="2.0"
		/>
		<Driver Pos="(1.2; 1.05; 0.57)" SteeringWheelPos="(1.5; 1.44; 0.53)" />
		<Damage
			Capacity="600"
			SensationMin="(-1.11; 1.45; -0.80)"
			SensationMax="(0.53; 1.95; 0.80)"
		/>
		<Camera RadiusMultiplier="0.8">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(69; 66; 55)"
				ViewPos="(1.08; 1.75; 0.53)"
				WindshieldDiffuseTexture="trucks/uaz469_glass__d_a.tga"
			>
				<Rear
					HorTransitionEnd="-1.2"
					HorTransitionStart="-1.1"
					ViewPosOffset="(0.2; -0.1; 0.55)"
				/>
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/uaz_452">
		<Model Dir="(1; 0; 0)" Mesh="uaz_sidenie__452" Org="(0; 0; 0)" />
		<Body
			CenterOfMassOffset="(0.2; -0.1; 0)"
			ImpactType="Truck"
			Mass="2600"
		>
			 
		    <Body _template="Mudguard" ModelFrame="BoneBriz1_cdt">
				<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-35" MaxLimit="20" />
			</Body>
		    <Body _template="Mudguard" ModelFrame="BoneBriz2_cdt">
				<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-35" MaxLimit="20" />
			</Body>
		    <Body _template="Mudguard" ModelFrame="BoneBriz3_cdt">
				<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-35" MaxLimit="20" />
		    </Body>
		    <Body _template="Mudguard" ModelFrame="BoneBriz4_cdt">
				<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-35" MaxLimit="20" />
		    </Body>
		  
		  <Body Collisions="None" Mass="150" ModelFrame="BoneSteeringWheel_cdt">
		        <Constraint
							AxisLocal="(1;0;0)"
							MinLimit="-*"
							MaxLimit="*"
							Name="ChassisSteer"
							Type="Hinge"
						>
							<Motor
								Damping="0.5"
								Force="350"
								Tau="0.04"
								Type="Position"
							/>
				  </Constraint>
			</Body>
			
			<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
			<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light
				Pos="(-3.239; 0.94; 0)"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-3.239; 0.94; 0.853)"
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.6"
			/>
			<Flare
				Pos="(-3.239; 0.94; -0.853)"
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.6"
			/>
		</StopSignals>
		<ReverseSignals>
			<Light
				Pos="(-3.252; 1.104; 0.423)"
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-3.252; 1.104; 0.423)"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.2"
				SizeAtDay="0.4"
			/>
		</ReverseSignals>
		<Ignition>
			<Flare _template="Sublight" Pos="(2.16; 0.83; 0.72)" />
			<Flare _template="Sublight" Pos="(2.16; 0.83; -0.72)" />
			<Light
				Pos="(-3.239; 1.104; 0)"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Size="0.2"
			/>
			<Flare
				Pos="(-3.239; 1.05; 0.853)"
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="100"
				Size="0.2"
			/>
			<Flare
				Pos="(-3.239; 1.05; -0.853)"
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="100"
				Size="0.2"
			/>
		</Ignition>
	<HeadLight>
			<Flare
				Pos="(2.15; 1.055; 0.59)"
				Color="g(141; 133; 117) x 2"
				Dir="(1.0; 0; 0)"
				DirAngle="150"
				Size="0.5"

			/>
			<Flare
				Pos="(2.15; 1.055; -0.59)"
				Color="g(141; 133; 117) x 2"
				Dir="(1.0; 0; 0)"
				DirAngle="150"
				Size="0.5"

			/>
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(1.828; 1.041; 0)" />
	<GameData
		BalancePoints="1"
		LogPoints="0"
		Recallable="true"
	>
		<WinchSocket Pos="(2.3; 0.7; 0.3)" />
		<WinchSocket Pos="(2.3; 0.7; -0.3)" />
		<WinchSocket Pos="(-3.325; 0.671; 0)" />
		<AddonSockets>
			<Socket Names="pricep_bochka_uaz_4x4" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
		<AddonSockets>
			<Socket Names="pricep_bochka__452" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
		<AddonSockets>
			<Socket Names="Pricep_kung_uaz452_4x4" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
		<AddonSockets>
			<Socket Names="rem_komplekt" />
		</AddonSockets>
	    	  <AddonSockets>
			<Socket Names="remont" />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="kunguratnik"  />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="Bagahnik"  />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="telega" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="Generator" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="Brizgoviki"  />
	   </AddonSockets>
	 <AddonSockets>
			<Socket Names="gruz_doski"  NamesBlock="remont" />
	  </AddonSockets>
	  <AddonSockets>
			<Socket Names="Zapaska__452" Offset="(0.0; 0.0; 0.06)" NamesBlock="LestnicaR" />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="Zapaska" />
	   </AddonSockets>
	 <AddonSockets>
			<Socket Names="pricep_bocgka__452" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
	<AddonSockets>
			<Socket Names="Pricep_tent" Offset="(-3.353; 0.665; 0.0)" />
	   </AddonSockets>
	<AddonSockets>
			<Socket Names="LestnicaL" Offset="(0.0; 0.0; 0.7)" />
	   </AddonSockets>
	  <AddonSockets>
			<Socket Names="LestnicaR" />
	   </AddonSockets>
	</GameData>
<ControlledConstraints>
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
</Truck>
