module Base
{
	model fhq918
	{
		mesh = vehicles/vehicle_fhq918|fhq918,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.48,
	}
	model fhq918MirrorL
	{
		mesh = vehicles/vehicle_fhq918|fhq918MirrorL,
		shader = vehicle_multiuv,
		scale = 0.48,
	}
	model fhq918MirrorR
	{
		mesh = vehicles/vehicle_fhq918|fhq918MirrorR,
		shader = vehicle_multiuv,
		scale = 0.48,
	}
	model fhq918Livery
	{
		mesh = vehicles/vehicle_fhq918|fhq918,
		shader = vehicle_norandom_multiuv,
		invertX = FALSE,
		scale = 0.48,
	}
	model fhq918LiveryMirrorL
	{
		mesh = vehicles/vehicle_fhq918|fhq918MirrorL,
		shader = vehicle_norandom_multiuv,
		scale = 0.48,
	}
	model fhq918LiveryMirrorR
	{
		mesh = vehicles/vehicle_fhq918|fhq918MirrorR,
		shader = vehicle_norandom_multiuv,
		scale = 0.48,
	}
	model fhq918HeadlightL
	{
		mesh = vehicles/vehicle_fhq918|fhq918HeadlightCoverL,
		shader = basicEffect,
		scale = 0.48,
	}
	model fhq918HeadlightR
	{
		mesh = vehicles/vehicle_fhq918|fhq918HeadlightCoverR,
		shader = basicEffect,
		scale = 0.48,
	}
	model fhq918WingDown
	{
		mesh = vehicles/vehicle_fhq918|fhq918WingDown,
		shader = vehicle_multiuv,
		scale = 0.48,
	}
	model fhq918LiveryWingDown
	{
		mesh = vehicles/vehicle_fhq918|fhq918WingDown,
		shader = vehicle_norandom_multiuv,
		scale = 0.48,
	}
	model fhq918Wiper
	{
		mesh = vehicles/vehicle_fhq918|fhq918Wiper,
		shader = vehicle_multiuv,
		scale = 0.48,
	}
	model fhq918WPKit
	{
		mesh = vehicles/vehicle_fhq918|fhq918WPKit,
		shader = vehicle_multiuv,
		scale = 0.48,
	}
	model fhq918WheelFL
	{
		mesh = vehicles/vehicles_Wheelfhq918Concept|WheelStandard,
		texture = Vehicles/vehicles_WheelfhqPor918,
		shader = vehiclewheel,
		scale = 0.48,
	}
	model fhq918WheelFR
	{
		mesh = vehicles/vehicles_Wheelfhq918Concept|WheelStandard,
		texture = Vehicles/vehicles_WheelfhqPor918,
		shader = vehiclewheel,
		scale = 0.48,
		invertX = TRUE,
	}
	model fhq918WheelRL
	{
		mesh = vehicles/vehicles_Wheelfhq918Concept|WheelStandardRear,
		texture = Vehicles/vehicles_WheelfhqPor918,
		shader = vehiclewheel,
		scale = 0.48,
	}
	model fhq918WheelRR
	{
		mesh = vehicles/vehicles_Wheelfhq918Concept|WheelStandardRear,
		texture = Vehicles/vehicles_WheelfhqPor918,
		shader = vehiclewheel,
		scale = 0.48,
		invertX = TRUE,
	}
	template vehicle fhqPorsche918
	{
		mechanicType = 3,
		offRoadEfficiency = 0.6,
		engineRepairLevel = 7,
		playerDamageProtection = 0.8,
		engineRPMType = firebird,

		model
		{
			file = fhq918,
			scale = 1.8200,
			offset = 0.0000 0.0000 0.0000,
		}

		spawnOffsetY = 0.12999995,
		

		textureMask = Vehicles/vehicle_fhqPor918_mask,
		textureLights = Vehicles/vehicle_fhqPor918_lights,
		textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
		textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
		textureDamage1Shell = Vehicles/Veh_Damage1,
		textureDamage2Shell = Vehicles/Veh_Damage2,
		textureRust = Vehicles/Veh_Rust,

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

		extents = 0.9560 0.5165 2.2088,
		mass = 850,
		physicsChassisShape = 0.9560 0.5165 2.2088,
		centerOfMassOffset = 0.0000 0.2582 0.0000,
		shadowExtents = 0.9651 2.2533,
		shadowOffset = 0.0000 0.0000,
		engineForce = 12000,
		engineLoudness = 54,
		engineQuality = 95,
		maxSpeed = 160f,
		gearRatioCount = 5,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 65,
		suspensionCompression = 4.1,
		suspensionDamping = 3.4,
		maxSuspensionTravelCm = 15,
		suspensionRestLength = 0.2f,
		wheelFriction = 2.1f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3901 0.0989 0.5934,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3901 0.0989 0.5934,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3846 0.0989 -0.7253,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3846 0.0989 -0.7253,
			radius = 0.16f,
			width = 0.20f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1758 0.0110 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5330 -0.2473 0.1099,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1758 0.0110 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.5330 -0.2473 0.1099,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 -1.3187 0.9560 0.4286,
		}

