Dataset-map-height: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 16: Line 16:


Each measurement is:
Each measurement is:
200x200 units
200x200 units (from that the max height value is given)


GTA map size:
GTA map size:

Latest revision as of 20:55, 15 January 2022

Dataset: GTA map height

The following table contains the height of the GTA terrain for each 200x200 units.


Click to collapse [-]
Dataset code
--[[

	Indexes x-axis and y-axis:
	-15 > 0 > 15 (31 for each axis)

	Measurements:
	31 * 31 = 961

	Each measurement is:
	200x200 units (from that the max height value is given)

	GTA map size:
	6000 x 6000

	Map size covered for each axis:
	31 * 200 = 6200 units

	Covered from the center:
	6200 / 2 = 3100

	Margin (unintentional):
	3100 - 3000 = 100

	Measurement quality:
	Every 1 unit

	Table name:
	mapHeight

]] --




---------------------------------------------------
-- Calculations [FROM] <world> [TO] <table index>:
--[[
	tableX = math.floor( worldX / 200 + 0.5 )
	tableY = math.floor( worldY / 200 + 0.5 )
	
	-- Get the height from the table:
	height = mapHeight[tableX][tableY]
]]
-- INFO: [math.floor] and [+ 0.5] are used to round the value up/down. 


---------------------------------------------------
-- Calculations [FROM] <table index> [TO] <world>:
--[[
	worldX = tableX * 200
	worldY = tableY * 200
]]

