<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			Type="koleso_medved_uaz3153_zad"
			HardpointOffsetY="-0.28"
			ParentFrame="BoneRama_cdt"
			SuspensionMin="-0.45"
			SuspensionStrength="0.03"
			Torque="default"
		/>
		<FrontWheel
			Type="koleso_medved_uaz3153"
			HardpointOffsetY="-0.26"
			SteeringAngle="40"
			SteeringAngleCasual="40"
			SteeringCastor="8"
			SteeringJointOffset="0.1"
			SuspensionMin="-0.45"
			SuspensionStrength="0.03"
			Torque="full"
		/>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.4" />
	</Flare>
	<Body>
		<Mudguard AngularDamping="5.0" Collisions="None" Mass="40">
			<Constraint
				AxisLocal="(0.0; 0.0; 1.0)"
				MinLimit="-45"
				MaxLimit="25"
				Type="Hinge"
			/>
		</Mudguard>
	</Body>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.28"
		HardpointDefaultZ="0.82"
	>
		<Wheel _template="FrontWheel" HardpointX="0.68" />
		<Wheel _template="FrontWheel" HardpointX="0.68" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.721" />
		<Wheel _template="RearWheel" HardpointX="-1.721" 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.9; 0)" />
		<Sounds EngineHeavyVolume="0.6" Origin="(0.3; 0.8; 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>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />		
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.10"
			HeightFront="1.0"
			HeightRear="1.3"
			MinX="-1.65"
			MaxX="1.85"
		/>
		<OcclusionMap
			HalfSizeZ="1.6"
			MinX="-1.8"
			MaxX="2.05"
			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="8.0" />
			<Gear AngVel="14.0" />
			<Gear AngVel="20.0" />
		</Motor>
		<Exhaust Dir="(-3.782; 0.153; -0.320)" Origin="(-2.737; 0.327; -0.325)" Speed="0.82" />
		<Driver Pos="(0.6; 0.94; 0.6)" SteeringWheelPos="(0.93; 1.38; 0.56)" />
		<LimitedFluid
			Center="(-0.568; 0.33; -0.697)"
			SizeX="0.794"
			SizeY="0.208"
			SizeZ="0.442"
			Type="Box"
		/>				
		<LimitedFluid
			Center="(-0.568; 0.33; 0.697)"
			SizeX="0.794"
			SizeY="0.208"
			SizeZ="0.442"
			Type="Box"
		/>		
		<Damage
			Capacity="585"
			SensationMin="(0.8; 1.0; -0.80)"
			SensationMax="(0.53; 1.34; 0.80)"
		/>
		<Camera RadiusMultiplier="0.8">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(69; 66; 55)"
				ControlsPos="(0.2; 1.46; 0.57)"
				ViewPos="(0.5; 1.6; 0.55)"
				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" />
		</Axles>	
	</TruckData>
	<PhysicsModel Mesh="trucks/uaz_452_blue">
		<Body
			CenterOfMassOffset="(-0.2; -0.3; 0)"
			ImpactType="Truck"
			Mass="2200"
		>
			<Body
				Collisions="None"
				Mass="150"
				ModelFrame="BoneRul_cdt"
				ParentFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(0;-1;0)"
					MinLimit="-*"
					MaxLimit="*"
					Name="ChassisSteer"
					Type="Hinge"
					ParentFrame="BoneCabin_cdt"
				>
					<Motor
						Damping="0.5"
						Force="350"
						Tau="0.04"
						Type="Position"
					/>
				</Constraint>
			</Body>
			<Body
				CenterOfMassOffset="(-0.6; -0.3; 0)"
				ImpactType="Truck"
				Mass="1000"
				ModelFrame="BoneRama_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-8"
					MaxLimit="8"
					Type="Hinge"
				>
					<Motor Damping="21000" Spring="140000" Type="Spring" />
				</Constraint>
			</Body>
			<Body _template="Mudguard" ModelFrame="BoneBriz1_cdt" />
			<Body _template="Mudguard" ModelFrame="BoneBriz2_cdt" />
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(1.8; 0.953; 0.608)" />
			<Model _template="HeadLightRay" Org="(1.8; 0.953; -0.608)" />
			<Flare _template="HeadLight" Pos="(1.623; 0.894; -0.611)" />
			<Flare _template="HeadLight" Pos="(1.628; 0.895; 0.608)" />			
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(1.828; 1.041; 0)" />
	<GameData BalancePoints="1">
		<LoadArea Min="(0.27;  -1.0; 1.0)" Max="(-3.3; 2.5; -1.0)" Type="ShortLogs" />
		<WinchSocket Pos="(1.61; 0.447; -0.3)" />
		<WinchSocket Pos="(1.61; 0.449; 0.316)" />
		<WinchSocket Pos="(-2.815; 0.346; -0.002)" />
		<AddonSockets>
			<Socket Names="kung_uaz452d" ParentFrame="BoneRama_cdt" NamesBlock="bort_uaz452,tent" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="drova2" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="toplivo_and_reming" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="uazovskaya_telega" Offset="(-2.86;  0.33; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="pricep_bochka_uaz_4x4" Offset="(-2.86;  0.33; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Generator" Offset="(-2.86;  0.33; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="gruz_drova_uaz452" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="CMy_uaz452" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="zemla_uaz452" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="trailer_bort_uaz" Offset="(-2.9;  0.36; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="tent" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="xlam_uaz452" ParentFrame="BoneRama_cdt" NamesBlock="toplivo_and_reming,gruz_drova_uaz452,drova2" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="bort_uaz452" ParentFrame="BoneRama_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
</Truck>
