share/hedgewars/Data/Missions/Campaign/01#Boot Camp.lua
author smaxx
Tue, 24 Aug 2010 01:17:24 +0200
changeset 3761 f96b99f944e6
child 3762 aef7d95dd159
permissions -rw-r--r--
Engine: * Added a new script function: HogTurnLeft(int gearid, bool facesleft) to turn hogs left or right * Added a new script function: HogSay(int gearid, string text, int type) to let hogs say something using speech bubbles Campaign: * Added a simple tutorial as the first mission
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3761
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     1
-- IMPORTANT -- THIS IS WORK IN PROGRESS AND VERY LIKELY TO BE CHANGED AGAIN
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     2
-- IMPORTANT -- SAVE YOURSELF THE WORK AND DON'T TRANSLATE THE TEXTS IF YOU FEAR STARTING OVER LATER!
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     3
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     4
local teamnames = {}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     5
local hognames = {}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     6
teamnames[0] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     7
	["en"] = "Bloody Rookies",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     8
	["de"] = "Blutige Anfänger"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
     9
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    10
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    11
teamnames[1] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    12
	["en"] = "Instructors",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    13
	["de"] = "Ausbilder"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    14
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    15
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    16
hognames[0] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    17
	["en"] = "Joker",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    18
	["de"] = "Joker"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    19
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    20
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    21
hognames[1] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    22
	["en"] = "Harthog",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    23
	["de"] = "Harthog"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    24
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    25
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    26
local caption = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    27
	["en"] = "Boot Camp",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    28
	["de"] = "Grundausbildung"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    29
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    30
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    31
local subcaption = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    32
	["en"] = "Follow the instructions!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    33
	["de"] = "Befolge die Anweisungen!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    34
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    35
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    36
local goals = {}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    37
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    38
goals[0] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    39
	["en"] = "Listen to your Drill Instructor and follow his lead!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    40
	["de"] = "Höre deinem Ausbilder zu und befolge seine Anweisungen!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    41
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    42
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    43
goals[1] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    44
	["en"] = "Destroy the target to finish this mission!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    45
	["de"] = "Zerstöre das Ziel, um diese Mission abzuschließen!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    46
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    47
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    48
goals[2] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    49
	["en"] = "Excellent! You've passed the Boot Camp!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    50
	["de"] = "Ausgezeichnet! Du hast das Ausbildungslager bestanden!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    51
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    52
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    53
local failed = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    54
	["en"] = "You failed! Follow the instructions and shoot the target only!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    55
	["de"] = "Du hast versagt! Befolge die Anweisungen und schieß nur auf das Ziel!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    56
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    57
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    58
local drill = {}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    59
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    60
drill[0] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    61
	["en"] = "Allright, maggot!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    62
	["de"] = "Also gut, du Made!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    63
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    64
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    65
drill[1] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    66
	["en"] = "Show that you aren't that useless.",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    67
	["de"] = "Zeig, dass du nicht so nutzlos bist."
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    68
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    69
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    70
drill[2] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    71
	["en"] = "Use [left] to move to the left!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    72
	["de"] = "Benutze [Links], um nach links zu gehen!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    73
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    74
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    75
drill[3] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    76
	["en"] = "Good! Now use [right] to come back!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    77
	["de"] = "Gut! Nun komm mit [Rechts] zurück!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    78
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    79
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    80
drill[4] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    81
	["en"] = "Excellent!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    82
	["de"] = "Ausgezeichnet!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    83
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    84
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    85
drill[5] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    86
	["en"] = "Now jump to the left using [return]!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    87
	["de"] = "Jetzt springe mit [Eingabetaste] nach links!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    88
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    89
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    90
drill[6] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    91
	["en"] = "Use [up] and [down] to aim.",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    92
	["de"] = "Benutze [Hoch] und [Runter], um zu zielen."
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    93
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    94
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    95
drill[7] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    96
	["en"] = "Hold [space] to power up your shot and then release it to shoot.",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    97
	["de"] = "Halte [Leertaste], um deinen Schuss aufzuladen, und lasse dann rechtzeitig los."
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    98
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
    99
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   100
drill[8] = {
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   101
	["en"] = "Destroy the target to finish your basic training!",
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   102
	["de"] = "Zerstöre das Ziel, um deine Grundausbildung abzuschließen!"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   103
}
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   104
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   105
local function loc(text)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   106
	if text == nil then return "**missing**"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   107
	elseif text[L] == nil then return text["en"]
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   108
	else return text[L]
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   109
	end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   110
