<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			DefaultWheelType="ca10_rear"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrengthInNewtonsPerMeter="180e3"
			SuspensionDampingInNewtonSecondsPerMeter="3e3"
			Torque="default"
		/>
		<FrontWheel
			DefaultWheelType="ca10_front"
			HardpointOffsetY="-0.2"
			SteeringAngle="43"
			SteeringAngleCasual="30"
			SteeringCastor="8"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
			SuspensionStrengthInNewtonsPerMeter="125e3"
			SuspensionDampingInNewtonSecondsPerMeter="3e3"
			ParentFrame="BoneCabin"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.538"
		HardpointDefaultZ="0.984"
	>
		<Wheel _template="FrontWheel" HardpointX="2.587" BrakeTorque="6500" />
		<Wheel _template="FrontWheel" HardpointX="2.587" RightSide="true" BrakeTorque="6500" />
		<Wheel _template="RearWheel" HardpointX="-1.666" />
		<Wheel _template="RearWheel" HardpointX="-1.666" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.07"
		EngineStartDelay="1.5"
		ExhaustStartTime="0.8"
		FuelCapacity="170"
		SteerResponsiveness="0.035"
		SteerSpeed="0.02"
	>
	<WheelsSets>
			<WheelsSet Title="offroad_type">
				<WheelType Type="ya170_rear" Wheels="2,3" />				
			</WheelsSet>
			<WheelsSet Title="chained_wheels">
				<WheelType Type="ca10_rear_chained" Wheels="2,3" />				
			</WheelsSet>
	</WheelsSets>
		<Steam Origin="(-0.1; 0.796; 0)" />
		<Steam Origin="(3.391; 1; 0)" Scale="0.5" ParentFrame="BoneCabin" />
		<Sounds _template="Default" Origin="(1.30; 1.22; 0)" AirHissInterval="64.0" ParentFrame="BoneCabin">
			<EngineStop Sound="engine/ca30_stop" />
			<EngineStart Sound="engine/ca30_start" />
			<EngineLowOffload Sound="engine/ca30_low_off" />
			<EngineLow Sound="engine/ca30_low" />
			<EngineIdle Sound="engine/ca30_idle" />
			<EngineHighOffload Sound="engine/ca30_high_off" />
			<ExhaustAfterFire Sound="truck/shot" />
			<EngineChoke Sound="truck/choke" />
			<EngineTrans Sound="truck/trans_2" />
			<BrakeRelease Sound="truck/china_brake_release" />
			<BrakePull Sound="truck/china_brake_pull" />
		</Sounds>

		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
		</Shafts>
		<!--<OcclusionVolume
			HalfSizeZ="1.40"
			HeightFront="1"
			HeightRear="0.7"
			MinX="-2.4"
			MaxX="3.2"
		>
			<FullOcclusion HeightRear="1.0" />
		</OcclusionVolume>-->
		<OcclusionMap HalfSizeZ="1.3" MinX="-3.48" MaxX="3.5" />
		<Motor MaxDeltaAngVel="0.025" Torque="49756" ChokeChance="0.1" ChokeDuration="0.35" IsPetrolEngine="true">
			<ReverseGear AngVel="0.31" />
			<HighGear AngVel="6" />
			<Gear AngVel="0.33" />
			<Gear AngVel="2.42" />
			<Gear AngVel="3.34" />
			<Gear AngVel="4.76" />
			<Gear AngVel="5.94" />
		</Motor>
		<Exhaust Dir="(0; 0; -0.4)" Origin="(2.41; 1.059; -0.193)" Speed="3.77" />
		<Driver LegsOffset="(-0.15; 0; -0.15)" Pos="(0.95; 1.382; 0.511)" 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" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/ca10/ca10">
		<Body
                        CenterOfMassOffset="(-1.2; -1.3; 0)"
 ImpactType="Truck" Mass="3500">
			<Body ImpactType="Truck" Mass="2500" ModelFrame="BoneCabin">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-25"
					MaxLimit="3"
					Type="Hinge"
				>
					<Motor Damping="16000" Spring="120000" Type="Spring" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>	
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-3.252; 0.891; 0.519)" />
			<Light _template="StopSignal" Pos="(-3.252; 0.891; -0.519)" />			
			<Flare _template="StopSignal" Pos="(-3.252; 0.891; 0.519)" />
			<Flare _template="StopSignal" Pos="(-3.252; 0.891; -0.519)" />
		</StopSignals>	
		<Ignition>
			<Flare _template="MarkerSignal" Pos="(3.108; 1.207; 0.904)" ParentFrame="BoneCabin" />
			<Flare _template="MarkerSignal" Pos="(3.108; 1.207; -0.904)" ParentFrame="BoneCabin" />
			<Flare _template="RedSignal" Pos="(-3.252; 0.891; 0.519)" />
			<Flare _template="RedSignal" Pos="(-3.252; 0.891; -0.519)" />				
		</Ignition>	
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.152; 1.312; -0.568)" ParentFrame="BoneCabin" />
			<Model _template="HeadLightRay" Org="(3.152; 1.312; 0.568)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Pos="(3.152; 1.312; -0.568)" ParentFrame="BoneCabin" />
			<Flare _template="HeadLight" Pos="(3.152; 1.312; 0.568)" ParentFrame="BoneCabin" />
			<Flare _template="BlueStreak" Pos="(3.152; 1.312; -0.568)" ParentFrame="BoneCabin" />
			<Flare _template="BlueStreak" Pos="(3.152; 1.312; 0.568)" ParentFrame="BoneCabin" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.58; 1.275; 0.0)" ParentFrame="BoneCabin" />
	<GameData BalancePoints="1" >
		<WinchSocket Pos="(3.422; 1.009; 0.448)" ParentFrame="BoneCabin" />
		<WinchSocket Pos="(3.422; 1.009; -0.448)" ParentFrame="BoneCabin" />
		<WinchSocket Pos="(-3.442; 0.837; -0.01)" ParentFrame="BoneChassis" />
		<WinchSocket Pos="(-0.8; 0.904; 0.509)" ParentFrame="BoneChassis" />
		<WinchSocket Pos="(-0.8; 0.904; -0.522)" ParentFrame="BoneChassis" />

		<AddonSockets>
			<Socket Names="ca10_addon_1" ParentFrame="BoneChassis" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="ca10_spare_wheel" ParentFrame="BoneCabin" />
			<Socket Names="ca10_standby_fuel" NamesBlock="ca10_exhaust" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="ca10_exhaust" ParentFrame="BoneCabin" />
			<Socket Names="ca10_frontal_exhaust" ParentFrame="BoneCabin" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="ca_cabin_lights" ParentFrame="BoneCabin" Offset="(1.08727; 2.39439; 0)"/>
		</AddonSockets>

		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-3.455; 0.82; 0)" />
		</AddonSockets>		
		<AddonSockets>
			<Socket Names="LoadShortFrontBottom" Offset="(0.2; 1.25; 0)" />
		</AddonSockets>
	</GameData>	
	<FKBones>
		<Bone
			Frame="BoneSteeringArmR"
			Input="Steering"
			Joint="Hinge"
			AxisLocal="(0;-1;0)"
			MinPosition="-35"
			RestPosition="0"
			MaxPosition="35"
		/>
		<Bone
			Frame="BoneSteeringArmL"
			Input="Steering"
			Joint="Hinge"
			AxisLocal="(0;-1;0)"
			MinPosition="-35"
			RestPosition="0"
			MaxPosition="35"
		/>

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