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

	model GAZ21frontwheelleft
	{
		mesh = vehicles/Vehicle_GAZ21_Wheel,
		texture = vehicles/Vehicle_GAZ21_wheel,
	}
	model GAZ21frontwheelright
	{
		mesh = vehicles/Vehicle_GAZ21_Wheel,
		texture = vehicles/Vehicle_GAZ21_wheel,
	}
	model GAZ21backwheelleft
	{
		mesh = vehicles/Vehicle_GAZ21_Wheel,
		texture = vehicles/Vehicle_GAZ21_wheel,
	}
	model GAZ21backwheelright
	{
		mesh = vehicles/Vehicle_GAZ21_Wheel,
		texture = vehicles/Vehicle_GAZ21_wheel,
	}

	vehicle GAZ24_TAXI
	{
		mechanicType = 3,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 5,
		playerDamageProtection = 1,

		model
		{
			file = GAZ24_TAXIBase,
			scale = 1.8000,
			offset = 0.0000 0.1462 0.0409,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZ24_TAXI_1,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZ24_TAXI_2,
		}

		textureMask = Vehicles/Vehicle_GAZ24_Mask,
		textureLights = Vehicles/Vehicle_GAZ24_lights,
		textureDamage1Overlay = Vehicles/Vehicle_GAZ24_Shell_Damaged01,
		textureDamage2Overlay = Vehicles/Vehicle_GAZ24_Shell_Damaged02,
		textureDamage1Shell = Vehicles/Vehicle_GAZ24_Shell_Damaged01,
		textureDamage2Shell = Vehicles/Vehicle_GAZ24_Shell_Damaged02,
		textureRust = Vehicles/Vehicle_GAZ24_Rust,

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

		extents = 0.9240 0.6316 2.4444,
		mass = 1200,
		physicsChassisShape = 0.9240 0.6199 2.4444,
		centerOfMassOffset = 0.0000 0.3158 -0.0292,
		shadowExtents = 0.8346 2.2639,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 5000,
		engineQuality = 50,
		engineLoudness = 90,
		maxSpeed = 90f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		gearRatio4 = 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 = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3158 -0.1345 0.6608,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3216 -0.1345 0.6608,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3158 -0.1345 -0.6082,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3216 -0.1345 -0.6082,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1988 0.0643 -0.0409,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6550 -0.4152 0.0526,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1988 0.0643 -0.0409,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6608 -0.5614 0.0468,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1988 0.0643 -0.4503,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6667 -0.4094 -0.4094,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1988 0.0643 -0.4386,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6608 -0.4094 -0.3801,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3216 0.6901 0.4211,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.5029 0.7135 0.5146,
		}

		area SeatFrontLeft
		{
			xywh = 0.6608 0.1696 0.4211 0.5380,
		}

		area SeatFrontRight
		{
			xywh = -0.6608 0.1696 0.4211 0.5380,
		}

		area SeatRearRight
		{
			xywh = -0.6608 -0.2632 0.4211 0.4912,
		}

		area SeatRearLeft
		{
			xywh = 0.6608 -0.2632 0.4211 0.4912,
		}

		area GasTank
		{
			xywh = 0.6608 -1.0526 0.4211 0.4211,
		}

		area TireFrontLeft
		{
			xywh = 0.5965 0.7895 0.4211 0.4211,
		}

		area TireFrontRight
		{
			xywh = -0.5965 0.7895 0.4211 0.4211,
		}

		area TireRearLeft
		{
			xywh = 0.5965 -0.6725 0.4211 0.4211,
		}

		area TireRearRight
		{
			xywh = -0.5965 -0.6725 0.4211 0.4211,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 75,
			}
		}

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

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

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

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

		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.0957 1.1809,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0904 -1.3723,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
