module Base
{
	model TrailerM747lowbedBase
	{
		mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|M747_ lowbed_trailer,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.1,
	}
	vehicle TrailerM747lowbed
    {
        mechanicType = 2,
        offRoadEfficiency = 1.3,
        engineRepairLevel = 4,
        playerDamageProtection = 1,

        model
        {
            file = TrailerM747lowbedBase,
            scale = 0.9000,
            offset = 0.0000 1.1444 2.3667,
        }

        skin
        {
            texture = Vehicles/Trailers_M747lowbed_Shell_camo_camo,
        }

        skin
        {
            texture = Vehicles/Trailers_M747lowbed_Shell_camo_green,
        }

        skin
        {
            texture = Vehicles/Trailers_M747lowbed_Shell_desertTan_evergreen,
        }

        skin
        {
            texture = Vehicles/Trailers_M747lowbed_Shell_NATOgreen_red,
        }

        skin
        {
            texture = Vehicles/Trailers_M747lowbed_Shell_USMCgreen_orange,
        }

        textureRust = Vehicles/Trailers_M747lowbed_Rust,
        textureMask = Vehicles/Trailers_M747lowbed_Mask,
        textureLights = Vehicles/Trailers_M747lowbed_Lights,
        textureDamage1Overlay = Vehicles/Trailers_M747lowbed_Overlays_Damaged01,
        textureDamage1Shell = Vehicles/Trailers_M747lowbed_Damaged01,
        textureDamage2Overlay = Vehicles/Trailers_M747lowbed_Overlays_Damaged02,
        textureDamage2Shell = Vehicles/Trailers_M747lowbed_Damaged02,
        extents = 2.9111 0.6444 7.2889,
        shadowExtents = 2.7444 8.6221,
        shadowOffset = 0.0000 0.7669,
        mass = 290,
        physicsChassisShape = 2.6667 0.6444 7.2889,
        centerOfMassOffset = 0.0000 0.4667 0.5111,
        engineForce = 5000,
        engineQuality = 60,
        engineLoudness = 55,
        maxSpeed = 60f,
        brakingForce = 1,
        stoppingMovementForce = 2.0f,
        rollInfluence = 0.05f,
        steeringIncrement = 0.03,
        steeringClamp = 0.3,
        suspensionStiffness = 40,
        suspensionCompression = 4.83,
        suspensionDamping = 3.88,
        maxSuspensionTravelCm = 15,
        suspensionRestLength = 0.16f,
        wheelFriction = 3.2f,
        frontEndHealth = 150,
        rearEndHealth = 150,
        seats = 2,

        wheel FrontLeft
        {
            front = false,
            offset = 1.0000 -1.0778 -1.3333,
            radius = 0.43f,
            width = 0.50f,
        }

        wheel FrontRight
        {
            front = false,
            offset = -0.9889 -1.0556 -2.3778,
            radius = 0.43f,
            width = 0.50f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.9889 -1.0333 -3.4222,
            radius = 0.43f,
            width = 0.50f,
        }

        wheel RearRight
        {
            front = false,
            offset = -1.0111 -1.0222 -4.4667,
            radius = 0.43f,
            width = 0.50f,
        }

        area TruckBed
        {
            xywh = 0.0000 4.7000 4.9111 1.3333,
        }

        area TireFrontLeft
        {
            xywh = 1.8778 1.0445 0.4444 0.4889,
        }

        area TireFrontRight
        {
            xywh = 1.8778 -0.0222 0.4444 0.4889,
        }

        area TireRearLeft
        {
            xywh = 1.8778 -1.0666 0.4444 0.4889,
        }

        area TireRearRight
        {
            xywh = 1.8778 -2.1000 0.4444 0.4889,
        }

        template = AxleV100A4,
        template = Suspension/part/SuspensionFrontLeft,
        template = Suspension/part/SuspensionFrontRight,
        template = Suspension/part/SuspensionRearLeft,
        template = Suspension/part/SuspensionRearRight,
        template = M747TrunkCompartment,
        template = M747TrunkDoors,
        template = DAMNglobal,
		template = DAMNTrailerM747lowbed,
        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 2.1111 0.3328,
            extents = 2.4556 2.6000 6.9667,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.6556 6.0382,
            extents = 1.4556 0.3333 1.1667,
            rotate = 12.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 0.0556 5.0889,
            rotate = 0.0000 0.0000 0.0000,
            canAttach = trailerfront,
        }
    }
}