end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   111
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   112
local player = nil
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   113
local instructor = nil
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   114
local target = nil
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   115
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   116
function onGameStart()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   117
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   118
end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   119
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   120
local player_start_x = 2300
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   121
local player_start_y = 1250
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   122
local target_x = 1900
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   123
local target_y = 1250
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   124
local player_health = 100
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   125
local instructor_health = 100
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   126
local teamcolor = 14483456
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   127
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   128
local progress = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   129
local time_start = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   130
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   131
function onGameTick()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   132
	if progress == -1 and (time_start + 2500) == GameTime then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   133
		EndGame()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   134
	elseif progress == -1 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   135
		
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   136
	elseif progress > 0 and ((TurnTimeLeft == 0) or (GetHealth(player) ~= player_health) or (GetHealth(instructor) ~= instructor_health)) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   137
		progress = -1
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   138
		ShowMission(loc(caption), loc(subcaption), loc(failed), -amBazooka, 0);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   139
		time_start = GameTime
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   140
		PlaySound(sndNooo)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   141
		TurnTimeLeft = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   142
	elseif GameTime == 0 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   143
		ShowMission(loc(caption), loc(subcaption), loc(goals[0]), -amBazooka, 0);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   144
		TurnTimeLeft = 60000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   145
	elseif GameTime == 2500 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   146
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   147
		HogSay(instructor, loc(drill[0]), SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   148
	elseif GameTime == 5000 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   149
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   150
		HogSay(instructor, loc(drill[1]), SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   151
	elseif GameTime == 7500 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   152
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   153
		HogSay(instructor, loc(drill[2]), SAY_SHOUT)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   154
		progress = 1
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   155
		TurnTimeLeft = 10000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   156
	elseif progress == 1 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   157
		local x, y = GetGearPosition(player);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   158
		if x < player_start_x - 50 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   159
			progress = 2
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   160
			FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   161
			HogSay(instructor, loc(drill[3]), SAY_SHOUT)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   162
		end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   163
		TurnTimeLeft = 10000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   164
	elseif progress == 2 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   165
		local x, y = GetGearPosition(player);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   166
		if x > player_start_x then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   167
			progress = 3
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   168
			FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   169
			HogSay(instructor, loc(drill[4]), SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   170
			time_start = GameTime
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   171
		end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   172
	elseif progress == 3 and (time_start + 2500 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   173
		progress = 4
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   174
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   175
		HogSay(instructor, loc(drill[5]), SAY_SHOUT)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   176
		HogTurnLeft(player, true)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   177
		TurnTimeLeft = 10000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   178
	elseif progress == 4 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   179
		local x, y = GetGearPosition(player);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   180
		if y < player_start_y then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   181
			progress = 5
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   182
			FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   183
			HogSay(instructor, "Yeah!", SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   184
			time_start = GameTime
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   185
			TurnTimeLeft = 30000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   186
		end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   187
	elseif progress == 5 and (time_start + 2500 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   188
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   189
		HogSay(instructor, loc(drill[6]), SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   190
	elseif progress == 5 and (time_start + 5000 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   191
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   192
		HogSay(instructor, loc(drill[7]), SAY_SAY)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   193
	elseif progress == 5 and (time_start + 7500 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   194
		FollowGear(instructor)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   195
		HogSay(instructor, loc(drill[8]), SAY_SHOUT)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   196
		ShowMission(loc(caption), loc(subcaption), loc(goals[1]), 1, 0);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   197
		target = AddGear(target_x, target_y, gtTarget, 0, 0, 0, 0)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   198
		TurnTimeLeft = 60000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   199
	elseif progress == 5 and (time_start + 10000 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   200
		FollowGear(target)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   201
	elseif progress == 6 then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   202
		progress = 7
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   203
		ShowMission(loc(caption), loc(subcaption), loc(goals[2]), 0, 0);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   204
		PlaySound(sndVictory);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   205
		time_start = GameTime
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   206
	elseif progress == 7 and (time_start + 2500 == GameTime) then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   207
		EndGame()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   208
	end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   209
end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   210
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   211
function onGameInit()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   212
	Seed = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   213
	GameFlags = gfMultiWeapon + gfOneClanMode
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   214
	TurnTime = 25000
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   215
	CaseFreq = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   216
	LandAdds = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   217
	Explosives = 0
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   218
	Delay = 2500
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   219
	Map = "Mushrooms"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   220
	Theme = "Nature"
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   221
	
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   222
	AddTeam(loc(teamnames[0]), teamcolor, "Simple", "Island", "Default")
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   223
	player = AddHog(loc(hognames[0]), 0, player_health, "NoHat")
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   224
	SetGearPosition(player, player_start_x, player_start_y);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   225
	
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   226
	AddTeam(loc(teamnames[1]), teamcolor + 1, "Simple", "Island", "Default")
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   227
	instructor = AddHog(loc(hognames[1]), 0, instructor_health, "NoHat")
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   228
	SetGearPosition(instructor, player_start_x + 100, player_start_y)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   229
	HogTurnLeft(instructor, true)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   230
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   231
	FollowGear(player);
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   232
end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   233
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   234
function onAmmoStoreInit()
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   235
	SetAmmo(amBazooka, 9, 0, 0, 0)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   236
end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   237
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   238
function onGearDelete(gear)
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   239
	if GetGearType(gear) == gtTarget then
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   240
		progress = 6
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   241
	end
f96b99f944e6 Engine:
smaxx
parents:
diff changeset
   242
end