module Base
{
	vehicle en_lam_countach_87
	{
		model
		{
			file = en_lam_countach_87_Base,
			scale = 1.0600,
			offset = 0.0000 0.3491 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_en_lam_countach_87_Ext_Shell,
		}

		textureMask = Vehicles/Vehicle_en_lam_countach_87_Mask,
		textureLights = Vehicles/Vehicle_en_lam_countach_87_Overlay_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_en_lam_countach_87_Overlay_Blood,
		textureDamage2Overlay = Vehicles/Vehicle_en_lam_countach_87_Overlay_Blood,
		textureDamage1Shell = Vehicles/Vehicle_en_lam_countach_87_Overlay_Damage,
		textureDamage2Shell = Vehicles/Vehicle_en_lam_countach_87_Overlay_Damage,
		textureRust = Vehicles/Vehicle_en_lam_countach_87_Overlay_Rust,
		textureShadow = Vehicles/Vehicle_en_lam_countach_87_Shadow,

		sound
		{
			engine = VehicleEngineSportsCar,
			engineStart = VehicleEngineSportsCar,
			engineTurnOff = VehicleEngineSportsCar,
			horn = VehicleHornSportsCar,
			ignitionFail = VehicleIgnitionFailSportsCar,
		}

		extents = 1.8491 0.8868 3.7170,
		physicsChassisShape = 1.8491 0.8868 3.7170,
		centerOfMassOffset = 0.0000 0.4434 0.0000,
		shadowExtents = 1.8916 3.7439,
		shadowOffset = 0.0000 0.0024,
		mechanicType = 3,
		offRoadEfficiency = 0.2,
		playerDamageProtection = 0.8,
		frontEndHealth = 130,
		rearEndHealth = 150,
		mass = 1020,
		engineRPMType = firebird,
		engineRepairLevel = 5,
		engineForce = 7966,
		engineLoudness = 110,
		engineQuality = 95,
		maxSpeed = 280f,
		gearRatioCount = 5,
		gearRatioR = 1.9,
		gearRatio1 = 2.2,
		gearRatio2 = 1.6,
		gearRatio3 = 1.1,
		gearRatio4 = 0.9,
		gearRatio5 = 0.7,
		brakingForce = 90,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 45,
		suspensionCompression = 3.9,
		suspensionDamping = 3.1,
		maxSuspensionTravelCm = 16,
		suspensionRestLength = 0.2,
		wheelFriction = 1.8f,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.7642 -0.3208 1.0094,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.7642 -0.3208 1.0094,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.7830 -0.3208 -1.2170,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.7830 -0.3208 -1.2170,
			radius = 0.28f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3396 -0.2453 0.0566,
				rotate = 5.5704 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1792 -0.6038 -0.1604,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3396 -0.2453 0.0566,
				rotate = 5.5704 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.1792 -0.6038 -0.1604,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 -0.9623 3.7925 0.9623,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.3679 1.7170 0.9623,
		}

		area SeatFrontLeft
		{
			xywh = 1.4151 0.1321 0.9623 0.9623,
		}

		area SeatFrontRight
		{
			xywh = -1.4151 0.1321 0.9623 0.9623,
		}

		area GasTank
		{
			xywh = 1.4151 -0.9623 0.9623 0.9623,
		}

		area TireFrontLeft
		{
			xywh = 1.2736 1.0189 0.6792 0.6792,
		}

		area TireFrontRight
		{
			xywh = -1.2736 1.0189 0.6792 0.6792,
		}

		area TireRearLeft
		{
			xywh = 1.2736 -1.2075 0.6792 0.6792,
		}

		area TireRearRight
		{
			xywh = -1.2736 -1.2075 0.6792 0.6792,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 16,
			}
		}

		template = TrunkDoor,

		part TrunkDoor
		{
			model TrunkDoor
			{
				file = en_lam_countach_87_Trunk,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 2.5,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1.0,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

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

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

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

			model
			{
				file = en_lam_countach_87_Interior,
			}

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

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

		template = GasTank,

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

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

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

		part Muffler
		{
			model Muffler
			{
				file = en_lam_countach_87_Muffler,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			model EngineDoor
			{
				file = en_lam_countach_87_Hood,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 2.5,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1.0,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

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

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part WindowFrontLeft
		{
			model Default
			{
				file = en_lam_countach_87_WindowFL,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
			}
		}

		part WindowFrontRight
		{
			model Default
			{
				file = en_lam_countach_87_WindowFR,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
			}
		}

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		part Windshield
		{
			model Default
			{
				file = en_lam_countach_87_Windshield,
			}
		}

		part WindshieldRear
		{
			model Default
			{
				file = en_lam_countach_87_WindshieldRear,
			}
		}

		part Windshield*
		{
			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

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

		part DoorFrontLeft
		{
			model
			{
				file = en_lam_countach_87_DoorFL,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

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

		part DoorFrontRight
		{
			model
			{
				file = en_lam_countach_87_DoorFR,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

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

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = Tire,

		part TireFront*
		{
			model InflatedTirePlusWheel
			{
				file = en_lam_countach_87_WheelFront,
			}
		}

		part TireRear*
		{
			model InflatedTirePlusWheel
			{
				file = en_lam_countach_87_WheelRear,
			}
		}

		template = Brake,

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

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

		template = Suspension,

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

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

		template = Radio,
		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.2700 1.8300,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
