module Base
{
	vehicle Trailer_fr_open_bed_large
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,
		spawnOffsetY = 0.19392952,

		model
		{
			file = Trailer_open_bed_large2,
			scale = 1.8600,
			offset = 0.0000 0.2097 0.0054,
		}

		skin
		{
			texture = Vehicles/trailer_open_bed_1_shell,
		}

		skin
		{
			texture = Vehicles/trailer_open_bed_2_shell,
		}

		skin
		{
			texture = Vehicles/trailer_open_bed_3_shell,
		}

		textureMask = Vehicles/trailer_open_bed_mask,
		textureLights = Vehicles/trailer_open_bed_lights,
		textureDamage1Overlay = Vehicles/fr_Veh_Blood_Mask,
		textureDamage2Overlay = Vehicles/fr_Veh_Blood_Hvy,
		textureDamage1Shell = Vehicles/fr_Veh_Damage1,
		textureDamage2Shell = Vehicles/fr_Veh_Damage2,
		textureRust = Vehicles/fr_Veh_Rust,
		template = FR_CarSpawnInfo,
		extents = 0.9355 0.1935 1.9892,
		mass = 300,
		physicsChassisShape = 0.9355 0.1935 1.9892,
		centerOfMassOffset = 0.0000 0.2688 0.0000,
		shadowExtents = 0.9354 1.9893,
		shadowOffset = 0.0000 0.0000,
		engineForce = 3600,
		engineQuality = 60,
		engineLoudness = 55,
		maxSpeed = 70f,
		brakingForce = 1,
		stoppingMovementForce = 2.0f,
		rollInfluence = 1.3f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 100,
		suspensionCompression = 2.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 4.0f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,

		physics box
		{
			offset = 0.0753 0.1290 1.1075,
			extents = 0.0538 0.0538 0.5806,
			rotate = 0.0000 -15.0000 0.0000,
		}

		physics box
		{
			offset = -0.0753 0.1290 1.1075,
			extents = 0.0538 0.0538 0.5806,
			rotate = 0.0000 15.0000 0.0000,
		}

		physics sphere
		{
			offset = 0.0000 0.1559 1.5215,
			radius = 0.0549,
		}

		physics box
		{
			offset = 0.0000 0.3011 0.0000,
			extents = 0.9140 0.0538 0.6882,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 -0.0108 1.3710,
			extents = 0.0538 0.0538 0.0538,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.4086 -0.1720 0.1505,
			radius = 0.14f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4086 -0.1720 0.1505,
			radius = 0.14f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.4086 -0.1720 -0.1613,
			radius = 0.14f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.4086 -0.1720 -0.1613,
			radius = 0.14f,
			width = 0.2f,
		}

		area TireFrontLeft
		{
			xywh = 0.6882 0.1559 0.4409 0.4731,
		}

		area TireFrontRight
		{
			xywh = -0.6882 0.1559 0.4409 0.4731,
		}

		area TireRearLeft
		{
			xywh = 0.6882 -0.1559 0.4409 0.4731,
		}

		area TireRearRight
		{
			xywh = -0.6882 -0.1559 0.4409 0.4731,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.2151 0.8925 0.4409,
		}

		area TruckBedOpen
		{
			xywh = 0.0000 -0.1720 1.8172 2.5269,
		}

		template = FRTruckBed,

		part TruckBed
		{
			itemType = Base.FRLargeTrunk,

			container
			{
				capacity = 240,
			}

			model TrunkFillerEmpty
			{
				file = FRTrunkfiller_Empty,
				offset = 0.0 0.012 -0.2,
				rotate = 0.0000 0.0000 0.0000,
			}

			model TrunkFiller1
			{
				file = FRTrunkfiller_CardBoxBig_1,
				offset = 0.2 0.012 -0.75,
				rotate = 0.0000 130.0000 0.0000,
			}

			model TrunkFiller2
			{
				file = FRTrunkfiller_TarpBig_2,
				offset = 0.22 0.012 -0.25,
				rotate = 0.0000 -3.0000 0.0000,
			}

			model TrunkFiller3
			{
				file = FRTrunkfiller_TarpHuge_1,
				offset = -0.22 0.012 -0.16,
				rotate = 0.0000 0.0000 0.0000,
			}

			model TrunkFiller4
			{
				file = FRTrunkfiller_TarpBig_2,
				offset = 0.22 0.012 0.35,
				rotate = 0.0000 3.0000 0.0000,
			}

			model TrunkFiller5
			{
				file = FRTrunkfiller_TarpHuge_1,
				offset = 0.0 0.012 0.75,
				rotate = 0.0000 100.0000 0.0000,
				scale = 0.6,
			}
		}

