<_templates Include="trucks">
	<Wheel>
		<FrontWheel
			HardpointOffsetY="-0.095"
			SuspensionDamping="0.4"
			SuspensionMin="-.1"
			SuspensionMax=".1"
			SuspensionStrength="1"
			Torque="default"
			Type="k9000_forwarder"
		/>
		<RearWheel
			HardpointOffsetY="-0.095"
			ConnectedToHandbrake="true"
			SuspensionDamping="0.4"
			SuspensionMin="-0.1"
			SuspensionMax="0.1"
			SuspensionStrength="1"
			Torque="full"
			Type="k9000_forwarder"
		/>
	</Wheel>
	<Body>
		<Farm Mass="20">
			<Constraint
				AxisLocal="(1;0;0)"
				MinLimit="-1"
				MaxLimit="1"
				Type="Hinge"
			>
				<Motor Damping="80" Spring="0" Type="Spring" />
			</Constraint>
		</Farm>
	</Body>
	<Light>
		<IgnitionSignalWhite1
			AttenEnd="8"
			Color="g(253; 240; 226) x 0.3"
			InnerCone="80"
			OuterCone="180"
		/>
	</Light>
	<Flare>
		<IgnitionSignalWhite1
			AspectRatio="1.4"
			Color="g(165; 149; 130) x 0.6"
			DirAngle="90"
			Size="0.4"
			ColorMultAtDay="0.4"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.796"
		HardpointDefaultZ="1.275"
	>
		<Wheel _template="FrontWheel" HardpointX="2.462" ParentFrame="BoneSuspensionL1_cdt" />
		<Wheel
			_template="FrontWheel"
			HardpointX="2.462"
			RightSide="true"
			ParentFrame="BoneSuspensionR1_cdt"
		/>
		<Wheel _template="FrontWheel" HardpointX="0.759" ParentFrame="BoneSuspensionL1_cdt" />
		<Wheel
			_template="FrontWheel"
			HardpointX="0.759"
			RightSide="true"
			ParentFrame="BoneSuspensionR1_cdt"
		/>
		<Wheel _template="RearWheel" HardpointX="-3.63" ParentFrame="BoneSuspensionL2_cdt" />
		<Wheel
			_template="RearWheel"
			HardpointX="-3.63"
			RightSide="true"
			ParentFrame="BoneSuspensionR2_cdt"
		/>
		<Wheel _template="RearWheel" HardpointX="-5.334" ParentFrame="BoneSuspensionL2_cdt" />
		<Wheel
			_template="RearWheel"
			HardpointX="-5.334"
			RightSide="true"
			ParentFrame="BoneSuspensionR2_cdt"
		/>
	</Wheels>
	<TruckData
		BackSteerSpeed="0.015"
		DiffLockType="Always"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.6"
		ExhaustStartTime="0.6"
		FuelCapacity="340"
		Responsiveness="0.05"
		SteerSpeed="0.018"
		LockClothInvertDir="false"
		LockClothOrigin="(0; -0.26; -0.1)"
		LockClothScale="1.3"
	>
		<Steam Origin="(-0.221; 1.072; 0)" />
		<Steam Origin="(3.021; 1.653; 0)" Scale="0.5" />
		<Sounds
			_template="Default"
			EngineHeavyVolume="1"
			Origin="(2.612; 1.968; 0)"
			DisableReversePitch="true"
		>
			<Reverse Sound="k8400/k8400_back_beeper" />
			<EngineStop Sound="k9000/k9000_stop" />
			<EngineStart Sound="k9000/k9000_start" />
			<EngineRev Sound="k9000/k9000_rev" />
			<EngineLow Sound="k9000/k9000_low" />
			<EngineIdle Sound="k9000/k9000_idle" />
			<EngineHigh Sound="k9000/k9000_high" />
			<EngineHeavy Sound="k9000/k9000_heavy" />
			<EngineTrans Sound="truck/trans" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneExhaust" MaxAngle="(1.; 1.; 1.)" MaxFrequency="0.3" />
		</Shakers>
		<OcclusionVolume
			HalfSizeZ="1.0"
			HeightFront="1.4"
			HeightRear="0.8"
			MinX="-3.9"
			MaxX="3.2"
		>
			<FullOcclusion HeightFront="1.366" HeightRear="2" />
		</OcclusionVolume>
		<OcclusionMap
			HalfSizeZ="2.2"
			MinX="-6"
			MaxX="2.9"
			ParentFrame="BoneBackRot_cdt"
		/>
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.005" Torque="220000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="3.0" />
			<Gear AngVel="0.8" />
			<Gear AngVel="1.6" />
			<Gear AngVel="2.4" />
		</Motor>
		<Intake Dir="(1; 0; 0)" Origin="(4.09; 1.918; 0)" Size="0.8" />
		<Exhaust
			Dir="(-0.889; 0.456; -0.8)"
			Origin="(2.465; 3.43; -0.653)"
			Speed="3.00"
			IsLight="true"
		/>
		<Damage
			Capacity="600"
			SensationMin="(0.232; 2.196; -0.673)"
			SensationMax="(2.132; 3.472; 0.601)"
		/>
		<Driver
			Pos="(1.124; 2.198; 0.313)"
			SteeringWheelPos="(1.494; 2.588; 0.313)"
			ParentFrame="BoneFront_cdt"
			LegsOffset="(0;0;-0.1)"
		/>
		<SteeringWheel Frame="BoneSteering" />
		<Camera RadiusMultiplier="1.1" Center="(-2.3;0.0;0)">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(70; 66; 61)"
				ControlsPos="(1.68; 2.58; 0.43)"
				ViewPos="(0.93; 3.0; 0.25)"
				ViewDir="(1.0; -0.2; 0)"
				WindshieldDiffuseTexture="trucks/k9000_forwarder_glass__d_a.tga"
			>
				<Rear _inheritRemove="true" />
			</Cockpit>
		</Camera>
	</TruckData>
	<!--- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<PhysicsModel Mesh="trucks/k9000_forwarder">
		<Body
			CenterOfMassOffset="(0; 0.2; 0)"
			ImpactType="Truck"
			Mass="4000"
		>
			<Body Mass="1000" ModelFrame="BoneBack_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-30"
					MaxLimit="30"
					Name="ChassisSteer"
					Type="Hinge"
				>
					<Motor
						Damping="1.0"
						Force="140000"
						Tau="0.04"
						Type="Position"
					/>
				</Constraint>
				<Body Mass="4450" ModelFrame="BoneBackRot_cdt">
					<Constraint
						AxisLocal="(0;1;0)"
						MinLimit="-15"
						MaxLimit="15"
						Type="Hinge"
					>
						<Motor Damping="800.0" Spring="1400" Type="Spring" />
					</Constraint>
					<Body Mass="1500" ModelFrame="BoneSuspensionR2_cdt">
						<Constraint
							AxisLocal="(0;0;1)"
							MinLimit="-15"
							MaxLimit="15"
							Type="Hinge"
						/>
					</Body>
					<Body Mass="1500" ModelFrame="BoneSuspensionL2_cdt">
						<Constraint
							AxisLocal="(0;0;1)"
							MinLimit="-15"
							MaxLimit="15"
							Type="Hinge"
						/>
					</Body>
					<Body Mass="800" ModelFrame="BoneShield_cdt">
						<Constraint
							AxisLocal="(0;0;1)"
							MinLimit="-3"
							MaxLimit="5"
							Type="Hinge"
						>
							<Motor Damping="80000" Spring="100000" Type="Spring" />
						</Constraint>
					</Body>
					<Body _template="Farm" ModelFrame="FarmLeft1_cdt" />
					<Body _template="Farm" ModelFrame="FarmLeft2_cdt" />
					<Body _template="Farm" ModelFrame="FarmLeft3_cdt" />
					<Body _template="Farm" ModelFrame="FarmLeft4_cdt" />
					<Body _template="Farm" ModelFrame="FarmRight1_cdt" />
					<Body _template="Farm" ModelFrame="FarmRight2_cdt" />
					<Body _template="Farm" ModelFrame="FarmRight3_cdt" />
					<Body _template="Farm" ModelFrame="FarmRight4_cdt" />
				</Body>
			</Body>
			<Body Mass="1500" ModelFrame="BoneSuspensionR1_cdt">
				<Constraint
					AxisLocal="(0;0;1)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				/>
			</Body>
			<Body Mass="1500" ModelFrame="BoneSuspensionL1_cdt">
				<Constraint
					AxisLocal="(0;0;1)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				/>
			</Body>
			<Body
				Mass="20"
				ModelFrame="BoneStepLeft_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-60"
					MaxLimit="0"
					Type="Hinge"
				/>
			</Body>
			<Body
				Mass="20"
				ModelFrame="BoneStepRight_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="0"
					MaxLimit="60"
					Type="Hinge"
				/>
			</Body>
		</Body>
	</PhysicsModel>
	<!--- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<ModelAttachments>
		<Ignition>
			<Light _template="IgnitionSignalWhite1" Pos="(0.35; 3.495; -0.338)" Dir="(-0.261; -0.439; -0.86)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(0.418; 3.422; -0.829)" Dir="(0.108; -0.287; -0.952)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(2.053; 3.331; -0.79)" Dir="(0.005; -0.158; -0.987)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(0.204; 3.439; -0.674)" Dir="(-0.97; -0.109; -0.217)" />
			<Light _template="IgnitionSignalWhite1" Pos="(0.35; 3.495; 0.338)" Dir="(-0.261; -0.439; 0.86)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(0.418; 3.422; 0.829)" Dir="(0.108; -0.287; 0.952)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(2.053; 3.331; 0.79)" Dir="(0.005; -0.158; 0.987)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(0.204; 3.439; 0.674)" Dir="(-0.97; -0.109; 0.217)" />
			<!--<Light _template="IgnitionSignalWhite1" Pos="(2.4; 3.404; 0)" Dir="(0.956; -0.294; 0)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(2.249; 3.404; 0.212)" Dir="(0.983; -0.167; 0)" />
			<Flare _template="IgnitionSignalWhite1" Pos="(2.249; 3.404; -0.212)" Dir="(0.983; -0.167; 0)" />-->
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.813; 1.712; -0.527)" />
			<Model _template="HeadLightRay" Org="(3.813; 1.712; 0.527)" />
			<Flare _template="HeadLight" Pos="(3.813; 1.712; -0.527)" />
			<Flare _template="HeadLight" Pos="(3.813; 1.712; 0.527)" />
			<Flare _template="BlueStreak" Pos="(3.813; 1.712; -0.527)" />
			<Flare _template="BlueStreak" Pos="(3.813; 1.712; 0.527)" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		AttenEnd="40"
		AttenStart="1"
		Color="g(255; 212; 154) x 8.5"
		Dir="(1.0; -0.2; 0)"
		InnerCone="0"
		OuterCone="130"
		Pos="(4.421; 1.694; 0)"
	/>
	<GameData BalancePoints="5" LogPoints="3">
		<WinchSocket Pos="(3.986; 1.492; 0)" />
		<WinchSocket Pos="(-7.174; 1.031; 0)" ParentFrame="BoneBackRot_cdt" />
		<WinchSocket Pos="(0.001; 1.489; 0.624)" />
		<WinchSocket Pos="(0.001; 1.489; -0.624)" />
		<CompletionStarsDecal Dir="(0.012; -0.096; 0.995)" Pos="(1.09; 2.331; 0.822)" />
		<AddonSockets>
			<Socket Names="UsLoadLogsForwarder" Offset="(-5.7; 1.3; 0)" ParentFrame="BoneBackRot_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-7.2; 1.035; 0)" ParentFrame="BoneBackRot_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Cat584ForwarderCrane" Offset="(0; 0; 0)" ParentFrame="BoneBackRot_cdt">
				<ExtraParent Frame="BoneFront_cdt" />
			</Socket>
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Cat584ForwarderBlade" Offset="(0; 0; 0)" ParentFrame="BoneFront_cdt" />
		</AddonSockets>
		<LoadArea
			Min="(-2.355; 1.296; -1.5)"
			Max="(-4.502; 2.8; 1.5)"
			TrailerLoad="false"
			Type="ShortLogs"
			ParentFrame="BoneFront_cdt"
		/>
		<LoadArea
			Min="(-4.802; 1.296; -1.5)"
			Max="(-6.95; 2.8; 1.5)"
			TrailerLoad="false"
			Type="ShortLogs"
			ParentFrame="BoneFront_cdt"
		/>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="chassis_steer" IsLinkedSteering="true" Name="ChassisSteer" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="BoneBackPistonLBase" ParentFrame="BoneFront_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneBack_cdt"
				ModelFrame="BoneBackPistonL"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneBackPistonRBase" ParentFrame="BoneFront_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneBack_cdt"
				ModelFrame="BoneBackPistonR"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneBackRotPistonLBase" ParentFrame="BoneBack_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneBackRot_cdt"
				ModelFrame="BoneBackRotPistonL"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneBackRotPistonRBase" ParentFrame="BoneBack_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneBackRot_cdt"
				ModelFrame="BoneBackRotPistonR"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
</Truck>
