module Base
{
	model GAZEL_TENTBase
	{
		mesh = vehicles/Vehicle_GAZEL_TENT_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}

	model GAZELfrontwheelleft
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_FRONT,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZELfrontwheelright
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_FRONT,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZELbackwheelleft
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_REAR,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZELbackwheelright
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_REAR,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}

	vehicle GAZEL_TENT
	{
		mechanicType = 2,
		offRoadEfficiency = 2,
		engineRepairLevel = 5,
		playerDamageProtection = 1.3,

		model
		{
			file = GAZEL_TENTBase,
			scale = 1.6700,
			7500,
			offset = 0.0120 0.1737 0.0659,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_WHITE,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_WHITE2,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_WHITE3,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BLUE,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BLUE2,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BLUE3,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BEZH2,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_BEZH3,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_GRAY,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_GRAY2,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_GRAY3,
		}

		textureMask = Vehicles/Vehicle_GAZEL_Mask,
		textureLights = Vehicles/Vehicle_GAZEL_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_GAZEL_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_GAZEL_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_GAZEL_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_GAZEL_Damage2,
		textureRust = Vehicles/Vehicle_GAZEL_Rust,

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

		extents = 1.2575 0.6347 3.0299,
		mass = 1150,
		physicsChassisShape = 1.2335 0.4192 3.0180,
		centerOfMassOffset = 0.0000 0.0958 -0.0120,
		shadowExtents = 0.9500 2.8024,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 5000,
		engineQuality = 60,
		engineLoudness = 75,
		maxSpeed = 60f,
		gearRatioCount = 5,
		gearRatioR = 7.09,
		gearRatio1 = 5.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 60,
		rollInfluence = 0.9f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 40,
		suspensionCompression = 0.83,
		suspensionDamping = 0.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 100,
		rearEndHealth = 100,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3832 -0.2156 0.8743,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4251 -0.2156 0.8743,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3832 -0.2216 -0.6946,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.4192 -0.2216 -0.6946,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1916 -0.1018 0.4251,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7964 -0.4731 0.4012,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1916 -0.1018 0.4251,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8144 -0.4731 0.4012,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.6647 1.1497 0.4311,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.7784 1.2575 0.5030,
		}

		area SeatFrontLeft
		{
			xywh = 0.8443 0.6707 0.4311 0.6946,
		}

		area SeatFrontRight
		{
			xywh = -0.8443 0.6707 0.4311 0.6946,
		}

		area GasTank
		{
			xywh = 0.8443 -0.1916 0.4311 0.4311,
		}

		area TireFrontLeft
		{
			xywh = 0.8443 0.9281 0.4311 0.4311,
		}

		area TireFrontRight
		{
			xywh = -0.8443 0.9281 0.4311 0.4311,
		}

		area TireRearLeft
		{
			xywh = 0.8443 -0.6287 0.4311 0.4311,
		}

		area TireRearRight
		{
			xywh = -0.8443 -0.6287 0.4311 0.4311,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 450,
			}
		}

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

		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,
		template = Windshield/part/WindshieldRear,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		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,

		attachment trailerfront
		{
			offset = 0.0000 -0.1677 1.6108,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0539 -1.7425,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
