module Base
{

    model 87fordB700Windshield
    {
        mesh = vehicles/Vehicles_87fordB700_Body|b700_windshield,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 87fordB700WindshieldRear
    {
        mesh = vehicles/Vehicles_87fordB700_Body|b700_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
        boneWeight = door_r_bone 1.0,
    }

	template vehicle B700Windshields
	{

        part Windshield
        {
            model windshieldFront
            {
                file = 87fordB700Windshield,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.87fordB700Windshield,
            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 = 87fordB700WindshieldRear,
            }
                
            itemType = Base.87fordB700WindshieldRear,
            area = Engine,
            parent = DoorRear,
            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 = DAMNWindshieldRearArmor,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

}
