<_templates Include="trucks">
	  <Wheel>
		<PonsseScorpion1
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="1.0"
			Torque="default"
			Type="Combo_King"
		/>
		<PonsseScorpion2
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="1.0"
			Torque="full"
			Type="Combo_King"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.0"
		HardpointDefaultZ="0.0"
	>
		<Wheel _template="PonsseScorpion1" HardpointX="2.834"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorP2_cdt" />		
		<Wheel _template="PonsseScorpion1" HardpointX="2.834"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorP1_cdt" RightSide="true"  />	
		<Wheel _template="PonsseScorpion1" HardpointX="1.121"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorP2_cdt" />		
		<Wheel _template="PonsseScorpion1" HardpointX="1.121"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorP1_cdt" RightSide="true"  />	

		<Wheel _template="PonsseScorpion2" HardpointX="-2.716"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorZ2_cdt" />		
		<Wheel _template="PonsseScorpion2" HardpointX="-2.716"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorZ1_cdt" RightSide="true"  />	
		<Wheel _template="PonsseScorpion2" HardpointX="-4.428"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorZ2_cdt" />		
		<Wheel _template="PonsseScorpion2" HardpointX="-4.428"  HardpointY="0.58" HardpointZ="1.2" ParentFrame="BoneAmortizatorZ1_cdt" RightSide="true"  />	
	</Wheels>
	<TruckData
		BackSteerSpeed="0.025"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="2.0"
		ExhaustStartTime="2.0"
		FuelCapacity="440"
		LockClothInvertDir="true"
		LockClothOrigin="(3.732; 3.63; 0)"
		LockClothScale="1.1"
		Responsiveness="0.05"
		SteerSpeed="0.028"
	>


		<Steam Origin="(3.475; 2.856; 0)" Scale="0.5"  />
		<Sounds
			_template="Default"
			EngineHeavyVolume="0.5"
			Origin="(1.5; 2.1; 0.0)"
		>
			<Reverse Sound="k8400/k8400_back_beeper" />
			<EngineStop Sound="k8400/k8400_stop" />
			<EngineStart Sound="k8400/k8400_start" />
			<EngineRev Sound="k9000/k9000_rev" />
			<EngineLow Sound="k9000/k9000_low" />
			<EngineIdle Sound="HSM_Idle" />
			<EngineHigh Sound="k9000/k9000_high" />
			<EngineHeavy Sound="k9000/k9000_heavy" />
			<EngineTrans Sound="truck/trans" />
		</Sounds>

		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.45"
			HeightFront="1.1"
			HeightRear="0.6"
			MinX="-2.65"
			MaxX="4.2"
		>
			<FullOcclusion HeightRear="1.1" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.90" MinX="-4.428" MaxX="2.834" />
		<Motor BrakesDelay="0.6" MaxDeltaAngVel="0.01" Torque="260000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="5.0" />
			<Gear AngVel="0.1" />
			<Gear AngVel="2.8" />
			<Gear AngVel="3.6" />
			<Gear AngVel="5.0" />
		</Motor>

		<LimitedFluid
			Center="(0.82; 1.326; 0.0)"
			SizeX="0.78"
			SizeY="0.25"
			SizeZ="0.8"
			Type="Box"
		/>

		<Intake Dir="(-1.0; 0; 0)" Origin="(1.0; 2.759; 0.0)" Size="0.5" ParentFrame="BonePered_povorot" />








		<Damage
			Capacity="900"
			SensationMin="(1.8; 3.2; -1.0)"
			SensationMax="(4.0; 4.0; 1.0)"
		/>
		<Camera RadiusMultiplier="1.2" ParentFrame="BonePered_povorot">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(80; 80; 80)"

				ViewPos="(2.0; 3.1; 0.0)"
				WindshieldDiffuseTexture="trucks/maz535_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>

	</TruckData>

	<PhysicsModel Mesh="trucks/Combo_Scorpion_King">
                <Body  Collisions="All"  CenterOfMassOffset="(0.0; -0.1; 0)" ImpactType="Truck" Mass="5000" >

						<Body Collisions="All" Mass="3000" ModelFrame="BonePered_povorot">
							<Constraint
								AxisLocal="(0;-1;0)"
								MinLimit="-40"
								MaxLimit="40"
								Name="ChassisSteer1"
								Type="Hinge"
							>
								<Motor Force="500000" Tau="0.4" Type="Position" />
							</Constraint>



			<Body ImpactType="Truck" Collisions="None" Mass="10" ModelFrame="BoneTrap_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-0"
					MaxLimit="90"
					Name="Foot1"
					Type="Hinge"
				>
					<Motor Force="1000" Tau="0.4" Type="Position" />
				</Constraint>
		     </Body>
							<Body Collisions="None" Mass="1100" ModelFrame="BoneAmortizatorP1_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-45"
									MaxLimit="45"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>

		     </Body>
							<Body Collisions="None" Mass="1100" ModelFrame="BoneAmortizatorP2_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-45"
									MaxLimit="45"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>


		     </Body>
		     </Body>

							<Body Collisions="All" Friction="1.0" Mass="3000" ModelFrame="BoneZad_naklon">
								<Constraint
									AxisLocal="(1;0;0)"
									MinLimit="-30"
									MaxLimit="30"
									Type="Hinge"
								>
									<Motor Damping="0" Spring="90000" Type="Spring" />
								</Constraint>
							<Body Collisions="None" Mass="1100" ModelFrame="BoneAmortizatorZ1_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-25"
									MaxLimit="25"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>

		     </Body>
							<Body Collisions="None" Mass="1100" ModelFrame="BoneAmortizatorZ2_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-25"
									MaxLimit="25"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>






		     </Body>
		     </Body>
		</Body>
	</PhysicsModel>


	<PoweredConstraints>
		<Group Id="Stairs">
			<Constraint Name="Foot1" Position="90" />
		</Group>
	</PoweredConstraints>
	<ControlledConstraints>
		<Constraint Id="chassis_steer1" IsLinkedSteering="true" Name="ChassisSteer1" />
	</ControlledConstraints>


	<AutomaticIK>
		<IKBone ModelFrame="CylinderN1" ParentFrame="BoneZad_naklon">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneChassis_cdt"
				ModelFrame="CylinderN3"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="CylinderN2" ParentFrame="BoneZad_naklon">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneChassis_cdt"
				ModelFrame="CylinderN4"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>


		<IKBone ModelFrame="CylinderP1" ParentFrame="BonePered_povorot">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneChassis_cdt"
				ModelFrame="CylinderP3"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="CylinderP2" ParentFrame="BonePered_povorot">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneChassis_cdt"
				ModelFrame="CylinderP4"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="Cylinder1" ParentFrame="BoneTrap_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BonePered_povorot"
				ModelFrame="Cylinder2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>

	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-0.761; 3.105; 0)" ParentFrame="BoneZad_naklon" />
			<Flare _template="StopSignal" Pos="(-0.761; 3.105; 1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="StopSignal" Pos="(-0.761; 3.105; -1.225)" ParentFrame="BoneZad_naklon" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-0.761; 3.105; -1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Pos="(-0.761; 3.105; -1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="BlueStreak" Dir="(-1; 0; 0)" Pos="(-0.761; 3.105; -1.225)" ParentFrame="BoneZad_naklon" />

			<Light _template="ReverseSignal" Pos="(-0.761; 3.105; 1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Pos="(-0.761; 3.105; 1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="BlueStreak" Dir="(-1; 0; 0)" Pos="(-0.761; 3.105; 1.225)" ParentFrame="BoneZad_naklon" />
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-0.761; 3.105; 0.0)" ParentFrame="BoneZad_naklon" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.761; 3.105; -1.225)" ParentFrame="BoneZad_naklon" />
			<Flare _template="IgnitionSignalRed" Pos="(-0.761; 3.105; 1.225)" ParentFrame="BoneZad_naklon" />

			<Flare _template="IgnitionSignalWhite" Pos="(2.281; 1.346; -0.203)" ParentFrame="BonePered_povorot" />
			<Flare _template="IgnitionSignalWhite" Pos="(2.281; 1.346; 0.203)" ParentFrame="BonePered_povorot" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(2.281; 1.346; -0.203)" ParentFrame="BonePered_povorot" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(2.281; 1.346; 0.203)" ParentFrame="BonePered_povorot" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(2.281; 1.346; 0.203)" ParentFrame="BonePered_povorot" />
			<Model _template="HeadLightRay" Org="(2.281; 1.346; -0.203)" ParentFrame="BonePered_povorot" />
			<Flare _template="HeadLight" Pos="(2.281; 1.346; 0.203)" ParentFrame="BonePered_povorot" />
			<Flare _template="HeadLight" Pos="(2.281; 1.346; -0.203)" ParentFrame="BonePered_povorot" />
			<Flare _template="BlueStreak" Pos="(2.281; 1.346; 0.203)" ParentFrame="BonePered_povorot" />
			<Flare _template="BlueStreak" Pos="(2.281; 1.346; -0.203)" ParentFrame="BonePered_povorot" />
		</HeadLight>

	</ModelAttachments>
	
	<HeadLight _template="Default"  Pos="(2.281; 1.346; 0.0)" ParentFrame="BonePered_povorot" />

	<GameData
		BalancePoints="3"
		LogPoints="0"
		Recallable="true"
	>
		<WinchSocket Pos="(2.362; 1.08; 0.0)" ParentFrame="BonePered_povorot" />
		<WinchSocket Pos="(-5.815; 0.993; 0.0)" ParentFrame="BoneZad_naklon" />

		<LoadArea Min="(-0.77; 1.1; -1.3)" Max="(-7.7; 3.2; 1.3)" Type="MediumLogs" ParentFrame="BoneZad_naklon" />
		<LoadArea Min="(-0.77; 1.1; -1.3)" Max="(-5.7; 3.2; 1.3)" Type="ShortLogs" ParentFrame="BoneZad_naklon" />

		<CompletionStarsDecal Dir="(-1; 0; 0)" Pos="(-0.767; 2.439; 0.0)" ParentFrame="BoneZad_naklon" />
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-5.875; 0.993; 0.0)" ParentFrame="BoneZad_naklon" />
			<Socket Names="MazTrailerCart" Offset="(-5.875; 0.993; 0.0)" ParentFrame="BoneZad_naklon" />
			<Socket Names="_Goliath_cart" Offset="(-5.875; 0.993; 0.0)" ParentFrame="BoneZad_naklon" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Combo_crane" Offset="(2.2; 0.0; 0.0)" ParentFrame="BonePered_povorot" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Combo_Short" Offset="(0.0; 0.0; 0.0)" ParentFrame="BoneZad_naklon" />
			<Socket Names="Combo_Medium" Offset="(0.0; 0.0; 0.0)" ParentFrame="BoneZad_naklon" />
		</AddonSockets>
	</GameData>
	<Rotator RotationSpeed="5.8" Offset="(1.945; 1.429; 0.0)" ParentFrame="BoneCardan" />
</Truck>
