<TruckAddon IsChassisFullOcclusion="true">
	<TruckData FuelCapacity="50" RepairsCapacity="100" />
	<PhysicsModel Mesh="trucks/2q1en2dm">
		<Body ImpactType="Truck" Mass="1050" ModelFrame="BoneOsnova_cdt">
			<Constraint Type="Fixed" />
			<Body ImpactType="Truck" Mass="950" ModelFrame="BoneKuzov_cdt">
				<Constraint
					AxisLocal="(0;0;1)"
					MinLimit="0"
					MaxLimit="58"
					Name="kuzov"
					Type="Hinge"
				>
					<Motor
						Force="1200000"
						Type="Position"
						Tau="0.05"
						Damping="5"
					/>
				</Constraint>
				<Body
					AngularDamping="3.0"
					CenterOfMassOffset="(0.0; 0.30; 0)"
					ImpactType="Truck"
					Collisions="None"
					Mass="15"
					ModelFrame="BoneKamera_cdt"
				>
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-18.5"
						MaxLimit="13.5"
						Type="Hinge"
					>
						<Motor Damping="15" Spring="30" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				Pos="(-2.748; 1.496;  0.880)"
				ParentFrame="BoneKuzov_cdt"
				Size="0.3"
				Color="g(160; 0; 0) x 1.5"
				Dir="(-1;0;0)"
				DirAngle="90"
			/>
			<Flare
				Pos="(-2.748; 1.496; -0.880)"
				ParentFrame="BoneKuzov_cdt"
				Size="0.3"
				Color="g(160; 0; 0) x 1.5"
				Dir="(-1;0;0)"
				DirAngle="90"
			/>
		</Ignition>
		<StopSignals>
			<Light
				Pos="(-2.748; 1.470;  0.740)"
				ParentFrame="BoneKuzov_cdt"
				AttenEnd="1.5"
				Color="(175; 1; 0) x 3"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Light
				Pos="(-2.748; 1.470; -0.740)"
				ParentFrame="BoneKuzov_cdt"
				AttenEnd="1.5"
				Color="(175; 1; 0) x 3"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-2.748; 1.470;  0.740)"
				ParentFrame="BoneKuzov_cdt"
				Color="g(160; 40; 40) x 2"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.8"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-2.748; 1.470; -0.740)"
				ParentFrame="BoneKuzov_cdt"
				Color="g(160; 40; 40) x 2"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.8"
				SizeAtDay="0.4"
			/>
		</StopSignals>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-2.332; 2.463;  1.242)" ParentFrame="BoneKuzov_cdt" />
		<WinchSocket Pos="(-2.332; 2.463; -1.242)" ParentFrame="BoneKuzov_cdt" />
		<WinchSocket Pos="( 0.627; 2.463;  1.242)" ParentFrame="BoneKuzov_cdt" />
		<WinchSocket Pos="( 0.627; 2.463; -1.242)" ParentFrame="BoneKuzov_cdt" />
		<LoadArea Type="ShortLogs" Min="(-3.6; 1.55; -1.2)" Max="(1.1; 2.60; 1.2)" />
		<LoadArea Type="MediumLogs" Min="(-4.0; 1.55; -1.2)" Max="(1.5; 3.60; 1.2)" />
                        <LoadArea Type="LongLogs" Min="(-6.0; 1.20; -1.2)" Max="(2.4; 4.00; 1.2)" />

		<InstallSocket Type="Kraz6510Samosval" />
	</GameData>
	<ControlledConstraints>
		<Constraint Id="samosval" Name="kuzov" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="BoneRAZ_cdt" ParentFrame="BoneOsnova_cdt">
			<IKJoint AxisLocal="(0;0; 1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneTRI_cdt"
				ModelFrame="BoneDVA_cdt"
				ParentFrame="BoneRAZ_cdt"
			>
				<IKJoint AxisLocal="(0;0; 1)" Type="Hinge" />
				<IKBone
					AttachOffset="(0; 0.0; 0)"
					AttachToFrame="BoneKuzov_cdt"
					ModelFrame="BoneTRI_cdt"
					ParentFrame="BoneDVA_cdt"
				>
					<IKJoint AxisLocal="(0;0; 1)" Type="Hinge" />
				</IKBone>
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneNasos_cdt" ParentFrame="BoneOsnova_cdt">
			<IKJoint AxisLocal="(0;0; 1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneRAZ_cdt"
				ModelFrame="cilindry"
				ParentFrame="BoneNasos_cdt"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
</TruckAddon>