		template = FRAttachmentRoof,

		part FRAttachmentRoof
		{
			table FRPartInfo
			{
				partChance = 50,
				selectItemType = MetalBar,
				selectChance = 100,
			}

			itemType = Base.MetalBar,
			category = nodisplay,

			model MetalBar
			{
				file = Trailer_open_bed_large2_backboard,
			}

			table install
			{
				requireInstalled =,
			}
		}

		template = FRTrunkDoor,

		part TrunkDoor
		{
			model TrunkDoor
			{
				file = Trunk_Trailer_open_bed_large2,
				offset = 0.0 0.01 -1.0,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 0.625,
				sound = VehicleTrunkOpen,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 0.65,
				sound = VehicleTrunkCloseSportsCar,
			}
		}

		template = FRAttachmentBed,

		part FRAttachmentBed
		{
			itemType = Base.Tarp;Base.FRBedCapSoft;Base.FRBedSideBoards,

			table FRPartInfo
			{
				partChance = 50,
				selectItemType = Tarp,
				selectChance = 40,
				excludeItemType = FRBigBedFRBedCapSoft,
				excludeChance = 70,
				parentVisual =,
			}

			model FRBedCapSoft
			{
				file = FR_BedTrailerAttachCapSoft_Large1,
				offset = 0.0000 0.168 0.99,
				scale = 1.245,
			}

			model FRBedSideBoards
			{
				file = FR_BedTrailerAttachBoards_Large1,
				offset = 0.0000 0.168 0.982,
				scale = 1.241,
			}

			model Tarp
			{
				file = FR_BedTrailerAttachTarp_Large1,
				offset = 0.0000 0.168 0.97,
				scale = 1.241,
			}
		}

		template = FRTrailerTire/part/TireFrontLeft,
		template = FRTrailerTire/part/TireFrontRight,
		template = FRTrailerTire/part/TireRearLeft,
		template = FRTrailerTire/part/TireRearRight,
		template = Suspension/part/SuspensionFrontLeft,
		template = Suspension/part/SuspensionFrontRight,
		template = Suspension/part/SuspensionRearLeft,
		template = Suspension/part/SuspensionRearRight,
		template = FRTrailerJack,
		
		part SuspensionFrontLeft
		{
			model SuspensionFrontLeft
			{
				file = FR_ShockLeafspring,
				offset = 0.288 -0.14 0.1505,
			}
		}
		
		part SuspensionFrontRight
		{
			model SuspensionFrontRight
			{
				file = FR_ShockLeafspring,
				offset = -0.288 -0.14 0.1505,
			}
		}
		
		part SuspensionRearLeft
		{
			model SuspensionRearLeft
			{
				file = FR_ShockLeafspring,
				offset = 0.288 -0.14 -0.1613,
			}
		}
		
		part SuspensionRearRight
		{
			model SuspensionRearRight
			{
				file = FR_ShockLeafspring,
				offset = -0.288 -0.14 -0.1613,
			}
		}

		part FRTrailerJack
		{
			model Default
			{
				file = Jack_Trailer_Moving_2,
				offset = 0.089 0.0 1.3,
				rotate = 0.0000 105.0000 0.0000,
			}
		}

		attachment trailer
		{
			offset = 0.0000 -0.0914 1.6398,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailer,
			updateconstraint = false,
		}
	}
}
