module Base
{
	model 83gmcGseriesVansdoorfl
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_door_fl,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fl_bone 1.0,
	}

	model 83gmcGseriesVansdoorfr
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_door_fr,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fr_bone 1.0,
	}

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

    model 83gmcGseriesVansdoorflat
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_door_fl_AT,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fl_bone 1.0,
	}

	model 83gmcGseriesVansdoorfrat
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_door_fr_AT,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fr_bone 1.0,
	}

	template vehicle GMC83Doors
	{

		part DoorFrontLeft
		{
			model DoorFrontLeft
				{
				file = 83gmcGseriesVansdoorfl,
				}
				itemType = Base.83gmcGseriesVansFrontDoor,
				table uninstall
				{
				requireUninstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,
				anim ActorOpen
				{
					angle = 0.0 270.0 0.0,
				}
				anim ActorClose
				{
					angle = 0.0 270.0 0.0,
				}

				anim Close
				{
					anim = door_fl_opening,
                    reverse = TRUE,
					rate = 1.5,
				}

				anim Open
				{
					anim = door_fl_opening,
					rate = 1.0,
				}

				anim Closed
				{
					anim = door_fl_opening,
					animate = FALSE,
				}

				anim Opened
				{
					anim = door_fl_opening,
                    reverse = TRUE,
					animate = FALSE,
				}
				lua
				{
					create = Vehicles.Create.Door,
					init = Vehicles.Init.Door,
					use = Vehicles.Use.Door,
				}
		}

		part DoorFrontRight
		{
			model DoorFrontRight
				{
				file = 83gmcGseriesVansdoorfr,
				}
				itemType = Base.83gmcGseriesVansFrontDoor,
				table uninstall
				{
				requireUninstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				anim ActorOpen
				{
					angle = 0.0 90.0 0.0,
				}
				anim ActorClose
				{
					angle = 0.0 90.0 0.0,
				}

				anim Close
				{
					anim = door_fr_opening,
                    reverse = TRUE,
					rate = 1.5,
				}

				anim Open
				{
					anim = door_fr_opening,
					rate = 1.0,
				}

				anim Closed
				{
					anim = door_fr_opening,
					animate = FALSE,
				}

				anim Opened
				{
					anim = door_fr_opening,
                    reverse = TRUE,
					animate = FALSE,
				}
				lua
				{
					create = Vehicles.Create.Door,
					init = Vehicles.Init.Door,
					use = Vehicles.Use.Door,
				}
		}

		part Door*
		{
			category = door,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 700,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 700,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
					}
				}
			}

    template vehicle GMC83SlideDoor
	{

		part DoorRearRight
		{

			model shortBoid468976432
			{
				file = 83gmcGseriesVansdoorrr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = door_rr_opening,
                reverse = TRUE,
				rate = 1.0,
			}

			anim Open
			{
				anim = door_rr_opening,
				rate = 1.0,
			}

			anim Closed
			{
				anim = door_rr_opening,
				animate = FALSE,
			}

			anim Opened
			{
				anim = door_rr_opening,
                reverse = TRUE,
				animate = FALSE,
			}

			category = door,
			area = SeatRearRight,
			door
            {
            }
			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 90.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 90.0 0.0,
			}
			itemType = Base.83gmcGseriesVansSlideDoor,
			mechanicRequireKey = true,
			repairMechanic = true,
			table install
			{
				items
				{
					item
					{
						type = Base.Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 600,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					item
					{
						type = Base.Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 600,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,

			}
			lua
			{
				create = Vehicles.Create.Door,
				init = Vehicles.Init.Door,
				use = Vehicles.Use.Door,
			}
		}
	}

    template vehicle GMC83DoorsA
	{

		part DoorFrontLeft
		{
			model DoorFrontLeft
				{
				file = 83gmcGseriesVansdoorflat,
				}
				itemType = Base.83gmcGseriesVansFrontDoor,
				table uninstall
				{
				requireUninstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,
				anim ActorOpen
				{
					angle = 0.0 270.0 0.0,
				}
				anim ActorClose
				{
					angle = 0.0 270.0 0.0,
				}

				anim Close
				{
					anim = door_fl_opening,
                    reverse = TRUE,
					rate = 1.5,
				}

				anim Open
				{
					anim = door_fl_opening,
					rate = 1.0,
				}

				anim Closed
				{
					anim = door_fl_opening,
					animate = FALSE,
				}

				anim Opened
				{
					anim = door_fl_opening,
                    reverse = TRUE,
					animate = FALSE,
				}
				lua
				{
					create = Vehicles.Create.Door,
					init = Vehicles.Init.Door,
					use = Vehicles.Use.Door,
				}
		}

		part DoorFrontRight
		{
			model DoorFrontRight
				{
				file = 83gmcGseriesVansdoorfrat,
				}
				itemType = Base.83gmcGseriesVansFrontDoor,
				table uninstall
				{
				requireUninstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				anim ActorOpen
				{
					angle = 0.0 90.0 0.0,
				}
				anim ActorClose
				{
					angle = 0.0 90.0 0.0,
				}

				anim Close
				{
					anim = door_fr_opening,
                    reverse = TRUE,
					rate = 1.5,
				}

				anim Open
				{
					anim = door_fr_opening,
					rate = 1.0,
				}

				anim Closed
				{
					anim = door_fr_opening,
					animate = FALSE,
				}

				anim Opened
				{
					anim = door_fr_opening,
                    reverse = TRUE,
					animate = FALSE,
				}
				lua
				{
					create = Vehicles.Create.Door,
					init = Vehicles.Init.Door,
					use = Vehicles.Use.Door,
				}
		}

		part Door*
		{
			category = door,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 700,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 700,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
					}
				}
			}
}