		area TruckBed
		{
			xywh = 0.0000 1.3187 0.9560 0.4286,
		}

		area SeatFrontLeft
		{
			xywh = 0.7253 0.0495 0.4945 0.4945,
		}

		area SeatFrontRight
		{
			xywh = -0.7253 0.0495 0.4945 0.4945,
		}

		area GasTank
		{
			xywh = 0.7033 -0.3297 0.4505 0.4505,
		}

		area TireFrontLeft
		{
			xywh = 0.7033 0.5934 0.4505 0.4505,
		}

		area TireFrontRight
		{
			xywh = -0.7033 0.5934 0.4505 0.4505,
		}

		area TireRearLeft
		{
			xywh = 0.7033 -0.7198 0.4505 0.4505,
		}

		area TireRearRight
		{
			xywh = -0.6154 -0.7198 0.4505 0.4505,
		}

		template = TrunkDoor,

		part TrunkDoor
		{
			anim Open
			{
				sound = VehicleTrunkOpenSportsCar,
			}

			anim Close
			{
				sound = VehicleTrunkCloseSportsCar,
			}

			anim Lock
			{
				sound = LockVehicleDoorSportsCar,
			}

			anim Unlock
			{
				sound = UnlockVehicleDoorSportsCar,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedSportsCar,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.SmallTrunk,
			
			model Default
			{
				file = fhq918WingDown,
			}
		}

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

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

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

		template = GloveBox,
		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
		{
			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			anim Open
			{
				sound = VehicleHoodOpenSportsCar,
			}

			anim Close
			{
				sound = VehicleHoodCloseSportsCar,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,
		
		part Windshield
		{
			model Default
			{
				file = fhq918Wiper,
			}
		}

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

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

		part Window*
		{
			anim Open
			{
				sound = VehicleWindowElectricOpen,
			}

			anim Close
			{
				sound = VehicleWindowElectricClose,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

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

		part DoorFrontLeft
		{
			model Defualt
			{
				file = fhq918MirrorL,
			}
		}

		part DoorFrontRight
		{
			model Defualt
			{
				file = fhq918MirrorR,
			}
		}

		part Door*
		{
			anim Open
			{
				sound = VehicleDoorOpenSportsCar,
			}

			anim Close
			{
				sound = VehicleDoorCloseSportsCar,
			}

			anim Lock
			{
				sound = LockVehicleDoorSportsCar,
			}

			anim Unlock
			{
				sound = UnlockVehicleDoorSportsCar,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedSportsCar,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhq918WheelFL,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = fhq918WheelFR,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhq918WheelRL,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = fhq918WheelRR,
			}
		}

		template = Brake,

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

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

		template = Suspension,

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

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

		template = Radio,
		template = Headlight,

		part HeadlightLeft
		{
			model Default
			{
				file = fhq918HeadlightL,
			}
		}

		part HeadlightRight
		{
			model Default
			{
				file = fhq918HeadlightR,
			}
		}

		attachment trailer
		{
			offset = 0.0000 0.1209 -1.0934,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.1593 1.1044,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
	vehicle fhqPorsche918
	{
		template! = fhqPorsche918,

		skin
		{
			texture = Vehicles/vehicle_fhqPor918_shell,
		}

		extents = 0.9560 0.5165 2.2088,
		mass = 850,
		physicsChassisShape = 0.9560 0.5165 2.2088,
		centerOfMassOffset = 0.0000 0.2582 0.0000,
		shadowExtents = 0.9651 2.2533,
		shadowOffset = 0.0000 0.0000,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3901 0.0989 0.5934,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3901 0.0989 0.5934,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3846 0.0989 -0.7253,
			radius = 0.16f,
			width = 0.20f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3846 0.0989 -0.7253,
			radius = 0.16f,
			width = 0.20f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1758 0.0110 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5330 -0.2473 0.1099,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1758 0.0110 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.5330 -0.2473 0.1099,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 -1.3187 0.9560 0.4286,
		}

		area TruckBed
		{
			xywh = 0.0000 1.3187 0.9560 0.4286,
		}

		area SeatFrontLeft
		{
			xywh = 0.7253 0.0495 0.4945 0.4945,
		}

		area SeatFrontRight
		{
			xywh = -0.7253 0.0495 0.4945 0.4945,
		}

		area GasTank
		{
			xywh = 0.7033 -0.3297 0.4505 0.4505,
		}

		area TireFrontLeft
		{
			xywh = 0.7033 0.5934 0.4505 0.4505,
		}

		area TireFrontRight
		{
			xywh = -0.7033 0.5934 0.4505 0.4505,
		}

		area TireRearLeft
		{
			xywh = 0.7033 -0.7198 0.4505 0.4505,
		}

		area TireRearRight
		{
			xywh = -0.6154 -0.7198 0.4505 0.4505,
		}

		attachment trailer
		{
			offset = 0.0000 0.1209 -1.0934,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.1593 1.1044,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
