module Base
{
	model 86fordE150doorfl
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_fl,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fl_bone 1.0,
	}

	model 86fordE150doorfr
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_fr,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fr_bone 1.0,
	}

    model 86fordE150doorrr
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_rr,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_rr_bone 1.0,
	}

    model 86fordE150doorrl
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_rl,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_rl_bone 1.0,
	}

    model 86fordE150doorrlw
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_rl_w,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_rl_bone 1.0,
	}
    model 86fordE150doorrrw
	{
		mesh = vehicles/Vehicles_86fordE150_Body|e150_door_rr_w,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_rr_bone 1.0,
	}

	template vehicle E150Doors
	{

		part DoorFrontLeft
		{
			model DoorFrontLeft
				{
				file = 86fordE150doorfl,
				}
				itemType = Base.E150CarFrontDoor,
				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 = 86fordE150doorfr,
				}
				itemType = Base.E150CarFrontDoor,
				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 E150SlideDoor
	{

		part DoorRearRight
		{

			model shortBoid4689764
			{
				file = 86fordE150doorrr,
				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.E150CarSlideDoor,
			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 E150SlideDoorTwo
	{

		part DoorRearLeft
		{

			model shortBoid4681114
			{
				file = 86fordE150doorrl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

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

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

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

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

			category = door,
			area = SeatRearLeft,
			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 270.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 270.0 0.0,
			}
			itemType = Base.E150CarSlideDoor,
			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 E150SlideDoorsWin
	{
        part DoorRearLeft
		{

			model shortBoid4681114
			{
				file = 86fordE150doorrlw,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = door_rl_opening,
                reverse = TRUE,
				rate = 0.5,
			}

			anim Open
			{
				anim = door_rl_opening,
				rate = 0.5,
			}

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

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

			category = door,
			area = SeatRearLeft,
			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 270.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 270.0 0.0,
			}
			itemType = Base.E150CarSlideDoorWin,
			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,
                requireUninstalled = WindowRearLeft,

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

        part DoorRearRight
		{

			model shortBoid4689764
			{
				file = 86fordE150doorrrw,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

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

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

			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.E150CarSlideDoorWin,
			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,
                requireUninstalled = WindowRearRight,

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