module Base
{
	model URAL_GRBase
	{
		mesh = vehicles/Vehicle_URAL_GR_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model URALfrontwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALfrontwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALbackwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALbackwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	vehicle URAL_GR
	{
		mechanicType = 2,
		offRoadEfficiency = 100,
		engineRepairLevel = 5,
		playerDamageProtection = 10,

		model
		{
			file = URAL_GRBase,
			scale = 1.4000,
			7500,
			offset = 0.0201 0.3691 0.0738,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_GRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_YEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_ORG,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_BEZ,
		}

		textureMask = Vehicles/Vehicle_URAL_MIL_Mask,
		textureLights = Vehicles/Vehicle_URAL_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_URAL_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_URAL_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_URAL_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_URAL_Damage2,
		textureRust = Vehicles/Vehicle_URAL_Rust,

		sound
		{
			engine = VehicleEngineStepVan,
			engineStart = VehicleEngineStepVan,
			engineTurnOff = VehicleEngineStepVan,
			horn = VehicleHornVan,
			ignitionFail = VehicleIgnitionFailSUV,
		}

		extents = 1.4631 1.1007 4.2819,
		mass = 1200,
		physicsChassisShape = 1.4228 1.1007 4.2282,
		centerOfMassOffset = 0.0201 0.4899 0.0134,
		shadowExtents = 1.4134 4.1096,
		shadowOffset = 0.0134 0.0230,
		engineForce = 5000,
		engineQuality = 50,
		engineLoudness = 130,
		maxSpeed = 40f,
		gearRatioCount = 5,
		gearRatio1 = 7.82,
		gearRatio2 = 4.03,
		gearRatio3 = 2.50,
		gearRatio4 = 1.53,
		gearRatio5 = 1.00,
		brakingForce = 50,
		rollInfluence = 0.4f,
		steeringIncrement = 0.8,
		steeringClamp = 0.2,
		suspensionStiffness = 60,
		suspensionCompression = 0.75,
		suspensionDamping = 0.95,
		maxSuspensionTravelCm = 4,
		suspensionRestLength = 0.2,
		wheelFriction = 0.8f,
		frontEndHealth = 250,
		rearEndHealth = 500,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.5638 -0.2752 1.3826,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5772 -0.2752 1.3826,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = -0.0067 -0.2752 -1.4027,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.0067 -0.2752 -0.6309,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2685 0.3691 0.6779,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0201 -0.4765 0.7651,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2550 0.3758 0.6779,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9866 -0.4765 0.7651,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0268 2.3691 0.5503 0.4295,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.2416 1.1678 0.4295,
		}

		area SeatFrontLeft
		{
			xywh = 0.9597 0.8389 0.4295 0.4564,
		}

		area SeatFrontRight
		{
			xywh = -0.9262 0.8389 0.4295 0.4564,
		}

		area GasTank
		{
			xywh = 0.9597 0.2617 0.4295 0.4295,
		}

		area TireFrontLeft
		{
			xywh = 0.9597 1.4564 0.4295 0.4295,
		}

		area TireFrontRight
		{
			xywh = -0.9262 1.4564 0.4295 0.4295,
		}

		area TireRearLeft
		{
			xywh = 0.9597 -0.5369 0.4295 0.4295,
		}

		area TireRearRight
		{
			xywh = -0.9262 -1.2886 0.4295 0.4295,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 600,
			}
		}

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

		template = GloveBox,

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

			container
			{
				capacity = 20,
				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 = URALfrontwheelleft,
			}
		}

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

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

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

		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.1275 2.2819,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
