module Base
{
	model testarossabase
	{
		mesh = vehicles/kuzov,
		shader = vehicle_multiuv,
		static = TRUE,
		invertX = FALSE,
		scale = 1.2,
	}
	model wltestarossabase
	{
		mesh = vehicles/wl,
		texture = vehicles/wl1024,
		shader = vehiclewheel,
	}
	model wrtestarossabase
	{
		mesh = vehicles/wr,
		texture = vehicles/wr1024,
	}
	model wlbtestarossabase
	{
		mesh = vehicles/wl,
		texture = vehicles/wl1024,
	}
	model wrbtestarossabase
	{
		mesh = vehicles/wr,
		texture = vehicles/wr1024,
	}
	vehicle testarossa
	{
		mechanicType = 3,
		engineRepairLevel = 6,
		playerDamageProtection = 1.1,
		engineRPMType = firebird,

		model
		{
			file = testarossabase,
			scale = 1.5900,
			offset = -0.0063 -0.1384 0.0000,
 		}

                
		skin
                {
			texture = Vehicles/kuzov1024red,
		}
                skin
		{
			texture = Vehicles/kuzov1024BLU,
		}
                skin
		{
			texture = Vehicles/kuzov1024Grey,
		}
                skin
		{
			texture = Vehicles/kuzov1024black,
		}
                skin
		{
			texture = Vehicles/kuzov1024white,
		}
                skin
		{
			texture = Vehicles/kuzov1024yellow,
		}

		textureRust = Vehicles/null,
		textureMask = Vehicles/parts,
		textureLights = Vehicles/ogni,
		textureDamage1Overlay = Vehicles/null,
		textureDamage1Shell = Vehicles/Vehicle_kuzovDamage1,
                textureDamage2Overlay = Vehicles/null,
                textureDamage2Shell = Vehicles/Vehicle_kuzovDamage2,

		sound

		{
			horn = VehicleHorn,
		}

		extents = 1.1950 0.6289 2.6667,
		mass = 800,
		physicsChassisShape = 1.1950 0.6289 2.6792,
		centerOfMassOffset = 0.0000 0.2516 0.0000,
		engineForce = 5800,
		maxSpeed = 155f,
                gearRatioCount = 5,
		gearRatioR = 3.5,
		gearRatio1 = 4.11,
		gearRatio2 = 2.50,
		gearRatio3 = 1.65,
		gearRatio4 = 1.25,
		gearRatio5 = 0.80,
		gearRatio5 = 0.60,
		engineLoudness = 80,
		engineQuality = 100,
		brakingForce = 110,
		stoppingMovementForce = 1.65f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 69,
		suspensionCompression = 2.83,
		suspensionDamping = 2.5,
		maxSuspensionTravelCm = 30,
		suspensionRestLength = 0.23f,
		wheelFriction = 2.0f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.4654 0.1195 0.6792,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4528 0.1195 0.6792,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.5157 0.1258 -0.8428,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.5031 0.1258 -0.8428,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2264 0.2075 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5157 -0.4591 -0.1069,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2704 -0.2075 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.4969 -0.4591 -0.1069,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0126 -1.5660 1.0440 0.4906,
		}

		area TruckBed
		{
			xywh = -0.0126 1.5786 1.1069 0.4906,
		}

		area SeatFrontLeft
		{
			xywh = 0.8428 -0.1069 0.4906 0.8302,
		}

		area SeatFrontRight
		{
			xywh = -0.8428 0.1069 0.4906 0.8302,
		}

		area GasTank
		{
			xywh = 0.8302 -0.6101 0.4906 0.6792,
		}

		area TireFrontLeft
		{
			xywh = 0.8428 0.6792 0.4906 0.3648,
		}

		area TireFrontRight
		{
			xywh = -0.8428 0.6792 0.4906 0.3648,
		}

		area TireRearLeft
		{
			xywh = 0.8428 -0.8616 0.4906 0.3648,
		}

		area TireRearRight
		{
			xywh = -0.8428 -0.8616 0.4906 0.3648,
		}

		template = TrunkDoor,

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 30,
			}
		}

		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,
			}
		}

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

			container
			{
				capacity = 5,
				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
		{
			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			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*
		{
			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		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,
	}
}
