<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"			
			SuspensionMin="-0.25"
			HardpointOffsetY="-0.1"
			SuspensionStrength="0.024"
			SuspensionDamping="0.26"			
			Torque="full"
			Type="kirovets"
			ParentFrame="BoneTail_cdt"
		/>
		<FrontWheel
			SuspensionMin="-0.25"
			HardpointOffsetY="-0.1"
			SuspensionStrength="0.023"
			SuspensionDamping="0.25"
			Torque="default"
			Type="kirovets"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.78"
		HardpointDefaultZ="1.07"
	>
		<Wheel _template="FrontWheel" HardpointX="1.597" />
		<Wheel _template="FrontWheel" HardpointX="1.597" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.519" />
		<Wheel _template="RearWheel" HardpointX="-1.519" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.035"
		DiffLockType="Always"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.6"
		ExhaustStartTime="0.6"
		FuelCapacity="450"
		LockClothInvertDir="true"
		LockClothOrigin="(-0.25; 0.45; 0)"
		LockClothScale="0.9"
		Responsiveness="0.1"
		SteerSpeed="0.035"
	>
		<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.4; 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; 90; 0)" MaxFrequency="0.3" />
		</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="1.02" Torque="250000" EngineResponsiveness="0.4" ClutchDelay="0.09">
			<ReverseGear AngVel="0.3" />
			<HighGear AngVel="5.0" />
			<Gear AngVel="0.3" />
			<Gear AngVel="1.65" />
			<Gear AngVel="3.0" />
		</Motor>
		<LimitedFluid
			Center="(0.323; 1.288; 0.801)"
			SizeX="0.493"
			SizeY="0.842"
			SizeZ="0.517"
			Type="Box"
		/>
		<LimitedFluid
			Center="(0.323; 1.288; -0.801)"
			SizeX="0.493"
			SizeY="0.842"
			SizeZ="0.517"
			Type="Box"
		/>
		<Axles>
			<Axle Frame="AxleBone0" />
			<Axle Frame="AxleBone1" />
		</Axles>
		<!--<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.58; 3.5; -0.07)" Speed="3.00" />
		<Driver Pos="(0.434; 2.247; -0.258)" SteeringWheelPos="(0.794; 2.697; -0.258)" />
		<Damage
			Capacity="600"
			SensationMin="(0.085; 2.45; -0.8)"
			SensationMax="(1.365; 3.124; 0.8)"
		/>
		<Camera Center="(-0.8; 0; 0)" RadiusMultiplier="0.9">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(64; 57; 44)"
				ControlsPos="(0.963; 2.66; -0.09)"
				ViewPos="(0.27; 2.96; -0.23)"
				WindshieldDiffuseTexture="trucks/kirovets700_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>
	</TruckData>
	<PhysicsModel Mesh="trucks/kirovets700">
		<Body
			CenterOfMassOffset="(-0.2; -0.3; 0)"
			ImpactType="Truck"
			Mass="6500"
		>
			<Body
				Mass="20"
				ModelFrame="BoneStepLeft_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-60"
					MaxLimit="0"
					Type="Hinge"
				/>
			</Body>
			<Body
				Mass="20"
				ModelFrame="BoneStepRight_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="0"
					MaxLimit="60"
					Type="Hinge"
				/>
			</Body>
			<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
			<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
			<Body Collisions="None" Mass="1500" ModelFrame="BoneConnector_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-35"
					MaxLimit="35"
					Name="ChassisSteer"
					Type="Hinge"
				>
					<Motor
						Damping="1.0"
						Force="280000"
						Tau="0.1"
						Type="Position"
					/>
				</Constraint>
				<Body
					CenterOfMassOffset="(-0.2; -0.2; 0)"
					ImpactType="Truck"
					Mass="6000"
					ModelFrame="BoneTail_cdt"
				>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-16"
						MaxLimit="16"
						Type="Hinge"
					>
						<Motor Damping="20000" Spring="80000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-0.069; 2.417; 0)" ParentFrame="BoneTail_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.069; 2.417; 0.741)" ParentFrame="BoneTail_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.069; 2.417; -0.741)" ParentFrame="BoneTail_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Model Dir="(-1.0; -0.4; 0)" Mesh="env/light_ray_white" Org="(0.2; 3.215; 0)" />
			<Light
				AttenEnd="10"
				Color="(255; 255; 255) x 16.0"
				Dir="(-0.8; -0.4; 0)"
				InnerCone="30"
				OuterCone="90"
				Pos="(1; 3.115; 0)"
			/>
			<Flare
				AspectRatio="1.4"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-0.8; -0.5; 0)"
				DirAngle="90"
				Pos="(-0.084; 3.115; 0)"
				Size="2.0"
				SizeMultAtDay="0.33"
			/>
			<Flare
				AspectRatio="8.0"
				Color="g(0; 0; 255) x 0.3"
				Dir="(-0.8; -0.5; 0)"
				DirAngle="80"
				Pos="(-0.084; 3.115; 0)"
				Size="1.0"
				SizeMultAtDay="0"
				Texture="sfx/flare_line__s_d.tga"
			/>
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-0.069; 2.417; 0)" />
			<Light _template="IgnitionSignalWhite" Color="(102; 0; 0) x 0.2" Pos="(3.534; 1.282; 0)" />
			<Flare _template="IgnitionSignalRed" Dir="(1;0;0)" Pos="(3.757; 1.282; 0.922)" />
			<Flare _template="IgnitionSignalRed" Dir="(1;0;0)" Pos="(3.757; 1.282; -0.922)" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.069; 2.417; 0.741)" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.069; 2.417; -0.741)" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.745; 1.127; -0.899)" />
			<Model _template="HeadLightRay" Org="(3.745; 1.127; 0.899)" />
			<Flare _template="HeadLight" Pos="(3.745; 1.127; -0.899)" />
			<Flare _template="HeadLight" Pos="(3.745; 1.127; 0.899)" />
			<Flare _template="BlueStreak" Pos="(3.745; 1.127; -0.899)" />
			<Flare _template="BlueStreak" Pos="(3.745; 1.127; 0.899)" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(3.744; 1.125; 0.0)" />
	<GameData BalancePoints="4" LogPoints="5">
		<WinchSocket Pos="(3.628; 0.973; 0.605)" />
		<WinchSocket Pos="(3.628; 0.973; -0.605)" />
		<WinchSocket Pos="(0.05; 1.7; 0.96)" />
		<WinchSocket Pos="(0.05; 1.7; -0.96)" />		
		<WinchSocket Pos="(-1.712; 1.418; 0.0)" ParentFrame="BoneTail_cdt" />
		<CompletionStarsDecal Dir="(0; 0; 1.0)" Pos="(3.342; 2.043; 0.599)" />
		<AddonSockets>
			<Socket Names="KirovetsLoader" ParentFrame="BoneTail_cdt" Offset="(0.2; 0; 0)">
				<ExtraParent Frame="BoneConnector_cdt" />
			</Socket>
			<Socket Names="KamazTrailerCart" Offset="(-1.8; 0.73; 0)" ParentFrame="BoneTail_cdt" />
			<Socket Names="MazTrailerCart" Offset="(-1.8; 0.73; 0)" ParentFrame="BoneTail_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="chassis_steer" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
</Truck>
