module Base
{
	model VAZ2121Base
	{
		mesh = vehicles/Vehicle_VAZ2121_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model VAZ2121frontwheelleft
	{
		mesh = vehicles/Vehicle_VAZ2121_Wheel,
		texture = vehicles/Vehicle_VAZ2121_wheel,
	}
	model VAZ2121frontwheelright
	{
		mesh = vehicles/Vehicle_VAZ2121_Wheel,
		texture = vehicles/Vehicle_VAZ2121_wheel,
	}
	model VAZ2121backwheelleft
	{
		mesh = vehicles/Vehicle_VAZ2121_Wheel,
		texture = vehicles/Vehicle_VAZ2121_wheel,
	}
	model VAZ2121backwheelright
	{
		mesh = vehicles/Vehicle_VAZ2121_Wheel,
		texture = vehicles/Vehicle_VAZ2121_wheel,
	}
	vehicle VAZ2121
	{
		mechanicType = 1,
		offRoadEfficiency = 5,
		engineRepairLevel = 3,
		playerDamageProtection = 1.3,

		model
		{
			file = VAZ2121Base,
			scale = 1.4500,
			offset = 0.0133 0.1533 0.0667,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_MIL,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_MIL2,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_HAKI,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_HAKI2,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_HAKI3,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_GRE,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_GRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_RED2,
		}

		skin
		{
			texture = Vehicles/Vehicle_VAZ2121_YEL,
		}

		textureMask = Vehicles/Vehicle_VAZ2121_Mask,
		textureLights = Vehicles/Vehicle_VAZ2121_lights,
		textureDamage1Overlay = Vehicles/Vehicle_VAZ2121_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_VAZ2121_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_VAZ2121_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_VAZ2121_DAMAGE2,
		textureRust = Vehicles/Vehicle_VAZ2121_Rust,

		sound
		{
			engine = VehicleEngineSUV,
			engineStart = VehicleEngineSUV,
			engineTurnOff = VehicleEngineSUV,
			horn = VehicleHornJeep,
			ignitionFail = VehicleIgnitionFailSUV,
		}

		extents = 0.9867 0.6533 2.2400,
		mass = 1000,
		physicsChassisShape = 0.9867 0.6533 2.2267,
		centerOfMassOffset = 0.0200 0.3667 -0.0800,
		shadowExtents = 0.8473 2.0233,
		shadowOffset = 0.0000 -0.0767,
		engineForce = 3600,
		engineQuality = 62,
		engineLoudness = 80,
		maxSpeed = 80f,
		gearRatioCount = 4,
		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.5f,
		frontEndHealth = 200,
		rearEndHealth = 150,
		seats = 4,

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

		wheel FrontRight
		{
			front = true,
			offset = -0.3800 -0.1933 0.5600,
			radius = 0.15f,
			width = 0.2f,
		}

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

		wheel RearRight
		{
			front = false,
			offset = -0.3800 -0.1933 -0.7467,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1600 0.0933 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

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

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1933 0.0933 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7867 -0.4067 0.0067,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1600 0.1000 -0.5133,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7867 -0.4133 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1933 0.1000 -0.5133,
				rotate = 0.0000 0.0000 0.0000,
			}

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

		area Engine
		{
			xywh = 0.0000 1.2533 0.8933 0.4400,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.3333 0.8400 0.2667,
		}

		area SeatFrontLeft
		{
			xywh = 0.7133 -0.0600 0.4000 0.6133,
		}

		area SeatFrontRight
		{
			xywh = -0.6733 -0.0600 0.4000 0.6133,
		}

		area SeatRearRight
		{
			xywh = -0.4133 -0.0667 0.0400 0.4933,
		}

		area SeatRearLeft
		{
			xywh = 0.4333 -0.0667 0.0400 0.4933,
		}

		area GasTank
		{
			xywh = -0.6933 -0.4467 0.4400 0.4400,
		}

		area TireFrontLeft
		{
			xywh = 0.7333 0.6200 0.4400 0.4400,
		}

		area TireFrontRight
		{
			xywh = -0.6933 0.6200 0.4400 0.4400,
		}

		area TireRearLeft
		{
			xywh = 0.7333 -0.6800 0.4400 0.4400,
		}

		area TireRearRight
		{
			xywh = -0.6933 -0.6800 0.4400 0.4400,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 90,
			}
		}

		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 = 10,
				test = Vehicles.ContainerAccess.GloveBox,
			}

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:4,
				recipes = Basic Mechanics,
			}

			uninstall
			{
				skills = Mechanics:4,
				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 = VAZ2121frontwheelleft,
			}
		}

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

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

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

		template = Brake,

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

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

		template = Suspension,

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

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

		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0833 1.0256,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0833 -1.2821,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
