equal
deleted
inserted
replaced
1 HedgewarsScriptLoad("/Scripts/Locale.lua") |
1 HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 HedgewarsScriptLoad("/Scripts/Utils.lua") |
2 HedgewarsScriptLoad("/Scripts/Utils.lua") |
3 |
3 |
4 local MineArray = {} |
4 local MineArray = {} |
5 local player |
5 local player, playerTeamName |
6 local adviceGiven0 = false |
6 local adviceGiven0 = false |
7 local adviceGiven1 = false |
7 local adviceGiven1 = false |
8 local adviceGiven2 = false |
8 local adviceGiven2 = false |
9 |
9 |
10 function onGameInit() |
10 function onGameInit() |
18 Theme = "Hell" -- The theme to be used |
18 Theme = "Hell" -- The theme to be used |
19 -- Disable Sudden Death |
19 -- Disable Sudden Death |
20 HealthDecrease = 0 |
20 HealthDecrease = 0 |
21 WaterRise = 0 |
21 WaterRise = 0 |
22 |
22 |
23 AddMissionTeam(-1) |
23 playerTeamName = AddMissionTeam(-1) |
24 player = AddMissionHog(10) |
24 player = AddMissionHog(10) |
25 |
25 |
26 AddTeam(loc("Hell Army"), -9, "skull", "Island", "Default", "cm_hellish") |
26 AddTeam(loc("Hell Army"), -9, "skull", "Island", "Default", "cm_hellish") |
27 enemy1 = AddHog(loc("Lucifer"), 1, 200, "InfernalHorns") |
27 enemy1 = AddHog(loc("Lucifer"), 1, 200, "InfernalHorns") |
28 enemy2 = AddHog(loc("Voldemort"), 1, 150, "WizardHat") |
28 enemy2 = AddHog(loc("Voldemort"), 1, 150, "WizardHat") |
79 SetAmmo(amSkip,9,0,0,0) |
79 SetAmmo(amSkip,9,0,0,0) |
80 SetAmmo(amBlowTorch, 0, 0, 0, 1) |
80 SetAmmo(amBlowTorch, 0, 0, 0, 1) |
81 SetAmmo(amPickHammer, 0, 0, 0, 1) |
81 SetAmmo(amPickHammer, 0, 0, 0, 1) |
82 SetAmmo(amSnowball, 0, 0, 0, 1) |
82 SetAmmo(amSnowball, 0, 0, 0, 1) |
83 |
83 |
|
84 end |
|
85 |
|
86 function onGearAdd(gear) |
|
87 if (GetGearType(gear) == gtHedgehog) and (GetHogTeamName(gear) ~= playerTeamName) then |
|
88 SetEffect(gear, heArtillery, 1) |
|
89 end |
84 end |
90 end |
85 |
91 |
86 function onGameStart() |
92 function onGameStart() |
87 |
93 |
88 SetWind(100) |
94 SetWind(100) |