module Base
{
	model 84buickElectraBase
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|electra_body,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	model 84buickElectraBaseS
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|electra_sedan_body,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	model 84buickElectraInterior
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|electra_interior,
		texture = Vehicles/Vehicles_84buickElectra_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 84buickElectraInteriorS
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|electra_sedan_interior,
		texture = Vehicles/Vehicles_84buickElectra_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 84buickElectraMuffler
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|84c-platform_muffler0,
		texture = Vehicles/Vehicles_84buickElectra_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 84buickElectraTISBattery
	{
		mesh = vehicles/Vehicles_84buickElectra_Body|TIS_battery,
		texture = Vehicles/Vehicles_84buickElectra_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	vehicle 84buickElectraSedan
	{
		mechanicType = 1,
		offRoadEfficiency = 1.0,
		engineRepairLevel = 4,
		playerDamageProtection = 1.1,

		model
		{
			file = 84buickElectraBase,
			scale = 0.9000,
			offset = 0.0000 0.7111 -0.0667,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_black,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_darkBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_lightBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_maroon,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_orange,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_red,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_silver,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_skyBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_84buickElectra_Shell_white,
		}

		textureRust = Vehicles/Vehicles_84buickElectra_Rust,
		textureMask = Vehicles/Vehicles_84buickElectra_Mask,
		textureLights = Vehicles/Vehicles_84buickElectra_Lights,
		textureDamage1Shell = Vehicles/Vehicles_84buickElectra_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_84buickElectra_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_84buickElectra_Blood1,
		textureDamage2Overlay = Vehicles/Vehicles_84buickElectra_Blood1,
		textureShadow = Vehicles/Vehicles_84buickElectra_Shadow,

		sound
		{
			engine = VehicleEngineDefault,
			engineStart = VehicleEngineDefault,
			engineTurnOff = VehicleEngineDefault,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailDefault,
		}

		extents = 1.8889 1.1778 5.5778,
		mass = 830,
		physicsChassisShape = 1.8889 1.1778 5.5778,
		centerOfMassOffset = 0.0000 0.5889 -0.1111,
		shadowExtents = 1.9985 5.7704,
		shadowOffset = 0.0000 -0.1032,
		engineForce = 3852,
		maxSpeed = 79f,
		engineLoudness = 83,
		engineQuality = 83,
		brakingForce = 75,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.99f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 25,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 20,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.6f,
		frontEndHealth = 210,
		rearEndHealth = 155,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.7667 -0.7444 1.7667,
			radius = 0.34f,
			width = 0.22f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.7667 -0.7444 1.7667,
			radius = 0.34f,
			width = 0.22f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.7667 -0.7444 -1.4000,
			radius = 0.34f,
			width = 0.22f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.7667 -0.7444 -1.4000,
			radius = 0.34f,
			width = 0.22f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4667 -0.3556 0.1000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3222 -0.9667 -0.2667,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4667 -0.3556 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3333 -0.9667 -0.2556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4889 -0.3556 -0.8889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3333 -0.9556 -1.1667,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4889 -0.3556 -0.8889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3222 -0.9556 -1.1444,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 3.0667 1.6667 0.7778,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.2889 1.6889 0.7778,
		}

		area Roofrack
		{
			xywh = 0.0000 -0.3556 3.1333 2.4889,
		}

		area SeatFrontLeft
		{
			xywh = 1.3333 0.4333 0.7778 1.0000,
		}

		area SeatFrontRight
		{
			xywh = -1.3333 0.4333 0.7778 1.0000,
		}

		area SeatRearRight
		{
			xywh = -1.3333 -0.5111 0.7778 0.8889,
		}

		area SeatRearLeft
		{
			xywh = 1.3333 -0.5111 0.7778 0.8889,
		}

		area GasTank
		{
			xywh = 0.0000 -3.4333 0.4222 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.5333 1.7000 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.5333 1.7000 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.5333 -1.4889 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.5333 -1.4889 0.4222 0.4222,
		}

		template = ELE84TrunkCompartment,
		template = ELE84Windows,
		template = ELE84Windshields,
		template = ELE84Seats,
		template = ELE84Bumpers,
		template = ELE84Doors,
		template = ELE84EngineDoor,
		template = ELE84TrunkDoor,
		template = ELE84ArmorSedan,
		template = ELE84SpareTires,
		template = ELE84RoofrackSedan,
		template = ELE84RoofSedan,

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

			model intsedanELE84
			{
				file = 84buickElectraInterior,
				scale = 1.0,
			}

			model intsedanELE84backs
			{
				file = 84buickElectraInteriorS,
				scale = 1.0,
			}

			model bodsedanELE84backs
			{
				file = 84buickElectraBaseS,
				scale = 1.0,
			}

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

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}

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

		template = Battery,

		part Battery
		{
			model batlinELE84
			{
				file = 84buickElectraTISBattery,
				scale = 1.0,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model muffELE84
			{
				file = 84buickElectraMuffler,
			}

			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 = ELE84Tires,
		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

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

		template = Suspension,

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

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

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 -0.5556 -2.8444,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.5556 2.8333,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
