module Base
{

    model 83gmcGseriesVanswindshield
    {
        mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_windshield_front,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 83gmcGseriesVansrearWindshield
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_windshield_rear,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
	}

	template vehicle GMC83Windshield
	{

        part Windshield
        {
            model windshieldFront
            {
            file = 83gmcGseriesVanswindshield,
            }
            window
            {
            openable = false,
            }
               
            itemType = Base.83gmcGseriesVansWindshield,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
			equip = primary,
                    }
                }
                time = 600,
                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 = 600,
                  skills = Mechanics:5,
                  recipes = Intermediate Mechanics,
                test = Vehicles.UninstallTest.Default,
                requireUninstalled = DAMNWindshieldArmor,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }

    }

    template vehicle GMC83RearWindshield
	{
		part WindshieldRear
		{

			model RearWindshield15684846
			{
				file = 83gmcGseriesVansrearWindshield,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			category = bodywork,
			area = TruckBed,
			parent = TrunkDoor,

			anim Close
			{
				anim = trunk_opening,
				rate = 0.85,
			}

			anim Open
			{
				anim = trunk_opening,
				reverse = TRUE,
				rate = 0.5,
			}

			anim Closed
			{
				anim = trunk_opening,
				reverse = TRUE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = trunk_opening,
				animate = FALSE,
			}

			window
            {
            openable = false,
            }
			anim Open
			{
				sound = VehicleTrunkOpenStandard,
			}
			anim Close
			{
				sound = VehicleTrunkCloseStandard,
			}
			anim Lock
			{
				sound = LockVehicleDoorStandard,
			}
			anim Unlock
			{
				sound = UnlockVehicleDoorStandard,
			}
			anim IsLocked
			{
				sound = VehicleDoorIsLockedStandard,
			}
			anim ActorOpen
			{
				anim = WindowOpenSuccess,
				rate = 0.15,
				angle = 0.0 0.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 0.0 0.0,
			}
			itemType = Base.83gmcGseriesVansRearSplitWindshield,
			mechanicRequireKey = true,
			repairMechanic = true,
			table install
			{
				items
				{
					item
					{
						type = Base.Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Window,
                requireInstalled = TrunkDoor,
			}
			table uninstall
			{
				items
				{
					item
					{
						type = Base.Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				requireUninstalled = DAMNWindshieldRearArmor,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
	}
}