<_templates Include="trucks" />
<TruckAddon IsChassisFullOcclusion="true">

	<PoweredConstraints>
		<Group Id="Grappler">
			<Constraint Name="Foot2" Position="100.0" />
			<Constraint Name="Foot2" Position="100.0" />
		</Group>
	</PoweredConstraints>


	<PhysicsModel Mesh="trucks/Combo_crane">
		<Body Collisions="None" ImpactType="Truck" Mass="2000">
			<Constraint Type="Fixed" />


			<Body Collisions="Internal" Mass="2000" ModelFrame="BoneRotationBase_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-350"
					MaxLimit="350"
					Name="Crane"
					Type="Hinge"
				>
					<Motor Force="180000" Tau="0.05" Type="Position" />
				</Constraint>

				<Body Collisions="Internal" Mass="1600" ModelFrame="BoneArm1_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-20"
						MaxLimit="60"
						Name="Crane"
						Type="Hinge"
					>
						<Motor Force="620000" Tau="0.1" Type="Position" />
					</Constraint>
					<Body Collisions="Internal" Mass="360" ModelFrame="BoneArm2_cdt">
						<Constraint
							AxisLocal="(0;0;1)"
							MinLimit="0"
							MaxLimit="110"
							Name="Crane"
							Type="Hinge"
						>
							<Motor Force="220000" Tau="0.1" Type="Position" />
						</Constraint>
						<Body Collisions="Internal" Mass="160" ModelFrame="BoneArm3_cdt">
							<Constraint
								AxisLocal="(0;1;0)"
								MinLimit="0"
								MaxLimit="1"
								Name="Crane"
								Type="Prismatic"
							>
								<Motor Force="220000" Tau="0.1" Type="Position" />
							</Constraint>
							<Body Collisions="None" Mass="60" ModelFrame="BoneGrapplerRoot_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-130"
									MaxLimit="130"
									Type="Hinge"
								>
									<Motor Damping="160" Spring="0" Type="Spring" />
								</Constraint>
								<Body Collisions="None" Mass="60" ModelFrame="BoneGrapplerBase_cdt">
									<Constraint
										AxisLocal="(1;0;0)"
										MinLimit="-50"
										MaxLimit="50"
										Type="Hinge"
									>
										<Motor Damping="160" Spring="16000" Type="Spring" />
									</Constraint>
									<Body
										Collisions="Internal"
										ForceBodyParams="true"
										Mass="40"
										ModelFrame="BoneGrappler_cdt"
									>
										<Constraint
											AxisLocal="(0;1;0)"
											MinLimit="-180"
											MaxLimit="180"
											Name="GrapplerBase"
											Type="Hinge"
										>
											<Motor Force="120000" Tau="0.04" Type="Position" />
										</Constraint>

			<Body ImpactType="Truck" Collisions="Internal" ForceBodyParams="true" NoClientCollisions="true" Friction="2.0" Mass="90" ModelFrame="BoneGrapplerLeft_cdt">
				<Constraint
					AxisLocal="(-1; 0; 0)"
					MinLimit="-0"
					MaxLimit="100"
					Name="Foot2"
					Type="Hinge"
				>
					<Motor Force="500000" Tau="0.05" Type="Position" />
				</Constraint>
		        </Body>
			<Body ImpactType="Truck" Collisions="Internal" ForceBodyParams="true" NoClientCollisions="true" Friction="2.0" Mass="90" ModelFrame="BoneGrapplerRight_cdt">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-0"
					MaxLimit="100"
					Name="Foot2"
					Type="Hinge"
				>
					<Motor Force="500000" Tau="0.05" Type="Position" />
				</Constraint>

									</Body>
								</Body>
							</Body>
						</Body>
					</Body>
				</Body>
			</Body>
		</Body>
	</Body>
	</PhysicsModel>
	<ModelAttachments>
		<HeadLight>
			<Model _template="HeadLightRay" Dir="(1; -0.4; 0)" Org="(1.007; 2.308; -0.236)" ParentFrame="BoneRotationBase_cdt" />
			<Model _template="HeadLightRay" Dir="(1; -0.4; 0)" Org="(1.007; 2.308; 0.232)" ParentFrame="BoneRotationBase_cdt" />
			<Flare _template="HeadLight" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; -0.236)" ParentFrame="BoneRotationBase_cdt" />
			<Flare _template="HeadLight" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; 0.232)" ParentFrame="BoneRotationBase_cdt" />
		</HeadLight>
		<Ignition>
			<Flare _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; -0.077)" ParentFrame="BoneRotationBase_cdt" />
			<Flare _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; 0.073)" ParentFrame="BoneRotationBase_cdt" />

			<Flare _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; -0.236)" ParentFrame="BoneRotationBase_cdt" />
			<Flare _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Pos="(1.007; 2.308; 0.232)" ParentFrame="BoneRotationBase_cdt" />
			<Light _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Color="(122; 61; 0) x 2.6" Pos="(1.007; 2.308; -0.236)" ParentFrame="BoneRotationBase_cdt" />
			<Light _template="IgnitionSignalWhite" Dir="(1; -0.4; 0)" Color="(122; 61; 0) x 2.6" Pos="(1.007; 2.308; 0.232)" ParentFrame="BoneRotationBase_cdt" />
		</Ignition>
	</ModelAttachments>
	<HeadLight
		_template="Default"
		AttenEnd="32"
		Color="g(255; 212; 154) x 3.2"
		Dir="(1.0; -0.4; 0)"
		Pos="(1.007; 2.308; 0.0)"
		ParentFrame="BoneRotationBase_cdt"
	/>
	<GameData>
		<InstallSocket Type="Combo_crane" />
		<WinchSocket Pos="(-1.541; 2.233; -0.367)" ParentFrame="BoneRotationBase_cdt" />
		<WinchSocket Pos="(-1.541; 2.233; 0.367)" ParentFrame="BoneRotationBase_cdt" />
	</GameData>
	<ControlledIK>
		<Chain
			CenterXZ="(-0.213; -0.002)"
			EndOffset="(-0.213; 1.804; -0.002)"
			Id="crane"
			MinRadius="1.4"
			ModelFrames="BoneChassis_cdt,BoneRotationBase_cdt,BoneArm1_cdt,BoneArm2_cdt,BoneArm3_cdt"
		/>
	</ControlledIK>
	<ControlledConstraints>
		<Constraint Id="crane_grappler" LinkToControlledIK="crane" Name="GrapplerBase" />
	</ControlledConstraints>

		<Exhaust Dir="(0; 1; 0)" Origin="(-1.66; 3.487; 0.403)" Speed="3.8" IsLight="true" ParentFrame="BoneRotationBase_cdt" />
	<AutomaticIK>
		<IKBone ModelFrame="Strela2_skoba1" ParentFrame="BoneArm2_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneArm1_cdt"
				ModelFrame="Strela2_skoba2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>

		<IKBone ModelFrame="CylinderStrel1" ParentFrame="Strela2_skoba1">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneArm1_cdt"
				ModelFrame="CylinderStrel2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="CylinderCab1" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneRotationBase_cdt"
				ModelFrame="CylinderCab2"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="CylinderGrappler1" ParentFrame="BoneGrapplerLeft_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneGrapplerRight_cdt"
				ModelFrame="CylinderGrappler2"
			>
				<IKJoint AxisLocal="(0;0;1)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>




</TruckAddon>
