author | Wuzzy <almikes@aol.com> |
Thu, 27 Apr 2017 01:17:41 +0200 | |
changeset 12348 | 40833d930d82 |
parent 12226 | 3ec0261e01f0 |
child 12405 | e6ec081b7fe0 |
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 |
12224
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12078
diff
changeset
|
17 |
-- Disable Sudden Death |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12078
diff
changeset
|
18 |
HealthDecrease = 0 |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12078
diff
changeset
|
19 |
WaterRise = 0 |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
20 |
HealthCaseProb = 35 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
21 |
Explosives = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
22 |
MinesNum = 0 |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
23 |
Map = "Hammock" |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
24 |
Theme = "Nature" |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
25 |
|
12049
030464f34d47
Tweak flags used in all missions to fit more to the theme
Wuzzy <almikes@aol.com>
parents:
11968
diff
changeset
|
26 |
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
|
27 |
player = AddHog(loc("Ikeda"), 0, 48, "StrawHat") |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
28 |
|
12348
40833d930d82
Use Robot voice for enemy in Bamboo Thicked and Newton and the Hammock
Wuzzy <almikes@aol.com>
parents:
12226
diff
changeset
|
29 |
AddTeam(loc("Cybernetic Empire"), 1175851, "Simple", "Island", "Robot", "cm_cyborg") |
5823 | 30 |
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
|
31 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
32 |
SetGearPosition(player,430,1540) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
33 |
SetGearPosition(enemy,1464,1960) |
5598
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 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
36 |
|
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 |
function onGameStart() |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
39 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
40 |
AddAmmo(enemy, amShotgun, 100) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
41 |
AddAmmo(enemy, amFirePunch, 100) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
42 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
43 |
--GIRDER LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
44 |
PlaceGirder(1073,2009,0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
45 |
PlaceGirder(524,1487,3) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
46 |
PlaceGirder(638,1453,4) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
47 |
PlaceGirder(761,1453,0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
48 |
PlaceGirder(840,1421,3) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
49 |
PlaceGirder(302,1388,6) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
50 |
PlaceGirder(327,1506,1) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
51 |
PlaceGirder(1669,1832,3) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
52 |
--MINE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
53 |
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
|
54 |
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
|
55 |
--STICKY MINE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
56 |
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
|
57 |
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
|
58 |
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
|
59 |
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
|
60 |
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
|
61 |
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
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
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
|
66 |
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
|
67 |
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
|
68 |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
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
|
73 |
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
|
74 |
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
|
75 |
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
|
76 |
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
|
77 |
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
|
78 |
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
|
79 |
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
|
80 |
--WEAPON CRATE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
81 |
SpawnAmmoCrate(1565,642,amSineGun) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
82 |
SpawnAmmoCrate(548,858,amBazooka) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
83 |
--UTILITY CRATE LIST. |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
84 |
SpawnUtilityCrate(479,847,amJetpack) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
85 |
SpawnUtilityCrate(1550,1715,amBlowTorch) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
86 |
SpawnUtilityCrate(1227,1941,amJetpack) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
87 |
SpawnUtilityCrate(1070,1964,amInvulnerable) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
88 |
SpawnUtilityCrate(1070,1875,amTeleport) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
89 |
--HOG POSITION LIST. |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
90 |
if hhs[0] ~= nil then |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
91 |
SetGearPosition(hhs[0],397,865) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
92 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
93 |
if hhs[1] ~= nil then |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
94 |
SetGearPosition(hhs[1],561,1365) |
5598
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
95 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
96 |
|
12226
3ec0261e01f0
Display mines timer in all missions with non-default timer
Wuzzy <almikes@aol.com>
parents:
12224
diff
changeset
|
97 |
ShowMission(loc("Newton and the Hammock"), loc("Scenario"), loc("Eliminate the enemy.") .. "|" .. loc("Mines time: 1 second"), -amParachute, 0) |
5598
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 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
100 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
101 |
function onAmmoStoreInit() |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
102 |
SetAmmo(amSkip, 9, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
103 |
SetAmmo(amBazooka, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
104 |
SetAmmo(amJetpack, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
105 |
SetAmmo(amTeleport, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
106 |
SetAmmo(amSineGun, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
107 |
SetAmmo(amInvulnerable, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
108 |
SetAmmo(amBlowTorch, 0, 0, 0, 1) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
109 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
110 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
111 |
function onGearDamage(gear, damage) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
112 |
if (gear == player) and (damage >= 48) then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
113 |
failed = true |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
114 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
115 |
end |
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 |
function onGearAdd(gear) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
118 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
119 |
if GetGearType(gear) == gtHedgehog then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
120 |
hhs[numhhs] = gear |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
121 |
numhhs = numhhs + 1 |
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 |
end |
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 |
function onGearDelete(gear) |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
127 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
128 |
if (gear == enemy) and (failed == false) then |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
129 |
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
|
130 |
elseif gear == player then |
9756 | 131 |
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
|
132 |
end |
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
133 |
|
265429f7ba85
- Updates to Tumbler gameplay mode [may still need a lil work]
mikade
parents:
diff
changeset
|
134 |
end |