module Base
{
	model M5heliblade1
	{
		mesh = vehicles/M5blade_1,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade2
	{
		mesh = vehicles/M5blade_2,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade3
	{
		mesh = vehicles/M5blade_3,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade4
	{
		mesh = vehicles/M5blade_4,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade5
	{
		mesh = vehicles/M5blade_5,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade6
	{
		mesh = vehicles/M5blade_6,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade7
	{
		mesh = vehicles/M5blade_7,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade8
	{
		mesh = vehicles/M5blade_8,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.05,
		shader = vehiclewheel,
	}
	model M5heliblade1Small
	{
		mesh = vehicles/M5blade_1_small,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.045,
		shader = vehiclewheel,
	}
	model M5heliblade2Small
	{
		mesh = vehicles/M5blade_2_small,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.045,
		shader = vehiclewheel,
	}
	model M5heliblade3Small
	{
		mesh = vehicles/M5blade_3_small,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.045,
		shader = vehiclewheel,
	}
	model M5heliblade4Small
	{
		mesh = vehicles/M5blade_4_small,
		texture = Vehicles/Vehicle_Blades2,
		scale = 0.045,
		shader = vehiclewheel,
	}
	model M5_helicopter
	{
		mesh = vehicles/Vehicle_M500,
		shader = vehicle,
		static = TRUE,
		scale = 0.05,
	}
	vehicle M5Helicopter
	{
		mechanicType = 1,
		offRoadEfficiency = 10.2,
		engineRepairLevel = 8,
		playerDamM5eProtection = 0.2,

		model
		{
			file = M5_helicopter,
			scale = 0.7700,
			offset = 0.0000 0.2208 1.7662,
		}

		skin
		{
			texture = Vehicles/Vehicle_M5camo,
		}

		skin
		{
			texture = Vehicles/Vehicle_M5urbancamo,
		}

		skin
		{
			texture = Vehicles/Vehicle_M5cootcamo,
		}

		skin
		{
			texture = Vehicles/Vehicle_M5blackopscamo,
		}
		
		skin
		{
			texture = Vehicles/Vehicle_pinkheli,
		}
		
		skin
		{
			texture = Vehicles/Vehicle_helisheena,
		}

		textureRust = Vehicles/Vehicle_UH1Interior_rust,
		textureShadow = Shadows/vehicleShadowM5,
		textureMask = Vehicles/Vehicle_UH60RS_mask,
		spawnOffsetY = 0.24999994,

		sound
		{
			horn = M5horn,
			engine = AutogyroSilence,
			engineStart = AutogyroSilence,
		}

		extents = 3.1688 3.2208 7.5325,
		mass = 900,
		centerOfMassOffset = 0.0000 1.6883 0.0000,
		shadowExtents = 4.2480 8.8333,
		shadowOffset = 0.0278 -0.0130,
		physicsChassisShape = 2.7532 2.8052 7.1688,
		engineForce = 600,
		maxSpeed = 20f,
		engineLoudness = 80,
		engineQuality = 70,
		brakingForce = 50,
		stoppingMovementForce = 4.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 20,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.4f,
		frontEndHealth = 65,
		rearEndHealth = 80,
		seats = 2,
		template = PassengerSeat2,

		passenger FrontLeft
		{
			showPassenger = true,

			position inside
			{
				offset = 0.3377 1.3506 0.6883,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3117 0.0000 -0.1429,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,

			position inside
			{
				offset = -0.3377 1.3506 0.6623,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3766 0.0000 -0.1688,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 -0.7532 3.9221 1.0130,
		}

		area TruckBed
		{
			xywh = 0.0000 2.3506 5.4026 1.2727,
		}

		area SeatFrontLeft
		{
			xywh = 2.0649 1.2597 1.9221 2.0260,
		}

		area SeatFrontRight
		{
			xywh = -2.0649 1.2597 1.9221 2.0260,
		}

		area GasTank
		{
			xywh = 0.0000 -0.0649 6.0779 1.3506,
		}

		template = M5_TrunkTemplate/part/M5_TruckBedPart,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontRight,

		part Window*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			container
			{
				capacity = 7,
				test = Vehicles.ContainerAccess.GloveBox,
			}

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = GasTank,

		part GasTank
		{
			container
			{
				conditionAffectsCapacity = false,
				capacity = 60,
			}

			install
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}


		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,

		part Door*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}
		}

		part M5heliblade
		{
			model M5blade1
			{
				file = M5heliblade1,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade2
			{
				file = M5heliblade2,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade3
			{
				file = M5heliblade3,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade4
			{
				file = M5heliblade4,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade5
			{
				file = M5heliblade5,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade6
			{
				file = M5heliblade6,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade7
			{
				file = M5heliblade7,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade8
			{
				file = M5heliblade8,
				offset = 0.0000 9.0000 1.5000,
			}

			area = Engine,
			category = blade,
			specificItem = false,
			mechanicRequireKey = false,
			repairMechanic = true,

			lua
			{
				create = M5blade.Create.bladerBig,
				init = M5blade.Init.bladerBig,
			}
		}

		part M5helibladeSmall
		{
			model M5blade1Small
			{
				file = M5heliblade1Small,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade2Small
			{
				file = M5heliblade2Small,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade3Small
			{
				file = M5heliblade3Small,
				offset = 0.0000 9.0000 1.5000,
			}

			model M5blade4Small
			{
				file = M5heliblade4Small,
				offset = 0.0000 9.0000 1.5000,
			}

			area = Engine,
			category = blade,
			mechanicRequireKey = false,
			repairMechanic = true,

			lua
			{
				create = M5blade.Create.bladerSmall,
				init = M5blade.Init.bladerSmall,
			}
		}

		template = Radio,
		template = Headlight,
	}
}
