<TruckAddon IsChassisFullOcclusion="true">
	<TruckData FuelCapacity="230" RepairsCapacity="200">
		<LimitedFluid
			Center="(1.045; 1.143; 0.778)"
			SizeX="0.47"
			SizeY="0.38"
			SizeZ="0.7"
			Type="Box"
		/>
	</TruckData>
	<PhysicsModel Mesh="trucks/2gq0042t">
		<Body
			CenterOfMassOffset="(0.0; -0.2; 0)"
			ImpactType="Truck"
			Mass="1000"
		>
			<Constraint Type="Fixed" />
			<Body AngularDamping="100" Mass="100" ModelFrame="BoneRotationBase_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-350"
					MaxLimit="350"
					Name="Crane"
					Type="Hinge"
				>
					<Motor Force="30000" Tau="0.04" Type="Position" />
				</Constraint>
				<Body
					AngularDamping="100"
					Collisions="Internal"
					Mass="300"
					ModelFrame="BoneArm1_cdt"
				>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-55"
						MaxLimit="20"
						Name="Crane"
						Type="Hinge"
					>
						<Motor Force="280000" Tau="0.07" Type="Position" />
					</Constraint>
					<Body
						AngularDamping="100"
						Collisions="Internal"
						Mass="200"
						ModelFrame="BoneArm2_cdt"
					>
						<Constraint
							AxisLocal="(1;0;0)"
							MinLimit="-170"
							MaxLimit="0"
							Name="Crane"
							Type="Hinge"
						>
							<Motor Force="80000" Tau="0.1" Type="Position" />
						</Constraint>
						<Body
							AngularDamping="20"
							Collisions="Internal"
							Mass="100"
							ModelFrame="BoneArm3_cdt"
						>
							<Constraint
								AxisLocal="(0;1;0)"
								MinLimit="0"
								MaxLimit="1"
								Name="Crane"
								Type="Prismatic"
							>
								<Motor Force="30000" Tau="0.1" Type="Position" />
							</Constraint>
							<Body
								AngularDamping="5"
								Collisions="Internal"
								Mass="50"
								ModelFrame="BoneGrapplerBase_cdt"
							>
								<Constraint
									AxisLocal="(1;0;0)"
									MinLimit="-25"
									MaxLimit="175"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="0" Type="Spring" />
								</Constraint>
								<Body
									AngularDamping="5"
									Collisions="Internal"
									Mass="50"
									ModelFrame="BoneGrapplerBase2_cdt"
								>
									<Constraint
										AxisLocal="(0;0;1)"
										MinLimit="-90"
										MaxLimit="90"
										Type="Hinge"
									>
										<Motor Damping="40" Spring="0" Type="Spring" />
									</Constraint>
									<Body
										AngularDamping="30"
										Collisions="Internal"
										ForceBodyParams="true"
										Mass="50"
										ModelFrame="BoneGrappler_cdt"
									>
										<Constraint
											AxisLocal="(0;1;0)"
											MinLimit="-180"
											MaxLimit="180"
											Name="GrapplerBase"
											Type="Hinge"
										>
											<Motor Force="30000" Tau="0.2" Type="Position" />
										</Constraint>
										<Body
											ModelFrame="BoneGrapplerLeft_cdt"
											Collisions="Internal"
											ForceBodyParams="true"
											Friction="8"
											Mass="50"
										>
											<Constraint
												AxisLocal="(0;0;-1)"
												Name="Grappler"
												MinLimit="0"
												MaxLimit="110"
												Type="Hinge"
											>
												<Motor Force="6000" Type="Position" />
											</Constraint>
										</Body>
										<Body
											ModelFrame="BoneGrapplerRight_cdt"
											Collisions="Internal"
											ForceBodyParams="true"
											Friction="8"
											Mass="50"
										>
											<Constraint
												Name="Grappler"
												AxisLocal="(0;0;1)"
												MinLimit="0"
												MaxLimit="110"
												Type="Hinge"
											>
												<Motor Force="6000" Type="Position" />
											</Constraint>
										</Body>
									</Body>
								</Body>
							</Body>
						</Body>
					</Body>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Light
				AttenEnd="5"
				Color="g(255; 222; 155) x 2.2"
				Dir="(-0.866; -0.373; -0.334)"
				InnerCone="5"
				OuterCone="90"
				Pos="(1.612; 2.395; 0.92)"
			/>
			<Flare
				Color="g(141; 133; 117) x 2"
				Dir="(0.943; -0.334; 0)"
				DirAngle="100"
				Pos="(1.105; 2.952; 0.215)"
				Size="2.0"
				SizeAtDay="0.6"
				ParentFrame="BoneRotationBase_cdt"
			/>
			<Flare
				AspectRatio="4.0"
				Color="g(0; 0; 255) x 0.2"
				Dir="(0.943; -0.334; 0)"
				DirAngle="45"
				Pos="(1.105; 2.952; 0.215)"
				Size="1.4"
				SizeAtDay="0"
				Texture="sfx/flare_line__s_d.tga"
				ParentFrame="BoneRotationBase_cdt"
			/>
			<Flare
				Color="g(141; 133; 117) x 2"
				Dir="(-0.996; -0.089; 0)"
				DirAngle="100"
				Pos="(3.698; 2.938; 0.178)"
				Size="2.0"
				SizeAtDay="0.6"
				ParentFrame="BoneArm2_cdt"
			/>
			<Flare
				AspectRatio="4.0"
				Color="g(0; 0; 255) x 0.2"
				Dir="(-0.996; -0.089; 0)"
				DirAngle="45"
				Pos="(3.698; 2.938; 0.178)"
				Size="1.4"
				SizeAtDay="0"
				Texture="sfx/flare_line__s_d.tga"
				ParentFrame="BoneArm2_cdt"
			/>
			<Flare
				Color="g(255; 238; 203) x 1.0"
				Dir="(-0.866; -0.373; -0.334)"
				DirAngle="120"
				Pos="(0.612; 2.395; 0.92)"
				Size="0.4"
			/>
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		AttenEnd="15"
		AttenStart="0.1"
		Color="g(255; 212; 154) x 9"
		Dir="(0.943; -0.33; 0.05)"
		InnerCone="0"
		OuterCone="120"
		Pos="(1.105; 2.952; 0.215)"
		ParentFrame="BoneRotationBase_cdt"
	/>
	<GameData>
		<WinchSocket Pos="(1.949; 2.716; 0)" ParentFrame="BoneGrappler_cdt" />
		<RequiredAddon Types="65111-Rospusk-Platforma" />
		<InstallSocket Type="Kran4310" />
	</GameData>
	<FuelMass>
		<Body Mass="150" />
	</FuelMass>
	<ControlledIK>
		<Chain
			CenterXZ="(1.021; 0)"
			EndOffset="(0; 2.168; 0)"
			Id="crane"
			MinRadius="1.4"
			ModelFrames="Base,BoneRotationBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt"
			VerticalLineFrame="BoneGrappler_cdt"
		/>
	</ControlledIK>
	<ControlledConstraints>
		<Constraint Id="crane_grab" Name="Grappler" />
		<Constraint Id="crane_grappler" Name="GrapplerBase" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="BoneConnector1" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0.65; 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; 1.333; 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="BoneRotationBase_cdt"
				ModelFrame="BoneBasePiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<AddonCamera
		FirstPersonDir="(1.0; -0.32; 0.0)"
		FirstPersonPos="(1.75; 3.76; 0.7)"
		ParentFrame="BoneRotationBase_cdt"
	/>
</TruckAddon>
