author | Wuzzy <Wuzzy2@mail.ru> |
Wed, 14 Mar 2018 16:25:54 +0100 | |
changeset 13205 | a0ce9573bfe8 |
parent 12086 | ed40d46c9e59 |
child 14406 | 6c21bd8547dd |
permissions | -rw-r--r-- |
4506
37744d5c877e
Finnished up the lua translations by adding training maps, campaign is ignored for now
Henek
parents:
4502
diff
changeset
|
1 |
-- Hedgewars - Basketball for 2+ Players |
3000 | 2 |
|
9093 | 3 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
3000 | 4 |
|
3240 | 5 |
local started = false |
6 |
||
3000 | 7 |
function onGameInit() |
3003 | 8 |
GameFlags = gfSolidLand + gfBorder + gfInvulnerable + gfLowGravity |
3000 | 9 |
TurnTime = 20000 |
10 |
CaseFreq = 0 |
|
4162 | 11 |
MinesNum = 0 |
3000 | 12 |
Explosives = 0 |
3003 | 13 |
Delay = 500 |
10631
3d164350cc48
make BasketballField available as regular map. maybe should make it destructable when not in mission mode *shrugs*
sheepluva
parents:
9093
diff
changeset
|
14 |
Map = 'BasketballField' |
12084
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12082
diff
changeset
|
15 |
-- Disable Sudden Death |
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12082
diff
changeset
|
16 |
WaterRise = 0 |
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12082
diff
changeset
|
17 |
HealthDecrease = 0 |
3000 | 18 |
end |
19 |
||
20 |
function onGameStart() |
|
12082
ce3860c82c8b
Rewrite 2nd line of mission panel of most missions for consistency
Wuzzy <almikes@aol.com>
parents:
11202
diff
changeset
|
21 |
ShowMission(loc("Basketball"), loc("Not So Friendly Match"), loc("Bat your opponents through the|baskets and out of the map!"), -amBaseballBat, 0) |
3240 | 22 |
started = true |
3000 | 23 |
end |
24 |
||
25 |
function onAmmoStoreInit() |
|
3346 | 26 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
27 |
SetAmmo(amSkip, 9, 0, 0, 0) |
|
3000 | 28 |
end |
29 |
||
11202
cc308446f90d
preselect baseball bat in Knockball and Basketball
sheepluva
parents:
10631
diff
changeset
|
30 |
function onNewTurn() |
cc308446f90d
preselect baseball bat in Knockball and Basketball
sheepluva
parents:
10631
diff
changeset
|
31 |
SetWeapon(amBaseballBat) |
cc308446f90d
preselect baseball bat in Knockball and Basketball
sheepluva
parents:
10631
diff
changeset
|
32 |
end |