<_templates Include="trucks">
	  <Wheel>
		<PonsseScorpion1
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="1.0"
			Torque="default"
			Type="HSM_Short2"
		/>
		<PonsseScorpion2
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="0.05"
			Torque="default"
			Type="HSM_Short"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.0"
		HardpointDefaultZ="0.0"
	>
		<Wheel _template="PonsseScorpion2" HardpointX="1.296"  HardpointY="0.75" HardpointZ="1.15" ParentFrame="BoneAxleFront" />		
		<Wheel _template="PonsseScorpion2" HardpointX="1.296"  HardpointY="0.75" HardpointZ="1.15" ParentFrame="BoneAxleFront" RightSide="true"  />
		<Wheel _template="PonsseScorpion1" HardpointX="-3.594"  HardpointY="0.643" HardpointZ="1.15" ParentFrame="BoneAmortizatorP1_cdt" />		
		<Wheel _template="PonsseScorpion1" HardpointX="-3.594"  HardpointY="0.643" HardpointZ="1.15" ParentFrame="BoneAmortizatorP2_cdt" RightSide="true"  />	
		<Wheel _template="PonsseScorpion1" HardpointX="-5.155"  HardpointY="0.643" HardpointZ="1.15" ParentFrame="BoneAmortizatorP1_cdt" />		
		<Wheel _template="PonsseScorpion1" HardpointX="-5.155"  HardpointY="0.643" HardpointZ="1.15" ParentFrame="BoneAmortizatorP2_cdt" RightSide="true"  />	
	</Wheels>
	<TruckData
		BackSteerSpeed="0.025"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="2.0"
		ExhaustStartTime="2.0"
		FuelCapacity="480"
		LockClothInvertDir="true"
		LockClothOrigin="(1.897; 1.966; 0)"
		LockClothScale="1.1"
		Responsiveness="0.05"
		SteerSpeed="0.028"
		DiffLockType="Always"
	>


		<Steam Origin="(3.475; 2.456; 0)" Scale="0.5"  />
		<Sounds
			_template="Default"
			EngineHeavyVolume="0.8"
			Origin="(1.7; 1.966; 0)"
		>

			<EngineStop Sound="ponsseScorpion_stop" />
			<EngineStart Sound="HSM_start" />
			<EngineTurbo Sound="engine/kraz_new_high" />
			<EngineLow Sound="engine/kraz_new_low" />
			<EngineIdle Sound="HSM_Idle" />
			<EngineHigh Sound="HSM_high" />
			<EngineHeavy Sound="HSM_heavy" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(1; 1; 0)" MaxFrequency="4" />
		</Shakers>

		<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="-3.10" MaxX="5.0" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.005" Torque="300000">
			<ReverseGear AngVel="0.2" />
			<HighGear AngVel="4.4" />
			<Gear AngVel="0.2" />
			<Gear AngVel="2.4" />
			<Gear AngVel="3.2" />
			<Gear AngVel="5.2" />
		</Motor>
		<LimitedFluid
			Center="(-0.8; 1.75; -0.01)"
			SizeX="0.2"
			SizeY="0.4"
			SizeZ="1.0"
			Type="Box"
		/>


		<Intake Dir="(1.0; 0; 0)" Origin="(2.865; 1.966; 0.0)" Size="0.8" ParentFrame="BoneZad_naklon" />
		<Intake Dir="(1.0; 0; 0)" Origin="(2.865; 1.966; 0.0)" Size="0.8" ParentFrame="BoneZad_naklon" />


		<Exhaust
			Dir="(-0.889; 0.456; -0.8)"
			Origin="(1.226; 3.39; -0.711)"
			Speed="3.00"
                        ParentFrame="BoneExhaust"
		/>

		<Driver Pos="(0.1; 2.05; -0.13)" SteeringWheelPos="(0.3; 2.35; -0.13)" ParentFrame="BoneBuffalo_Seat_cdt" />



		<Damage
			Capacity="900"
			SensationMin="(1.8; 2.2; -1.0)"
			SensationMax="(4.0; 3.0; 1.0)"
		/>
		<Camera Center="(-1.0; 0; 0)" RadiusMultiplier="1.0" ParentFrame="BoneBuffalo_Seat_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(80; 80; 80)"
				ViewPos="(0.0; 2.9; -0.13)"
				WindshieldDiffuseTexture="trucks/maz535_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxleFront" />
		</Axles>
	</TruckData>

	<PhysicsModel Mesh="trucks/HSM_940F_Combined">
                <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="All" Mass="3000" ModelFrame="Buffalo_Zad2_cdt">
				<Constraint
					AxisLocal="(-1; 0; 0)"
					MinLimit="-0"
					MaxLimit="0.5"
					Name="Foot1"
					Type="Prismatic"
				>
					<Motor Force="150000" Tau="0.1" Type="Position" />
				</Constraint>
		                                                                 </Body>
							<Body Collisions="None" Mass="1000" ModelFrame="BoneAmortizatorP1_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="1000" ModelFrame="BoneAmortizatorP2_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-25"
									MaxLimit="25"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>


		     </Body>
		     </Body>

							<Body Collisions="All" 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 ImpactType="Truck" Collisions="None" Mass="100" ModelFrame="BoneBuffalo_Seat_cdt">
				<Constraint
					AxisLocal="(0; 1; 0)"
					MinLimit="-0"
					MaxLimit="180"
					Name="Foot3"
					Type="Hinge"
				>
					<Motor Force="50000" Tau="0.1" Type="Position" />
				</Constraint>

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

	<PoweredConstraints>
		<Group Id="Driver_Seat">
			<Constraint Name="Foot3" Position="180.0" />
		</Group>
		<Group Id="Backside_Fork">
			<Constraint Name="Foot1" Position="0.5" />
		</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>
	</AutomaticIK>

	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-0.693; 3.265; 0)" ParentFrame="BoneZad_naklon" />
			<Flare _template="StopSignal" Pos="(-0.693; 3.265; 0.422)" ParentFrame="BoneZad_naklon" />
			<Flare _template="StopSignal" Pos="(-0.693; 3.265; -0.467)" ParentFrame="BoneZad_naklon" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-0.693; 3.265; -0.562)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Pos="(-0.693; 3.265; -0.562)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Dir="(-1; 0; 0)" Pos="(-0.693; 3.265; -0.562)" ParentFrame="BoneZad_naklon" />

			<Light _template="ReverseSignal" Pos="(-0.693; 3.265; 0.523)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Pos="(-0.693; 3.265; 0.523)" ParentFrame="BoneZad_naklon" />
			<Flare _template="ReverseSignal" Dir="(-1; 0; 0)" Pos="(-0.693; 3.265; 0.523)" ParentFrame="BoneZad_naklon" />
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed"  Pos="(-0.693; 3.265; 0)" ParentFrame="BoneZad_naklon" />
			<Flare _template="IgnitionSignalRed"  Pos="(-0.693; 3.265; -0.467)" ParentFrame="BoneZad_naklon" />
			<Flare _template="IgnitionSignalRed"  Pos="(-0.693; 3.265; 0.422)" ParentFrame="BoneZad_naklon" />

			<Flare _template="IgnitionSignalWhite" Pos="(0.981; 3.303; -0.482)" ParentFrame="BoneZad_naklon" />
			<Flare _template="IgnitionSignalWhite" Pos="(0.981; 3.303; 0.412)" ParentFrame="BoneZad_naklon" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(0.981; 3.303; -0.482)" ParentFrame="BoneZad_naklon" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(0.981; 3.303; 0.412)" ParentFrame="BoneZad_naklon" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Dir="(1; -0.4; 0)" Org="(2.88; 1.517; 0.545)" ParentFrame="BoneZad_naklon" />
			<Model _template="HeadLightRay" Dir="(1; -0.4; 0)" Org="(2.88; 1.517; -0.545)" ParentFrame="BoneZad_naklon" />
			<Flare _template="HeadLight" Color="(122; 61; 0) x 0.5" Pos="(2.88; 1.517; 0.545)" ParentFrame="BoneZad_naklon" />
			<Flare _template="HeadLight" Color="(122; 61; 0) x 0.5" Pos="(2.88; 1.517; -0.545)" ParentFrame="BoneZad_naklon" />
		</HeadLight>

	</ModelAttachments>
	
	<HeadLight _template="Default"  Pos="(4.5; 1.355; 0.0)" ParentFrame="BoneZad_naklon" />

	<GameData
		BalancePoints="3"
		LogPoints="0"
	>
		<WinchSocket Pos="(3.066; 1.284; 0.0)" ParentFrame="BoneZad_naklon" />
		<WinchSocket Pos="(-5.584; 1.181; 0.005)" ParentFrame="Buffalo_Zad2_cdt" />
		<WinchSocket Pos="(-0.121; 1.555; -0.867)" ParentFrame="BoneZad_naklon" />
		<WinchSocket Pos="(-0.121; 1.555; 0.833)" ParentFrame="BoneZad_naklon" />
		<CompletionStarsDecal Dir="(0; 0; 1)" Pos="(0.014; 2.164; 0.8)" ParentFrame="BoneZad_naklon" />
		<AddonSockets>
			<Socket Names="pogruzchik" Offset="(-3.9; 0.2 0.0)" ParentFrame="BonePered_povorot" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="John_Deere_cart" Offset="(-5.6; 1.2 0.0)" ParentFrame="Buffalo_Zad2_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="podram" Offset="(-4.0; 0.4; 0.0)" ParentFrame="BonePered_povorot" />
			<Socket Names="John_Deere_Lesovoz" Offset="(-0.65; 0.1; 0.0)" ParentFrame="BonePered_povorot" />
			<Socket Names="HSM_940F_cistern" ParentFrame="BonePered_povorot" Offset="(-4.2; 1.4; 0)" />
			<Socket Names="MaintainerTrucks" Offset="(-4.5; 0.4; 0)" ParentFrame="BonePered_povorot" />
		</AddonSockets>
	</GameData>

</Truck>
