author | Wuzzy <almikes@aol.com> |
Wed, 23 Nov 2016 23:54:55 +0100 | |
changeset 12049 | 030464f34d47 |
parent 11968 | 1de4d6b35748 |
child 12077 | ce3860c82c8b |
permissions | -rw-r--r-- |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
1 |
|
8043 | 2 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
3 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
4 |
local player = nil |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
5 |
local enemy = nil |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
6 |
local failed = false |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
7 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
8 |
local hhs = {} |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
9 |
local numhhs = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
10 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
11 |
function onGameInit() |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
12 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
13 |
Seed = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
14 |
TurnTime = 60000 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
15 |
CaseFreq = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
16 |
MinesTime = 1000 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
17 |
SuddenDeathTurns = 999999 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
18 |
HealthCaseProb = 35 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
19 |
Explosives = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
20 |
MinesNum = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
21 |
Map = "Hammock" |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
22 |
Theme = "Nature" |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
23 |
|
12049
030464f34d47
Tweak flags used in all missions to fit more to the theme
Wuzzy <almikes@aol.com>
parents:
11968
diff
changeset
|
24 |
AddTeam(loc("Pathetic Resistance"), 14483456, "Simple", "Island", "Default", "cm_duckhead") |
11262
6e1aa1144a2b
- Finally added rus localization for all User Missions
antonc27 <antonc27@mail.ru>
parents:
9756
diff
changeset
|
25 |
player = AddHog(loc("Ikeda"), 0, 48, "StrawHat") |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
26 |
|
12049
030464f34d47
Tweak flags used in all missions to fit more to the theme
Wuzzy <almikes@aol.com>
parents:
11968
diff
changeset
|
27 |
AddTeam(loc("Cybernetic Empire"), 1175851, "Simple", "Island", "Default", "cm_cyborg") |
5823 | 28 |
enemy = AddHog(loc("Unit") .. " 811", 1, 100, "cyborg1") |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
29 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
30 |
SetGearPosition(player,430,1540) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
31 |
SetGearPosition(enemy,1464,1960) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
32 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
33 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
34 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
35 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
36 |
function onGameStart() |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
37 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
38 |
AddAmmo(enemy, amShotgun, 100) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
39 |
AddAmmo(enemy, amFirePunch, 100) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
40 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
41 |
--GIRDER LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
42 |
PlaceGirder(1073,2009,0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
43 |
PlaceGirder(524,1487,3) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
44 |
PlaceGirder(638,1453,4) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
45 |
PlaceGirder(761,1453,0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
46 |
PlaceGirder(840,1421,3) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
47 |
PlaceGirder(302,1388,6) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
48 |
PlaceGirder(327,1506,1) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
49 |
PlaceGirder(1669,1832,3) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
50 |
--MINE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
51 |
AddGear(1056,1987,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
52 |
AddGear(1086,1988,gtMine, 0, 0, 0, 0) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
53 |
--STICKY MINE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
54 |
AddGear(1089,965,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
55 |
AddGear(1133,945,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
56 |
AddGear(1010,1081,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
57 |
AddGear(1036,1049,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
58 |
AddGear(1057,1004,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
59 |
AddGear(784,1252,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
60 |
AddGear(841,1257,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
61 |
AddGear(902,1263,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
62 |
AddGear(952,1281,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
63 |
AddGear(517,1546,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
64 |
AddGear(559,1597,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
65 |
AddGear(613,1650,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
66 |
AddGear(674,1705,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
67 |
AddGear(746,1692,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
68 |
AddGear(810,1692,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
69 |
AddGear(872,1673,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
70 |
AddGear(933,1666,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
71 |
AddGear(981,1662,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
72 |
AddGear(1016,1634,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
73 |
AddGear(1063,1595,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
74 |
AddGear(1100,1574,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
75 |
AddGear(1002,1461,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
76 |
AddGear(1052,1438,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
77 |
AddGear(1102,1464,gtSMine, 0, 0, 0, 0) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
78 |
--WEAPON CRATE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
79 |
SpawnAmmoCrate(1565,642,amSineGun) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
80 |
SpawnAmmoCrate(548,858,amBazooka) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
81 |
--UTILITY CRATE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
82 |
SpawnUtilityCrate(479,847,amJetpack) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
83 |
SpawnUtilityCrate(1550,1715,amBlowTorch) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
84 |
SpawnUtilityCrate(1227,1941,amJetpack) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
85 |
SpawnUtilityCrate(1070,1964,amInvulnerable) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
86 |
SpawnUtilityCrate(1070,1875,amTeleport) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
87 |
--HOG POSITION LIST. |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
88 |
if hhs[0] ~= nil then |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
89 |
SetGearPosition(hhs[0],397,865) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
90 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
91 |
if hhs[1] ~= nil then |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
92 |
SetGearPosition(hhs[1],561,1365) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
93 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
94 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
95 |
ShowMission(loc("Newton's Hammock"), loc("User Challenge"), loc("Eliminate the enemy before the time runs out"), -amParachute, 0) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
96 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
97 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
98 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
99 |
function onAmmoStoreInit() |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
100 |
SetAmmo(amSkip, 9, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
101 |
SetAmmo(amBazooka, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
102 |
SetAmmo(amJetpack, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
103 |
SetAmmo(amTeleport, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
104 |
SetAmmo(amSineGun, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
105 |
SetAmmo(amInvulnerable, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
106 |
SetAmmo(amBlowTorch, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
107 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
108 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
109 |
function onGearDamage(gear, damage) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
110 |
if (gear == player) and (damage >= 48) then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
111 |
failed = true |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
112 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
113 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
114 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
115 |
function onGearAdd(gear) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
116 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
117 |
if GetGearType(gear) == gtHedgehog then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
118 |
hhs[numhhs] = gear |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
119 |
numhhs = numhhs + 1 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
120 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
121 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
122 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
123 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
124 |
function onGearDelete(gear) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
125 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
126 |
if (gear == enemy) and (failed == false) then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
127 |
ShowMission(loc("Newton's Hammock"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
128 |
elseif gear == player then |
9756 | 129 |
ShowMission(loc("Newton's Hammock"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
130 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
131 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
132 |
end |