<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			SuspensionMin="-0.6"
			SuspensionMax="0.1"
			SuspensionStrength="0.5"
			Torque="full"
			Type="K700A_wheel"
			ParentFrame="BonePovorot2_cdt"
		/>
		<FrontWheel
			SuspensionMin="-0.3"
			SuspensionMax="0.1"
			SuspensionStrength="0.018"
			Torque="default"
			Type="K700A_wheel"
			ParentFrame="BoneChassisFront"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.74"
		HardpointDefaultZ="0.9"
	>
		<Wheel _template="FrontWheel" HardpointX="1.48"  HardpointY="0.67" />
		<Wheel _template="FrontWheel" HardpointX="1.48"  HardpointY="0.67" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.49" />
		<Wheel _template="RearWheel" HardpointX="-1.49" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.015"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.6"
		ExhaustStartTime="0.6"
		FuelCapacity="380"
		LockClothInvertDir="true"
		LockClothOrigin="(-0.25; 0.45; 0)"
		LockClothScale="0.9"
		Responsiveness="0.05"
		SteerSpeed="0.018"
	>
		<SteeringWheel Frame="BoneSteering" />
		<Steam Origin="(0.116; 1.295; 0)" />
		<Steam Origin="(2.695; 1.653; 0)" Scale="0.5" />
		<Sounds
			_template="Default"
			EngineHeavyVolume="0.8"
			Origin="(2.13; 1.9; 0)"
		>
			<Reverse _inheritRemove="true" />
			<EngineStop Sound="engine/kirovets_stop" />
			<EngineStart Sound="engine/kirovets_start" />
			<EngineRev Sound="engine/kirovets_rev" />
			<EngineLow Sound="engine/kirovets_low" />
			<EngineIdle Sound="engine/kirovets_idle" />
			<EngineHigh Sound="engine/kirovets_high" />
			<EngineHeavy Sound="engine/kirovets_heavy" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(0; 55; 0)" MaxFrequency="0.2" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.60"
			HeightFront="1.6"
			HeightRear="1.2"
			MinX="-0.80"
			MaxX="2.40"
		/>
		<OcclusionMap
			HalfSizeZ="2.40"
			MinX="-2.20"
			MaxX="3.40"
			Texture="trucks/occlusion/chassis_small__s_d_a.tga"
		/>
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.01" Torque="160000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="3.4" />
			<Gear AngVel="1.0" />
			<Gear AngVel="2.2" />
			<Gear AngVel="4.2" />
			<Gear AngVel="5.2" />
		</Motor>
		<LimitedFluid
			Center="(-0.315; 2.25; -0.18)"
			SizeX="0.48"
			SizeY="0.66"
			SizeZ="1.0"
			Type="Box"
		/>
		<LimitedFluid
			Center="(0.14; 1.16; -0.73)"
			SizeX="0.67"
			SizeY="0.66"
			SizeZ="0.23"
			Type="Box"
		/>
		<LimitedFluid
			Center="(0.14; 1.16; 0.76)"
			SizeX="0.67"
			SizeY="0.66"
			SizeZ="0.23"
			Type="Box"
		/>
		<!--<Intake Dir="(0; 1.0; 0)" Origin="(1.74; 3.277; 0.814)" Size="0.4" />-->
		<Intake Dir="(1.0; 0; 0)" Origin="(3.518; 1.844; 0)" Size="0.8" />
		<Exhaust Dir="(0.00; 1.00; 0.00)" Origin="(1.42; 3.43; 0.79)" Speed="3.00" />
		<Driver Pos="(0.4; 2.26; -0.42)" SteeringWheelPos="(0.88; 2.65; -0.36)" />
		<Damage
			Capacity="700"
			SensationMin="(0.085; 5.45; -0.8)"
			SensationMax="(1.365; 3.124; 0.8)"
		/>
		<Camera RadiusMultiplier="0.9">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(64; 57; 44)"
				ViewPos="(0.29; 2.9; -0.32)"
				WindshieldDiffuseTexture="KirovetsK700A_stekla__d_a.dds"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="AxleBone1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="AxleBone2" LeftWheel="2" RightWheel="3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/K_700_Kirovec">
		<Body
			CenterOfMassOffset="(-0.9; -0.6; 0)"
			ImpactType="Truck"
			Mass="7000"
		>
		<Body Mass="60" ModelFrame="luk_cdt">
				<Constraint
					AxisLocal="(0;0;-1)"
					MinLimit="0"
					MaxLimit="60"
					Name="luk"
					Type="Hinge"
				>
					<Motor Force="400" Type="Position" />
				</Constraint>
			</Body>
			<Body ModelFrame="dv_L_cdt" Mass="60">
				<Constraint
					Name="dv_L"
					MinLimit="0"
					MaxLimit="90"
					Type="Hinge"
					AxisLocal="(0;1;0)"
				>
					<Motor Type="Position" Force="2400" />
				</Constraint>
				<Body
					ModelFrame="st_L_cdt"
					Mass="10"
					NoFoliageCollisions="true"
				>
					<Constraint
						MinLimit="0.0"
						MaxLimit="0.36"
						Axis="(0;-1;0)"
						Name="st_L"
						Type="Prismatic"
						AxisLocal="(0;-1;0)"
					>
						<Motor Type="Position" Force="1000" />
					</Constraint>
				</Body>
			</Body>
			<Body ModelFrame="dv_R_cdt" Mass="60">
				<Constraint
					Name="dv_R"
					MinLimit="0"
					MaxLimit="90"
					Type="Hinge"
					AxisLocal="(0;-1;0)"
				>
					<Motor Type="Position" Force="2400" />
				</Constraint>
				<Body
					ModelFrame="st_R_cdt"
					Mass="10"
					NoFoliageCollisions="true"
				>
					<Constraint
						MinLimit="0.0"
						MaxLimit="0.36"
						Axis="(0;-1;0)"
						Name="st_R"
						Type="Prismatic"
						AxisLocal="(0;-1;0)"
					>
						<Motor Type="Position" Force="1000" />
					</Constraint>
				</Body>
			</Body>
				<Body
				Mass="10"
				Collisions="None" 
				ModelFrame="BoneSteer_cdt"
				>
					<Constraint
						AxisLocal="(0;1;0)"
						MinLimit="-360"
						MaxLimit="360"
						Name="Rul"
						Type="Hinge"
					>
						<Motor Damping="1.0" Force="100" Tau="0.04" Type="Position" />
					</Constraint>
			</Body>

			<Body Mass="50" ModelFrame="steer" Collisions="None">
				<Constraint
					AxisLocal="(0;-1;0)"
					MinLimit="-360"
					MaxLimit="360"
					Name="ChassisSteer2"
					Type="Hinge"
				>
					<Motor
						Damping="1.0"
						Force="150"
						Tau="0.04"
						Type="Position"
					/>
				</Constraint>
			</Body>
			<Body Collisions="None" Mass="2000" ModelFrame="BonePovorot1_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-29"
					MaxLimit="29"
					Name="ChassisSteer"
					Type="Hinge"
				>
					<Motor
						Damping="1.0"
						Force="200000"
						Tau="0.04"
						Type="Position"
					/>
				</Constraint>
				<Body
					CenterOfMassOffset="(-0.5; -0.2; 0)"
					ImpactType="Truck"
					Mass="7900"
					ModelFrame="BonePovorot2_cdt"
				>
					<Body
						AngularDamping="3.0"
						Collisions="None"
						Mass="10"
						ModelFrame="BoneBrizg_L_cdt"
					>
						<Constraint
							AxisLocal="(0; 1; 0)"
							MinLimit="-7"
							MaxLimit="10"
							Type="Hinge"
						/>
					</Body>
					<Body
						AngularDamping="3.0"
						Collisions="None"
						Mass="10"
						ModelFrame="BoneBrizg_R_cdt"
					>
						<Constraint
							AxisLocal="(0; 1; 0)"
							MinLimit="-7"
							MaxLimit="10"
							Type="Hinge"
						/>
					</Body>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
		<ModelAttachments>
		<StopSignals>
		
			<Light _template="StopSignal" Pos="(-2.22; 1.56; 0)" ParentFrame="BonePovorot2_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.22; 1.56; 0.8)" ParentFrame="BonePovorot2_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.22; 1.56; -0.8)" ParentFrame="BonePovorot2_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Model Dir="(-1.0; -0.4; 0)" Mesh="env/light_ray_white" Org="(0.2; 3.215; 0)" />
			<Light
				AttenEnd="20"
				Color="g(255; 240; 220) x 3.5"
				Dir="(-0.8; -0.4; 0)"
				InnerCone="30"
				OuterCone="90"
				Pos="(1; 3.115; 0)"
			/>
			<Flare
				AspectRatio="1.0"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-0.8; -0.5; 0)"
				DirAngle="90"
				Pos="(-0.1; 3.04; 0.83)"
				Size="0.9"
				SizeMultAtDay="0.33"
			/>
			<Flare
				AspectRatio="3.5"
				Color="g(0; 0; 255) x 0.07"
				Dir="(-0.8; -0.5; 0)"
				DirAngle="80"
				Pos="(-0.084; 3.115; 0)"
				Size="1.5"
				SizeMultAtDay="0"
				Texture="sfx/flare_line__s_d.tga"
			/>
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-2.22; 1.56; 0)"  ParentFrame="BonePovorot2_cdt" />
		
			
			<Flare _template="IgnitionSignalRed" Pos="(-2.22; 1.56; 0.82)"  ParentFrame="BonePovorot2_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-2.22; 1.56; -0.82)"  ParentFrame="BonePovorot2_cdt" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.24; 1.72; -0.76)" />
			<Model _template="HeadLightRay" Org="(3.24; 1.72; 0.76)" />
			<Flare _template="HeadLight" Pos="(3.24; 1.72; -0.76)" />
			<Flare _template="HeadLight" Pos="(3.24; 1.72; 0.76)" />

		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(3.744; 1.125; 0.0)" />
	<GameData BalancePoints="1" LogPoints="0">
		<WinchSocket Pos="(3.1; 1.14; 0.36)" />
		<WinchSocket Pos="(3.1; 1.14; -0.36)" />
		<WinchSocket Pos="(-2.9; 1.04; 0.0)" ParentFrame="BonePovorot2_cdt" />
		<CompletionStarsDecal Dir="(0; 0; 1.0)" Pos="(3.342; 2.043; 0.599)" />
		<AddonSockets>
		    <Socket Names="pricepk700_Garaj" Offset="(-2.93; 1.04; 0)" ParentFrame="BonePovorot2_cdt" />
		    <Socket Names="pricepk700_Bort" Offset="(-2.93; 1.04; 0)" ParentFrame="BonePovorot2_cdt" />
		    <Socket Names="priceptk700_pts9" Offset="(-2.95; 1.04; 0)" ParentFrame="BonePovorot2_cdt" />
		    <Socket Names="bochka_k700" Offset="(-2.92; 1.04; -0.09)" ParentFrame="BonePovorot2_cdt" />
			<Socket Names="KamazTrailerCart" Offset="(-2.96; 1.04; 0)" ParentFrame="BonePovorot2_cdt" />
			<Socket Names="MazTrailerCart" Offset="(-2.96; 1.04; 0)" ParentFrame="BonePovorot2_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Zahita" Offset="(0.0; 0.0; 0)" ParentFrame="BoneChassisFront" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="instrumentu" NamesBlock="K700_kanistra1,K700_kanistra2" Offset="(0.0; 0.0; 0)" ParentFrame="BoneChassisFront" />
		    <Socket Names="K700_Kanistra_L" Offset="(0.0; 0.0; 0)" ParentFrame="BoneChassisFront" />
		</AddonSockets>
		<AddonSockets>
			 <Socket Names="Otval_k700" Offset="(0.0; 0.0; 0)" ParentFrame="BoneChassisFront" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="ChassisSteer" IsLinkedSteering="true" Name="ChassisSteer" />
		<Constraint Id="Rul" IsLinkedSteering="true" Name="Rul" />

	</ControlledConstraints>
</Truck>
