<TruckAddon IsChassisFullOcclusion="true">
	<Rotator
		EngineTorqueFactor="0.5"
		RotationSpeed="15"
		ParentFrame="may"
	/>
	<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="-179" TerminalFix="true" />
			<Constraint Name="LeftAnchorBase" Position="179" TerminalFix="true" />
			<Constraint InitialFix="true" Name="AnchorExt" Position="0.6" TerminalFix="true" />
		</Group>
		<Group Id="anchors_push">
			<Constraint Name="Anchor" Position="0.7" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/0iu1ggn2">
		<Body
			CenterOfMassOffset="(0.3; -0.2; 0)"
			ImpactType="Truck"
			Mass="1000"
			ModelFrame="kran_cdt"
		>
			<Constraint Type="Fixed" />
			<Body CenterOfMassOffset="(0; -0.1; 0)" ImpactType="Truck" Mass="400" ModelFrame="BoneRotationBase_cdt">
				<Constraint
					AxisLocal="(0; 1; 0)"
					MinLimit="-340"
					MaxLimit="340"
					Name="Crane"
					Type="Hinge"
				>
					<Motor Force="80000" Tau="0.04" Type="Position" />
				</Constraint>
				<Body AngularDamping="2.0" Mass="300" ModelFrame="BoneArm1_cdt">
					<Constraint
						AxisLocal="(1; 0; 0)"
						MinLimit="-125"
						MaxLimit="0"
						Name="Crane"
						Type="Hinge"
					>
						<Motor Force="250000" Tau="0.2" Type="Position" />
					</Constraint>
					<Body Mass="200" ModelFrame="BoneArm2_cdt">
						<Constraint
							AxisLocal="(1; 0; 0)"
							MinLimit="0"
							MaxLimit="320"
							Name="Crane"
							Type="Hinge"
						>
							<Motor Force="320000" Tau="0.2" Type="Position" />
						</Constraint>
						<Body Mass="150" ModelFrame="BoneArm3_cdt">
							<Constraint
								AxisLocal="(0; 1; 0)"
								MinLimit="0"
								MaxLimit="1.5"
								Name="Crane"
								Type="Prismatic"
							>
								<Motor Force="150000" Tau="0.4" Type="Position" />
							</Constraint>
							<Body Mass="100" ModelFrame="BoneArm4_cdt">
								<Constraint
									AxisLocal="(0; 1; 0)"
									MinLimit="0"
									MaxLimit="1.3"
									Name="Crane"
									Type="Prismatic"
								>
									<Motor Force="100000" Tau="0.8" Type="Position" />
								</Constraint>
								<Body Collisions="None" Mass="80" ModelFrame="BoneGrapplerBase_cdt">
									<Constraint
										AxisLocal="(1; 0; 0)"
										MinLimit="-350"
										MaxLimit="0"
										Type="Hinge"
									>
										<Motor Damping="80" Spring="0" Type="Spring" />
									</Constraint>
									<Body Collisions="Internal" Mass="60" ModelFrame="BoneGrapplerBase2_cdt">
										<Constraint
											AxisLocal="(1; 0; 0)"
											MinLimit="-140"
											MaxLimit="140"
											Type="Hinge"
										>
											<Motor Damping="80" Spring="0" Type="Spring" />
										</Constraint>
										<Body Collisions="Internal" Mass="50" ModelFrame="BoneGrappler_cdt">
											<Constraint
												AxisLocal="(0; 0; 1)"
												MinLimit="-179"
												MaxLimit="179"
												Name="GrapplerBase"
												Type="Hinge"
											>
												<Motor Force="12000" Type="Position" />
											</Constraint>
											<Body ModelFrame="BoneGrapplerLeft_cdt" Collisions="Internal" ForceBodyParams="true" Friction="2.0" Mass="50">
												<Constraint
													MinLimit="-160"
													MaxLimit="0"
													Name="LeftGrappler"
													AxisLocal="(0; 0; 1)"
													Type="Hinge"
												>
													<Motor
														Damping="1.0"
														Force="20000"
														Tau="0.04"
														Type="Position"
													/>
												</Constraint>
											</Body>
											<Body ModelFrame="BoneGrapplerRight_cdt" Collisions="Internal" ForceBodyParams="true" Friction="2.0" Mass="50">
												<Constraint
													MinLimit="0"
													MaxLimit="160"
													Name="RightGrappler"
													AxisLocal="(0; 0; 1)"
													Type="Hinge"
												>
													<Motor
														Damping="1.0"
														Force="20000"
														Tau="0.04"
														Type="Position"
													/>
												</Constraint>
											</Body>
										</Body>
									</Body>
								</Body>
							</Body>
						</Body>
					</Body>
				</Body>
			</Body>
			<Body Collisions="None" Mass="100" ModelFrame="Shl1_cdt">
				<Constraint
					Cone="8"
					PlaneAxisLocal="(0; 1; 1)"
					PlaneMin="-15"
					PlaneMax="15"
					TwistAxisLocal="(0; 1; 0)"
					Type="Ragdoll"
				>
					<PlaneMotor Damping="400" Spring="5000" Type="Spring" />
					<ConeMotor Damping="400" Spring="5000" Type="Spring" />
				</Constraint>
			</Body>
			<Body Collisions="None" Mass="100" ModelFrame="Shl_cdt">
				<Constraint
					Cone="8"
					PlaneAxisLocal="(0; 1; 1)"
					PlaneMin="-15"
					PlaneMax="15"
					TwistAxisLocal="(0; 1; 0)"
					Type="Ragdoll"
				>
					<PlaneMotor Damping="400" Spring="5000" Type="Spring" />
					<ConeMotor Damping="400" Spring="5000" Type="Spring" />
				</Constraint>
			</Body>
			<Body Collisions="Internal" ModelFrame="BoneLeftAnchorExt_cdt" Mass="250">
				<Body Collisions="Internal" ModelFrame="BoneLeftAnchorBase_cdt" Mass="150">
					<Constraint Name="LeftAnchorBase" AxisLocal="(0; 0; -1)" Type="Hinge">
						<Motor Force="20000" Tau="0.4" Type="Position" />
					</Constraint>
					<Body
						Collisions="Internal"
						ModelFrame="BoneLeftAnchor_cdt"
						ForceBodyParams="true"
						Mass="100"
					>
						<Constraint
							AxisLocal="(0; 1; 0)"
							MinLimit="0"
							MaxLimit="0.7"
							Name="Anchor"
							Type="Prismatic"
						>
							<Motor Force="300000" Tau="0.5" Type="Position" />
						</Constraint>
					</Body>
				</Body>
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="0"
					MaxLimit="0.625"
					Name="AnchorExt"
					Type="Prismatic"
				>
					<Motor Force="10000" Tau="0.5" Type="Position" />
				</Constraint>
			</Body>
			<Body Collisions="Internal" ModelFrame="BoneRightAnchorExt_cdt" Mass="250">
				<Body Collisions="Internal" ModelFrame="BoneRightAnchorBase_cdt" Mass="150">
					<Constraint Name="LeftAnchorBase" AxisLocal="(0; 0; -1)" Type="Hinge">
						<Motor Force="20000" Tau="0.4" Type="Position" />
					</Constraint>
					<Body
						Collisions="Internal"
						ModelFrame="BoneRightAnchor_cdt"
						ForceBodyParams="true"
						Mass="100"
					>
						<Constraint
							AxisLocal="(0; 1; 0)"
							MinLimit="0"
							MaxLimit="0.7"
							Name="Anchor"
							Type="Prismatic"
						>
							<Motor Force="300000" Tau="0.5" Type="Position" />
						</Constraint>
					</Body>
				</Body>
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="0"
					MaxLimit="0.625"
					Name="AnchorExt"
					Type="Prismatic"
				>
					<Motor Force="10000" Tau="0.5" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Model Dir="(0; 0.897; +0.442)" Mesh="env/light_ray_white" Org="(-2.458; 2.315; -0.775)" ParentFrame="BoneArm2_cdt" />
			<Model Dir="(0; 0.996; -0.084)" Mesh="env/light_ray_white" Org="(-2.88; 2.297; -0.836)" ParentFrame="BoneArm2_cdt" />
			<Flare Dir="(0; 0.897; +0.442)" DirAngle="100" Pos="(-2.458; 2.315; -0.775)" ParentFrame="BoneArm2_cdt" AspectRatio="1.4" Color="g(141; 133; 117) x 1.4" ColorMultAtDay="0.7" Reflections="true" Size="2.0" SizeMultAtDay="0.5" />
			<Flare AspectRatio="1.4" Color="g(189; 189; 210) x 0.7" Dir="(0; 0.897; +0.442)" DirAngle="100" Pos="(-2.458; 2.253; -0.799)" Size="0.1" Texture="sfx/flare_line__s_d.tga" ParentFrame="BoneArm2_cdt" />
			<Flare Dir="(0; 0.897; +0.442)" Pos="(-2.458; 2.315; -0.775)" Size="0.5" ParentFrame="BoneArm2_cdt" AspectRatio="4.0" Color="g(0; 0; 255) x 0.2" ColorMultAtDay="0" DirAngle="45" Texture="sfx/flare_line__s_d.tga" />
			<Flare Dir="(0; 0.996; -0.084)" DirAngle="100" Pos="(-2.892; 2.262; -0.834)" ParentFrame="BoneArm2_cdt" AspectRatio="1.4" Color="g(141; 133; 117) x 1.4" ColorMultAtDay="0.7" Reflections="true" Size="2.0" SizeMultAtDay="0.5" />
			<Flare AspectRatio="1.4" Color="g(189; 189; 210) x 0.7" Dir="(0; 0.996; -0.084)" DirAngle="100" Pos="(-2.892; 2.262; -0.834)" Size="0.1" Texture="sfx/flare_line__s_d.tga" ParentFrame="BoneArm2_cdt" />
			<Flare Dir="(0; 0.996; -0.084)" Pos="(-2.892; 2.262; -0.834)" Size="0.5" ParentFrame="BoneArm2_cdt" AspectRatio="4.0" Color="g(0; 0; 255) x 0.2" ColorMultAtDay="0" DirAngle="45" Texture="sfx/flare_line__s_d.tga" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		AttenEnd="32"
		Color="g(255; 212; 154) x 5.8"
		Dir="(0; 0.897; 0.442)"
		InnerCone="1"
		Pos="(-2.89; 2.262; -0.829)"
		ParentFrame="BoneArm2_cdt"
		AttenStart="1"
		OuterCone="90"
	>
		<Model
			Dir="(0; 0.897; 0.442)"
			Mesh="env/light_ray_white"
			Org="(-2.445; 2.272; -0.769)"
			ParentFrame="BoneArm2_cdt"
		/>
	</HeadLight>
	<GameData>
		<RequiredAddon Types="Platforma_4310" />
		<InstallSocket Type="JCBCrane" />
	</GameData>
	<ControlledIK>
		<Chain
			AffectedFrames="BoneRotationBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt,BoneArm4_cdt,BoneGrapplerBase_cdt,BoneGrapplerBase2_cdt,BoneGrappler_cdt,BoneGrapplerRight_cdt,BoneGrapplerLeft_cdt"
			CenterXZ="(-2.77; 0.303)"
			EndOffset="(0; 0; 0)"
			HelperVisFrame="BoneGrappler_cdt"
			Id="crane"
			ModelFrames="kran_cdt,BoneRotationBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt,BoneArm4_cdt"
		/>
	</ControlledIK>
	<ControlledConstraints>
		<Constraint Id="crane_grappler" LinkToControlledIK="crane" Name="GrapplerBase" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone AttachOffset="(0; 0; 0)" ModelFrame="BoneConnector2" ParentFrame="BoneRotationBase_cdt">
			<IKJoint AxisLocal="(1; 0; 0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; -0.216; 0)"
				AttachToFrame="BoneArm1_cdt"
				ModelFrame="BoneConnector1"
			>
				<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; 0)"
				AttachToFrame="BoneArm2_cdt"
				ModelFrame="BoneArmPiston"
			>
				<IKJoint AxisLocal="(0; 1; 0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneBasePiston" ParentFrame="BoneRotationBase_cdt">
			<IKJoint AxisLocal="(1; 0; 0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneConnector1"
				ModelFrame="BoneBasePistonBase"
			>
				<IKJoint AxisLocal="(1; 0; 0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="PistonBaseGrap" ParentFrame="BoneGrapplerLeft_cdt">
			<IKJoint AxisLocal="(0; 0; 1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneGrapplerRight_cdt"
				ModelFrame="PistonGrap"
			>
				<IKJoint AxisLocal="(1; 0; 0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<AddonCamera
		FirstPersonDir="(-0.221; -0.232; -0.947)"
		FirstPersonPos="(-1.884; 4.885; 1.826)"
		ParentFrame="BoneRotationBase_cdt"
	/>
</TruckAddon>
