<_templates Include="trucks">
	<Wheel>
		<UazWheel
			DefaultWheelType="polaris_wheel"
			HardpointOffsetY="-0.02"
			SuspensionDamping="0.3"
			SuspensionMin="-0.3"
			SuspensionStrength="0.028"
		/>
		<RearWheel
			_template="UazWheel"
			ConnectedToHandbrake="true"
			Torque="default"
		/>
		<FrontWheel
			HardpointOffsetY="-0.16"
			_template="UazWheel"
			SteeringAngle="40"
			SteeringCastor="8"
			Torque="full"
		/>
	</Wheel>
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.2" />
	</Flare>
	<Body>
		<Mudguard
			Mass="10"
			AngularDamping="3.0"
			Collisions="None"
		>
			<Constraint
				Type="Hinge"
				MinLimit="-45"
				MaxLimit="15"
				Axis="(0.0; 0.0; 1.0)"
			/>
			<Shape>
				<Box HalfExtents="(0.08; 0.12; 0.12)" Translation="(0; -0.06; 0)" />
			</Shape>
		</Mudguard>
		<driver
			Mass="10"
			AngularDamping="3.0"
			Collisions="None"
		>
			<Constraint Type="Ragdoll" TwistAxis="(0;1;0)" Cone="15">
				<AllMotor Type="Spring" Spring="500" Damping="100" />
			</Constraint> 
			<Shape>
				<Box HalfExtents="(0.1;0.1;0.1)" Translation="(0;0.8;0)" />
			</Shape>
		</driver>
	</Body>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.364"
		HardpointDefaultZ="0.64"
	>
		<Wheel _template="FrontWheel" HardpointX="1.093" />
		<Wheel _template="FrontWheel" HardpointX="1.093" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-0.7" />
		<Wheel _template="RearWheel" HardpointX="-0.7" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineStartDelay="0.2"
		ExhaustStartTime="0.3"
		FuelCapacity="50"
		SteerResponsiveness="1.0"
		SteerSpeed="0.02"
	>
		<Steam Origin="(0.43; 0.900; 0)" />
		<Sounds EngineHeavyVolume="0.6" Origin="(0.96; 1.13; 0)" Range="8.0">
			<EngineStartDelay Value="1.0" />
			<ExhaustStartTime Value="1.0" />
			<ExhaustFadeStartTime Value="1.5" />
			<ExhaustStopTime Value="2.0" />
			<Headlight Sound="truck/headlight" />
			<ExhaustShot Sound="engine/quad/k4ktqhb" />
			<EngineStart Sound="engine/quad/start" ExhaustStart="0.4" />
			<EngineStop Sound="engine/quad/stop" />
			<EngineIdle Sound="engine/quad/idle" />
			<EngineLow Sound="engine/quad/CFMOTO" />
			<EngineHigh Sound="engine/quad/CFMOTO" />
			<Reverse Sound="engine/quad/k4ktq4d" />
		</Sounds>
		<OcclusionVolume
			HalfSizeZ="1.10"
			HeightFront="1.0"
			HeightRear="1.0"
			MinX="-1.85"
			MaxX="1.85"
		/>
		<OcclusionMap
			HalfSizeZ="1.60"
			MinX="-2.05"
			MaxX="2.45"
			Texture="trucks/occlusion/chassis_small__d_a_uncmp.tga"
		/>
		<Motor MaxDeltaAngVel="0.1" Torque="60000">
			<ReverseGear AngVel="1.0" />
			<HighGear AngVel="10.0" />
			<Gear AngVel="2.0" />
			<Gear AngVel="5.0" />
			<Gear AngVel="8.0" />
			<Gear AngVel="10.0" />
			<Gear AngVel="12.0" />
		</Motor>
		<Exhaust Dir="(-4.6; -0.4; 0.3)" Origin="(-1.248; 0.855; -0.243)" IsLight="true" Speed="1.0" />
		<Driver Pos="(-0.013; 1.016; 0.46)" />
		<Damage
			Capacity="600"
			SensationMin="(-1.11; 1.45; -0.80)"
			SensationMax="(0.53; 1.95; 0.80)"
		/>
		<Camera CabinPos="(0.15; 2.0; 0.0)" IsHood="true" RadiusMultiplier="0.8" />
		<Axles>
			<Axle Frame="Bone004" LeftWheel="0" RightWheel="1" />
			<Axle Frame="Bone003" LeftWheel="2" RightWheel="3" />
		</Axles>
	</TruckData>

	<PhysicsModel Mesh="trucks/polaris_chassis">
		<Body
			CenterOfMassOffset="(0.2; -0.45; 0)"
			ImpactType="Truck"
			Mass="1750"
		>
			<Body ModelFrame="FrontLeftMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="FrontRightMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="RearLeftMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="RearRightMudguard_cdt" _template="Mudguard" />
			<Body ModelFrame="Bone005" _template="driver" />			
		</Body>
			<Flare _template="Sublight" Pos="(1.41; 0.96; 0.53)" />
			<Flare _template="Sublight" Pos="(1.41; 0.96;-0.53)" />
			
			<Flare _template="HeadLight" Size="0.4" SizeAtDay="0" Pos="(0.7; 1.46; 0.0)" />
			
			<Flare _template="HeadLight" Size="0.4" SizeAtDay="0.2" Pos="(1.406; 0.949; 0.429)" />
			<Flare _template="HeadLight" Size="0.4" SizeAtDay="0.2" Pos="(1.406; 0.949;-0.429)" />
			<Flare _template="BlueStreak" Size="0.4" SizeAtDay="0.1" Pos="(1.406; 0.949; 0.429)" />
			<Flare _template="BlueStreak" Size="0.4" SizeAtDay="0.1" Pos="(1.406; 0.949;-0.429)" />
			
			<Light _template="StopSignal" Size="0.1" SizeAtDay="0.2" Pos="(-1.58; 0.733; 0)" />
			<Flare _template="RedSignal" Size="0.3" SizeAtDay="0.3" Pos="(-1.05; 0.95; 0.0)" />
			
			<Light
				AttenEnd="6"
				Color="(255; 255; 255) x 16.0"
				Dir="(1.0; -0.2; 0)"
				InnerCone="80"
				OuterCone="120"
				Pos="(2.0; 1.075; 0)"
				ParentFrame="BoneCabinBase_cdt"
				SizeAtDay="0"
			/>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-1.58; 0.733; 0)" />
			<Flare _template="RedSignal" Size="0.3" SizeAtDay="0.3" Pos="(-1.05; 0.95; 0.0)" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-1.58; 1.2; 0.0)" />
			<Flare _template="ReverseSignal" Size="0.3" SizeAtDay="0.3" Pos="(-1.05; 0.95; 0.0)" />
		</ReverseSignals>
		<Ignition>
			
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(1.406; 0.949; 0.429)" />
			<Model _template="HeadLightRay" Org="(0.7; 1.46; 0.0)" />
			<Model _template="HeadLightRay" Org="(1.406; 0.949;-0.429)" />
			<Flare _template="HeadLight" Size="0.2" SizeAtDay="0.2" Pos="(1.406; 0.949; 0.429)" />
			<Flare _template="HeadLight" Size="0.2" SizeAtDay="0.2" Pos="(0.7; 1.46; 0.0)" />
			<Flare _template="HeadLight" Size="0.2" SizeAtDay="0.2" Pos="(1.406; 0.949;-0.429)" />
			<Flare _template="BlueStreak" Size="0.2" SizeAtDay="0.1" Pos="(1.406; 0.949; 0.429)" />
			<Flare _template="BlueStreak" Size="0.2" SizeAtDay="0.1" Pos="(1.406; 0.949;-0.429)" />
		</HeadLight>
	</ModelAttachments>	
	<HeadLight _template="Small" Pos="(0.0; 0.5; 0.0)" />
	<GameData BalancePoints="1">
		<WinchSocket Pos="(1.59; 0.632; 0)" />
		<WinchSocket Pos="(0.2; 0.5;0.7)" />
		<WinchSocket Pos="(0.2; 0.5;-0.7)" />
		<WinchSocket Pos="(-1.15; 0.814; 0)" />
		<AddonSockets>
			<Socket Names="Polaris-zapaska" Offset="(-0.5;0.4; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Polaris-pricep" Offset="(-1.16; 0.76; 0.0)" />
		</AddonSockets>
	</GameData>
</Truck>
