<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			DefaultWheelType="eq2081_wheel"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrengthInNewtonsPerMeter="140e3"
			SuspensionDampingInNewtonSecondsPerMeter="3e3"
			Torque="default"
		/>
		<FrontWheel
			DefaultWheelType="eq2081_wheel"
			HardpointOffsetY="-0.2"
			SteeringAngle="43"
			SteeringAngleCasual="28"
			SteeringCastor="8"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrengthInNewtonsPerMeter="125e3"
			SuspensionDampingInNewtonSecondsPerMeter="3e3"
			ParentFrame="BoneCabin"
			Torque="full"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.551"
		HardpointDefaultZ="0.929"
	>
		<Wheel _template="FrontWheel" HardpointX="2.067" BrakeTorque="6500" />
		<Wheel _template="FrontWheel" HardpointX="2.067" RightSide="true" BrakeTorque="6500" />
		<Wheel _template="RearWheel" HardpointX="-1.291" />
		<Wheel _template="RearWheel" HardpointX="-1.291" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.566" />
		<Wheel _template="RearWheel" HardpointX="-2.566" RightSide="true" />		
	</Wheels>
	<TruckData
		BackSteerSpeed="0.07"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.6"
		FuelCapacity="170"
		SteerResponsiveness="0.035"
		SteerSpeed="0.02"
		HasTireInflationSystem="false"			
	>
		<Steam Origin="(0.156; 1.096; 0)" />
		<Steam Origin="(3.092; 1.062; 0)" Scale="0.5" ParentFrame="BoneCabin" />
		<Sounds _template="Default" Origin="(1.30; 1.22; 0)" AirHissInterval="14.0" ParentFrame="BoneCabin">
			<EngineStop Sound="engine/eq2081_stop" />
			<EngineStart Sound="engine/eq2081_start" />
			<EngineRev Sound="engine/eq2081_rev" />
			<EngineLow Sound="engine/eq2081_low" />
			<EngineIdle Sound="engine/eq2081_idle" />
			<EngineHigh Sound="engine/eq2081_high" />
			<EngineTurbo Sound="truck/turbo" />
			<EngineTrans Sound="truck/trans" />
			<EngineLowOffload Sound="engine/eq2081_low_off" />
			<EngineHighOffload Sound="engine/eq2081_high_off" />
			<BrakeRelease Sound="truck/china_brake_release" />
			<BrakePull Sound="truck/china_brake_pull" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(2; 2; 0)" MaxFrequency="4" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />			
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />		
		</Shafts>
		<!--<OcclusionVolume
			HalfSizeZ="1.40"
			HeightFront="1"
			HeightRear="0.7"
			MinX="-3.2"
			MaxX="2.7"
		>
			<FullOcclusion HeightRear="1.0" />
		</OcclusionVolume>-->
		<OcclusionMap HalfSizeZ="1.2" MinX="-3.56" MaxX="3.12" />
		<Motor MaxDeltaAngVel="0.085" Torque="115715">
			<ReverseGear AngVel="0.31" />
			<HighGear AngVel="7.52" />
			<Gear AngVel="0.29" />
			<Gear AngVel="2.25" />
			<Gear AngVel="3.97" />
			<Gear AngVel="6.51" />
			<Gear AngVel="9.04" />
		</Motor>
		<Exhaust Dir="(0; -0.09; -0.8)" Origin="(-1.931; 1.105; -1.024)" Speed="3.77" />
		<Driver Pos="(0.796; 1.506; 0.475)" ParentFrame="BoneCabin" />
		<Damage
			Capacity="400"
			SensationMin="(0.672; 1.67; -0.95)"
			SensationMax="(1.336; 2.27; 0.95)"
		/>
		<Camera
			CabinPos="(0.6; 3.5; 0.0)"
			RadiusMultiplier="0.8"
			ParentFrame="BoneCabin"
		/>
		<Axles>
			<Axle Frame="AxleBone1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="AxleBone2" LeftWheel="2" RightWheel="3" />
			<Axle Frame="AxleBone3" LeftWheel="4" RightWheel="5" />			
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/eq2081/eq2081">
		<Body CenterOfMassOffset="(-1.2; -1.50; 0)" ImpactType="Truck" Mass="6500">
			<Body ImpactType="Truck" Mass="3500" ModelFrame="BoneCabin">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-25"
					MaxLimit="25"
					Type="Hinge"
				>
					<Motor Damping="16000" Spring="120000" Type="Spring" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>	
	<ModelAttachments>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(2.714; 1.168; 0.757)" ParentFrame="BoneCabin" />
			<Model _template="HeadLightRay" Org="(2.714; 1.168; -0.757)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Pos="(2.714; 1.168; 0.757)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Pos="(2.714; 1.168; -0.757)" ParentFrame="BoneCabin" />
			<Flare _template="BlueStreak" Pos="(2.714; 1.168; 0.757)" ParentFrame="BoneCabin" />
			<Flare _template="BlueStreak" Pos="(2.714; 1.168; -0.757)" ParentFrame="BoneCabin" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.58; 1.275; 0.0)" ParentFrame="BoneCabin" />
	<GameData BalancePoints="3" >
		<WinchSocket Pos="(3.019; 1.174; 0.449)" ParentFrame="BoneCabin" />
		<WinchSocket Pos="(3.019; 1.174; -0.449)" ParentFrame="BoneCabin" />
		<WinchSocket Pos="(-3.49; 0.916; 0)" ParentFrame="BoneChassis" />
		<WinchSocket Pos="(-0.682; 1.068; 0.445)" ParentFrame="BoneChassis" />
		<WinchSocket Pos="(-0.682; 1.068; -0.445)" ParentFrame="BoneChassis" />

		<AddonSockets>
			<Socket Names="eq2081_main" ParentFrame="BoneChassis" />
			<Socket Names="eq2081_utility" ParentFrame="BoneChassis" NamesBlock="eq2081_spare, eq2081_stanby_tank" />
			<Socket Names="ca30_cistern" ParentFrame="BoneChassis" NamesBlock="eq2081_stanby_tank,eq2081_spare" />
			<Socket Names="UralCart" ParentFrame="BoneChassis" Offset="(-1.2; -0.04; 0.0)" NamesBlock="eq2081_spare,eq2081_stanby_tank" />
		</AddonSockets>

		<AddonSockets>
			<Socket Names="eq2081_spare" ParentFrame="BoneCabin" NamesBlock="eq2081_utility"/>
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="eq2081_stanby_tank" ParentFrame="BoneChassis" NamesBlock="eq2081_utility"/>
		</AddonSockets>	
		<AddonSockets>
			<Socket Names="UralCraneSupport" Offset="(-1.48; -0.065; 0.0)" ParentFrame="BoneCabin" />
		</AddonSockets>

		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-3.487; 0.9; 0.0)" />
			<Socket Names="MediumLogCartCN" Offset="(-3.487; 0.9; 0.0)" />
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="LoadShortFrontBottom" Offset="(0.18; 1.45; 0)" />
			<Socket Names="LoadLogsMedium" Offset="(-2.13; 1.7; 0.0)" />
		</AddonSockets>
	</GameData>	
	<FKBones>
		<Bone
			Frame="BoneSteeringArmR"
			Input="Steering"
			Joint="Hinge"
			AxisLocal="(0;-1;0)"
			MinPosition="-25"
			RestPosition="0"
			MaxPosition="25"
		/>
		<Bone
			Frame="BoneSteeringArmL"
			Input="Steering"
			Joint="Hinge"
			AxisLocal="(0;-1;0)"
			MinPosition="-25"
			RestPosition="0"
			MaxPosition="25"
		/>

	</FKBones>
	<AutomaticIK>

		<IKBone
			ModelFrame="BoneSteeringArmC"
			ParentFrame="BoneSteeringArmL"
			AttachToFrame="BoneSteeringArmR"
			AttachOffset="(0; 0; -1.362)"
		>
			<IKJoint Type="Hinge" AxisLocal="(0;1;0)" />
		</IKBone>
	</AutomaticIK>
</Truck>
