<_templates Include="trucks">
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.4" />
	</Flare>
	<Body>
		<Mudguard AngularDamping="12.0" Collisions="All" Mass="40">
			<Constraint
				AxisLocal="(0.0; 0.0; 1.0)"
				MinLimit="-30"
				MaxLimit="30"
				Type="Hinge"
			/>
		</Mudguard>
	</Body>
	<Wheel>
		<ZazWheel
			HardpointOffsetY="-0.18"
			SuspensionMin="-0.375"
			SuspensionMax="0.9"					
		    SuspensionStrength="0.014"
			SuspensionDamping="0.1"			
			Type="Koleso_vaz2108_sneg"
		/>
		<ZadWheel
			HardpointOffsetY="-0.1"					
			SuspensionMin="-0.375"
			SuspensionMax="0.9"			
			SuspensionDamping="0.1"			
			SuspensionStrength="0.014"
			HardpointZ="0.786"
			Type="Koleso_vaz2108_sneg"
		/>		
		<RearWheel
			_template="ZazWheel"
			ConnectedToHandbrake="true"
			Torque="default"
		/>
		<FrontWheel
			_template="ZadWheel"
			SteeringAngle="40"
			SteeringCastor="8"
		/>
	</Wheel>
	</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.4"
		HardpointDefaultZ="0.78"
	>
		<Wheel _template="FrontWheel" HardpointX="1.332" />
		<Wheel _template="FrontWheel" HardpointX="1.332" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.409" />
		<Wheel _template="RearWheel" HardpointX="-1.409" RightSide="true" />
	</Wheels>	
	<TruckData
		BackSteerSpeed="0.06"
		EngineIconMesh="env/engine_small"
		EngineIconScale="1.15"
		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.524; 0.387; 0)" />
		<Sounds EngineHeavyVolume="0.6" Origin="(1.15; 0.82; 0)" Range="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>
	<LimitedFluid
			Center="(-2.036; 0.469; -0.0)"
			SizeX="0.6"
			SizeY="0.15"
			SizeZ="0.95"
			Type="Box"
		/>		
		<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="64000">
			<ReverseGear AngVel="1.5" />
			<HighGear AngVel="14.0" />
			<Gear AngVel="2.0" />
			<Gear AngVel="3.5" />
			<Gear AngVel="6.0" />
			<Gear AngVel="10.0" />
			<Gear AngVel="17.0" />
		</Motor>
		<Exhaust
			Dir="(-3.0; -0.186; -0.6)"
			IsLight="true"
			Origin="(-2.43; 0.372; -0.469)"
			Speed="1.0"
		/>
		<Driver LegsOffset="(-0.15; 0.0; 0.05)" Pos="(-0.01; 0.65; 0.38)" SteeringWheelPos="(0.3; 1.074; 0.379)" />
		<Damage
			Capacity="700"
			SensationMin="(-1.11; 1.45; -0.80)"
			SensationMax="(0.53; 1.95; 0.80)"
		/>
		<Camera Center="(-0.2; -0.3; 0)" RadiusMultiplier="0.6">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(56; 56; 56)"
				ControlsPos="(1.5; 0.7; 0.7)"
				ViewPos="(-0.2; 1.4; 0.38)"
				WindshieldDiffuseTexture="trucks/zaz968_glass__d_a.tga"
			>
				<Rear
					HorTransitionEnd="-1.2"
					HorTransitionStart="-1.1"
					ViewPosOffset="(0.25; -0.1; 0.52)"
				/>
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxleL1" SingleWheel="0" />
			<Axle Frame="BoneAxleR1" SingleWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
		</Axles>
	</TruckData>
	<ControlledConstraints>
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />		
		<Constraint Id="Door1" Name="Door1" />
		<Constraint Id="Door2" Name="Door2" />
		<Constraint Id="Door3" Name="Door3" />
		<Constraint Id="Door4" Name="Door4" />
		<Constraint Id="Door5" Name="Door5" />
	</ControlledConstraints>
	<PhysicsModel Mesh="trucks/vaz_2104_blue_mud">
		<Body
			CenterOfMassOffset="(-0.0; -0.3; 0)"
			ImpactType="Truck"
			Mass="2100"
		>			
			<Body ImpactType="Truck" Mass="150" ModelFrame="BoneDoor1_cdt">
				<Constraint
					AxisLocal="(0;  1; 0)"
					MinLimit="0"
					MaxLimit="70"
					Name="Door1"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="150" ModelFrame="BoneDoor2_cdt">
				<Constraint
					AxisLocal="(0;  -1; 0)"
					MinLimit="0"
					MaxLimit="70"
					Name="Door2"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="150" ModelFrame="BoneDoor3_cdt">
				<Constraint
					AxisLocal="(0;  -1; 0)"
					MinLimit="0"
					MaxLimit="70"
					Name="Door3"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="150" ModelFrame="BoneDoor4_cdt">
				<Constraint
					AxisLocal="(0;  1; 0)"
					MinLimit="0"
					MaxLimit="70"
					Name="Door4"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="150" ModelFrame="BoneDoor5_cdt">
				<Constraint
					AxisLocal="(0;  0; -1)"
					MinLimit="0"
					MaxLimit="90"
					Name="Door5"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body _template="Mudguard" ModelFrame="BoneBriz1_cdt" />
			<Body _template="Mudguard" ModelFrame="BoneBriz2_cdt" />
			  <Body Collisions="None" Mass="50" ModelFrame="BoneRul_cdt">
		       <Constraint
							AxisLocal="(0;-1;0)"
							MinLimit="-*"
							MaxLimit="*"
							Name="ChassisSteer"
							Type="Hinge"
						>
							<Motor
								Damping="0.5"
								Force="350"
								Tau="0.04"
								Type="Position"
							/>
				  </Constraint>
			</Body>			
		<Body
				AngularDamping="6.0"
				Collisions="None"
				Mass="30"
				ModelFrame="BoneBos_cdt"
			>
				<Constraint Cone="50" TwistAxisLocal="(0;1;0)" Type="Ragdoll" />
			</Body>		
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<ReverseSignals>
			<Light
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-2.92; 0.697; 0)"
			/>
			<Light
				Pos="(-892.892; 0.0; 0.0)"
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-2.463; 0.819; 0.732)"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-5.0; 0; 0)"
				DirAngle="90"
				Size="0.25"
				SizeAtDay="0.2"
			/>
			<Flare
				Pos="(-2.464; 0.817; -0.725)"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-5.0; 0; 0)"
				DirAngle="90"
				Size="0.25"
				SizeAtDay="0.2"
			/>
		</ReverseSignals>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-2.92; 0.697; 0)" />
			<Flare
				Color="g(143; 15; 15) x 1.8"
				Size="0.2"
				SizeAtDay="0.4"
				Pos="(-2.47; 0.817; -0.632)"
			/>
			<Flare
				Color="g(143; 15; 15) x 1.8"
				Size="0.2"
				SizeAtDay="0.4"
				Pos="(-2.47; 0.817; 0.64)"
			/>
		</StopSignals>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(2.108; 0.804; 0.639)" />
			<Model _template="HeadLightRay" Org="(2.108; 0.804; -0.639)" />
			<Flare
				Size="0.8"
				SizeAtDay="0.1"
				Pos="(1.937; 0.840; 0.541)"
				DirAngle="180"
				AspectRatio="1.0"
				Color="g(235; 220; 180) x 0.7"
			/>
			<Flare
				Color="g(235; 220; 180) x 0.7"
				Size="0.8"
				SizeAtDay="0.1"
				DirAngle="180"
				AspectRatio="1.0"
				Pos="(1.937; 0.840; -0.541)"
			/>
			<Light _template="StopSignal" Pos="(-2.92; 0.697; 0)" />
			<Flare
				Color="g(143; 15; 15) x 1.2"
				Size="0.2"
				SizeAtDay="0.15"
				Pos="(-2.361; 1.020; -0.73)"
			/>
			<Flare
				Color="g(143; 15; 15) x 1.2"
				Size="0.2"
				SizeAtDay="0.15"
				Pos="(-2.367; 1.023; -0.626)"
			/>
			<Flare
				Color="g(143; 15; 15) x 1.2"
				Size="0.2"
				SizeAtDay="0.15"
				Pos="(-2.364; 1.024; 0.637)"
			/>
			<Flare
				Color="g(143; 15; 15) x 1.2"
				Size="0.2"
				SizeAtDay="0.15"
				Pos="(-2.362; 1.018; 0.73)"
			/>
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		Pos="(1.6; 0.5; 0.0)"
		AttenEnd="60"
		AttenStart="1"
		Color="g(250; 220; 180) x 5"
		Dir="(1.0; -0.2; 0)"
		InnerCone="0"
		OuterCone="60"
	/>
	<GameData BalancePoints="1">
		<WinchSocket Pos="(1.95; 0.538; -0.47)" />
		<WinchSocket Pos="(1.95; 0.538; 0.498)" />
		<WinchSocket Pos="(-0.289; 1.567; 0.699)" />
		<WinchSocket Pos="(-0.289; 1.567; -0.69)" />
		<WinchSocket Pos="(-2.567; 0.591; -0)" />
		<AddonSockets>
			<Socket Names="bagahnik_vaz2104" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="farkop_412" Offset="(-0.51; 0.15; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="remka_na_khihu_2104" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="pricep_kvas_2104" Offset="(-2.72; 0.6 0.4)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="bort_gaz" Offset="(-2.78; 0.54; -0.02)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="fara_vaz2104" />
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="sahenec_2104" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="baraxlo_2104" NamesBlock="xlam2104" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="pricep_wmz9601" Offset="(-2.73; 0.6; -0.03)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="xlam2104" Offset="(0.0; 0.0; 0.0)" />
		</AddonSockets>
		<LoadArea Min="(-2.2; 1.35; -1.0)" Max="(1.2; 2.5; 1.0)" Type="ShortLogs" />
	</GameData>
	</Truck>
