<TruckAddon IsChassisFullOcclusion="true">
	<PoweredConstraints>
		<Group
			Id="crane_grab"
			IsExplicitSound="true"
			IsGamepadHotkey="true"
		>
			<Constraint Name="RightGrappler" Position="120" />
			<Constraint Name="LeftGrappler" Position="-120" />
		</Group>
		<Group Id="anchors_position">
			<Constraint Name="RightAnchorBase" Position="-176" TerminalFix="true" />
			<Constraint Name="LeftAnchorBase" Position="176" TerminalFix="true" />
			<Constraint
				InitialFix="true"
				Name="AnchorExt"
				Position="0.6"
				TerminalFix="true"
			/>
		</Group>
		<Group Id="anchors_push">
			<Constraint Name="Anchor" Position="0.8" TerminalFix="true" />
		</Group>
		<Group Id="Bort">
			<Constraint Name="Bort" Position="-170" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/3ahu84k8">
		<Body ImpactType="Truck" Mass="800" ModelFrame="BoneAddon_cdt">
			<Constraint Type="Fixed" />
			<Body ModelFrame="BoneBort_cdt" Mass="30">
				<Constraint
					Name="Bort"
					Type="Hinge"
					AxisLocal="(0;0;-1)"
					MinLimit="-170"
					MaxLimit="0"
				>
					<Motor Type="Position" Force="700" />
				</Constraint>
			</Body>
			<Body Mass="350" ModelFrame="BoneRotBase_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-350"
					MaxLimit="350"
					Name="Crane"
					Type="Hinge"
				>
					<Motor Force="40000" Tau="0.04" Type="Position" />
				</Constraint>
				<Body Collisions="Internal" Mass="300" ModelFrame="BoneArm1_cdt">
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-80"
						MaxLimit="30"
						Name="Crane"
						Type="Hinge"
					>
						<Motor Force="120000" Tau="0.1" Type="Position" />
					</Constraint>
					<Body Collisions="Internal" Mass="200" ModelFrame="BoneArm2_cdt">
						<Constraint
							AxisLocal="(1;0;0)"
							MinLimit="-160"
							MaxLimit="0"
							Name="Crane"
							Type="Hinge"
						>
							<Motor Force="60000" Tau="0.2" Type="Position" />
						</Constraint>
						<Body Collisions="Internal" Mass="100" ModelFrame="BoneArm3_cdt">
							<Constraint
								AxisLocal="(0;1;0)"
								MinLimit="0"
								MaxLimit="0.5"
								Name="Crane"
								Type="Prismatic"
							>
								<Motor Force="50000" Tau="0.4" Type="Position" />
							</Constraint>
							<Body Collisions="Internal" Mass="50" ModelFrame="BoneGrapplerBase_cdt">
								<Constraint
									AxisLocal="(1;0;0)"
									MinLimit="-30"
									MaxLimit="150"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="0" Type="Spring" />
								</Constraint>
								<Body
									Collisions="Internal"
									ForceBodyParams="true"
									Mass="50"
									ModelFrame="BoneGrappler_cdt"
								>
									<Constraint
										AxisLocal="(0;1;0)"
										MinLimit="-180"
										MaxLimit="180"
										Name="GrapplerBase"
										Type="Hinge"
									>
										<Motor Force="12000" Tau="0.1" Type="Position" />
									</Constraint>
									<Body
										ModelFrame="BoneGrapplerLeft_cdt"
										Collisions="Internal"
										ForceBodyParams="true"
										Friction="4"
										Mass="100"
										NoClientCollisions="true"
									>
										<Constraint
											MinLimit="-160"
											MaxLimit="0"
											Name="LeftGrappler"
											AxisLocal="(0;0;1)"
											Type="Hinge"
										>
											<Motor
												Damping="1.0"
												Force="8000"
												Tau="0.04"
												Type="Position"
											/>
										</Constraint>
									</Body>
									<Body
										ModelFrame="BoneGrapplerRight_cdt"
										Collisions="Internal"
										ForceBodyParams="true"
										Friction="4"
										Mass="100"
										NoClientCollisions="true"
									>
										<Constraint
											MinLimit="0"
											MaxLimit="160"
											Name="RightGrappler"
											AxisLocal="(0;0;1)"
											Type="Hinge"
										>
											<Motor
												Damping="1.0"
												Force="8000"
												Tau="0.04"
												Type="Position"
											/>
										</Constraint>
									</Body>
								</Body>
							</Body>
						</Body>
					</Body>
				</Body>
			</Body>
			<Body ModelFrame="BoneLeftAnchorExt_cdt" Collisions="None" Mass="200">
				<Body ModelFrame="BoneLeftAnchorBase_cdt" Collisions="None" Mass="150">
					<Constraint
						MinLimit="0"
						MaxLimit="178"
						Name="LeftAnchorBase"
						AxisLocal="(1;0;0)"
						Type="Hinge"
					>
						<Motor Force="2000" Type="Position" />
					</Constraint>
					<Body
						ModelFrame="BoneLeftAnchor_cdt"
						ForceBodyParams="true"
						Mass="100"
						NoFoliageCollisions="true"
					>
						<Constraint
							AxisLocal="(0;1;0)"
							MinLimit="0"
							MaxLimit="0.4"
							Name="Anchor"
							Type="Prismatic"
						>
							<Motor Force="8000" Type="Position" />
						</Constraint>
					</Body>
				</Body>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="0"
					MaxLimit="0.6"
					Name="AnchorExt"
					Type="Prismatic"
				>
					<Motor Force="4000" Tau="0.2" Type="Position" />
				</Constraint>
			</Body>
			<Body ModelFrame="BoneRightAnchorExt_cdt" Collisions="None" Mass="200">
				<Body ModelFrame="BoneRightAnchorBase_cdt" Collisions="None" Mass="150">
					<Constraint
						MinLimit="-178"
						MaxLimit="0"
						Name="RightAnchorBase"
						AxisLocal="(1;0;0)"
						Type="Hinge"
					>
						<Motor Force="2000" Type="Position" />
					</Constraint>
					<Body
						ModelFrame="BoneRightAnchor_cdt"
						ForceBodyParams="true"
						Mass="100"
						NoFoliageCollisions="true"
					>
						<Constraint
							AxisLocal="(0;1;0)"
							MinLimit="0"
							MaxLimit="0.4"
							Name="Anchor"
							Type="Prismatic"
						>
							<Motor Force="8000" Type="Position" />
						</Constraint>
					</Body>
				</Body>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="0"
					MaxLimit="0.6"
					Name="AnchorExt"
					Type="Prismatic"
				>
					<Motor Force="4000" Tau="0.2" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Model
				Org="(-1.192; 2.494; -0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				Mesh="env/light_ray"
			/>
			<Model
				Org="(-1.192; 2.494; 0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				Mesh="env/light_ray"
			/>
			<Flare
				Pos="(-1.192; 2.494; -0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				AspectRatio="1.4"
				Color="g(141; 133; 117) x 1.4"
				ColorMultAtDay="0.7"
				DirAngle="90"
				Reflections="true"
				Size="2.0"
				SizeMultAtDay="0.8"
			/>
			<Flare
				Pos="(-1.192; 2.494; 0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				AspectRatio="1.4"
				Color="g(141; 133; 117) x 1.4"
				ColorMultAtDay="0.7"
				DirAngle="90"
				Reflections="true"
				Size="2.0"
				SizeMultAtDay="0.8"
			/>
			<Flare
				Pos="(-1.192; 2.494; -0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				AspectRatio="4.0"
				Color="g(0; 0; 255) x 0.2"
				ColorMultAtDay="0"
				DirAngle="45"
				Size="1.2"
				Texture="sfx/flare_line__s_d.tga"
			/>
			<Flare
				Pos="(-1.192; 2.494; 0.16)"
				ParentFrame="BoneArm1_cdt"
				Dir="(-1; 0; 0)"
				AspectRatio="4.0"
				Color="g(0; 0; 255) x 0.2"
				ColorMultAtDay="0"
				DirAngle="45"
				Size="1.2"
				Texture="sfx/flare_line__s_d.tga"
			/>
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		AttenEnd="32"
		Dir="(-1.0; 0.0; 0)"
		Pos="(-5.5; 3.376; 0)"
		ParentFrame="BoneArm1_cdt"
		AttenStart="1"
		Color="g(255; 212; 154) x 9"
		InnerCone="0"
		OuterCone="120"
	/>
	<GameData>
		<WinchSocket Pos="(-1.173; 2.120; 0)" ParentFrame="BoneGrappler_cdt" />
		<RequiredAddon Types="6490-KRAN" />
		<InstallSocket Type="EgerBCart" />
		<LoadArea Type="ShortLogs" Min="(-3.64; 1.229; -1.08)" Max="(-4.811; 2.229; 1.08)" />
		<LoadArea Type="ShortLogs" Min="(-1.4; 1.229; -1.08)" Max="(-2.3; 1.9; 1.08)" />
	</GameData>
	<ControlledIK>
		<Chain
			AffectedFrames="BoneRotBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt,BoneGrapplerBase_cdt,BoneGrappler_cdt,BoneGrapplerRight_cdt,BoneGrapplerLeft_cdt"
			CenterXZ="(-0.51; 0)"
			EndOffset="(0; 1.74; 0)"
			HelperVisFrame="BoneGrappler_cdt"
			Id="crane"
			ModelFrames="BoneCran_cdt,BoneRotBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt"
		/>
	</ControlledIK>
	<ControlledConstraints>
		<Constraint Id="crane_grappler" LinkToControlledIK="crane" Name="GrapplerBase" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="BoneConnector1" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0.46; 0)"
				AttachToFrame="BoneArm2_cdt"
				ModelFrame="BoneConnector2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneArmPistonBase" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0.94; 0)"
				AttachToFrame="BoneConnector1"
				ModelFrame="BoneArmPiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneBasePistonBase" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0.713; 0)"
				AttachToFrame="BoneRotBase_cdt"
				ModelFrame="BoneBasePiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneGrapplerPistonBaseTop" ParentFrame="BoneGrapplerLeft_cdt">
			<IKJoint Type="Hinge" AxisLocal="(0;0;1)" />
			<IKBone
				ModelFrame="BoneGrapplerPistonTop"
				AttachToFrame="BoneGrapplerRight_cdt"
				AttachOffset="(0; 0.296; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneGrapplerPistonBaseBottom" ParentFrame="BoneGrapplerRight_cdt">
			<IKJoint Type="Hinge" AxisLocal="(0;0;1)" />
			<IKBone
				ModelFrame="BoneGrapplerPistonBottom"
				AttachToFrame="BoneGrapplerLeft_cdt"
				AttachOffset="(0; 0.316; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<AddonCamera
		FirstPersonDir="(-1.0; -0.32; 0.0)"
		FirstPersonPos="(-0.586; 2.518; -0.738)"
		ParentFrame="BoneRotBase_cdt"
	/>
	<ModelAttachments>
		<StopSignals>
			<Light
				Pos="(-3.29; 0.903; 0)"
				Size="0.2"
				SizeAtDay="0.1"
				ParentFrame="BoneRear_cdt"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-3.29; 1.1; 0.787)"
				Size="0.2"
				SizeAtDay="0.1"
				ParentFrame="BoneRear_cdt"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
			/>
			<Flare
				Pos="(-3.29; 1.1; -0.787)"
				Size="0.2"
				SizeAtDay="0.1"
				ParentFrame="BoneRear_cdt"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
			/>
		</StopSignals>
		<Ignition>
			<Light
				Pos="(-3.29; 1.1; 0.0)"
				AttenEnd="1.0"
				Color="(102; 0; 0) x 0.8"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="180"
			/>
			<Flare
				Pos="(-3.29; 1.1; 0.877)"
				Size="0.2"
				SizeAtDay="0.1"
				ParentFrame="BoneRear_cdt"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
			/>
			<Flare
				Pos="(-3.29; 1.1; -0.877)"
				Size="0.2"
				SizeAtDay="0.1"
				ParentFrame="BoneRear_cdt"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
			/>
		</Ignition>
	</ModelAttachments>
</TruckAddon>
