author | unc0rr |
Fri, 03 Jan 2014 00:37:48 +0400 | |
changeset 9908 | 81eb25ddf594 |
parent 9087 | 52a8ee2e8324 |
child 10017 | de822cd3df3a |
permissions | -rw-r--r-- |
9087
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
1 |
------------------------------------------- |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
2 |
-- FRENZY |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
3 |
-- a hedgewars mode inspired by Hysteria |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
4 |
------------------------------------------- |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
5 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
6 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
7 |
HedgewarsScriptLoad("/Scripts/Tracker.lua") |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
8 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
9 |
local cTimer = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
10 |
local cn = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
11 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
12 |
function initialSetup(gear) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
13 |
SetHealth(gear, 75) -- official is 80, but that assumes bazookas/grenades that do 50 damage |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
14 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
15 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
16 |
function showStartingInfo() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
17 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
18 |
ruleSet = "" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
19 |
loc("RULES") .. ": " .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
20 |
loc("Each turn is only ONE SECOND!") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
21 |
loc("Use your ready time to think.") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
22 |
loc("Slot keys save time! (F1-F10 by default)") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
23 |
" |" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
24 |
loc("SLOTS") .. ": " .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
25 |
loc("Slot") .. " 1 - " .. loc("Bazooka") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
26 |
loc("Slot") .. " 2 - " .. loc("Grenade") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
27 |
loc("Slot") .. " 3 - " .. loc("Shotgun") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
28 |
loc("Slot") .. " 4 - " .. loc("Shoryuken") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
29 |
loc("Slot") .. " 5 - " .. loc("Mine") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
30 |
loc("Slot") .. " 6 - " .. loc("Teleport") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
31 |
loc("Slot") .. " 7 - " .. loc("Blowtorch") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
32 |
loc("Slot") .. " 8 - " .. loc("Flying Saucer") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
33 |
loc("Slot") .. " 9 - " .. loc("Molotov") .. "|" .. |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
34 |
loc("Slot") .. " 10 - " .. loc("Low Gravity") |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
35 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
36 |
ShowMission(loc("FRENZY"), |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
37 |
loc("a frenetic Hedgewars mini-game"), |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
38 |
ruleSet, 0, 4000) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
39 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
40 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
41 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
42 |
function onGameInit() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
43 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
44 |
if TurnTime > 10001 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
45 |
Ready = 8000 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
46 |
else |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
47 |
Ready = TurnTime |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
48 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
49 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
50 |
TurnTime = 1000 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
51 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
52 |
--These are the official settings, but I think I prefer allowing customization in this regard |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
53 |
--MinesNum = 8 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
54 |
--MinesTime = 3000 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
55 |
--MinesDudPercent = 30 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
56 |
--Explosives = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
57 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
58 |
--Supposedly official settings |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
59 |
HealthCaseProb = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
60 |
CrateFreq = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
61 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
62 |
--Approximation of Official Settings |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
63 |
--SuddenDeathTurns = 10 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
64 |
--WaterRise = 47 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
65 |
--HealthDecrease = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
66 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
67 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
68 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
69 |
function onGameStart() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
70 |
showStartingInfo() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
71 |
runOnHogs(initialSetup) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
72 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
73 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
74 |
function onSlot(sln) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
75 |
cTimer = 8 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
76 |
cn = sln |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
77 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
78 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
79 |
function onGameTick() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
80 |
if cTimer ~= 0 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
81 |
cTimer = cTimer -1 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
82 |
if cTimer == 1 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
83 |
ChangeWep(cn) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
84 |
cn = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
85 |
cTimer = 0 |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
86 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
87 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
88 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
89 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
90 |
function ChangeWep(s) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
91 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
92 |
if s == 0 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
93 |
ParseCommand("setweap " .. string.char(amBazooka)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
94 |
elseif s == 1 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
95 |
ParseCommand("setweap " .. string.char(amGrenade)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
96 |
elseif s == 2 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
97 |
ParseCommand("setweap " .. string.char(amShotgun)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
98 |
elseif s == 3 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
99 |
ParseCommand("setweap " .. string.char(amFirePunch)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
100 |
elseif s == 4 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
101 |
ParseCommand("setweap " .. string.char(amMine)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
102 |
elseif s == 5 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
103 |
ParseCommand("setweap " .. string.char(amTeleport)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
104 |
elseif s == 6 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
105 |
ParseCommand("setweap " .. string.char(amBlowTorch)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
106 |
elseif s == 7 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
107 |
ParseCommand("setweap " .. string.char(amJetpack)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
108 |
elseif s == 8 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
109 |
ParseCommand("setweap " .. string.char(amMolotov)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
110 |
elseif s == 9 then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
111 |
ParseCommand("setweap " .. string.char(amLowGravity)) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
112 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
113 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
114 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
115 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
116 |
function onGearAdd(gear) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
117 |
if GetGearType(gear) == gtHedgehog then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
118 |
trackGear(gear) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
119 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
120 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
121 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
122 |
function onGearDelete(gear) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
123 |
if GetGearType(gear) == gtHedgehog then |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
124 |
trackDeletion(gear) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
125 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
126 |
end |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
127 |
|
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
128 |
function onAmmoStoreInit() |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
129 |
SetAmmo(amBazooka, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
130 |
SetAmmo(amGrenade, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
131 |
SetAmmo(amMolotov, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
132 |
SetAmmo(amShotgun, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
133 |
--SetAmmo(amFlamethrower, 9, 0, 0, 0) -- this was suggested on hw.org but it's not present on base |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
134 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
135 |
SetAmmo(amMine, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
136 |
--SetAmmo(amCake, 1, 0, 2, 0) -- maybe it's beefcake? |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
137 |
SetAmmo(amJetpack, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
138 |
SetAmmo(amBlowTorch, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
139 |
SetAmmo(amTeleport, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
140 |
SetAmmo(amLowGravity, 9, 0, 0, 0) |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
141 |
--SetAmmo(amSkipGo, 9, 0, 0, 0) -- not needed with 1s turn time |
52a8ee2e8324
Add Frenzy (Hysteria) style/gameplay script and cfg
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
142 |
end |