module Base
{
	model AZLK2140Base
	{
		mesh = vehicles/Vehicle_AZLK2140_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}

	model AZLK2140frontwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2140_Wheel,
		texture = vehicles/Vehicle_AZLK2140_wheel,
	}
	model AZLK2140frontwheelright
	{
		mesh = vehicles/Vehicle_AZLK2140_Wheel,
		texture = vehicles/Vehicle_AZLK2140_wheel,
	}
	model AZLK2140backwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2140_Wheel,
		texture = vehicles/Vehicle_AZLK2140_wheel,
	}
	model AZLK2140backwheelright
	{
		mesh = vehicles/Vehicle_AZLK2140_Wheel,
		texture = vehicles/Vehicle_AZLK2140_wheel,
	}

	vehicle AZLK2140
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 2,
		playerDamageProtection = 1.5,

		model
		{
			file = AZLK2140Base,
			scale = 1.7500,
			offset = 0.0000 0.1200 0.0400,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_TAVRIYA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_KIPARIS,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_KORRIDA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_MAGMA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_PICUNDA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_VALAAM,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_ZOLOTOE_RUNO,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_ARKTIKA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_LIANA,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_WHY,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_BEZH2,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_YEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_ORN,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_GRE2,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2140_GRE,
		}

		textureRust = Vehicles/Vehicle_AZLK2140_Rust,
		textureMask = Vehicles/Vehicle_AZLK2140_Mask,
		textureLights = Vehicles/Vehicle_AZLK2140_lights,
		textureDamage1Overlay = Vehicles/Vehicle_AZLK2140_DAMAGE1,
		textureDamage1Shell = Vehicles/Vehicle_AZLK2140_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_AZLK2140_DAMAGE2,
		textureDamage2Shell = Vehicles/Vehicle_AZLK2140_DAMAGE2,

		sound
		{
			engine = VehicleEngineCarNormal,
			engineStart = VehicleEngineCarNormal,
			engineTurnOff = VehicleEngineCarNormal,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailCarNormal,
		}

		extents = 0.8114 0.4114 2.2400,
		mass = 1050,
		physicsChassisShape = 0.7886 0.6057 2.1829,
		centerOfMassOffset = 0.0000 0.3143 -0.0057,
		shadowExtents = 0.7089 2.0010,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 3500,
		engineQuality = 33,
		engineLoudness = 69,
		maxSpeed = 75f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 40,
		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 = 70,
		rearEndHealth = 70,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3029 -0.1257 0.6743,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3029 -0.1257 0.6743,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3029 -0.1257 -0.5829,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3029 -0.1257 -0.5829,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1771 0.0857 0.0171,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5943 -0.4114 0.0686,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1771 0.0857 0.0057,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.5943 -0.4114 0.0514,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1543 0.0686 -0.4514,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6000 -0.4057 -0.4171,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1600 0.0686 -0.4457,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6000 -0.4057 -0.4171,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.2971 0.5829 0.4114,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.3314 0.6971 0.4114,
		}

		area SeatFrontLeft
		{
			xywh = 0.6114 0.1543 0.4114 0.5371,
		}

		area SeatFrontRight
		{
			xywh = -0.6114 0.1600 0.4114 0.5371,
		}

		area SeatRearRight
		{
			xywh = -0.6114 -0.2914 0.4114 0.4571,
		}

		area SeatRearLeft
		{
			xywh = 0.6114 -0.2971 0.4114 0.4343,
		}

		area GasTank
		{
			xywh = 0.0000 -1.3314 0.4114 0.4114,
		}

		area TireFrontLeft
		{
			xywh = 0.6000 0.7143 0.4114 0.4114,
		}

		area TireFrontRight
		{
			xywh = -0.6000 0.7086 0.4114 0.4114,
		}

		area TireRearLeft
		{
			xywh = 0.6000 -0.5371 0.4114 0.4114,
		}

		area TireRearRight
		{
			xywh = -0.6000 -0.5371 0.4114 0.4114,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 60,
			}
		}

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

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

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

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

		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.0686 1.2743,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0629 -1.1829,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
