module Base
{
	model LADA09Base
	{
		mesh = vehicles/Vehicle_LADA09_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 LADA09
	{
		mechanicType = 1,
		offRoadEfficiency = 0.9,
		engineRepairLevel = 2,
		playerDamageProtection = 1.5,

		model
		{
			file = LADA09Base,
			scale = 1.4000,
			offset = 0.0000 0.1456 0.0443,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_RED2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_RED3,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_BEZ,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_BEZ2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_GRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_GRY2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_GRE,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_BLU2,
		}

		skin
		{
			texture = Vehicles/Vehicle_LADA09_GRY3,
		}

		textureMask = Vehicles/Vehicle_LADA09_Mask,
		textureLights = Vehicles/Vehicle_LADA_lights,
		textureDamage1Overlay = Vehicles/Vehicle_LADA09_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_LADA09_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_LADA09_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_LADA09_DAMAGE2,
		textureRust = Vehicles/Vehicle_LADA09_Rust,

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

		extents = 0.9747 0.6329 2.3544,
		mass = 800,
		physicsChassisShape = 0.9747 0.6329 2.3544,
		centerOfMassOffset = 0.0000 0.2848 -0.0190,
		shadowExtents = 0.8346 2.2639,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 3600,
		engineQuality = 50,
		engineLoudness = 73,
		maxSpeed = 95f,
		gearRatioCount = 3,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 63,
		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.3861 -0.2089 0.6772,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3861 -0.2089 0.6772,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3861 -0.2089 -0.7848,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3861 -0.2089 -0.7848,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1835 0.0633 -0.0127,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7911 -0.4114 -0.0443,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1835 0.0633 -0.0127,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7848 -0.5633 -0.0443,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1519 0.0633 -0.5759,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7911 -0.4051 -0.4873,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1582 0.0633 -0.5759,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7848 -0.4051 -0.4873,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3354 0.7848 0.4304,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.3987 0.7848 0.5063,
		}

		area SeatFrontLeft
		{
			xywh = 0.6962 0.1139 0.4304 0.6203,
		}

		area SeatFrontRight
		{
			xywh = -0.6962 0.1139 0.4304 0.6076,
		}

		area SeatRearRight
		{
			xywh = -0.6962 -0.4494 0.4304 0.5190,
		}

		area SeatRearLeft
		{
			xywh = 0.6962 -0.4367 0.4304 0.4810,
		}

		area GasTank
		{
			xywh = -0.6013 -1.0570 0.4304 0.4304,
		}

		area TireFrontLeft
		{
			xywh = 0.6013 0.7848 0.4304 0.4304,
		}

		area TireFrontRight
		{
			xywh = -0.6013 0.7848 0.4304 0.4304,
		}

		area TireRearLeft
		{
			xywh = 0.6013 -0.6709 0.4304 0.4304,
		}

		area TireRearRight
		{
			xywh = -0.6013 -0.6709 0.4304 0.4304,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 85,
			}
		}

		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,
		template = Window/part/WindowRearRight,
		template = Window/part/WindowRearLeft,

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

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

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