module Base
{
	model TrailerM128vanBase
	{
		mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|M128_trailer,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.1,
	}
	vehicle TrailerM128van
    {
        mechanicType = 2,
        offRoadEfficiency = 1.3,
        engineRepairLevel = 4,
        playerDamageProtection = 1,

        model
        {
            file = TrailerM128vanBase,
            scale = 0.9000,
            offset = 0.0000 1.1444 -0.0111,
        }

        skin
        {
            texture = Vehicles/Trailers_M128van_Shell_USMCgreen,
        }

        skin
        {
            texture = Vehicles/Trailers_M128van_Shell_NATOgreen,
        }

        skin
        {
            texture = Vehicles/Trailers_M128van_Shell_desertTan,
        }

        skin
        {
            texture = Vehicles/Trailers_M128van_Shell_woodlandCamo,
        }

        textureRust = Vehicles/Trailers_M128_Rust,
        textureMask = Vehicles/Trailers_M12-8-9_Mask,
        textureLights = Vehicles/Trailers_M12x_Lights,
        textureDamage1Overlay = Vehicles/Trailers_M12-8-9_Overlays_Damaged01,
        textureDamage1Shell = Vehicles/Trailers_M12-8-9_Damaged01,
        textureDamage2Overlay = Vehicles/Trailers_M12-8-9_Overlays_Damaged02,
        textureDamage2Shell = Vehicles/Trailers_M12-8-9_Damaged02,
        extents = 2.6667 1.4889 4.2222,
        shadowExtents = 2.4999 8.6221,
        shadowOffset = 0.0000 2.0938,
        mass = 310,
        physicsChassisShape = 2.6667 1.4889 4.2222,
        centerOfMassOffset = 0.0000 1.3222 0.0000,
        engineForce = 3600,
        engineQuality = 60,
        engineLoudness = 55,
        maxSpeed = 60f,
        brakingForce = 1,
        stoppingMovementForce = 2.0f,
        rollInfluence = 0.15f,
        steeringIncrement = 0.03,
        steeringClamp = 0.3,
        suspensionStiffness = 40,
        suspensionCompression = 4.83,
        suspensionDamping = 3.88,
        maxSuspensionTravelCm = 15,
        suspensionRestLength = 0.16f,
        wheelFriction = 2.5f,
        frontEndHealth = 150,
        rearEndHealth = 150,
        seats = 2,

        wheel FrontLeft
        {
            front = true,
            offset = 0.9111 -0.8002 0.7000,
            radius = 0.60f,
            width = 0.60f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.9111 -0.8002 0.7000,
            radius = 0.60f,
            width = 0.60f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.9111 -0.8000 -0.6778,
            radius = 0.60f,
            width = 0.60f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.9111 -0.8000 -0.6778,
            radius = 0.60f,
            width = 0.60f,
        }

        area TruckBed
        {
            xywh = 0.0000 -3.0000 2.6667 1.7778,
        }

        area TireFrontLeft
        {
            xywh = 1.8222 0.6889 0.4444 0.4889,
        }

        area TireFrontRight
        {
            xywh = -1.8222 0.6889 0.4444 0.4889,
        }

        area TireRearLeft
        {
            xywh = 1.8222 -0.6889 0.4444 0.4889,
        }

        area TireRearRight
        {
            xywh = -1.8222 -0.6889 0.4444 0.4889,
        }

        template = TiresV100A3,
        template = Suspension/part/SuspensionFrontLeft,
        template = Suspension/part/SuspensionFrontRight,
        template = Suspension/part/SuspensionRearLeft,
        template = Suspension/part/SuspensionRearRight,
        template = M128TrunkCompartment,
        template = M128TrunkDoors,
        template = DAMNglobal,
		template = DAMNTrailerM128van,
        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 2.2979 2.1444,
            extents = 2.4556 2.1111 8.1444,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.6851 3.1111,
            extents = 1.1111 1.1111 0.2889,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 0.0559 5.5778,
            rotate = 0.0000 0.0000 0.0000,
            canAttach = trailerfront,
        }
    }
}
