<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			Type="Wheels_BRDM_2_rear"
			HardpointOffsetY="-0.15"
			SuspensionMin="-0.34"
			SuspensionStrength="0.014"
			Torque="default"
		/>
		<FrontWheel
			Type="Wheels_BRDM_2_front"
			HardpointOffsetY="-0.15"
			SteeringAngle="40"
			SteeringCastor="8"
			SuspensionMin="-0.34"
			SuspensionStrength="0.014"
			Torque="full"
		/>
		<dop_koleso
			Type="uaz"
			HardpointOffsetY="0.4"
			SteeringCastor="8"
			ConnectedToHandbrake="true"
			HardpointZ="0.86"
			SuspensionMin="-0.3"
			Torque="full"
			SuspensionStrength="0.025"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.5"
		HardpointDefaultZ="0.92"
	>
		<Wheel _template="FrontWheel" HardpointX="1.25" />
		<Wheel _template="FrontWheel" HardpointX="1.25" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.78" />
		<Wheel _template="RearWheel" HardpointX="-1.78" RightSide="true" />
		<Wheel _template="dop_koleso" HardpointX="0.173" />
		<Wheel _template="dop_koleso" HardpointX="0.173" RightSide="true" />
		<Wheel _template="dop_koleso" HardpointX="-0.676" />
		<Wheel _template="dop_koleso" HardpointX="-0.676" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.02"
		DiffLockType="Always"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.4"
		ExhaustStartTime="0.5"
		FuelCapacity="280"
		LockClothOrigin="(0.75; -0.1; 0)"
		LockClothScale="0.9"
		Responsiveness="0.06"
		SteerSpeed="0.026"
	>
		<Steam Origin="(1.924; 1.227; 0)"/>
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.686"
		/>	
	<Sounds
			_template="Default"
			EngineHeavyVolume="0.8"
			Origin="(-2.5; 1.3; 0)"
		>
			<Reverse _inheritRemove="true" />
			<EngineStop Sound="engine/gaz_stop" />
			<EngineStart Sound="zil_offroad_start" />
			<EngineRev Sound="engine/gaz_rev" />
			<EngineLow Sound="engine/gaz_low" />
			<EngineIdle Sound="engine/gaz_idle" />
			<EngineHigh Sound="engine/gaz_high" />
			<EngineHeavy Sound="engine/gaz_heavy" />
			<BrakeRelease _inheritRemove="true" />
			<BrakePull _inheritRemove="true" />
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.30"
			HeightFront="1.2"
			HeightRear="0.6"
			MinX="-2.10"
			MaxX="3.00"
		>
			<FullOcclusion HeightFront="1.1" HeightRear="1.3" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.7" MinX="-2.53" MaxX="3.38" />
		<Motor MaxDeltaAngVel="0.01" Torque="82000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="1.5" />
			<Gear AngVel="3.5" />
			<Gear AngVel="6.0" />
			<Gear AngVel="9.5" />
			<Gear AngVel="14.0" />
		</Motor>
		<LimitedFluid
			Center="(-2.715; 1.247; 0.82)"
			SizeX="0.62"
			SizeY="0.531"
			SizeZ="0.592"
			Type="Box"
		/>
		<LimitedFluid
			Center="(-2.715; 1.247; -0.8)"
			SizeX="0.62"
			SizeY="0.531"
			SizeZ="0.592"
			Type="Box"
		/>
		<Exhaust Dir="(-3.171; -0.069; 0.983)" Origin="(-3.099; 1.674; 0.778)" Speed="1.0" />
		<Exhaust Dir="(-3.171; -0.069; 0.-983)" Origin="(-3.096; 1.69; -0.772)" Speed="1.0" />
		<Driver Pos="(1.0; 1.0; 0.3)" SteeringWheelPos="(1.52; 1.45; 0.3)" />
		<Damage
			Capacity="1000"
			SensationMin="(-5.495; 2.4; -1.041)"
			SensationMax="(2.489; 2.6; 1.041)"
		/>
		<Camera RadiusMultiplier="0.9" >
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(62; 60; 54)"
				ControlsPos="(2.0; 1.5; -0.4)"
				ViewPos="(1.0; 1.8; 0.3)"
				WindshieldDiffuseTexture="trucks/gaz66_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
			<Axle Frame="BoneAxleR1" SingleWheel="5" />
			<Axle Frame="BoneAxleR2" SingleWheel="7" />
			<Axle Frame="BoneAxleL1" SingleWheel="4" />
			<Axle Frame="BoneAxleL2" SingleWheel="6" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="krihka1">
			<Constraint Name="krihka1" Position="60" />
		</Group>
		<Group Id="krihka2">
			<Constraint Name="krihka2" Position="60" />
		</Group>
	</PoweredConstraints>	
	<PhysicsModel Mesh="trucks/brdm_2">
		<Body
			CenterOfMassOffset="(-0.5; -0.2; 0)"
			ImpactType="Truck"
			Mass="2700"
		
		>
				
				<Body
					Collisions="None"
					Mass="150"
					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 ImpactType="Truck" Mass="250" ModelFrame="BoneKrihka1_cdt">
				<Constraint
					AxisLocal="(0;  0;  1)"
					MinLimit="0"
					MaxLimit="100"
					Name="krihka1"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="250" ModelFrame="BoneKrihka2_cdt">
				<Constraint
					AxisLocal="(0;  0;  1)"
					MinLimit="0"
					MaxLimit="100"
					Name="krihka2"
					Type="Hinge"
				>
					<Motor Force="3000" Type="Position" />
				</Constraint>
			</Body>
	 </Body>
	</PhysicsModel>
	<HeadLight _template="Default" Pos="(0.8; 1.5; 0.0)" />
	<GameData BalancePoints="2">
		<LoadArea Min="(2.2;  -0.8; 2.0)" Max="(-3.0; 2.0; -2.0)" Type="ShortLogs" />		
		<WinchSocket Pos="(2.570; 1.466; -0.008)" />
		<WinchSocket Pos="(-2.97; 1.618; 1.117)" />
		<WinchSocket Pos="(-2.97; 1.637; -1.107)" />
		<AddonSockets>
			<Socket Names="gruz" Offset="(0.6; 0.0; 0.0)" />
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="zapaska_brdm2" />
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="kanistri_brdm2" />
		</AddonSockets>
	</GameData>
	<ModelAttachments>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(2.236; 1.562; 0.861)" />
			<Model _template="HeadLightRay" Org="(2.236; 1.562; -0.852)" />
			<Flare
				Pos="(2.252; 1.562; -0.852)"
				Color="g(193; 184; 160)"
				Size="0.4"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(2.236; 1.545; 0.861)"
				Color="g(193; 184; 160)"
				Size="0.4"
				SizeAtDay="0.4"
			/>
	
		</HeadLight>
		<Ignition>
			<Flare
				Pos="(-3.008; 1.673; 0.996)"
				Color="g(134; 82; 41) x 1.5"
				Size="0.4"
				SizeAtDay="0.2"
			/>
			<Flare
				Pos="(-3.008; 1.688; -0.988)"
				Color="g(134; 82; 41) x 1.5"
				Size="0.4"
				SizeAtDay="0.2"
			/>
			<Flare
				Pos="(2.289; 1.44; 1.001)"
				Color="(122; 61; 0) x 0.6"
				Size="0.4"
				SizeAtDay="0.2"
			/>
			<Flare
				Pos="(2.298; 1.44; -1.030)"
				Color="(122; 61; 0) x 0.6"
				Size="0.4"
				SizeAtDay="0.2"
			/>
			<Light _template="StopSignal" Pos="(-3.58; 0.733; 0)" />
		</Ignition>
	</ModelAttachments>
	<ControlledConstraints>					
		<Constraint Id="stering" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
	</Truck>
