module Base
{
	model UAZ3302TENTBase
	{
		mesh = vehicles/Vehicle_UAZ452_Body|UAZ3302,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model UAZ3302TENT_Tent
	{
		mesh = vehicles/Vehicle_UAZ452_Body|Tent3302,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model UAZfrontwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheel,           
	}
	model UAZfrontwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheel,        
	}
	model UAZbackwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheel,
	}
	model UAZbackwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheel, 
	}
	vehicle UAZ3302TENT
	{
		mechanicType = 2,
		offRoadEfficiency = 1.8,
		engineRepairLevel = 5,
		playerDamageProtection = 1.3,

		model
		{
			file = UAZ3302TENTBase,
			scale = 1.4000,
			7500,
			offset = 0.0000 0.2071 0.0500,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_1,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_2,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_3,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_4,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_5,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_6,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ3302TENT_7,
		}

		textureMask = Vehicles/Vehicle_UAZ3302_Mask,
		textureLights = Vehicles/Vehicle_UAZ3302_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_UAZ3302_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_UAZ3302_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_UAZ3302_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_UAZ3302_Damage2,
		textureRust = Vehicles/Vehicle_UAZ3302_Rust,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = VehicleEngineOffRoad,
			engineTurnOff = VehicleEngineOffRoad,
			horn = VehicleHornJeep,
			ignitionFail = VehicleIgnitionFailOffRoad,
		}

		extents = 1.1000 0.6571 2.6429,
		mass = 1200,
		physicsChassisShape = 1.0429 0.6571 2.5857,
		centerOfMassOffset = 0.0000 0.4286 -0.1214,
		shadowExtents = 1.0446 2.5122,
		shadowOffset = 0.0000 -0.1431,
		engineForce = 3500,
		engineQuality = 40,
		engineLoudness = 75,
		maxSpeed = 50f,
		gearRatioCount = 5,
		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 = 5,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 100,
		rearEndHealth = 100,
		seats = 2,

		part Tent
		{
			category = nodisplay,

			model Tent
			{
				file = UAZ3302TENT_Tent,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.3929 -0.2500 0.5571,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3929 -0.2500 0.5571,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3929 -0.2500 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3929 -0.2500 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2571 0.2000 0.6000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8857 -0.4643 0.6000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2857 0.2000 0.6000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8786 -0.4643 0.6000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.4143 0.5571 0.4286,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.7071 0.9714 0.5286,
		}

		area SeatFrontLeft
		{
			xywh = 0.7643 0.7429 0.4286 0.6000,
		}

		area SeatFrontRight
		{
			xywh = -0.7643 0.7429 0.4286 0.6000,
		}

		area GasTank
		{
			xywh = 0.7643 -0.1857 0.4286 0.4286,
		}

		area TireFrontLeft
		{
			xywh = 0.7643 0.6571 0.4286 0.4286,
		}

		area TireFrontRight
		{
			xywh = -0.7643 0.6571 0.4286 0.4286,
		}

		area TireRearLeft
		{
			xywh = 0.7643 -0.7143 0.4286 0.4286,
		}

		area TireRearRight
		{
			xywh = -0.7643 -0.7143 0.4286 0.4286,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 250,
			}
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = UAZfrontwheelleft,
			}
		}

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

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

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

		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 = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0131 1.2549,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0131 -1.6863,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
