module Base
{

    model 85oldsmobileDelta88Windshield
    {
        mesh = vehicles/Vehicles_85oldsmobileDelta88_Body|85b-platform_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 85oldsmobileDelta88WindshieldRear
    {
        mesh = vehicles/Vehicles_85oldsmobileDelta88_Body|85b-platform_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 85oldsmobileDelta88WindshieldRearC
    {
        mesh = vehicles/Vehicles_85oldsmobileDelta88_Body|85b-platform_windshield_rear_c,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 85oldsmobileDelta88WindshieldRearWL
    {
        mesh = vehicles/Vehicles_85oldsmobileDelta88_Body|85b-platform_windshield_rear_wl,
        shader = damn_vehicle_shader,
        static = FALSE,
        scale = 0.1,
    }

    model 85oldsmobileDelta88WindshieldRearWR
    {
        mesh = vehicles/Vehicles_85oldsmobileDelta88_Body|85b-platform_windshield_rear_wr,
        shader = damn_vehicle_shader,
        static = FALSE,
        scale = 0.1,
    }

	template vehicle DEL85Windshields
	{
        part Windshield
        {
            model windshieldFront
            {
                file = 85oldsmobileDelta88Windshield,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.85gmBbodyWindshield,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = true,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
			            equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Advanced Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    recipes = Advanced Mechanics,
                    requireUninstalled = DAMNWindshieldArmor,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 85oldsmobileDelta88WindshieldRear,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.85gmBbodyRearWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = true,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Intermediate Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    requireUninstalled = DAMNWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }

    template vehicle DEL85WindshieldsCoupe
	{
        template! = DEL85Windshields,

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 85oldsmobileDelta88WindshieldRearC,
            }
        }
    }

    template vehicle DEL85WindshieldsWagonSide
	{
        template! = DEL85Windshields,

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 85oldsmobileDelta88WindshieldRearWL,
            }
            window
            {
                openable = false,
            }
                
            
            itemType = Base.85gmBbodyWagonRearWindshield,
            parent = TrunkDoor,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = true,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Intermediate Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
                requireInstalled = TrunkDoor,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    requireUninstalled = DAMNWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }

    template vehicle DEL85WindshieldsWagon
	{
        template! = DEL85Windshields,

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 85oldsmobileDelta88WindshieldRearWR,
            }
            window
            {
                openable = false,
            }
                
            
            itemType = Base.85gmBbodyWagonRearWindshield,
            parent = TrunkDoor,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = true,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Intermediate Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
                requireInstalled = TrunkDoor,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    requireUninstalled = DAMNWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }
}