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

	model GAZEL_VANfrontwheelleft
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_FRONT,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZEL_VANfrontwheelright
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_FRONT,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZEL_VANbackwheelleft
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_REAR,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}
	model GAZEL_VANbackwheelright
	{
		mesh = vehicles/Vehicle_GAZEL_Wheel_REAR,
		texture = vehicles/Vehicle_GAZEL_wheel,
	}

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

		model
		{
			file = GAZEL_VAN_PASSBase,
			scale = 1.6300,
			7500,
			offset = 0.0123 0.1718 0.1534,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_BLUE,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_CHERRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_GRAY,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_WHITE,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZEL_VAN_PASS_TAXI,
		}

		textureMask = Vehicles/Vehicle_GAZEL_VAN_PASS_Mask,
		textureLights = Vehicles/Vehicle_GAZEL_VAN_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_GAZEL_VAN_PASS_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_GAZEL_VAN_PASS_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_GAZEL_VAN_PASS_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_GAZEL_VAN_PASS_Damage2,
		textureRust = Vehicles/Vehicle_GAZEL_VAN_PASS_Rust,

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

		extents = 1.1288 0.6380 3.0307,
		mass = 1100,
		physicsChassisShape = 1.1288 0.9080 3.0184,
		centerOfMassOffset = 0.0000 0.3742 0.0000,
		shadowExtents = 0.9799 2.8024,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 4000,
		engineQuality = 55,
		engineLoudness = 73,
		maxSpeed = 60f,
		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 = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 100,
		rearEndHealth = 100,
		seats = 6,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3804 -0.2147 0.8160,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4233 -0.2147 0.8160,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3804 -0.2147 -0.7914,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.4172 -0.2147 -0.7914,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat6,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2638 0.2393 0.3681,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7485 -0.4663 0.3620,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2883 0.2393 0.3681,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7853 -0.4663 0.3620,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger MiddleLeft
		{
			position inside
			{
				offset = 0.2638 0.2393 -0.3006,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7730 -0.3252 -0.1534,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatMiddleLeft,
			}
		}

		passenger MiddleRight
		{
			position inside
			{
				offset = -0.2883 0.2393 -0.3006,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7730 -0.3252 -0.1534,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatMiddleRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.2638 0.2393 -0.9141,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7730 -0.4663 -0.1534,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.2883 0.2393 -0.9141,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7730 -0.4663 -0.1534,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.6871 0.9571 0.4294,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.7669 1.1043 0.5031,
		}

		area SeatFrontLeft
		{
			xywh = 0.7791 0.7117 0.4294 0.6994,
		}

		area SeatFrontRight
		{
			xywh = -0.7791 0.7117 0.4294 0.6994,
		}

		area SeatMiddleLeft
		{
			xywh = 0.5644 0.7423 0.0000 0.4049,
		}

		area SeatMiddleRight
		{
			xywh = -0.5644 0.0000 0.0000 0.4049,
		}

		area SeatRearRight
		{
			xywh = -0.7791 0.0000 0.4294 0.6503,
		}

		area SeatRearLeft
		{
			xywh = -0.7791 0.0000 0.4294 0.6503,
		}

		area GasTank
		{
			xywh = 0.7791 0.2147 0.4294 0.4294,
		}

		area TireFrontLeft
		{
			xywh = 0.7853 0.9264 0.4294 0.4294,
		}

		area TireFrontRight
		{
			xywh = -0.7791 0.9264 0.4294 0.4294,
		}

		area TireRearLeft
		{
			xywh = 0.7791 -0.6258 0.4294 0.4294,
		}

		area TireRearRight
		{
			xywh = -0.7791 -0.6258 0.4294 0.4294,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 90,
			}
		}

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

		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 = 10,
				test = Vehicles.ContainerAccess.GloveBox,
			}

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

		template = GasTank,

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

			uninstall
			{
				skills = Mechanics:5,
				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/DoorRearRight,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		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:2,
				recipes = Intermediate Mechanics,
			}

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

		template = Radio,
		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.1718 1.5644,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.1166 -1.8712,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
