module Base
{

    model 89dodgeCaravanwindshield
    {
        mesh = vehicles/Vehicles_89dodgeCaravan_Body|caravan_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 89dodgeCaravanwindshieldRear
    {
        mesh = vehicles/Vehicles_89dodgeCaravan_Body|caravan_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    }

	template vehicle DGC89Windshields
	{

        part Windshield
        {
            model windshieldFront
            {
            file = 89dodgeCaravanwindshield,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.89dodgeCaravanWindshield,
            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 = DGC89WindshieldArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
            file = 89dodgeCaravanwindshieldRear,
            }
            window
            {
            openable = true,
            }
                
            itemType = Base.89dodgeCaravanWindshieldRear,
            parent = TrunkDoor,
            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,
                requireInstalled = TrunkDoor,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                  skills = Mechanics:5,
                  recipes = Advanced Mechanics,
                  requireUninstalled = DGC89WindshieldRearArmor,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }
}