module Base
{

    model 90pierceArrowWindshield
    {
        mesh = vehicles/Vehicles_90pierceArrow_Body|pierce_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 90pierceArrowWindshieldRear
    {
        mesh = vehicles/Vehicles_90pierceArrow_Body|pierce_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

	template vehicle ARRWWindshields
	{

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

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 90pierceArrowWindshieldRear,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.90pierceArrowRearWindshield,
            area = SeatRearLeft,
            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 = ARRWWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

}