mapHeight = {
	{
		4, 0, 10, 34, 32, 59, 59, 34, 34, 34, 124, 24, 52, 79, 55, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 0, [-10] = 50, [-9] = 31, [-8] = 113,
			[-7] = 101, [-6] = 113, [-5] = 98, [-4] = 129, [-3] = 152, [-2] = 54, [-1] = 27, [0] = 13
	}, {
		57, 30, 30, 32, 31, 48, 41, 38, 35, 55, 50, 41, 64, 82, 48, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 0, [-10] = 33, [-9] = 34,
			[-8] = 113, [-7] = 80, [-6] = 107, [-5] = 124, [-4] = 118, [-3] = 147, [-2] = 133, [-1] = 52, [0] = 65
	}, {
		51, 31, 30, 22, 40, 47, 47, 24, 42, 63, 58, 44, 63, 86, 6, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 0, [-10] = 2, [-9] = 44, [-8] = 64,
			[-7] = 79, [-6] = 88, [-5] = 123, [-4] = 136, [-3] = 118, [-2] = 129, [-1] = 78, [0] = 82
	}, {
		68, 48, 16, 29, 31, 34, 59, 49, 44, 44, 26, 30, 55, 86, 35, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 0, [-10] = 13, [-9] = 38, [-8] = 41,
			[-7] = 41, [-6] = 49, [-5] = 119, [-4] = 129, [-3] = 122, [-2] = 138, [-1] = 62, [0] = 124
	}, {
		60, 51, 44, 34, 56, 38, 48, 51, 24, 25, 34, 16, 32, 53, 54, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 35, [-11] = 90, [-10] = 82, [-9] = 41,
			[-8] = 48, [-7] = 54, [-6] = 64, [-5] = 110, [-4] = 184, [-3] = 144, [-2] = 155, [-1] = 165, [0] = 135
	}, {
		60, 64, 64, 33, 33, 38, 48, 51, 35, 34, 27, 19, 34, 38, 43, [-15] = 0, [-14] = 1, [-13] = 12, [-12] = 31, [-11] = 103, [-10] = 81, [-9] = 52,
			[-8] = 61, [-7] = 75, [-6] = 115, [-5] = 148, [-4] = 121, [-3] = 136, [-2] = 148, [-1] = 178, [0] = 114
	}, {
		122, 125, 35, 35, 33, 26, 20, 20, 25, 35, 38, 34, 34, 38, 48, [-15] = 0, [-14] = 13, [-13] = 27, [-12] = 39, [-11] = 57, [-10] = 62, [-9] = 156,
			[-8] = 85, [-7] = 163, [-6] = 201, [-5] = 212, [-4] = 158, [-3] = 119, [-2] = 133, [-1] = 46, [0] = 38
	}, {
		124, 113, 35, 35, 25, 39, 47, 23, 38, 35, 35, 38, 34, 38, 46, [-15] = 0, [-14] = 13, [-13] = 25, [-12] = 80, [-11] = 93, [-10] = 42, [-9] = 77,
			[-8] = 86, [-7] = 329, [-6] = 277, [-5] = 180, [-4] = 102, [-3] = 119, [-2] = 113, [-1] = 69, [0] = 74
	}, {
		71, 74, 30, 34, 55, 63, 73, 75, 38, 124, 35, 31, 35, 38, 41, [-15] = 0, [-14] = 13, [-13] = 25, [-12] = 34, [-11] = 40, [-10] = 46, [-9] = 54,
			[-8] = 76, [-7] = 131, [-6] = 131, [-5] = 84, [-4] = 112, [-3] = 139, [-2] = 172, [-1] = 165, [0] = 59
	}, {
		79, 71, 38, 38, 58, 76, 75, 75, 127, 130, 38, 165, 34, 45, 51, [-15] = 0, [-14] = 13, [-13] = 25, [-12] = 27, [-11] = 29, [-10] = 44, [-9] = 42,
			[-8] = 40, [-7] = 84, [-6] = 86, [-5] = 107, [-4] = 217, [-3] = 213, [-2] = 115, [-1] = 33, [0] = 77
	}, {
		64, 68, 16, 35, 85, 85, 65, 107, 100, 99, 103, 74, 31, 26, 35, [-15] = 0, [-14] = 25, [-13] = 32, [-12] = 44, [-11] = 26, [-10] = 39, [-9] = 41,
			[-8] = 50, [-7] = 52, [-6] = 52, [-5] = 115, [-4] = 200, [-3] = 225, [-2] = 131, [-1] = 63, [0] = 42
	}, {
		127, 104, 16, 31, 85, 96, 73, 68, 77, 99, 103, 91, 68, 38, 47, [-15] = 0, [-14] = 36, [-13] = 41, [-12] = 38, [-11] = 61, [-10] = 39, [-9] = 40,
			[-8] = 50, [-7] = 59, [-6] = 66, [-5] = 101, [-4] = 223, [-3] = 222, [-2] = 130, [-1] = 121, [0] = 51
	}, {
		153, 125, 11, 38, 57, 32, 77, 38, 38, 38, 79, 54, 114, 128, 38, [-15] = 0, [-14] = 38, [-13] = 38, [-12] = 49, [-11] = 62, [-10] = 53, [-9] = 46,
			[-8] = 50, [-7] = 80, [-6] = 93, [-5] = 105, [-4] = 140, [-3] = 168, [-2] = 169, [-1] = 141, [0] = 86
	}, {
		71, 19, 40, 40, 38, 35, 31, 30, 31, 25, 35, 38, 61, 78, 41, [-15] = 0, [-14] = 0, [-13] = 38, [-12] = 48, [-11] = 62, [-10] = 46, [-9] = 43,
			[-8] = 56, [-7] = 80, [-6] = 93, [-5] = 94, [-4] = 84, [-3] = 100, [-2] = 57, [-1] = 46, [0] = 54
	}, {
		0, 0, 32, 35, 34, 41, 45, 46, 34, 40, 29, 36, 36, 39, 32, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 2, [-10] = 3, [-9] = 8, [-8] = 33,
			[-7] = 37, [-6] = 12, [-5] = 11, [-4] = 11, [-3] = 17, [-2] = 10, [-1] = 0, [0] = 20
	}, [-15] = {
		4, 6, 26, 40, 45, 35, 0, 0, 0, 68, 135, 227, 227, 236, 0, [-15] = 0, [-14] = 0, [-13] = 0, [-12] = 0, [-11] = 0, [-10] = 36, [-9] = 69, [-8] = 127,
			[-7] = 127, [-6] = 32, [-5] = 32, [-4] = 14, [-3] = 11, [-2] = 5, [-1] = 3, [0] = 4
	}, [-14] = {
		22, 48, 104, 80, 79, 60, 66, 225, 109, 225, 197, 252, 283, 293, 31, [-15] = 0, [-14] = 12, [-13] = 11, [-12] = 17, [-11] = 36, [-10] = 135,
			[-9] = 252, [-8] = 343, [-7] = 342, [-6] = 157, [-5] = 48, [-4] = 59, [-3] = 64, [-2] = 71, [-1] = 24, [0] = 19
	}, [-13] = {
		55, 104, 104, 98, 87, 64, 66, 225, 109, 225, 78, 74, 118, 223, 95, [-15] = 0, [-14] = 40, [-13] = 69, [-12] = 46, [-11] = 124, [-10] = 298,
			[-9] = 414, [-8] = 442, [-7] = 383, [-6] = 293, [-5] = 176, [-4] = 316, [-3] = 316, [-2] = 98, [-1] = 44, [0] = 55
	}, [-12] = {
		76, 88, 76, 93, 93, 79, 37, 55, 0, 0, 20, 42, 89, 198, 42, [-15] = 0, [-14] = 57, [-13] = 73, [-12] = 126, [-11] = 119, [-10] = 404, [-9] = 485,
			[-8] = 526, [-7] = 422, [-6] = 312, [-5] = 187, [-4] = 316, [-3] = 279, [-2] = 111, [-1] = 68, [0] = 68
	}, [-11] = {
		68, 111, 91, 97, 108, 110, 28, 8, 0, 0, 14, 49, 179, 197, 71, [-15] = 0, [-14] = 72, [-13] = 82, [-12] = 81, [-11] = 110, [-10] = 329, [-9] = 487,
			[-8] = 483, [-7] = 400, [-6] = 272, [-5] = 113, [-4] = 92, [-3] = 111, [-2] = 85, [-1] = 62, [0] = 68
	}, [-10] = {
		71, 159, 209, 145, 95, 90, 30, 15, 0, 0, 35, 83, 177, 175, 122, [-15] = 0, [-14] = 68, [-13] = 127, [-12] = 138, [-11] = 174, [-10] = 185,
			[-9] = 273, [-8] = 268, [-7] = 243, [-6] = 78, [-5] = 66, [-4] = 66, [-3] = 71, [-2] = 74, [-1] = 63, [0] = 56
	}, [-9] = {
		48, 115, 332, 295, 201, 93, 61, 17, 54, 59, 51, 115, 115, 129, 64, [-15] = 0, [-14] = 53, [-13] = 79, [-12] = 139, [-11] = 182, [-10] = 199,
			[-9] = 176, [-8] = 47, [-7] = 76, [-6] = 88, [-5] = 176, [-4] = 158, [-3] = 53, [-2] = 53, [-1] = 52, [0] = 89
	}, [-8] = {
		53, 53, 147, 139, 139, 93, 20, 3, 66, 69, 56, 97, 103, 108, 87, [-15] = 40, [-14] = 61, [-13] = 163, [-12] = 198, [-11] = 127, [-10] = 140,
			[-9] = 175, [-8] = 137, [-7] = 146, [-6] = 169, [-5] = 189, [-4] = 186, [-3] = 41, [-2] = 15, [-1] = 31, [0] = 55
	}, [-7] = {
		53, 60, 109, 105, 109, 17, 21, 18, 74, 75, 130, 130, 93, 109, 96, [-15] = 53, [-14] = 167, [-13] = 161, [-12] = 137, [-11] = 133, [-10] = 125,
			[-9] = 145, [-8] = 196, [-7] = 194, [-6] = 180, [-5] = 205, [-4] = 194, [-3] = 41, [-2] = 39, [-1] = 39, [0] = 15
	}, [-6] = {
		18, 34, 17, 83, 147, 42, 32, 41, 87, 144, 132, 132, 114, 107, 90, [-15] = 67, [-14] = 107, [-13] = 142, [-12] = 142, [-11] = 124, [-10] = 78,
			[-9] = 152, [-8] = 182, [-7] = 207, [-6] = 173, [-5] = 184, [-4] = 173, [-3] = 72, [-2] = 32, [-1] = 39, [0] = 72
	}, [-5] = {
		0, 19, 0, 74, 63, 65, 65, 46, 155, 143, 103, 94, 80, 90, 73, [-15] = 57, [-14] = 187, [-13] = 182, [-12] = 184, [-11] = 166, [-10] = 148,
			[-9] = 115, [-8] = 169, [-7] = 231, [-6] = 231, [-5] = 225, [-4] = 171, [-3] = 135, [-2] = 74, [-1] = 104, [0] = 57
	}, [-4] = {
		69, 0, 18, 50, 72, 63, 77, 82, 139, 139, 153, 161, 135, 91, 69, [-15] = 5, [-14] = 187, [-13] = 190, [-12] = 171, [-11] = 168, [-10] = 147,
			[-9] = 173, [-8] = 200, [-7] = 206, [-6] = 139, [-5] = 156, [-4] = 247, [-3] = 209, [-2] = 125, [-1] = 154, [0] = 101
	}, [-3] = {
		105, 1, 16, 15, 46, 37, 78, 86, 143, 126, 135, 161, 152, 94, 72, [-15] = 0, [-14] = 153, [-13] = 175, [-12] = 149, [-11] = 172, [-10] = 149,
			[-9] = 104, [-8] = 73, [-7] = 116, [-6] = 116, [-5] = 206, [-4] = 205, [-3] = 83, [-2] = 113, [-1] = 167, [0] = 162
	}, [-2] = {
		25, 1, 34, 33, 30, 57, 82, 165, 132, 131, 133, 123, 123, 113, 103, [-15] = 0, [-14] = 169, [-13] = 168, [-12] = 117, [-11] = 174, [-10] = 180,
			[-9] = 112, [-8] = 114, [-7] = 80, [-6] = 80, [-5] = 151, [-4] = 138, [-3] = 116, [-2] = 58, [-1] = 171, [0] = 146
	}, [-1] = {
		27, 27, 24, 27, 31, 54, 172, 79, 127, 128, 121, 111, 80, 97, 96, [-15] = 38, [-14] = 162, [-13] = 162, [-12] = 143, [-11] = 68, [-10] = 112,
			[-9] = 26, [-8] = 59, [-7] = 46, [-6] = 64, [-5] = 81, [-4] = 79, [-3] = 4, [-2] = 39, [-1] = 93, [0] = 26
	}, [0] = {
		25, 5, 23, 38, 32, 31, 57, 56, 27, 29, 126, 39, 78, 85, 52, [-15] = 30, [-14] = 159, [-13] = 177, [-12] = 131, [-11] = 0, [-10] = 0, [-9] = 10,
			[-8] = 48, [-7] = 37, [-6] = 102, [-5] = 59, [-4] = 101, [-3] = 116, [-2] = 46, [-1] = 79, [0] = 25
	}
}