module Base
{
	model V100_DoorFrontLeft
	{
		mesh = vehicles/Vehicles_67commando_Body|v100_door_fl,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	model V100_DoorFrontRight
	{
		mesh = vehicles/Vehicles_67commando_Body|v100_door_fr,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	model V100_DoorRear
	{
		mesh = vehicles/Vehicles_67commando_Body|v100_door_r,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	template vehicle DoorV100
	{
		part DoorFrontLeft
		{
			model V100DoorFrontLeft
			{
				file = V100_DoorFrontLeft,
			}

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

				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,
				}

			area = SeatFrontLeft,
			anim ActorOpen
			{
				angle = 0.0 270.0 0.0,
			}
			anim ActorClose
			{
				angle = 0.0 90.0 0.0,
			}
			itemType = Base.67commandoFrontDoor,
			table uninstall
			{
				requireUninstalled = WindowFrontLeft,
			}

		}
		
		part DoorFrontRight
		{
			model V100DoorFrontRight
			{
				file = V100_DoorFrontRight,
			}

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

				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,
				}

			area = SeatFrontRight,
			anim ActorOpen
			{
				angle = 0.0 90.0 0.0,
			}
			anim ActorClose
			{
				angle = 0.0 270.0 0.0,
			}
			itemType = Base.67commandoFrontDoor,
			table uninstall
			{
				requireUninstalled = WindowFrontRight,
			}

		}

		part DoorRear
		{
			model V100DoorRear
			{
				file = V100_DoorRear,
			}

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

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

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

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

				anim ActorOpen
				{
					angle = 0.0 0.0 0.0,
				}
				anim ActorClose
				{
					angle = 0.0 180.0 0.0,
				}

			area = TruckBed,
			itemType = Base.67commandoRearDoor,
			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}
		}

		part Door*
		{
			category = door,
			durability = 7,
			door
				{
				}
			anim Open
				{
					sound = VehicleDoorOpen,
				}
			anim Close
				{
					sound = VehicleDoorOpen,
				}
			anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
			anim ActorOpen
			{
				anim = Attack_Shove,
				rate = 0.1,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.1,
			}
			table install
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 2000,
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 2500,
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,
			}
			lua
			{
				create = Vehicles.Create.Door,
				init = Vehicles.Init.Door,
				use = Vehicles.Use.Door,
			}
		}
	}
}