ASA: Tweak spawning height of hedgehogs
authorWuzzy <Wuzzy2@mail.ru>
Mon, 14 Jan 2019 17:12:12 +0100
changeset 14602 72b4bdd5052c
parent 14601 1a68c8a07d1f
child 14603 e74acf5141fd
ASA: Tweak spawning height of hedgehogs
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua	Mon Jan 14 17:04:18 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua	Mon Jan 14 17:12:12 2019 +0100
@@ -26,7 +26,7 @@
 local hero = {
 	name = loc("Hog Solo"),
 	x = 850,
-	y = 460,
+	y = 469,
 	mortarAmmo = 2,
 	firepunchAmmo = 1,
 	deagleAmmo = 4,
@@ -35,11 +35,11 @@
 }
 local heroTurns = 0
 local enemies = {
-	{ name = GetAmmoName(amMortar), x = 1890, y = 520, weapon = amMortar, additionalWeapons = {}},
-	{ name = GetAmmoName(amDEagle), x = 1390, y = 790, weapon = amDEagle, additionalWeapons = {}},
-	{ name = GetAmmoName(amGrenade), x = 186, y = 48, weapon = amGrenade, additionalWeapons = {}},
-	{ name = GetAmmoName(amFirePunch), x = 330, y = 270, weapon = amFirePunch, additionalWeapons = {}},
-	{ name = GetAmmoName(amBazooka), x = 1950, y = 150, weapon = amBazooka, additionalWeapons = {}},
+	{ name = GetAmmoName(amMortar), x = 1890, y = 535, weapon = amMortar, additionalWeapons = {}},
+	{ name = GetAmmoName(amDEagle), x = 1390, y = 815, weapon = amDEagle, additionalWeapons = {}},
+	{ name = GetAmmoName(amGrenade), x = 186, y = 62, weapon = amGrenade, additionalWeapons = {}},
+	{ name = GetAmmoName(amFirePunch), x = 330, y = 285, weapon = amFirePunch, additionalWeapons = {}},
+	{ name = GetAmmoName(amBazooka), x = 1950, y = 152, weapon = amBazooka, additionalWeapons = {}},
 }
 -- teams
 local teamA = {
@@ -74,13 +74,16 @@
 	teamA.name = AddMissionTeam(teamA.color)
 	hero.gear = AddMissionHog(100)
 	hero.name = GetHogName(hero.gear)
-	AnimSetGearPosition(hero.gear, hero.x, hero.y)
+	SetGearPosition(hero.gear, hero.x, hero.y)
 	-- enemies
 	shuffleHogs(enemies)
 	teamB.name = AddTeam(teamB.name, teamB.color, "skull", "Island", "Default", "cm_skull")
 	for i=1,table.getn(enemies) do
 		enemies[i].gear = AddHog(enemies[i].name, 1, 100, "war_desertgrenadier1")
-		AnimSetGearPosition(enemies[i].gear, enemies[i].x, enemies[i].y)
+		SetGearPosition(enemies[i].gear, enemies[i].x, enemies[i].y)
+		if enemies[i].x > hero.x then
+			HogTurnLeft(enemies[i].gear, true)
+		end
 	end
 
 	initCheckpoint("death02")
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Mon Jan 14 17:04:18 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Mon Jan 14 17:12:12 2019 +0100
@@ -34,12 +34,12 @@
 local hero = {
 	name = loc("Hog Solo"),
 	x = 1300,
-	y = 850
+	y = 948
 }
 local runner = {
 	name = loc("Crazy Runner"),
 	places = {
-		{x = 1400,y = 850, turnTime = 0},
+		{x = 1400,y = 904, turnTime = 0},
 		{x = 3880,y = 33, turnTime = 30000},
 		{x = 250,y = 1780, turnTime = 25000},
 		{x = 3850,y = 1940, turnTime = 20000},