module Base
{
	model 83gmcGseriesVansBase
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_base,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model 83gmcGseriesVansinterior
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_interior,
		texture = Vehicles/Vehicles_83gmcGseriesVans_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 83gmcGseriesVansbattery
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|TIS_CarBattery,
		texture = Vehicles/Vehicles_83gmcGseriesVans_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 83gmcGseriesVansmuffler
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_exhaust0,
		texture = Vehicles/Vehicles_83gmcGseriesVans_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 83gmcG1500lwb
    {
        mechanicType = 2,
        offRoadEfficiency = 0.9,
        engineRepairLevel = 4,
        playerDamageProtection = 1.2,

        model
        {
            file = 83gmcGseriesVansBase,
            scale = 0.9000,
            offset = 0.0000 0.6000 0.0000,
        }

        spawnOffsetY = 0,

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_silverMetallic,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_woodlandGreen,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_brightRed,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_brightYellow,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_darkBlue,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_darkChestnut,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_frostWhite,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_glossBlack,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_lightBlue,
        }

        skin
        {
            texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_pebbleGray,
        }

        textureRust = Vehicles/Vehicles_83gmcGseriesVans_Rust,
        textureMask = Vehicles/Vehicles_83gmcGseriesVans_Mask,
        textureLights = Vehicles/Vehicles_83gmcGseriesVans_Lights,
        textureDamage1Shell = Vehicles/Vehicles_83gmcGseriesVans_Damage1,
        textureDamage2Shell = Vehicles/Vehicles_83gmcGseriesVans_Damage2,
        textureDamage1Overlay = Vehicles/Vehicles_83gmcGseriesVans_Blood,
        textureDamage2Overlay = Vehicles/Vehicles_83gmcGseriesVans_Blood,

        sound
        {
            engine = VehicleEngineCarNormal,
            engineStart = VehicleEngineCarNormal,
            engineTurnOff = VehicleEngineCarNormal,
            horn = VehicleHornStandard,
            ignitionFail = VehicleIgnitionFailCarNormal,
        }

        extents = 2.0667 1.6222 5.2000,
        mass = 750,
        physicsChassisShape = 2.0667 1.6222 5.2000,
        centerOfMassOffset = 0.0000 0.8444 -0.1111,
        shadowExtents = 2.0689 5.4127,
        shadowOffset = 0.0000 -0.1122,
        engineForce = 3850,
        maxSpeed = 75f,
        engineLoudness = 75,
        engineQuality = 85,
        brakingForce = 85,
        stoppingMovementForce = 4.0f,
        rollInfluence = 0.95f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        suspensionStiffness = 36,
        suspensionCompression = 3.83,
        suspensionDamping = 2.88,
        maxSuspensionTravelCm = 14,
        suspensionRestLength = 0.40,
        wheelFriction = 1.7f,
        frontEndHealth = 450,
        rearEndHealth = 350,
        seats = 4,

        wheel FrontLeft
        {
            front = true,
            offset = 0.8889 -0.6000 1.6889,
            radius = 0.35f,
            width = 0.2f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.8889 -0.6000 1.6889,
            radius = 0.35f,
            width = 0.2f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.8889 -0.6000 -1.4778,
            radius = 0.35f,
            width = 0.2f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.8889 -0.6000 -1.4778,
            radius = 0.35f,
            width = 0.2f,
        }

        template = PassengerSeat4,

        passenger FrontLeft
        {
            showPassenger = true,
            hasRoof = true,
            door = DoorFrontLeft,

            position inside
            {
                offset = 0.5111 0.0333 0.9444,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.2889 -0.9333 0.6333,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            showPassenger = true,
            hasRoof = true,
            door = DoorFrontRight,

            position inside
            {
                offset = -0.5111 0.0333 0.9444,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.3111 -0.9333 0.6333,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger RearLeft
        {
            showPassenger = true,
            hasRoof = true,
            door = DoorRearRight,

            position inside
            {
                offset = 0.5111 0.0333 -0.4889,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.2667 -0.9333 0.1778,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        passenger RearRight
        {
            showPassenger = true,
            hasRoof = true,
            door = DoorRearRight,

            position inside
            {
                offset = -0.5111 0.0333 -0.4889,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.2667 -0.9333 -0.2444,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 2.8778 1.5556 0.7778,
        }

        area TruckBed
        {
            xywh = 0.0000 -3.1000 1.4889 0.7778,
        }

        area SeatFrontLeft
        {
            xywh = 1.4222 1.1222 0.7778 0.9111,
        }

        area SeatFrontRight
        {
            xywh = -1.4222 1.1222 0.7778 0.9111,
        }

        area SeatRearRight
        {
            xywh = -1.4222 -0.0333 0.7778 1.3778,
        }

        area GasTank
        {
            xywh = 1.4222 -2.3222 0.7778 0.7778,
        }

        area TireFrontLeft
        {
            xywh = 1.4556 1.6778 0.4222 0.4222,
        }

        area TireFrontRight
        {
            xywh = -1.4556 1.6778 0.4222 0.4222,
        }

        area TireRearLeft
        {
            xywh = 1.4556 -1.5000 0.4222 0.4222,
        }

        area TireRearRight
        {
            xywh = -1.4556 -1.5000 0.4222 0.4222,
        }

        area Roofrack
        {
            xywh = 0.0000 -0.9889 3.3333 4.1778,
        }

        template = GMC83TrunkCompartment,
        template = GMC83Armor,
        template = GMC83FrontBumper,
        template = GMC83RearBumper,
        template = GMC83SeatsTwo,
        template = GMC83SpareTire,
        template = GMC83EngineDoor,
        template = GMC83Doors,
        template = GMC83SlideDoor,
        template = GMC83TrunkDoor,
        
        template = GMC83SunVisor,
        template = GMC83Spoiler,

        part GloveBox
        {
            area = SeatFrontRight,
            itemType = Base.GloveBox,
            mechanicRequireKey = true,

            model gmcint
            {
                file = 83gmcGseriesVansinterior,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            container
            {
                capacity = 7,
                test = Vehicles.ContainerAccess.GloveBox,
            }

            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        template = GasTank,

        part GasTank
        {
            table install
            {
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

        template = Battery,

        part Battery
        {
            model GMSbat5348
            {
                file = 83gmcGseriesVansbattery,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Engine,
        template = Muffler,

        part Muffler
        {
            model muff6661
            {
                file = 83gmcGseriesVansmuffler,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            table install
            {
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

        part Heater
        {
            category = engine,

            lua
            {
                update = Vehicles.Update.Heater,
            }
        }

        part PassengerCompartment
        {
            category = nodisplay,

            lua
            {
                update = Vehicles.Update.PassengerCompartment,
            }
        }

        template = GMC83Tires,
        template = Brake,

        part Brake*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }

        template = Suspension,

        part Suspension*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }

        template = Radio,
        template = Headlight,
        template = GMC83Windshield,
        template = GMC83Windows,
        template = GMC83RearWindshield,
        template = DAMNglobal,
        template = DAMN83gmcG1500lwb,
        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.4445 -0.1333,
            extents = 2.0444 0.7556 5.0444,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.2333 -0.5015,
            extents = 1.7556 0.8222 3.6889,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.1778 -2.2995,
            extents = 1.7556 0.8667 0.3778,
            rotate = 18.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.1333 1.4178,
            extents = 1.7556 0.5778 0.8667,
            rotate = 48.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.7887 2.0444,
            extents = 1.7556 0.3111 0.6222,
            rotate = 21.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 -0.4111 -2.7556,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.4111 2.5222,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
