module Base
{
	model Chevalier_Rhino_Windshield_Front
	{
		mesh = vehicles/Vehicles_Chevalier_Rhino_F|WindshieldFront,
		shader = vehicle_multiuv,
		scale = .4,
	}
	
	model Chevalier_Rhino_Windshield_Rear
	{
		mesh = vehicles/Vehicles_Chevalier_Rhino_F|WindshieldRear,
		shader = vehicle_multiuv,
		scale = .4,
	}
	
	template vehicle RhinoWindshield
	{
		part Windshield
        {
			model Default
			{
				file = Chevalier_Rhino_Windshield_Front,
			}
            window
            {
                openable = false,
            }		
            area = Engine,
            category = bodywork,
            itemType = Base.Windshield,
            mechanicRequireKey = true,			
            table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Basic 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 = Basic Mechanics,
				requireUninstalled = ATA2ProtectionWindshield,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

		part WindshieldRear
		{
			model Default
			{
				file = Chevalier_Rhino_Windshield_Rear,
			}
            window
            {
                openable = false,
            }			
			area = TruckBed,
            category = bodywork,
            itemType = Base.RearWindshield,
            mechanicRequireKey = true,			
            table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 500,
                  skills = Mechanics:5,
                  recipes = Basic Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
 						equip = primary,
                   }
                }
                time = 500,
                skills = Mechanics:5,
                recipes = Basic Mechanics,
				requireUninstalled = ATA2ProtectionWindshieldRear,
                test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
	    }
	}
}
