share/hedgewars/Data/Missions/Training/User_Mission_-_Rope_Knock_Challenge.lua
author unc0rr
Sat, 17 Nov 2012 00:41:30 +0400
branchphysfslayer
changeset 8043 da083f8d95e6
parent 7889 57b117d441b9
child 10290 42efccba0711
permissions -rw-r--r--
We need custom script loading function in lua now
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8043
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7889
diff changeset
     1
HedgewarsScriptLoad("/Scripts/Locale.lua")
7889
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     2
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     3
local hhs = {}
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     4
local missionWon = nil
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     5
local endTimer = 1000
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     6
local hogsKilled = 0
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     7
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     8
local HogData =	{
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
     9
					{"Bufon", 			"ShaggyYeti",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    10
					{"burp", 			"lambda",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    11
					{"Blue", 			"cap_blue",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    12
					{"bender", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    13
					{"Castell",			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    14
					{"cekoto", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    15
					{"CheezeMonkey",	"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    16
					{"claymore", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    17
					{"CIA-144", 		"cyborg1",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    18
					{"doomy ", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    19
					{"Falkenauge", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    20
					{"FadeOne", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    21
					{"hayaa", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    22
					{"Hermes", 			"laurel",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    23
					{"HedgeKing",		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    24
					{"Izack1535", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    25
					{"Kiofspa", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    26
					{"Komplex", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    27
					{"koda", 			"poke_mudkip",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    28
					{"Lalo", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    29
					{"Logan", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    30
					{"lollkiller", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    31
					{"Luelle", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    32
					{"mikade", 			"Skull",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    33
					{"Mushi", 			"sm_daisy",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    34
					{"Naboo", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    35
					{"nemo", 			"bb_bub",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    36
					{"practice", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    37
					{"Prof. Panic",  	"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    38
					{"Randy",			"zoo_Sheep",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    39
					{"rhino", 			"NinjaTriangle",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    40
					{"Radissthor",  	"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    41
					{"Sami",			"sm_peach",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    42
					{"soreau", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    43
					{"sdw195", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    44
					{"sphrix", 			"TeamTopHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    45
					{"sheepluva",		"zoo_Sheep",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    46
					{"Smaxx", 			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    47
					{"shadowzero", 		"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    48
					{"Star and Moon",	"SparkleSuperFun",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    49
					{"The 24",			"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    50
					{"TLD",				"NoHat",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    51
					{"Tiyuri", 			"sf_ryu",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    52
					{"unC0Rr", 			"cyborg1",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    53
					{"Waldsau", 		"cyborg1",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    54
					{"wolfmarc", 		"knight",false},
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    55
					{"Xeli", 			"android",false}
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    56
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    57
				}
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    58
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    59
function GenericEnd()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    60
	ParseCommand("teamgone " .. loc("Wannabe Shoppsta"))
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    61
	ParseCommand("teamgone " .. loc("Unsuspecting Louts"))
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    62
	ParseCommand("teamgone " .. loc("Unlucky Sods"))
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    63
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    64
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    65
function GameOverMan()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    66
	missionWon = false
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    67
	ShowMission(loc("ROPE-KNOCKING"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    68
	PlaySound(sndHellish)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    69
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    70
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    71
function GG()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    72
	missionWon = true
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    73
	ShowMission(loc("ROPE-KNOCKING"), loc("MISSION SUCCESS"), loc("Congratulations!") .. "|" .. loc("COMPLETION TIME") .. ": " .. (TurnTime - TurnTimeLeft) / 1000, 0, 0)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    74
	PlaySound(sndHomerun)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    75
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    76
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    77
function AssignCharacter(p)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    78
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    79
	done = false
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    80
	sanityCheck = 0
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    81
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    82
	while(done == false) do
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    83
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    84
		i = 1+ GetRandom(#HogData)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    85
		if HogData[i][3] == false then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    86
			HogData[i][3] = true
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    87
			done = true
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    88
			SetHogName(hhs[p], HogData[i][1])
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    89
			SetHogHat(hhs[p], HogData[i][2])
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    90
		elseif HogData[i][3] == true then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    91
			sanityCheck = sanityCheck +1
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    92
			if sanityCheck == 100 then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    93
				done = true
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    94
				SetHogName(hhs[p], "Newbie")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    95
				SetHogHat(hhs[p], "NoHat")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    96
			end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    97
		end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    98
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
    99
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   100
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   101
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   102
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   103
function onGameInit()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   104
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   105
	--Seed = 1
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   106
	GameFlags = gfBorder + gfSolidLand
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   107
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   108
	TurnTime = 180 * 1000
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   109
	Delay = 500
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   110
	Map = "Ropes"
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   111
	Theme = "Eyes"
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   112
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   113
	CaseFreq = 0
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   114
	MinesNum = 0
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   115
	Explosives = 0
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   116
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   117
	AddTeam(loc("Wannabe Shoppsta"), 1175851, "Simple", "Island", "Default", "Hedgewars")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   118
	hhs[0] = AddHog(loc("Ace"), 0, 1, "Gasmask")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   119
	SetGearPosition(player, 1380, 1500)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   120
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   121
	AddTeam(loc("Unsuspecting Louts"), 14483456, "Simple", "Island", "Default", "Hedgewars")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   122
	for i = 1, 8 do
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   123
		hhs[i] = AddHog("generic", 0, 1, "NoHat")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   124
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   125
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   126
	AddTeam(loc("Unlucky Sods"), 14483456, "Simple", "Island", "Default", "Hedgewars")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   127
	for i = 9, 16 do
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   128
		hhs[i] = AddHog("generic", 0, 1, "NoHat")
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   129
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   130
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   131
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   132
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   133
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   134
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   135
function onGameStart()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   136
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   137
	ShowMission     (
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   138
                        loc("ROPE-KNOCKING"),
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   139
                        loc("a Hedgewars challenge"),
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   140
                        loc("Use the rope to knock your enemies to their doom.") .. "|" ..
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   141
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   142
						"", -amRope, 4000
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   143
					)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   144
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   145
	SetGearPosition(hhs[0], 2419, 1769)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   146
	SetGearPosition(hhs[1], 3350, 570)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   147
	SetGearPosition(hhs[2], 3039, 1300)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   148
	SetGearPosition(hhs[3], 2909, 430)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   149
	SetGearPosition(hhs[4], 2150, 879)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   150
	SetGearPosition(hhs[5], 1735, 1136)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   151
	SetGearPosition(hhs[6], 1563, 553)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   152
	SetGearPosition(hhs[7], 679, 859)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   153
	SetGearPosition(hhs[8], 1034, 251)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   154
	SetGearPosition(hhs[9], 255, 67)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   155
	SetGearPosition(hhs[10], 2671, 7)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   156
	SetGearPosition(hhs[11], 2929, 244)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   157
	SetGearPosition(hhs[12], 1946, 221)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   158
	SetGearPosition(hhs[13], 3849, 1067)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   159
	SetGearPosition(hhs[14], 3360, 659)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   160
	SetGearPosition(hhs[15], 3885, 285)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   161
	SetGearPosition(hhs[16], 935, 1160)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   162
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   163
	for i = 1, 16 do
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   164
		AssignCharacter(i)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   165
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   166
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   167
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   168
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   169
function onGameTick()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   170
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   171
	if (TurnTimeLeft == 1) and (missionWon == nil) then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   172
		GameOverMan()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   173
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   174
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   175
	if missionWon ~= nil then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   176
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   177
		endTimer = endTimer - 1
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   178
		if endTimer == 1 then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   179
			GenericEnd()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   180
		end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   181
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   182
		if missionWon == true then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   183
			AddCaption(loc("GG!"), 0xffba00ff,capgrpGameState)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   184
		else
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   185
			AddCaption(loc("Ouch!"), 0xffba00ff,capgrpGameState)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   186
		end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   187
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   188
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   189
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   190
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   191
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   192
function onGearDamage(gear, damage)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   193
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   194
	if gear ~= hhs[0] then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   195
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   196
		AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   197
		DeleteGear(gear)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   198
		PlaySound(sndExplosion)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   199
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   200
		hogsKilled = hogsKilled +1
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   201
		if hogsKilled == 15 then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   202
			PlaySound(sndRideOfTheValkyries)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   203
		elseif hogsKilled == 16 then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   204
			GG()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   205
		end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   206
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   207
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   208
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   209
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   210
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   211
function onGearDelete(gear)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   212
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   213
	if (gear == hhs[0]) and (missionWon == nil) then
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   214
		GameOverMan()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   215
	end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   216
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   217
end
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   218
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   219
function onAmmoStoreInit()
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   220
	SetAmmo(amRope, 9, 0, 0, 0)
57b117d441b9 consistent line endings
nemo
parents: 7095
diff changeset
   221
end