module Base
{
	model AZLK2141Base
	{
		mesh = vehicles/Vehicle_AZLK2141_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model AZLK2141frontwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	model AZLK2141frontwheelright
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	model AZLK2141backwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	model AZLK2141backwheelright
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	vehicle AZLK2141
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 2,
		playerDamageProtection = 1.5,

		model
		{
			file = AZLK2141Base,
			scale = 1.5500,
			offset = 0.0000 0.1437 -0.0188,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_ORANGE,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_YELLOW,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_GREEN,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_BLUE,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_GRAY,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_CHERRY,
		}

		textureMask = Vehicles/Vehicle_AZLK2141_Mask,
		textureLights = Vehicles/Vehicle_AZLK2141_lights,
		textureDamage1Overlay = Vehicles/Vehicle_AZLK2141_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_AZLK2141_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_AZLK2141_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_AZLK2141_DAMAGE2,
		textureRust = Vehicles/Vehicle_AZLK2141_Rust,

		sound
		{
			engine = VehicleEngineCarStationWagon,
			engineStart = start_engine_2141,
			engineTurnOff = VAZ_engine_off,
			horn = VAZ_horn,
			ignitionFail = fail_start_engine_2141,
		}

		extents = 0.9750 0.6375 2.5000,
		mass = 1080,
		physicsChassisShape = 0.9250 0.6375 2.4500,
		centerOfMassOffset = 0.0000 0.2688 -0.0562,
		shadowExtents = 0.8346 2.2154,
		shadowOffset = 0.0000 -0.0734,
		engineForce = 3800,
		engineQuality = 62,
		engineLoudness = 73,
		maxSpeed = 88f,
		gearRatioCount = 4,
		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.3562 -0.2063 0.6938,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3562 -0.2063 0.6938,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3562 -0.2313 -0.7938,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3562 -0.2313 -0.7938,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1813 0.0625 0.0188,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7000 -0.4125 0.0562,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1813 0.0625 0.0188,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6938 -0.5625 0.0500,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1813 0.0625 -0.4938,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7000 -0.4063 -0.4063,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1813 0.0625 -0.4938,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7000 -0.4063 -0.3750,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3750 0.6875 0.4250,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.4438 0.7250 0.5000,
		}

		area SeatFrontLeft
		{
			xywh = 0.6875 0.0875 0.4250 0.5250,
		}

		area SeatFrontRight
		{
			xywh = -0.6875 0.0875 0.4250 0.5250,
		}

		area SeatRearRight
		{
			xywh = -0.6875 -0.4375 0.4250 0.4750,
		}

		area SeatRearLeft
		{
			xywh = 0.6875 -0.4375 0.4250 0.4750,
		}

		area GasTank
		{
			xywh = -0.6875 -1.0187 0.4250 0.4250,
		}

		area TireFrontLeft
		{
			xywh = 0.6875 0.6688 0.4250 0.4250,
		}

		area TireFrontRight
		{
			xywh = -0.6875 0.6688 0.4250 0.4250,
		}

		area TireRearLeft
		{
			xywh = 0.6875 -0.8125 0.4250 0.4250,
		}

		area TireRearRight
		{
			xywh = -0.6875 -0.8125 0.4250 0.4250,
		}

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

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

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

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

		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.1455 1.2909,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.1455 -1.3152,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
