share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
branchspacecampaign
changeset 9598 5c378d7d2e4d
parent 9597 83fa1ba837b8
child 9599 504a41e1a27a
equal deleted inserted replaced
9597:83fa1ba837b8 9598:5c378d7d2e4d
    83 	-- Hog Solo
    83 	-- Hog Solo
    84 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
    84 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
    85 	hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
    85 	hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
    86 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    86 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    87 	-- enemies
    87 	-- enemies
       
    88 	local hats = { "Bandit", "fr_apple", "fr_banana", "fr_lemon", "fr_orange",
       
    89 					"fr_pumpkin", "Gasmask", "NinjaFull", "NinjaStraight", "NinjaTriangle" }
    88 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy")
    90 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy")
    89 	for i=1,table.getn(enemiesEven) do
    91 	for i=1,table.getn(enemiesEven) do
    90 		enemiesEven[i].gear = AddHog(enemiesEven[i].name, 1, 100, "war_desertgrenadier1")
    92 		enemiesEven[i].gear = AddHog(enemiesEven[i].name, 1, 100, hats[math.random(1,table.getn(hats))])
    91 		AnimSetGearPosition(enemiesEven[i].gear, enemiesEven[i].x, enemiesEven[i].y)
    93 		AnimSetGearPosition(enemiesEven[i].gear, enemiesEven[i].x, enemiesEven[i].y)
    92 	end	
    94 	end	
    93 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
    95 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
    94 	for i=1,table.getn(enemiesOdd) do
    96 	for i=1,table.getn(enemiesOdd) do
    95 		enemiesOdd[i].gear = AddHog(enemiesOdd[i].name, 1, 100, "war_desertgrenadier1")
    97 		enemiesOdd[i].gear = AddHog(enemiesOdd[i].name, 1, 100, hats[math.random(1,table.getn(hats))])
    96 		AnimSetGearPosition(enemiesOdd[i].gear, enemiesOdd[i].x, enemiesOdd[i].y)
    98 		AnimSetGearPosition(enemiesOdd[i].gear, enemiesOdd[i].x, enemiesOdd[i].y)
    97 	end
    99 	end
    98 	
   100 	
    99 	initCheckpoint("fruit03")
   101 	initCheckpoint("fruit03")
   100 	
   102