module Base
{

    model 87toyotaMR2Windshield
    {
        mesh = vehicles/Vehicles_87toyotaMR2_Body|mr2_windshield_front,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 87toyotaMR2WindshieldRear
    {
        mesh = vehicles/Vehicles_87toyotaMR2_Body|mr2_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

	template vehicle MR2Windshields
	{

        part Windshield
        {
            model windshieldFront
            {
                file = 87toyotaMR2Windshield,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.87toyotaMR2Windshield,
            area = Front,
            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 = MR2WindshieldArmor,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 87toyotaMR2WindshieldRear,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.87toyotaMR2RearWindshield,
            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 = Intermediate 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,
                    requireUninstalled = MR2WindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

}
