author | Periklis Ntanasis <pntanasis@gmail.com> |
Wed, 04 Sep 2013 03:32:31 +0300 | |
branch | spacecampaign |
changeset 9605 | 66cd14e5bdad |
child 9606 | 1d088cc31ff8 |
permissions | -rw-r--r-- |
9605
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
1 |
------------------- ABOUT ---------------------- |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
2 |
-- |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
3 |
-- Hero has to use the rc plane end perform some |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
4 |
-- flying tasks |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
5 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
6 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
7 |
HedgewarsScriptLoad("/Scripts/Animate.lua") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
8 |
HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
9 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
10 |
-- globals |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
11 |
local missionName = loc("Precise flying") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
12 |
local challengeObjectives = loc("Use the rc plane and destroy the all the targets").."|".. |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
13 |
loc("Each time you destroy your level targets you'll get teleported to the next level").."|".. |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
14 |
loc("You'll have only one rc plane at the start of the mission").."|".. |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
15 |
loc("During the game you can get new plane by getting the weapon crates") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
16 |
local currentTarget = 1 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
17 |
-- hogs |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
18 |
local hero = { |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
19 |
name = loc("Hog Solo"), |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
20 |
x = 100, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
21 |
y = 170 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
22 |
} |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
23 |
-- teams |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
24 |
local teamA = { |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
25 |
name = loc("Hog Solo"), |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
26 |
color = tonumber("38D61C",16) -- green |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
27 |
} |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
28 |
-- creates & targets |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
29 |
local rcCrates = { |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
30 |
{ x = 1680, y = 240}, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
31 |
{ x = 2810, y = 720}, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
32 |
} |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
33 |
local targets = { |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
34 |
{ x = 2070, y = 410}, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
35 |
{ x = 3880, y = 1430}, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
36 |
{ x = 4030, y = 1430}, |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
37 |
} |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
38 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
39 |
-------------- LuaAPI EVENT HANDLERS ------------------ |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
40 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
41 |
function onGameInit() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
42 |
GameFlags = gfOneClanMode |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
43 |
Seed = 1 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
44 |
TurnTime = -1 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
45 |
CaseFreq = 0 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
46 |
MinesNum = 0 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
47 |
MinesTime = 1 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
48 |
Explosives = 0 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
49 |
Map = "desert03_map" |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
50 |
Theme = "Desert" |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
51 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
52 |
-- Hog Solo |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
53 |
AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
54 |
hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
55 |
AnimSetGearPosition(hero.gear, hero.x, hero.y) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
56 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
57 |
initCheckpoint("desert03") |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
58 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
59 |
AnimInit() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
60 |
--AnimationSetup() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
61 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
62 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
63 |
function onGameStart() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
64 |
AnimWait(hero.gear, 3000) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
65 |
FollowGear(hero.gear) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
66 |
ShowMission(missionName, loc("Challenge Objectives"), challengeObjectives, -amSkip, 0) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
67 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
68 |
AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
69 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
70 |
-- original crates and targets |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
71 |
SpawnAmmoCrate(rcCrates[1].x, rcCrates[1].y, amRCPlane) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
72 |
targets[1].gear = AddGear(targets[1].x, targets[1].y, gtTarget, 0, 0, 0, 0) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
73 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
74 |
-- hero ammo |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
75 |
AddAmmo(hero.gear, amRCPlane, 1) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
76 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
77 |
SendHealthStatsOff() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
78 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
79 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
80 |
function onGameTick20() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
81 |
checkTargetsDestroied() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
82 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
83 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
84 |
function onAmmoStoreInit() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
85 |
if currentTarget == 1 then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
86 |
SetAmmo(amRCPlane, 0, 0, 0, 1) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
87 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
88 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
89 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
90 |
-------------- EVENTS ------------------ |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
91 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
92 |
function onHeroDeath(gear) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
93 |
if not GetHealth(hero.gear) then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
94 |
return true |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
95 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
96 |
return false |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
97 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
98 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
99 |
-------------- ACTIONS ------------------ |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
100 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
101 |
function heroDeath(gear) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
102 |
SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
103 |
SendStat('siCustomAchievement', loc("You have to destroy all the targets")) --11 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
104 |
SendStat('siCustomAchievement', loc("Read the Challenge Objectives from within the mission for more details")) --11 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
105 |
SendStat('siPlayerKills','1',teamB.name) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
106 |
SendStat('siPlayerKills','0',teamA.name) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
107 |
EndGame() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
108 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
109 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
110 |
----------------- Other Functions ----------------- |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
111 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
112 |
function checkTargetsDestroied() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
113 |
if currentTarget == 1 then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
114 |
if not GetHealth(targets[1].gear) then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
115 |
AddCaption(loc("Level 1 clear!")) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
116 |
SetGearPosition(hero.gear, 3590, 90) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
117 |
currentTarget = 2 |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
118 |
setTargets(currentTarget) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
119 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
120 |
elseif currentTarget == 2 then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
121 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
122 |
else |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
123 |
win() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
124 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
125 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
126 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
127 |
function setTargets(ct) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
128 |
if ct == 2 then |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
129 |
SpawnAmmoCrate(rcCrates[2].x, rcCrates[2].y, amRCPlane) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
130 |
for i=2,3 do |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
131 |
targets[i].gear = AddGear(targets[i].x, targets[i].y, gtTarget, 0, 0, 0, 0) |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
132 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
133 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
134 |
end |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
135 |
|
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
136 |
function win() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
137 |
EndGame() |
66cd14e5bdad
part of desert03 side mission - map not finished yet, will be commited later
Periklis Ntanasis <pntanasis@gmail.com>
parents:
diff
changeset
|
138 |
end |