module Base
{

    model 82jeepJ10windshield
    {
        mesh = vehicles/Vehicles_82jeepJ10_Body|j10_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 82jeepJ10windshieldRear
    {
        mesh = vehicles/Vehicles_82jeepJ10_Body|j10_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

	template vehicle JP82Windshields
	{

        part Windshield
        {
            model windshieldFront
            {
            file = 82jeepJ10windshield,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.82JeepJ10Windshield,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            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 = 82jeepJ10windshieldRear,
            }
            window
            {
            openable = false,
            }
                
            itemType = Base.82JeepJ10WindshieldRear,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            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 = JP82Rollbar,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

}