author | Periklis Ntanasis <pntanasis@gmail.com> |
Thu, 19 Sep 2013 02:33:23 +0300 | |
branch | spacecampaign |
changeset 9641 | b08c8bde57e3 |
parent 9088 | 553355472675 |
child 10017 | de822cd3df3a |
permissions | -rw-r--r-- |
9088
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
1 |
-------------------------------------- |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
2 |
-- NOBODY LAUGH |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
3 |
-- a hilarious (not really) adventure |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
4 |
-------------------------------------- |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
5 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
6 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
7 |
HedgewarsScriptLoad("/Scripts/Tracker.lua") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
8 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
9 |
local hhs = {} |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
10 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
11 |
function onGameInit() |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
12 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
13 |
Seed = 0 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
14 |
GameFlags = gfInfAttack + gfPerHogAmmo +gfDisableWind |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
15 |
SuddenDeathTurns = 9999 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
16 |
TurnTime = 180000 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
17 |
CaseFreq = 0 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
18 |
MinesNum = 0 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
19 |
Explosives = 0 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
20 |
Map = "Bath" |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
21 |
Theme = "Nature" |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
22 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
23 |
AddTeam(loc("Nameless Heroes"), 14483456, "eyecross", "Wood", "HillBilly", "cm_birdy") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
24 |
hhs[1] = AddHog(loc( "Hunter" ), 0, 1, "Skull") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
25 |
SetGearPosition(hhs[1], 1267, 451) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
26 |
hhs[2] = AddHog(loc("Drowner"), 0, 31, "mp3") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
27 |
SetGearPosition(hhs[2], 1332, 451) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
28 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
29 |
AddTeam(loc("Clowns"), 1175851, "Duck2", "Tank", "Mobster", "cm_spider") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
30 |
hhs[3] = AddHog("Poison", 5, 100, "WhySoSerious") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
31 |
SetGearPosition(hhs[3], 1133, 446) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
32 |
hhs[4] = AddHog("Bobo", 5, 100, "clown") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
33 |
SetGearPosition(hhs[4], 1215, 553) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
34 |
hhs[5] = AddHog("Copper", 5, 10, "clown-copper") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
35 |
SetGearPosition(hhs[5], 414, 376) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
36 |
hhs[6] = AddHog("Derp", 5, 100, "clown-crossed") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
37 |
SetGearPosition(hhs[6], 1590, 886) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
38 |
hhs[7] = AddHog("Eckles", 5, 100, "clown-copper") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
39 |
SetGearPosition(hhs[7], 772, 754) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
40 |
hhs[8] = AddHog("Frank", 5, 50, "clown-copper") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
41 |
SetGearPosition(hhs[8], 1688, 714) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
42 |
hhs[9] = AddHog("Harry", 5, 50, "clown-copper") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
43 |
SetGearPosition(hhs[9], 1932, 837) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
44 |
hhs[10] = AddHog("Igmund", 5, 50, "WhySoSerious") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
45 |
SetGearPosition(hhs[10], 1601, 733) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
46 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
47 |
end |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
48 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
49 |
function onGameStart() |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
50 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
51 |
AddAmmo(enemy, amAirAttack, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
52 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
53 |
ShowMission( loc("Nobody Laugh"), |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
54 |
loc("User Challenge"), |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
55 |
loc("Eliminate the enemy before the time runs out") |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
56 |
, 0, 0 |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
57 |
) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
58 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
59 |
-- GIRDERS |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
60 |
PlaceGirder(1212, 710, 7) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
61 |
PlaceGirder(1215, 570, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
62 |
PlaceGirder(1288, 520, 2) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
63 |
PlaceGirder(1184, 468, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
64 |
PlaceGirder(1344, 468, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
65 |
PlaceGirder(1247, 346, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
66 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
67 |
PlaceGirder(667, 438, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
68 |
PlaceGirder(507, 438, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
69 |
PlaceGirder(434, 487, 2) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
70 |
PlaceGirder(505, 537, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
71 |
PlaceGirder(665, 537, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
72 |
PlaceGirder(737, 487, 2) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
73 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
74 |
PlaceGirder(416, 465, 6) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
75 |
PlaceGirder(1415, 378, 6) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
76 |
PlaceGirder(1300, 625, 3) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
77 |
PlaceGirder(1359, 566, 3) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
78 |
PlaceGirder(1436, 538, 0) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
79 |
PlaceGirder(1505, 468, 4) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
80 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
81 |
------ AMMO CRATE LIST ------ |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
82 |
tempG = SpawnAmmoCrate(1242, 315, amBaseballBat) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
83 |
tempG = SpawnAmmoCrate(1309, 315, amAirAttack) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
84 |
tempG = SpawnAmmoCrate(144, 895, amAirAttack) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
85 |
tempG = SpawnAmmoCrate(664, 699, amIceGun) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
86 |
tempG = SpawnAmmoCrate(1572, 444, amFirePunch) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
87 |
tempG = SpawnAmmoCrate(1574, 382, amDynamite) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
88 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
89 |
------ UTIL CRATE LIST ------ |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
90 |
tempG = SpawnUtilityCrate(654, 513, amParachute) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
91 |
tempG = SpawnUtilityCrate(1569, 413, amParachute) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
92 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
93 |
-- HOG AMMO |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
94 |
AddAmmo(hhs[1],amParachute,1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
95 |
AddAmmo(hhs[1],amHammer,1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
96 |
AddAmmo(hhs[2],amWhip,1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
97 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
98 |
for i = 3, 10 do |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
99 |
AddAmmo(hhs[i], amDeagle, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
100 |
AddAmmo(hhs[i], amShotgun, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
101 |
AddAmmo(hhs[i], amGrenade, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
102 |
AddAmmo(hhs[i], amBazooka, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
103 |
AddAmmo(hhs[i], amDrill, 100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
104 |
end |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
105 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
106 |
end |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
107 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
108 |
function onNewTurn() |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
109 |
SetWind(100) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
110 |
end |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
111 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
112 |
function onAmmoStoreInit() |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
113 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
114 |
SetAmmo(amBaseballBat, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
115 |
SetAmmo(amAirAttack, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
116 |
SetAmmo(amFirePunch, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
117 |
SetAmmo(amDynamite, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
118 |
SetAmmo(amHammer, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
119 |
SetAmmo(amIceGun, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
120 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
121 |
SetAmmo(amParachute, 0, 0, 0, 1) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
122 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
123 |
SetAmmo(amSwitch, 9, 0, 0, 0) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
124 |
SetAmmo(amSkip, 9, 0, 0, 0) |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
125 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
126 |
end |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
127 |
|
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
128 |
------------------------------ |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
129 |
-- I'm in whitesppaaaaaaaaaacceeeee :D |
553355472675
Fix broken x/y values on Dangerous Ducklings
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
130 |
------------------------------ |