module Base
{
	model uaz2206Base
	{
		mesh = vehicles/Vehicles_uaz2206_Body,
		shader = vehicle_multiuv,
		invertX = false,
		scale = 0.9,
	}
	model uaz2206frontwheelleft
	{
		mesh = vehicles/Vehicles_uaz2206_Wheel,
		texture = vehicles/Vehicles_uaz2206_Shell,
		scale = 0.9,
	}
	model uaz2206frontwheelright
	{
		mesh = vehicles/Vehicles_uaz2206_Wheel,
		texture = vehicles/Vehicles_uaz2206_Shell,
		scale = 0.9,
	}
	model uaz2206backwheelleft
	{
		mesh = vehicles/Vehicles_uaz2206_Wheel,
		texture = vehicles/Vehicles_uaz2206_Shell,
		scale = 0.9,
	}
	model uaz2206backwheelright
	{
		mesh = vehicles/Vehicles_uaz2206_Wheel,
		texture = vehicles/Vehicles_uaz2206_Shell,
		scale = 0.9,
	}
	
	vehicle uaz2206
	{
		mechanicType = 2,
		offRoadEfficiency = 1.5,
		engineRepairLevel = 4,
		playerDamageProtection = 1,
		engineRPMType = van,

		model
		{
			file = uaz2206Base,
			scale = 1.0000,
			offset = 0.0000 0.0000 0.0000,
		}

		spawnOffsetY = 0.5,

		skin
		{
			texture = Vehicles/Vehicles_uaz2206_Shell,
		}

		skin
		{
			texture = Vehicles/Vehicles_uaz2206_Classic,
		}

		skin
		{
			texture = Vehicles/Vehicles_uaz2206_Medic,
		}

		textureRust = Vehicles/Vehicles_uaz2206_Rust,
		textureMask = Vehicles/Vehicles_uaz2206_Mask,
		textureLights = Vehicles/Vehicles_uaz2206_Lights,
		textureDamage1Shell = Vehicles/Vehicles_uaz2206_Shell_Damaged01,
		textureDamage2Shell = Vehicles/Vehicles_uaz2206_Shell_Damaged02,
		textureDamage1Overlay = Vehicles/Vehicles_uaz2206_Overlays_Damaged01,
		textureDamage2Overlay = Vehicles/Vehicles_uaz2206_Overlays_Damaged02,

		sound
		{
			engine = VehicleEngineVan,
			engineStart = VehicleEngineVan,
			engineTurnOff = VehicleEngineVan,
			horn = VehicleHornVan,
			ignitionFail = VehicleIgnitionFailVan,
		}

		extents = 1.7000 1.4600 4.0200,
		mass = 1050,
		physicsChassisShape = 1.7000 1.4600 4.0200,
		centerOfMassOffset = 0.0000 0.8300 0.0000,
		shadowExtents = 1.7000 4.0200,
		shadowOffset = 0.0000 0.0000,
		engineForce = 3900,
		maxSpeed = 90f,
		gearRatioCount = 5,
		gearRatioR = 4.12,
		gearRatio1 = 3.78,
		gearRatio2 = 2.60,
		gearRatio3 = 1.55,
		gearRatio4 = 1.00,
		gearRatio5 = 0.82,
		engineLoudness = 85,
		engineQuality = 68,
		brakingForce = 70,
		stoppingMovementForce = 4.0f,
		rollInfluence = 1f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 35,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 15,
		suspensionRestLength = 0.3,
		wheelFriction = 1.0f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 7,

		wheel FrontLeft
		{
			front = true,
			offset = 0.6700 -0.0300 1.0800,
			radius = 0.31f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.6700 -0.0300 1.0800,
			radius = 0.31f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.6700 -0.0300 -1.1100,
			radius = 0.31f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.6700 -0.0300 -1.1100,
			radius = 0.31f,
			width = 0.2f,
		}

		template = PassengerSeat7,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.4200 0.7100 1.0700,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3200 -0.2000 1.2800,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.4200 0.7100 1.0700,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3200 -0.2000 1.2800,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger MiddleRight
		{
			position inside
			{
				offset = -0.4200 0.7100 0.3500,
				rotate = 0.0000 180.0000 0.0000,
			}

			position outside
			{
				offset = -1.2000 -0.4700 -0.0700,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatMiddleRight,
			}
		}

		passenger MiddleLeft
		{
			position inside
			{
				offset = 0.4200 0.7100 0.3500,
				rotate = 0.0000 180.0000 0.0000,
			}

			position outside
			{
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.4200 0.7100 -0.7900,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
			}
		}

		passenger RearMiddle
		{
			position inside
			{
				offset = -0.0100 0.7100 -0.7900,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.2000 -0.4700 -0.0700,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearMiddle,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.4200 0.7100 -0.7900,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.2000 -0.4700 -0.0700,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.3000 1.2800 0.5800,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.3100 1.3400 0.6000,
		}

		area SeatFrontLeft
		{
			xywh = 1.2000 1.2000 0.7000 1.3000,
		}

		area SeatFrontRight
		{
			xywh = -1.2000 1.1800 0.7000 1.3200,
		}

		area SeatMiddleRight
		{
			xywh = -1.2000 -0.1600 0.7000 1.3000,
		}

		area SeatMiddleLeft
		{
			xywh = -1.2000 -0.1600 0.7000 1.3000,
		}

		area SeatRearRight
		{
			xywh = -1.2000 -0.1600 0.7000 1.3000,
		}

		area SeatRearLeft
		{
			xywh = -1.2000 -0.1600 0.7000 1.3000,
		}

		area SeatRearMiddle
		{
			xywh = -1.2000 -0.1600 0.7000 1.3000,
		}

		area GasTank
		{
			xywh = 0.0000 0.3400 2.7800 0.7000,
		}

		area TireFrontLeft
		{
			xywh = 1.1100 1.1900 0.4200 0.4200,
		}

		area TireFrontRight
		{
			xywh = -1.1100 1.1900 0.4200 0.4200,
		}

		area TireRearLeft
		{
			xywh = 1.1100 -1.2800 0.4200 0.4200,
		}

		area TireRearRight
		{
			xywh = -1.1100 -1.2800 0.4200 0.4200,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 80,
			}
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatMiddleLeft,
		template = Seat/part/SeatMiddleRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearMiddle,
		template = Seat/part/SeatRearRight,

		part SeatMiddleLeft
		{
			door =,
		}

		part SeatRearLeft
		{
			door =,
		}

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

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

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			container
			{
				capacity = 8,
				test = Vehicles.ContainerAccess.GloveBox,
			}

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part WindshieldRear
		{
			table install
			{
				requireInstalled = DoorRear,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part DoorRear
		{
			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}

			hasLightsRear = false,
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = uaz2206frontwheelleft,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = uaz2206frontwheelright,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = uaz2206backwheelleft,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = uaz2206backwheelright,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Radio,
		template = Headlight,
		template = Holodoss/part/HolodosMiddleLeft,

		physics box
		{
			offset = 0.0000 0.5911 0.0000,
			extents = 1.7800 1.0000 3.9600,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.3200 -0.0989,
			extents = 1.6600 0.4600 3.6000,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 0.1800 -1.9800,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.2600 2.0200,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
