module Base
{

    model 63beetlewindshield
    {
        mesh = vehicles/Vehicles_63beetle_Body|63beetle_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 63beetlewindshieldRear
    {
        mesh = vehicles/Vehicles_63beetle_Body|63beetle_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

	template vehicle BTL63Windshields
	{

        part Windshield
        {
            model windshieldFront
            {
            file = 63beetlewindshield,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.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
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
            file = 63beetlewindshieldRear,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshieldRear,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.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
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldRearArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

    template vehicle BTL63Windshieldshp
    {

        part Windshield
        {
            model windshieldFront
            {
            file = 63beetlewindshield,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.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
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
            file = 63beetlewindshieldRear,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshieldRear,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
            equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Advanced Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
                requireInstalled = BTL63Roof,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldRearArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

    template vehicle BTL63Windshield
    {

        part Windshield
        {
            model windshieldFront
            {
            file = 63beetlewindshield,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.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
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
            file = 63beetlewindshieldRear,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.63beetleWindshieldRear,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.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
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = BTL63WindshieldRearArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = DAMN.Create.Blank,
            }
        }

    }

}