module Base
{
	model LADA08Base
	{
		mesh = vehicles/Vehicle_LADA08_Body,
                shader = vehicle,
		invertX = FALSE,
		scale = 1,
	}

	model LADAfrontwheelleft
	{
		mesh = vehicles/Vehicle_LADA_Wheel,
		texture = vehicles/Vehicle_LADA_wheel,
	}
	model LADAfrontwheelright
	{
		mesh = vehicles/Vehicle_LADA_Wheel,
		texture = vehicles/Vehicle_LADA_wheel,
	}
	model LADAbackwheelleft
	{
		mesh = vehicles/Vehicle_LADA_Wheel,
		texture = vehicles/Vehicle_LADA_wheel,
	}
	model LADAbackwheelright
	{
		mesh = vehicles/Vehicle_LADA_Wheel,
		texture = vehicles/Vehicle_LADA_wheel,
	}

	vehicle LADA08
	{
		mechanicType = 1,
		offRoadEfficiency = 0.9,
		engineRepairLevel = 2,
		playerDamageProtection = 1,

		model
		{
			file = LADA08Base,
			scale = 1.4000,
			offset = 0.0000 0.1467 0.0467,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_RED2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_ORANGE,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_GREEN,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_BLUE,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_BLACK,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_BEZH2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA08_WHITE,
		}

		textureMask = Vehicles/Vehicle_LADA_Mask,
		textureLights = Vehicles/Vehicle_LADA_lights,
		textureDamage1Overlay = Vehicles/Vehicle_LADA_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_LADA_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_LADA_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_LADA_DAMAGE2,
		textureRust = Vehicles/Vehicle_LADA_Rust,

		sound
		{
			engine = VehicleEngineSmallCar,
			engineStart = VehicleEngineSmallCar,
			engineTurnOff = VehicleEngineSmallCar,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar,
		}

		extents = 0.9733 0.6400 2.3600,
		mass = 800,
		physicsChassisShape = 0.9733 0.6400 2.3600,
		centerOfMassOffset = 0.0000 0.2867 -0.0200,
		shadowExtents = 0.8346 2.2639,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 3500,
		engineQuality = 45,
		engineLoudness = 73,
		maxSpeed = 90f,
		gearRatioCount = 3,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 60,
		rollInfluence = 0.9f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 40,
		suspensionCompression = 1.83,
		suspensionDamping = 0.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 90,
		rearEndHealth = 90,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3867 -0.2067 0.6800,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3867 -0.2067 0.6800,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3867 -0.2067 -0.7867,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3867 -0.2067 -0.7867,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1867 0.0600 -0.0133,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7933 -0.4133 -0.0467,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1867 0.0600 -0.0133,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7867 -0.5600 -0.0467,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1533 0.0600 -0.5000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7933 -0.4067 -0.0467,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1600 0.0600 -0.5000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7867 -0.4067 -0.0467,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3333 0.7867 0.4400,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.4000 0.7867 0.5067,
		}

		area SeatFrontLeft
		{
			xywh = 0.6933 0.0000 0.4400 0.7333,
		}

		area SeatFrontRight
		{
			xywh = -0.6933 0.0000 0.4400 0.7200,
		}

		area SeatRearRight
		{
			xywh = -0.4867 0.0000 0.0400 0.4800,
		}

		area SeatRearLeft
		{
			xywh = 0.4867 0.0000 0.0400 0.4800,
		}

		area GasTank
		{
			xywh = -0.6000 -1.0600 0.4400 0.4400,
		}

		area TireFrontLeft
		{
			xywh = 0.6000 0.7867 0.4400 0.4400,
		}

		area TireFrontRight
		{
			xywh = -0.6000 0.7867 0.4400 0.4400,
		}

		area TireRearLeft
		{
			xywh = 0.6000 -0.6733 0.4400 0.4400,
		}

		area TireRearRight
		{
			xywh = -0.6000 -0.6733 0.4400 0.4400,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 80,
			}
		}

		template = TrunkDoor,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

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

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Basic 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:3,
				recipes = Basic Mechanics,
			}

			uninstall
			{
				skills = Mechanics:3,
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic 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 = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}

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

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}

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

		template = Radio,
		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0823 1.1582,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.1139 -1.3101,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
