module Base
{

	model 90fordF350ambulancetrunkDoorl
	{
		mesh = vehicles/Vehicles_90fordF350ambulance_Body|f350_left_lids,
		shader = damn_vehicle_shader,
		static = FALSE,
		scale = 0.1,
	}

	model 90fordF350ambulancetrunkDoorc
    {
        mesh = vehicles/Vehicles_90fordF350ambulance_Body|f350_corner_lids,
        shader = damn_vehicle_shader,
        static = FALSE,
        scale = 0.1,
    }

    model 90fordF350ambulancetrunkDoorr
    {
        mesh = vehicles/Vehicles_90fordF350ambulance_Body|f350_right_lid,
        shader = damn_vehicle_shader,
        static = FALSE,
        scale = 0.1,
    }

	template vehicle F350TrunkDoors
	{
		part TrunkDoorLeft
		{

			model SoHuge34637
			{
				file = 90fordF350ambulancetrunkDoorl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = left_storage_opening,
				reverse = TRUE,
				rate = 1,
			}

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

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

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

			category = bodywork,
			area = StorageLeft,
			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.90fordF350ambLeftStorageLids,
			mechanicRequireKey = true,
            durability = 5,
			repairMechanic = true,
			table install
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,

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

		part TrunkDoorCorner
		{

			model SoHuge334427
			{
				file = 90fordF350ambulancetrunkDoorc,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = corner_storage_opening,
				reverse = TRUE,
				rate = 1,
			}

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

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

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

			category = bodywork,
			area = StorageCorner,
			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 0.0 0.0,
			}
			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 0.0 0.0,
			}
			itemType = Base.90fordF350ambCornerStorageLids,
			mechanicRequireKey = true,
            durability = 5,
			repairMechanic = true,
			table install
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,

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

		part TrunkDoorRightA
		{

			model SoHuge34637
			{
				file = 90fordF350ambulancetrunkDoorr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = right_storage_opening,
				reverse = TRUE,
				rate = 1,
			}

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

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

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

			category = bodywork,
			area = StorageRight,
			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.90fordF350ambRightStorageLid,
			mechanicRequireKey = true,
            durability = 5,
			repairMechanic = true,
			table install
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					item
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,

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

