<_templates Include="trucks">
	<Wheel>
		<TrailerWheel  			
			SuspensionMin="-0.35"
			HardpointOffsetY="-0.1"
			SuspensionStrength="0.038"
			SuspensionDamping="0.4"
			Type="us_truck_cistern_double"
		/>
	</Wheel>
	<Flare>
		<MarkerBeacon1 Color="g(117; 94; 72) x 1." Size="0.3" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.55"
		HardpointDefaultZ="1.083"
	>
		<Wheel _template="TrailerWheel" HardpointX="-4.555" />
		<Wheel _template="TrailerWheel" HardpointX="-4.555" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-5.894" />
		<Wheel _template="TrailerWheel" HardpointX="-5.894" RightSide="true" />
	</Wheels>
	<TruckData FuelCapacity="4200">
		<OcclusionMap
			HalfSizeZ="2.2"
			MinX="-8.329"
			MaxX="4.5"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<LimitedFluid
			AxisX="(1; 0; 0)"
			Center="(-1.249; 2.687; 0)"
			LengthX="10.5"
			RadiusY="0.89"
			RadiusZ="1.21"
			Type="Cylinder"
		/>
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-4.0; 0; 0)" RadiusMultiplier="1.2" />
		<Axles>
			<Axle Frame="BoneAxleFront" />
			<Axle Frame="BoneAxleRear" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint InitialFix="true" Name="Leg" Position="65" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/us_semitrailer_cistern">
		<Body CenterOfMassOffset="(-1; -0.3; 0)" Mass="3000">
			<Body Mass="600" NoFoliageCollisions="true" ModelFrame="BoneLeg_cdt">
				<Constraint AxisLocal="(0; 0; 1)" MinLimit="0" MaxLimit="65" Name="Leg" Type="Hinge" >
					<Motor Force="300000" Type="Position" Tau="0.5" />
				</Constraint>	
			</Body>				
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-7.254; 0.738; 0)" />
			<Flare _template="StopSignal" Pos="(-7.024; 1.078; 0.657)" />
			<Flare _template="StopSignal" Pos="(-7.024; 1.078; -0.657)" />
		</StopSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-7.19; 0.733; 0)" />
			<Flare _template="IgnitionSignalRed" Pos="(-7.024; 1.079; 0.665)" />
			<Flare _template="IgnitionSignalRed" Pos="(-7.024; 1.079; -0.665)" />
			
			<Flare _template="MarkerBeacon1" Pos="(-6.846; 1.368; 1.445)" />
			<Flare _template="MarkerBeacon1" Pos="(-6.846; 1.368; -1.445)" />
			<Flare _template="MarkerBeacon1" Pos="(-6.447; 3.415; 0.905)" />
			<Flare _template="MarkerBeacon1" Pos="(-6.447; 3.415; -0.905)" />
			<Flare _template="MarkerBeacon1" Pos="(3.889; 3.415; 0.853)" />
			<Flare _template="MarkerBeacon1" Pos="(3.889; 3.415; -0.853)" />			
		</Ignition>
	</ModelAttachments>	
	<GameData>
		<WinchSocket Pos="(-7.019; 1.093; 0.427)" />
		<WinchSocket Pos="(-7.019; 1.093; -0.427)" />
		<WinchSocket Pos="(-0.348; 1.269; 0.627)" />
		<WinchSocket Pos="(-0.348; 1.269; -0.627)" />
		<WinchSocket Pos="(3.991; 1.592; 0)" />
		<RequiredAddon Types="saddle" /> 
		<InstallSocket Offset="(2.86; 1.22; 0)" Type="UsSemitrailerCistern" />
	</GameData>
	<AutomaticIK>
		<IKBone ModelFrame="BoneLeg" ParentFrame="BoneChassis_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; -.9; 0)"
				AttachToFrame="BoneLeg_cdt"
				ModelFrame="BoneLegPiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" MinLimit="0" MaxLimit=".49"/>
			</IKBone>
		</IKBone>			
	</AutomaticIK>	
	<FuelMass>
		<Body Mass="10000" />
	</FuelMass>
</Truck>