module Base
{
	model DeathMustangBase
	{
		mesh = vehicles/Vehicle_DeathMustang|base_mesh,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = FALSE,
		scale = 1,
	}
	model DeathMustangDriver
	{
		mesh = vehicles/Vehicle_DeathMustang|DriverSeat_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangPassenger
	{
		mesh = vehicles/Vehicle_DeathMustang|PassengerSeat_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangWindshield
	{
		mesh = vehicles/Vehicle_DeathMustang|Windshield_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangWindshieldRear
	{
		mesh = vehicles/Vehicle_DeathMustang|RearWindshield_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangFrontRightWindow
	{
		mesh = vehicles/Vehicle_DeathMustang|FrontRightWindow_obj,
		shader = vehicle_noreflect,
		static = FALSE,
		scale = 1,
		boneWeight = FrontRightWindowBone 1.0,
	}
	model DeathMustangFrontLeftWindow
	{
		mesh = vehicles/Vehicle_DeathMustang|FrontLeftWindow_obj,
		shader = vehicle_noreflect,
		static = FALSE,
		scale = 1,
		boneWeight = FrontLeftWindowBone 1.0,
	}
	model DeathMustangRearRightWindow
	{
		mesh = vehicles/Vehicle_DeathMustang|RearRightWindow_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangRearLeftWindow
	{
		mesh = vehicles/Vehicle_DeathMustang|RearLeftWindow_obj,
		shader = vehicle_noreflect,
		scale = 1,
	}
	model DeathMustangFrontRightDoor
	{
		mesh = vehicles/Vehicle_DeathMustang|FrontRightDoor_obj,
		shader = vehicle_noreflect,
		static = FALSE,
		scale = 1,
		boneWeight = FrontRightDoorBone 1.0,
	}
	model DeathMustangFrontLeftDoor
	{
		mesh = vehicles/Vehicle_DeathMustang|FrontLeftDoor_obj,
		shader = vehicle_noreflect,
		static = FALSE,
		scale = 1,
		boneWeight = FrontLeftDoorBone 1.0,
	}
	model DeathMustangHood
	{
		mesh = vehicles/Vehicle_DeathMustang|Hood_obj,
		shader = vehicle_noreflect,
		scale = 1,
		static = FALSE,
		boneWeight = HoodBone 1.0,
	}
	model DeathMustangWheelfrontwheelleft
	{
		mesh = vehicles/Wheels/Vehicle_DeathMustang_frontLeftWheel,
		texture = Vehicles/Vehicle_DeathMustang_wheel,
		shader = vehiclewheel,
	}
	model DeathMustangWheelfrontwheelright
	{
		mesh = vehicles/Wheels/Vehicle_DeathMustang_frontRightWheel,
		texture = Vehicles/Vehicle_DeathMustang_wheel,
		shader = vehiclewheel,
	}
	model DeathMustangWheelbackwheelleft
	{
		mesh = vehicles/Wheels/Vehicle_DeathMustang_frontLeftWheel,
		texture = Vehicles/Vehicle_DeathMustang_wheel,
		shader = vehiclewheel,
	}
	model DeathMustangWheelbackwheelright
	{
		mesh = vehicles/Wheels/Vehicle_DeathMustang_frontRightWheel,
		texture = Vehicles/Vehicle_DeathMustang_wheel,
		shader = vehiclewheel,
	}
	vehicle DeathMstang
	{
		mechanicType = 3,
		offRoadEfficiency = 1.1,
		engineRepairLevel = 4,
		playerDamageProtection = 0.7,

		model
		{
			file = DeathMustangBase,
			scale = 0.7000,
			offset = 0.0714 0.5286 -0.4286,
		}

		skin
		{
			texture = Vehicles/Vehicle_DeathMustang,
		}

		skin
		{
			texture = Vehicles/Vehicle_DeathMustang_1,
		}

		skin
		{
			texture = Vehicles/Vehicle_DeathMustang_3,
		}

		skin
		{
			texture = Vehicles/Vehicle_DeathMustang_4,
		}

		textureRust = Vehicles/Vehicle_DeathMustang_rust,
		textureMask = Vehicles/Vehicle_DeathMustang_mask,
		textureLights = Vehicles/Vehicle_DeathMustang_lights,
		textureDamage1Shell = Vehicles/Vehicle_DeathMustang_scratch,
		textureDamage2Shell = Vehicles/Vehicle_DeathMustang_scratch,
		textureDamage1Overlay = Vehicles/Vehicle_DeathMustang_blood,
		textureDamage2Overlay = Vehicles/Vehicle_DeathMustang_blood,

		sound
		{
			engine = VehicleEngineSportsCar,
			engineStart = VehicleEngineSportsCar,
			engineTurnOff = VehicleEngineSportsCar,
			horn = VehicleHornVan,
			ignitionFail = VehicleEngineSportsCar,
		}

		extents = 2.6000 2.1143 7.0000,
		mass = 1000,
		physicsChassisShape = 2.6000 2.1429 7.0000,
		centerOfMassOffset = 0.0714 1.5571 -0.1429,
		shadowExtents = 2.1978 6.4043,
		shadowOffset = 0.0635 -0.1289,
		engineForce = 5850,
		engineQuality = 100,
		engineLoudness = 120,
		maxSpeed = 140f,
		gearRatioCount = 4,
		gearRatioR = 3.5,
		gearRatio1 = 0.80,
		gearRatio2 = 0.80,
		gearRatio3 = 0.65,
		gearRatio4 = 0.80,
		gearRatio4 = 0.80,
		brakingForce = 60,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.50f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 45,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 12,
		suspensionRestLength = 0.5,
		wheelFriction = 1.4f,
		frontEndHealth = 4500,
		rearEndHealth = 3500,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 1.0714 0.3429 2.3286,
			radius = 0.50f,
			width = 0.20f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -1.0714 0.3429 2.3286,
			radius = 0.50f,
			width = 0.20f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 1.0714 0.3429 -1.4857,
			radius = 0.50f,
			width = 0.20f,
		}

		wheel RearRight
		{
			front = false,
			offset = -1.0714 0.3429 -1.4857,
			radius = 0.50f,
			width = 0.20f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.5714 0.6143 0.1286,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 2.4000 -0.7000 1.6429,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.5714 0.6143 0.1286,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -2.3571 -0.1857 1.7571,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 4.0571 2.7429 1.3714,
		}

		area ContainerSpace
		{
			xywh = 0.0000 -0.6000 2.2286 2.9429,
		}

		area SeatFrontLeft
		{
			xywh = 2.3714 -0.1286 2.0000 2.0000,
		}

		area SeatFrontRight
		{
			xywh = -2.2286 -0.1286 2.0000 2.0000,
		}

		area GasTank
		{
			xywh = -1.7714 -2.3000 1.1143 0.6000,
		}

		area TireFrontLeft
		{
			xywh = 1.2286 1.9000 0.0000 0.0000,
		}

		area TireFrontRight
		{
			xywh = -1.1571 1.9000 0.0000 0.0000,
		}

		area TireRearLeft
		{
			xywh = 1.4286 -1.9143 0.0000 0.0000,
		}

		area TireRearRight
		{
			xywh = -1.2571 -1.9000 0.0000 0.0000,
		}

		area RearArea
		{
			xywh = 0.0714 -4.2286 2.6571 1.1429,
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = GloveBox,
		template = GasTank,
		template = Battery,
		template = Engine,
		template = Muffler,

		part SeatFrontLeft
		{
			model seatfrontLeft
			{
				file = DeathMustangDriver,
			}

			itemType = Base.DeathMustangSeat,
		}

		part SeatFrontRight
		{
			model seatfrontRight
			{
				file = DeathMustangPassenger,
			}

			itemType = Base.DeathMustangSeat,
		}

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			model engineDoor
			{
				file = DeathMustangHood,
			}

			anim Close
			{
				anim = HoodClosing,
				reverse = TRUE,
				rate = 1.5,
			}

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

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

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

			itemType = Base.DeathMustangHood,

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		part DMstngContainer
		{
			category = nodisplay,
			area = ContainerSpace,
			itemType = Base.DMstngContainer,
			specificItem = false,

			container
			{
				test = Vehicles.ContainerAccess.DMstngContainer,
			}

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

		part Heater
		{
			category = engine,

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

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part Windshield
		{
			model windshieldFront
			{
				file = DeathMustangWindshield,
			}

			window
			{
				openable = false,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}

			itemType = Base.DeathMustangWindshield,

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

		part WindshieldRear
		{
			model windshieldRear
			{
				file = DeathMustangWindshieldRear,
			}

			area = RearArea,

			window
			{
				openable = false,
			}

			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}

			itemType = Base.DeathMustangRearWindshield,

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

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,

		part WindowFrontRight
		{
			model windowFR
			{
				file = DeathMustangFrontRightWindow,
			}

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

			itemType = Base.DeathMustangFrontWindow,
			parent = DoorFrontRight,
			area = SeatFrontRight,
		}

		part WindowFrontLeft
		{
			model windowFL
			{
				file = DeathMustangFrontLeftWindow,
			}

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

			itemType = Base.DeathMustangFrontWindow,
			parent = DoorFrontLeft,
			area = SeatFrontLeft,
		}

		part WindowRearLeft
		{
			model windowRL
			{
				file = DeathMustangRearLeftWindow,
			}

			itemType = Base.DeathMustangRearWindow,
			area = SeatFrontLeft,
		}

		part WindowRearRight
		{
			model windowRR
			{
				file = DeathMustangRearRightWindow,
			}

			itemType = Base.DeathMustangRearWindow,
			area = SeatFrontRight,
		}

		part DoorFrontRight
		{
			model Default
			{
				file = DeathMustangFrontRightDoor,
			}

			anim Close
			{
				anim = FrontRightDoorClosing,
				reverse = TRUE,
				rate = 2.0,
			}

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

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

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

			itemType = Base.DeathMustangDoor,
		}

		part DoorFrontLeft
		{
			model Default
			{
				file = DeathMustangFrontLeftDoor,
			}

			anim Close
			{
				anim = FrontLeftDoorClosing,
				reverse = TRUE,
				rate = 2.0,
			}

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

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

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

			itemType = Base.DeathMustangDoor,
		}

		template = Tire,

		part PassengerCompartment
		{
			category = nodisplay,

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

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = DeathMustangWheelfrontwheelleft,
			}

			itemType = Base.DeathMustangWheel,
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = DeathMustangWheelfrontwheelright,
			}

			itemType = Base.DeathMustangWheel,
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = DeathMustangWheelbackwheelleft,
			}

			itemType = Base.DeathMustangWheel,
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = DeathMustangWheelbackwheelright,
			}

			itemType = Base.DeathMustangWheel,
		}

		template = Brake,

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

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

		template = Suspension,

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

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

		template = Radio,

		part Radio*
		{
			itemType = Radio.HamRadio1,
		}

		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 0.5143 -3.5000,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = -0.0143 0.4286 3.9571,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
