<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			Type="ocvr07s"
			HardpointOffsetY="-0.35"
			SuspensionMin="-0.6"
			SuspensionStrength="0.002"
			Torque="default"
			ParentFrame="BoneChassisRear"
			HardpointZ="0.97"
		/>
		<FrontWheel
			Type="ocvr0bf"
			HardpointOffsetY="-0.4"
			SteeringAngle="50"
			SteeringCastor="8"
			SuspensionMin="-0.6"
			SuspensionStrength="0.003"
            ParentFrame="BoneChassisFront"
			HardpointZ="1.1"
            />
	</Wheel>
	<Flare>
		<FogSignal
			Color="g(199; 190; 170)"
			Dir="(1.0; 0; 0)"
			DirAngle="100"
			Size="0.6"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.288"
		HardpointDefaultZ="1.11"
	>
		<Wheel _template="FrontWheel" HardpointX="2.465" />
		<Wheel _template="FrontWheel" HardpointX="2.465" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-1.254" />
		<Wheel _template="RearWheel" HardpointX="-1.254" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.06"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="550"
		LockClothInvertDir="true"
		LockClothOrigin="(1.5; 0.0; 0)"
		LockClothScale="0.9"
		Responsiveness="1.1"
		SteerSpeed="0.03"
	>
	
		<Steam Origin="(2.744; 1.22; 0)" />
		<Steam Origin="(4.2; 1.2; 0)" Scale="0.5" ParentFrame="BoneChassisFront" />
		<Steam Origin="(1.0; 0.9; 0)" />
		<Sounds
			_template="MAZZ"
			Origin="(0.81; 0.9; 0.0)"
			Range="8.0"
		 >
		 <Reverse Sound="MAZZ/reverse" />
		 <BrakePull Sound="MAZZ/brake_pull" />
		 <Handbrake Sound="MAZZ/handbrake" />
		 <EngineStop Sound="MAZZ/stop" />
		 <EngineStart Sound="MAZZ/start" />
         <EngineLow Sound="MAZZ/low" />  
         <EngineIdle Sound="MAZZ/idle" />
         <EngineHigh Sound="MAZZ/high" />
	     <EngineHeavy Sound="MAZZ/heavy" />
		 <EngineTurbo Sound="MAZZ/turbo" />
         <EngineRev Sound="MAZZ/rev" />
		</Sounds>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
		      <Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />
          </Shafts>
		<OcclusionVolume
			HalfSizeZ="0.5"
			HeightFront="1.0"
			HeightRear="0.8"
			MinX="-2.2"
			MaxX="3.9"
		>
			<FullOcclusion HeightRear="1.5" MinX="-2.2" MaxX="3.9" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.5" MinX="-2.2" MaxX="3.9" />
		<Motor MaxDeltaAngVel="0.02" Torque="200000">
			<ReverseGear AngVel="0.1" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="0.1" />
			<Gear AngVel="4.0" />
			<Gear AngVel="6.0" />
			<Gear AngVel="8.0" />
			<Gear AngVel="10.0" />
		</Motor>

		<Exhaust
			Dir="(-0.90; -1.00; -1.00)"
			Origin="(1.704; 3.773; 0.78)"
			Speed="1.60"
		/>
		<Damage
			Capacity="1000"
			SensationMin="(3.374; 1.986; -0.95)"
			SensationMax="(4.272; 2.63; 0.95)"
		/>
		
		<Camera ParentFrame="BoneCabin">
            	<Cockpit
				
				_template="Default"
				LimitsHor="(-2.8; 2.4)"
				LimitsVer="(-0.72; 0.2)"
				ViewDir="(1.0; -0.05; 0)"
				ViewPos="(2.5; 2.3; 0.67)"
				ZoomViewDirOffset="(0;-0.05;0)"
				ZoomViewPosOffset="(0.0;-0.0;0.0)"
				WindshieldDiffuseTexture="trucks/ural4320_glass__d_a.tga"
				/>
				</Camera>
		

		<Axles>
			<Axle Frame="BoneAxle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
			
		</Axles>
		 <Shakers>
               <Shaker
				Frame="yamz"
				MaxAngle="(2; 2; 0)"
				MaxFrequency="02"
			/>
        </Shakers>
	</TruckData>
	<PhysicsModel Mesh="trucks/MAZ54324b_chassis">
		 <Body
                Mass="3000"
			CenterOfMassOffset="(-1.2; -0.9; 0)"
			ImpactType="Truck"
               > 
               <Body
		      	ModelFrame="BoneChassisRear"
				Mass="5500"
				CenterOfMassOffset="(-1.2; -0.9; 0)"
                      ImpactType="Truck"
		     >

				<Constraint
					Type="Hinge"
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
				>
					<Motor
						Type="Spring"
						Spring="320000"
						Damping="32000"
					/>
				</Constraint>
				<Body
					ModelFrame="BoneChassisFront_CDT"
					Mass="900"
					CenterOfMassOffset="(0; -0.4; 0)"
                     ImpactType="Truck"
				>
                       <Constraint
						Type="Ragdoll"
						PlaneAxisLocal="(0; 0; 1.0)"
						TwistAxisLocal="(0; 1.0; 0)"
						Cone="5"
						PlaneMin="-5"
						PlaneMax="5"
					>
						<PlaneMotor
							Type="Spring"
							Spring="160000"
							Damping="16000"
						/>
						<ConeMotor
							Type="Spring"
							Spring="160000"
							Damping="16000"
						/>
					</Constraint>
                       </Body>
			  </Body>
             </Body>         
     </PhysicsModel>
	<ModelAttachments>
		 <Ignition>
                  <Light
				ParentFrame="Cabin"
				Pos="(3.0; 0.6; 0.0)"
				Direction="(1.0; -0.2; 0)"
				Color="g(253; 240; 226) x 8"
				InnerCone="40"
				OuterCone="80"
				AttenEnd="4"
			/>
		</Ignition>
		<HeadLight>
			<Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Pos="(3.711; 0.589; 0.893)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Pos="(3.711; 0.589; 0.893)"
			/>
               <Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Pos="(3.712; 0.539; -0.896)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Pos="(3.712; 0.539; -0.896)"
			/>
               <Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Pos="(3.7; 0.332; 0.914)"
			/>
			<Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Pos="(3.7; 0.332; 0.914)"
			/>
               <Flare
				_template="HeadLight"
				ParentFrame="BoneChassisFront"
				Pos="(3.7; 0.332; -0.889)"
			/>
                <Flare
				_template="BlueStreak"
				ParentFrame="Cabin"
				Pos="(3.709; 0.332; -0.889)"
			/>
                <Flare _template="IgnitionSignalRed" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717; 0.801)" />
			<Flare _template="IgnitionSignalRed" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717; -0.783)" />
		</HeadLight>
		<ReverseSignals>
			<Flare _template="ReverseSignal" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717;  0.881)" />
		     <Flare _template="ReverseSignal" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717; -0.862)" />
          </ReverseSignals>
		<StopSignals>
			<Flare _template="StopSignal" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717; 0.981)" />
			<Flare _template="StopSignal" ParentFrame="BoneChassisRear" Pos="(-1.949; 0.717; -0.962)" />	
		</StopSignals>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(2.5; 2.0; 0.0)" ParentFrame="BoneChassisRear" />
	<GameData BalancePoints="2">
		 <WinchSocket ParentFrame="BoneChassisRear" Pos="(3.711; 0.614; 0.017)" />                                     
         <WinchSocket ParentFrame="BoneChassisRear" Pos="(-2.277; 0.686; 0.01)" />                   
          <AddonSockets>
	          <Socket Names="LoadLogsShort" ParentFrame="BoneChassisRear" Offset="(0.50; -0.15; 0.0)" />
               <Socket Names="LoadLogsMedium" ParentFrame="BoneChassisRear" Offset="(-0.70; 1.55; 0.0)" />
			   <Socket Names="LoadLogsLong" ParentFrame="BoneChassisRear" Offset="(-1.1; 0.1; 0.0)"/>
           </AddonSockets>
         <AddonSockets>
			<Socket Names="KamazTrailer22" Offset="(-0.50; 1.30; 0.0)" />  
			<Socket Names="KamazTrailer" Offset="(-0.77; 1.0; 0.0)" />   
           </AddonSockets>
                    
            <AddonSockets>
               <Socket Names="KrazTractor" Offset="(0.2; -0.2; 0.0)" ParentFrame="BoneChassisRear" />                                           
            </AddonSockets>                                               
			<AddonSockets>
			<Socket Names="GAZ53_Flasher" Offset="(1.90; 0.65; -0.400)" />		
            </AddonSockets>   
			<AddonSockets>
			<Socket Names="Kraz260Fari" Offset="(-1.0; -0.83; 0.0)" />		
            </AddonSockets>        
            <AddonSockets>     
                 <Socket Names="Spoler" />      
             </AddonSockets>        
             <AddonSockets>     
                 <Socket Names="Vizor" />      
             </AddonSockets>        
             <AddonSockets>     
                 <Socket Names="Podbampernik" />      
             </AddonSockets>                
             <AddonSockets>     
                 <Socket Names="Driver" />      
             </AddonSockets>
	</GameData>
</Truck>
