<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			DefaultWheelType="ca10_rear"
			HardpointOffsetY="-0.22"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrength="0.05"
			Torque="default"
			Type="wheels_zil_164_off_re"
		/>
		<FrontWheel
			HardpointOffsetY="-0.22"
			SteeringAngle="35"
			SteeringCastor="8"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrength="0.025"
			Type="wheels_zil_164_off_fr"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.538"
		HardpointDefaultZ="0.984"
	>
		<Wheel _template="FrontWheel" HardpointX="2.587" />
		<Wheel _template="FrontWheel" HardpointX="2.587" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.666" />
		<Wheel _template="RearWheel" HardpointX="-1.666" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.02"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.1"
		EngineStartDelay="1.5"
		ExhaustStartTime="0.8"
		FuelCapacity="170"
		Responsiveness="0.1"
		SteerSpeed="0.025"
	>
		<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.686"
		/>
		<Steam Origin="(-0.1; 0.796; 0)" />
		<Steam Origin="(3.391; 1; 0)" Scale="0.5" ParentFrame="BoneCabin_cdt" />
		<Sounds
			EngineHeavyVolume="0.4"
			Origin="(2.2; 1.3; 0)"
			AirHissInterval="64.0"
			ParentFrame="BoneCabin_cdt"
		>
			<Reverse Sound="truck/trans_reverse" />
			<HeadLight Sound="truck/headlight" />
			<Handbrake Sound="truck/handbrake" />
			<Gear Sound="truck/gear" />
			<ExhaustShot Sound="truck/shot" />
			<EngineStop Sound="engine/ca30_stop" />
			<EngineStart Sound="engine/ca30_start" />
			<EngineLow Sound="engine/ca30_low" />
			<EngineIdle Sound="engine/ca30_idle" />
			<EngineHigh Sound="engine/ca30_high_off" />
			<DiffLock Sound="truck/difflock" />
			<ChassisStress Sound="truck/stress" />
			<BrakesSqueal Sound="truck/brake_squeal" />
			<AbruptStop Sound="truck/swing" />
			<EngineTrans Sound="truck/trans_2" />
			<Crackle Sound="truck/crackle" />
			<BrakeRelease Sound="truck/china_brake_release" />
			<BrakePull Sound="truck/china_brake_pull" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(0; 8; 0)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
		</Shafts>
		<!--<OcclusionVolume
			HalfSizeZ="1.40"
			HeightFront="1.1"
			HeightRear="0.7"
			MinX="-2.50"
			MaxX="2.50"
		>
			<FullOcclusion HeightRear="1.0" />
		</OcclusionVolume>-->
		<OcclusionMap HalfSizeZ="1.3" MinX="-3.48" MaxX="3.5" />
		<Motor BrakesDelay="0.3" MaxDeltaAngVel="0.01" Torque="80000">
			<ReverseGear AngVel="1.0" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="1.5" />
			<Gear AngVel="3.5" />
			<Gear AngVel="5.0" />
			<Gear AngVel="7.0" />
			<Gear AngVel="9.0" />
		</Motor>
		<LimitedFluid
			Center="(-0.25; 0.788; 0.78)"
			SizeX="0.85"
			SizeY="0.3"
			SizeZ="0.45"
			Type="Box"
		/>
		<Intake Dir="(1; 0; 0)" Origin="(3.116; 1.258; -0)" Size="0.8" />
		<Exhaust Dir="(0; 0; -0.4)" Origin="(-0.958; 0.534; -0.671)" Speed="3.77" />
		<Driver Pos="(0.93; 1.4; 0.374)" SteeringWheelPos="(1.225; 1.814; 0.374)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="600"
			SensationMin="(0.672; 1.67; -0.95)"
			SensationMax="(1.336; 2.27; 0.95)"
		/>
		<Camera RadiusMultiplier="0.8" ParentFrame="BoneCabin_cdt">
			<Cockpit
				LimitsHor="(-2.8; 2.4)"
				LimitsVer="(-0.32; 0.2)"
				ViewDir="(1; -0.05; 0)"
				ViewPos="(0.8; 2.100; 0.4)"
				WindshieldDiffuseTexture="trucks_ca10_windows__d_a.dds"
				ZoomViewDirOffset="(0; -0.05; 0)"
				ZoomViewPosOffset="(0.2; 0; 0)"
			>
				<Rear
					HorTransitionEnd="-1.5"
					HorTransitionStart="-1.2"
					LimitsVer="(-1.2; 0.2)"
					RollAngle="-15"
					ViewDir="(1; -0.05; 0)"
					ViewPosOffset="(0.25; -0.1; 0.7)"
				/>
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks_zil_164_voen">
		<Body ImpactType="Truck" Mass="1500">
			<Body ImpactType="Truck" Mass="2500" ModelFrame="BoneCabin_cdt">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Damping="16000" Spring="140000" Type="Spring" />
				</Constraint>
				<Body Collisions="None" Mass="5" ModelFrame="BoneMirrorLeft_cdt">
					<Constraint
						AxisLocal="(0; 0; 1)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					>
						<Motor Damping="1" Spring="250" Type="Spring" />
					</Constraint>
				</Body>
				<Body Collisions="None" Mass="5" ModelFrame="BoneMirrorRight_cdt">
					<Constraint
						AxisLocal="(0; 0; 1)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					>
						<Motor Damping="1" Spring="250" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			стопсигналы свет +
			<Light
				AttenEnd="4"
				Color="(200; 0; 0) x 4"
				Dir="(-1; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-3.24; 0.891; 0.0)"
			/>		
			стопсигналы +
			<Flare Color="g(255; 0; 0) x 0.3" ColorMultAtDay="0.8" Dir="(-1; 0; 0)" DirAngle="100" Pos="(-3.24; 0.891; +0.519)" Reflections="true" Size="0.2" />
			<Flare Color="g(255; 0; 0) x 0.3" ColorMultAtDay="0.8" Dir="(-1; 0; 0)" DirAngle="100" Pos="(-3.24; 0.891; -0.519)" Reflections="true" Size="0.2" />
		</StopSignals>
		<Ignition>
			габариты передние +			
			<Flare Color="g(117; 70; 0) x 2.5" ColorMultAtDay="0.5" Dir="(1; 0; 0)" DirAngle="140" Pos="(3.1; 1.207; +0.904)" Size="0.15" ParentFrame="BoneCabin_cdt" />
			<Flare Color="g(117; 70; 0) x 2.5" ColorMultAtDay="0.5" Dir="(1; 0; 0)" DirAngle="140" Pos="(3.1; 1.207; -0.904)" Size="0.15" ParentFrame="BoneCabin_cdt" />
			габариты свет передний +
			<Light AttenEnd="2" Color="g(255; 150; 0) x 2" Dir="(1; -0.5; 0)" InnerCone="120" OuterCone="180" Pos="(4.1; 1.0; 0.0)" ParentFrame="BoneCabin_cdt" />
			габариты задние +
			<Flare Color="g(169; 0; 0) x 0.8" ColorMultAtDay="1.2" Dir="(-1; 0; 0)" DirAngle="100" Pos="(-3.24; 0.891; +0.519)" Size="0.15" SizeMultAtDay="0.8" />
			<Flare Color="g(169; 0; 0) x 0.8" ColorMultAtDay="1.2" Dir="(-1; 0; 0)" DirAngle="100" Pos="(-3.24; 0.891; -0.519)" Size="0.15" SizeMultAtDay="0.8" />
			габариты свет задний +
			<Light AttenEnd="3" Color="(102; 0; 0) x 2.0" Dir="(-1; -0.2; 0)" InnerCone="120" OuterCone="180" Pos="(-3.24; 0.891; 0.0)" />
		</Ignition>
		<HeadLight>
			лучи +
			<Model Dir="(1; -0.1; 0)" Mesh="env/light_ray" Org="(3.13; 1.312; -0.568)" ParentFrame="BoneCabin_cdt" />
			<Model Dir="(1; -0.1; 0)" Mesh="env/light_ray" Org="(3.13; 1.312; +0.568)" ParentFrame="BoneCabin_cdt" />
			фары +
			<Flare Color="g(150; 130; 90) x 1.6" ColorMultAtDay="1.1" Dir="(1; 0; 0)" DirAngle="110" Pos="(3.13; 1.312; -0.568)" Reflections="true" Size="0.3" SizeMultAtDay="0.5" ParentFrame="BoneCabin_cdt" />
			<Flare Color="g(150; 130; 90) x 1.6" ColorMultAtDay="1.1" Dir="(1; 0; 0)" DirAngle="110" Pos="(3.13; 1.312; +0.568)" Reflections="true" Size="0.3" SizeMultAtDay="0.5" ParentFrame="BoneCabin_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		AttenEnd="55"
		AttenStart="1"
		Color="g(240; 212; 154) x 6.5"
		Dir="(1; -0.2; 0)"
		InnerCone="0"
		OuterCone="90"
		Pos="(3.5; 1.275; 0)"
		ParentFrame="BoneCabin_cdt"
	/>
	<GameData BalancePoints="1">
		<WinchSocket Pos="(3.422; 1.009; +0.448)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(3.422; 1.009; -0.448)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(-3.442; 0.837; -0.01)" ParentFrame="BoneChassis_cdt" />
		<WinchSocket Pos="(-0.8; 0.904; +0.509)" ParentFrame="BoneChassis_cdt" />
		<WinchSocket Pos="(-0.8; 0.904; -0.522)" ParentFrame="BoneChassis_cdt" />
		<AddonSockets>
			<Socket Names="164_FuelTank" /> доп бак
			<Socket Names="164_BackupWheel" NamesBlock="164_Cistern_voen" /> запаска
		</AddonSockets>
		<AddonSockets>
			<Socket Names="164_Cistern_voen" /> бочка
			<Socket Names="164_Сarriage_voen" /> борт
			<!--<Socket Names="164_Tractor" />--> сцепка
		</AddonSockets>
		<AddonSockets>
			<Socket Names="164_FrontalExhaust" ParentFrame="BoneCabin_cdt" /> перед выхлоп
		</AddonSockets>
		<AddonSockets>
			<Socket Names="164_Beacon" ParentFrame="BoneCabin_cdt" Offset="(1.087; 2.394; 0)"/> мигалка
			<Socket Names="164_Znak" ParentFrame="BoneCabin_cdt" Offset="(0.36; -0.145; 0)"/> знак
		</AddonSockets>
		<AddonSockets>
			<Socket Names="164_starter" ParentFrame="BoneCabin_cdt" Offset="(0.8; -0.307; 0)"/> стартер
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-3.45; 0.8; 0)" />
			<Socket Names="GazTrailer" Offset="(-3.4; 0.85; 0)" />
			<Socket Names="atl_pricep" Offset="(-3.45; 0.8; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="164_LoadLogsShort" Offset="(0.25; 1.23; 0)" /> бревна
		</AddonSockets>
	</GameData>
</Truck>
