share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 10930 1974f4aa8ec6
parent 10918 1b878d1d32ce
child 10932 72544595826e
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue May 05 12:48:25 2015 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Thu May 07 21:44:19 2015 +0900
@@ -36,6 +36,7 @@
 
 local activationStage = 0
 local jet = nil
+local infUFO = nil
 
 local fMod = 1000000 -- 1
 local roundLimit = 3
@@ -1177,6 +1178,166 @@
 	SetTimer(AddGear(1946, 930, gtAirMine, 0, 0, 0, 0), 1)
 	SetTimer(AddGear(1953, 975, gtAirMine, 0, 0, 0, 0), 1)
 
+	elseif mapID == "6" then
+
+	---newish airmine landflag testmap
+	------ GIRDER LIST ------
+	LoadSprite(194, 388, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(338, 334, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(484, 390, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(139, 543, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(544, 540, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(201, 687, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(485, 684, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(259, 839, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(426, 837, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(259, 999, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(426, 998, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(259, 1159, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(426, 1158, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(259, 1318, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(426, 1318, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(426, 1478, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(259, 1478, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(515, 1477, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(659, 1537, sprAmGirder, 5, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(774, 1652, sprAmGirder, 5, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(836, 1799, sprAmGirder, 6, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(907, 1890, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1067, 1890, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1212, 1823, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1359, 1764, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1504, 1822, sprAmGirder, 5, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1647, 1886, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1807, 1886, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(1362, 1869, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1968, 1885, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2111, 1823, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2257, 1769, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2403, 1825, sprAmGirder, 5, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2549, 1887, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2709, 1887, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2868, 1887, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2958, 1854, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2928, 1773, sprAmGirder, 1, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2898, 1692, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(2928, 1613, sprAmGirder, 3, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3045, 1584, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3162, 1619, sprAmGirder, 1, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3192, 1697, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3160, 1777, sprAmGirder, 3, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3128, 1857, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3218, 1886, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3379, 1885, sprAmGirder, 4, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3524, 1818, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3641, 1702, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3756, 1585, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(4021, 1316, sprAmGirder, 7, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3842, 1503, sprAmGirder, 3, 2516582650, nil, nil, nil, lfIndestructible)
+	LoadSprite(3899, 1409, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3694, 1974, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3809, 1858, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3925, 1741, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(4022, 1613, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2256, 1877, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3046, 1728, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(501, 1777, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(572, 1868, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3372, 771, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3517, 715, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3663, 774, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3313, 923, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3373, 1066, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3518, 1128, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3662, 1065, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3723, 924, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2474, 1373, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2474, 1252, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2507, 1200, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2626, 1200, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2716, 1270, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2505, 1464, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2625, 1464, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2716, 1391, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1544, 300, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1691, 245, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1838, 304, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1487, 453, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1548, 597, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1692, 657, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1835, 593, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1900, 451, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3527, 93, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3586, 238, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3703, 354, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3820, 471, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3938, 588, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(4044, 651, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3618, 22, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3779, 22, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(3939, 22, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(4047, 22, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(936, 1198, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1080, 1143, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1225, 1202, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1278, 1352, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(881, 1351, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(943, 1496, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1219, 1495, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1160, 1645, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(998, 1649, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1160, 1766, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(998, 1770, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1077, 1824, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1824, 1138, sprAmGirder, 6, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(834, 606, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(950, 593, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1035, 683, sprAmGirder, 1, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(748, 696, sprAmGirder, 3, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(764, 780, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(850, 870, sprAmGirder, 1, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(937, 850, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(1018, 768, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2589, 444, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2704, 329, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2604, 560, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2719, 675, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2832, 689, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2947, 573, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2820, 317, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2936, 433, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)
+	LoadSprite(2987, 489, sprAmGirder, 1, 4294967295, nil, nil, nil, lfNormal)
+
+
+
+	------ AMMO CRATE LIST ------
+	tempG = SpawnAmmoCrate(1314, 1845, amBazooka)
+	tempG = SpawnAmmoCrate(1413, 1845, amBazooka)
+	tempG = SpawnAmmoCrate(2202, 1853, amBazooka)
+	tempG = SpawnAmmoCrate(2309, 1853, amBazooka)
+	tempG = SpawnAmmoCrate(3024, 1704, amBazooka)
+	tempG = SpawnAmmoCrate(3076, 1704, amBazooka)
+	tempG = SpawnAmmoCrate(2252, 1853, amBazooka)
+	tempG = SpawnAmmoCrate(1363, 1845, amBazooka)
+	tempG = SpawnAmmoCrate(548, 1844, amBazooka)
+	tempG = SpawnAmmoCrate(606, 1844, amBazooka)
+	tempG = SpawnAmmoCrate(576, 1820, amBazooka)
+	tempG = SpawnAmmoCrate(1824, 1042, amBazooka)
+
+
+	------ AIR MINE LIST ------
+	SetTimer(AddGear(3517, 995, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(3448, 858, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(3582, 848, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(3758, 158, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(3964, 297, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(2772, 506, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(2602, 1339, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(1638, 370, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(1743, 522, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(894, 726, gtAirMine, 0, 0, 0, 0), 1)
+	SetTimer(AddGear(1080, 1690, gtAirMine, 0, 0, 0, 0), 1)
+
 		else
 
 
@@ -1627,6 +1788,7 @@
 function onParameters()
     parseParams()
 	mapID = params["m"]
+	infUFO = params["ufo"]
 end
 
 function onPreviewInit()
@@ -1786,8 +1948,8 @@
 function onGameTick20()
 
 
-		if jet ~= nil then
-			--SetHealth(jet, 2000)
+		if (jet ~= nil) and (infUFO == "true") then
+			SetHealth(ufoGear, 2000)
 		end
 
         -- airstrike detected, convert this into a potential waypoint spot