author | nemo |
Fri, 17 Aug 2018 22:23:19 -0400 | |
changeset 13669 | c6ee1b0b957f |
parent 13643 | 690cc84e9fd6 |
child 13742 | 2bb7141496a9 |
permissions | -rw-r--r-- |
11015 | 1 |
-- Hedgewars SniperRifle Training |
2 |
-- Scripting Example |
|
3 |
||
4 |
-- Lines such as this one are comments - they are ignored |
|
5 |
-- by the game, no matter what kind of text is in there. |
|
6 |
-- It's also possible to place a comment after some real |
|
7 |
-- instruction as you see below. In short, everything |
|
8 |
-- following "--" is ignored. |
|
9 |
||
10 |
--------------------------------------------------------------- |
|
11 |
-- At first we implement the localization library using loadfile. |
|
12 |
-- This allows us to localize strings without needing to think |
|
13 |
-- about translations. |
|
14 |
-- We can use the function loc(text) to localize a string. |
|
15 |
||
16 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
|
17 |
||
18 |
-- This variable will hold the number of destroyed targets. |
|
19 |
local score = 0 |
|
20 |
-- This variable will hold the number of shots from the sniper rifle |
|
21 |
local shots = 0 |
|
22 |
-- This variable represents the number of targets to destroy. |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
23 |
local score_goal = 27 |
11015 | 24 |
-- This variable controls how many milliseconds/ticks we'd |
25 |
-- like to wait before we end the round once all targets |
|
26 |
-- have been destroyed. |
|
27 |
local end_timer = 1000 -- 1000 ms = 1 s |
|
28 |
-- This variable is set to true if the game is lost (i.e. |
|
29 |
-- time runs out). |
|
30 |
local game_lost = false |
|
31 |
-- This variable will point to the hog's gear |
|
32 |
local player = nil |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
33 |
-- Current target gear |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
34 |
local target = nil |
11015 | 35 |
-- This variable will grab the time left at the end of the round |
36 |
local time_goal = 0 |
|
37 |
||
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
38 |
-- Like score, but targets before a blow-up sequence count double. |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
39 |
-- Used to calculate final target score |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
40 |
local score_bonus = 0 |
11015 | 41 |
|
11528 | 42 |
local cinematic = false |
43 |
||
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
44 |
-- Timer of dynamite (shorter than usual) |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
45 |
local dynamiteTimer = 2000 |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
46 |
-- Number of dynamite gears currently in game |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
47 |
local dynamiteCounter = 0 |
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
48 |
-- Table of dynamite gears, indexed by gear ID |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
49 |
local dynamiteGears = {} |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
50 |
|
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
51 |
-- Position for delayed targets |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
52 |
local delayedTargetTargetX, delayedTargetY |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
53 |
|
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
54 |
-- Team name of the player's team |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
55 |
local playerTeamName = loc("Sniperz") |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
56 |
|
11015 | 57 |
-- This is a custom function to make it easier to |
58 |
-- spawn more targets with just one line of code |
|
59 |
-- You may define as many custom functions as you |
|
60 |
-- like. |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
61 |
|
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
62 |
-- Spawns a target at (x, y) |
11015 | 63 |
function spawnTarget(x, y) |
64 |
-- add a new target gear |
|
65 |
target = AddGear(x, y, gtTarget, 0, 0, 0, 0) |
|
66 |
-- have the camera move to the target so the player knows where it is |
|
67 |
FollowGear(target) |
|
68 |
end |
|
69 |
||
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
70 |
-- Remembers position to spawn a target at (x, y) after a dynamite explosion |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
71 |
function spawnTargetDelayed(x, y) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
72 |
delayedTargetX = x |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
73 |
delayedTargetY = y |
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
74 |
-- The previous target always counts double after destruction |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
75 |
score_bonus = score_bonus + 1 |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
76 |
end |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
77 |
|
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
78 |
function getTargetScore() |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
79 |
return score_bonus * 200 |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
80 |
end |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
81 |
|
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
82 |
-- Cut sequence to blow up land with dynamite |
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
83 |
function blowUp(x, y, follow) |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
84 |
if cinematic == false then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
85 |
cinematic = true |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
86 |
SetCinematicMode(true) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
87 |
end |
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
88 |
-- Spawn dynamite with short timer |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
89 |
local dyna = AddGear(x, y, gtDynamite, 0, 0, 0, dynamiteTimer) |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
90 |
-- Fix dynamite animation due to non-default timer |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
91 |
SetTag(dyna, div(5000-dynamiteTimer, 166)) |
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
92 |
if follow then |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
93 |
FollowGear(dyna) |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
94 |
end |
11015 | 95 |
end |
96 |
||
97 |
function onNewTurn() |
|
98 |
SetWeapon(amSniperRifle) |
|
99 |
end |
|
100 |
||
101 |
-- This function is called before the game loads its |
|
102 |
-- resources. |
|
103 |
-- It's one of the predefined function names that will |
|
104 |
-- be called by the game. They give you entry points |
|
105 |
-- where you're able to call your own code using either |
|
106 |
-- provided instructions or custom functions. |
|
107 |
function onGameInit() |
|
108 |
-- At first we have to overwrite/set some global variables |
|
109 |
-- that define the map, the game has to load, as well as |
|
110 |
-- other things such as the game rules to use, etc. |
|
111 |
-- Things we don't modify here will use their default values. |
|
112 |
||
113 |
-- The base number for the random number generator |
|
114 |
Seed = 0 |
|
115 |
-- Game settings and rules |
|
13099
071dcdf33f86
Fix artillery being broken in some missions
Wuzzy <Wuzzy2@mail.ru>
parents:
13065
diff
changeset
|
116 |
ClearGameFlags() |
071dcdf33f86
Fix artillery being broken in some missions
Wuzzy <Wuzzy2@mail.ru>
parents:
13065
diff
changeset
|
117 |
EnableGameFlags(gfMultiWeapon, gfOneClanMode, gfArtillery) |
11015 | 118 |
-- The time the player has to move each round (in ms) |
119 |
TurnTime = 150000 |
|
120 |
-- The frequency of crate drops |
|
121 |
CaseFreq = 0 |
|
122 |
-- The number of mines being placed |
|
123 |
MinesNum = 0 |
|
124 |
-- The number of explosives being placed |
|
125 |
Explosives = 0 |
|
126 |
-- The delay between each round |
|
127 |
Delay = 0 |
|
128 |
-- The map to be played |
|
129 |
Map = "Ropes" |
|
130 |
-- The theme to be used |
|
11017
16c47a5573e4
change theme used by sniper training, for performance reasons
sheepluva
parents:
11015
diff
changeset
|
131 |
Theme = "Golf" |
12224
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
132 |
-- Disable Sudden Death |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
133 |
WaterRise = 0 |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
134 |
HealthDecrease = 0 |
11015 | 135 |
|
136 |
-- Create the player team |
|
13583
141cdfe0f3ca
Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents:
13099
diff
changeset
|
137 |
AddTeam(playerTeamName, -1, "Simple", "Island", "Default", "cm_crosshair") |
11015 | 138 |
-- And add a hog to it |
139 |
player = AddHog(loc("Hunter"), 0, 1, "Sniper") |
|
140 |
SetGearPosition(player, 602, 1465) |
|
141 |
end |
|
142 |
||
143 |
-- This function is called when the round starts |
|
144 |
-- it spawns the first target that has to be destroyed. |
|
145 |
-- In addition it shows the scenario goal(s). |
|
146 |
function onGameStart() |
|
147 |
-- Disable graph in stats screen |
|
148 |
SendHealthStatsOff() |
|
149 |
-- Spawn the first target. |
|
150 |
spawnTarget(860,1020) |
|
11017
16c47a5573e4
change theme used by sniper training, for performance reasons
sheepluva
parents:
11015
diff
changeset
|
151 |
|
11015 | 152 |
-- Show some nice mission goals. |
153 |
-- Parameters are: caption, sub caption, description, |
|
154 |
-- extra text, icon and time to show. |
|
155 |
-- A negative icon parameter (-n) represents the n-th weapon icon |
|
156 |
-- A positive icon paramter (n) represents the (n+1)-th mission icon |
|
157 |
-- A timeframe of 0 is replaced with the default time to show. |
|
158 |
ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amSniperRifle, 0) |
|
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
159 |
|
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
160 |
-- Displayed initial player score |
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
161 |
SetTeamLabel(playerTeamName, "0") |
11015 | 162 |
end |
163 |
||
164 |
-- This function is called every game tick. |
|
165 |
-- Note that there are 1000 ticks within one second. |
|
166 |
-- You shouldn't try to calculate too complicated |
|
167 |
-- code here as this might slow down your game. |
|
168 |
function onGameTick20() |
|
169 |
if game_lost then |
|
170 |
return |
|
171 |
end |
|
172 |
-- If time's up, set the game to be lost. |
|
173 |
-- We actually check the time to be "1 ms" as it |
|
174 |
-- will be at "0 ms" right at the start of the game. |
|
175 |
if TurnTimeLeft < 40 and TurnTimeLeft > 0 and score < score_goal and game_lost == false then |
|
176 |
game_lost = true |
|
177 |
-- ... and show a short message. |
|
178 |
AddCaption(loc("Time's up!")) |
|
179 |
ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Oh no! Time's up! Just try again."), -amSkip, 0) |
|
180 |
-- and generate the stats and go to the stats screen |
|
181 |
generateStats() |
|
182 |
EndGame() |
|
183 |
-- Just to be sure set the goal time to 1 ms |
|
184 |
time_goal = 1 |
|
185 |
end |
|
186 |
-- If the goal is reached or we've lost ... |
|
187 |
if score == score_goal or game_lost then |
|
188 |
-- ... check to see if the time we'd like to |
|
189 |
-- wait has passed and then ... |
|
190 |
if end_timer == 0 then |
|
191 |
-- ... end the game ... |
|
192 |
generateStats() |
|
193 |
EndGame() |
|
194 |
else |
|
195 |
-- ... or just lower the timer by 1. |
|
196 |
-- Reset the time left to stop the timer |
|
197 |
TurnTimeLeft = time_goal |
|
198 |
end |
|
199 |
end_timer = end_timer - 20 |
|
200 |
end |
|
201 |
end |
|
202 |
||
203 |
-- This function is called when the game is initialized |
|
204 |
-- to request the available ammo and probabilities |
|
205 |
function onAmmoStoreInit() |
|
206 |
-- add an unlimited supply of shotgun ammo |
|
207 |
SetAmmo(amSniperRifle, 9, 0, 0, 0) |
|
208 |
end |
|
209 |
||
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
210 |
--[[ Re-center camera to target after using sniper rifle. |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
211 |
This makes it easier to find the target. If we don't |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
212 |
do this, the camera would contantly bounce back to |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
213 |
the hog which would be annoying. ]] |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
214 |
function onAttack() |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
215 |
if target and GetCurAmmoType() == amSniperRifle then |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
216 |
FollowGear(target) |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
217 |
end |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
218 |
end |
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
219 |
|
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
220 |
-- Insta-blow up dynamite with precise key |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
221 |
function onPrecise() |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
222 |
for gear, _ in pairs(dynamiteGears) do |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
223 |
SetTimer(gear, 0) |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
224 |
end |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
225 |
end |
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
226 |
|
11015 | 227 |
-- This function is called when a new gear is added. |
228 |
-- We use it to count the number of shots, which we |
|
229 |
-- in turn use to calculate the final score and stats |
|
230 |
function onGearAdd(gear) |
|
231 |
if GetGearType(gear) == gtSniperRifleShot then |
|
232 |
shots = shots + 1 |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
233 |
elseif GetGearType(gear) == gtDynamite then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
234 |
dynamiteCounter = dynamiteCounter + 1 |
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
235 |
dynamiteGears[gear] = true |
11015 | 236 |
end |
237 |
end |
|
238 |
||
239 |
-- This function is called before a gear is destroyed. |
|
240 |
-- We use it to count the number of targets destroyed. |
|
241 |
function onGearDelete(gear) |
|
11528 | 242 |
local gt = GetGearType(gear) |
11017
16c47a5573e4
change theme used by sniper training, for performance reasons
sheepluva
parents:
11015
diff
changeset
|
243 |
|
11528 | 244 |
if gt == gtCase then |
11015 | 245 |
game_lost = true |
246 |
return |
|
247 |
end |
|
11017
16c47a5573e4
change theme used by sniper training, for performance reasons
sheepluva
parents:
11015
diff
changeset
|
248 |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
249 |
if (gt == gtDynamite) then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
250 |
-- Dynamite blow-up, used to continue the game. |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
251 |
dynamiteCounter = dynamiteCounter - 1 |
12729
4e0e59255856
Sniper rifle mission: Faster dynamite blow-up, also skip with precise
Wuzzy <Wuzzy2@mail.ru>
parents:
12728
diff
changeset
|
252 |
dynamiteGears[gear] = nil |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
253 |
|
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
254 |
-- Wait for all dynamites to be destroyed before we continue. |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
255 |
-- Most cut scenes spawn multiple dynamites. |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
256 |
if dynamiteCounter == 0 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
257 |
if cinematic then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
258 |
cinematic = false |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
259 |
SetCinematicMode(false) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
260 |
end |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
261 |
-- Now *actually* spawn the delayed target |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
262 |
spawnTarget(delayedTargetX, delayedTargetY) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
263 |
end |
11528 | 264 |
return |
265 |
end |
|
266 |
||
267 |
if gt == gtTarget then |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
268 |
target = nil |
11015 | 269 |
-- Add one point to our score/counter |
270 |
score = score + 1 |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
271 |
score_bonus = score_bonus + 1 |
11015 | 272 |
-- If we haven't reached the goal ... |
273 |
if score < score_goal then |
|
274 |
-- ... spawn another target. |
|
275 |
if score == 1 then |
|
276 |
spawnTarget(1520,1350) |
|
277 |
elseif score == 2 then |
|
278 |
spawnTarget(1730,1040) |
|
279 |
elseif score == 3 then |
|
280 |
spawnTarget(2080,780) |
|
281 |
elseif score == 4 then |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
282 |
-- Short cut scene, blows up up lots up land and prepares |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
283 |
-- next target position. |
11015 | 284 |
AddCaption(loc("Good so far!") .. " " .. loc("Keep it up!")); |
285 |
blowUp(1730,1226) |
|
286 |
blowUp(1440,1595) |
|
287 |
blowUp(1527,1575) |
|
288 |
blowUp(1614,1595) |
|
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
289 |
blowUp(1420,1675, true) |
11015 | 290 |
blowUp(1527,1675) |
291 |
blowUp(1634,1675) |
|
292 |
blowUp(1440,1755) |
|
293 |
blowUp(1527,1775) |
|
294 |
blowUp(1614,1755) |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
295 |
-- Target appears *after* the cutscene. |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
296 |
spawnTargetDelayed(1527,1667) |
11015 | 297 |
elseif score == 5 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
298 |
spawnTarget(2175,1300) |
11015 | 299 |
elseif score == 6 then |
300 |
spawnTarget(2250,940) |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
301 |
elseif score == 7 then |
11015 | 302 |
spawnTarget(2665,1540) |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
303 |
elseif score == 8 then |
11015 | 304 |
spawnTarget(3040,1160) |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
305 |
elseif score == 9 then |
11015 | 306 |
spawnTarget(2930,1500) |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
307 |
elseif score == 10 then |
11015 | 308 |
AddCaption(loc("This one's tricky.")); |
309 |
spawnTarget(700,720) |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
310 |
elseif score == 11 then |
11015 | 311 |
AddCaption(loc("Well done.")); |
312 |
blowUp(914,1222) |
|
313 |
blowUp(1050,1222) |
|
314 |
blowUp(1160,1008) |
|
315 |
blowUp(1160,1093) |
|
316 |
blowUp(1160,1188) |
|
317 |
blowUp(375,911) |
|
318 |
blowUp(510,911) |
|
319 |
blowUp(640,911) |
|
320 |
blowUp(780,911) |
|
321 |
blowUp(920,911) |
|
322 |
blowUp(1060,913) |
|
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
323 |
blowUp(1198,913, true) |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
324 |
spawnTargetDelayed(1200,830) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
325 |
elseif score == 12 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
326 |
spawnTarget(1430,450) |
11015 | 327 |
elseif score == 13 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
328 |
spawnTarget(796,240) |
11015 | 329 |
elseif score == 14 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
330 |
spawnTarget(300,10) |
11015 | 331 |
elseif score == 15 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
332 |
spawnTarget(2080,820) |
11015 | 333 |
elseif score == 16 then |
334 |
AddCaption(loc("Demolition is fun!")); |
|
335 |
blowUp(2110,920) |
|
336 |
blowUp(2210,920) |
|
337 |
blowUp(2200,305) |
|
338 |
blowUp(2300,305) |
|
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
339 |
blowUp(2300,400, true) |
11015 | 340 |
blowUp(2300,500) |
341 |
blowUp(2300,600) |
|
342 |
blowUp(2300,700) |
|
343 |
blowUp(2300,800) |
|
344 |
blowUp(2300,900) |
|
345 |
blowUp(2401,305) |
|
346 |
blowUp(2532,305) |
|
347 |
blowUp(2663,305) |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
348 |
spawnTargetDelayed(2300,760) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
349 |
elseif score == 17 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
350 |
spawnTarget(2738,190) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
351 |
elseif score == 18 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
352 |
spawnTarget(2590,-100) |
11015 | 353 |
elseif score == 19 then |
354 |
AddCaption(loc("Will this ever end?")); |
|
355 |
blowUp(2790,305) |
|
356 |
blowUp(2930,305) |
|
357 |
blowUp(3060,305) |
|
358 |
blowUp(3190,305) |
|
12728
745d5c9a3abc
Sniper rifle training: Fix general camera weirdness
Wuzzy <Wuzzy2@mail.ru>
parents:
12727
diff
changeset
|
359 |
blowUp(3310,305, true) |
11015 | 360 |
blowUp(3393,613) |
361 |
blowUp(2805,370) |
|
362 |
blowUp(2805,500) |
|
363 |
blowUp(2805,630) |
|
364 |
blowUp(2805,760) |
|
365 |
blowUp(2805,890) |
|
366 |
blowUp(3258,370) |
|
367 |
blowUp(3258,475) |
|
368 |
blowUp(3264,575) |
|
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
369 |
spawnTargetDelayed(3230,290) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
370 |
elseif score == 20 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
371 |
spawnTarget(3670,250) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
372 |
elseif score == 21 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
373 |
spawnTarget(2620,-100) |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
374 |
elseif score == 22 then |
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
375 |
spawnTarget(2870,300) |
11015 | 376 |
elseif score == 23 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
377 |
spawnTarget(3850,900) |
11015 | 378 |
elseif score == 24 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
379 |
spawnTarget(3780,300) |
11015 | 380 |
elseif score == 25 then |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
381 |
spawnTarget(3670,0) |
11015 | 382 |
elseif score == 26 then |
383 |
AddCaption(loc("Last Target!")); |
|
384 |
spawnTarget(3480,1200) |
|
385 |
end |
|
386 |
else |
|
387 |
if not game_lost then |
|
12730
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
388 |
-- Victory! |
13643 | 389 |
AddCaption(loc("Victory!"), capcolDefault, capgrpGameState) |
11015 | 390 |
ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Congratulations! You've eliminated all targets|within the allowed time frame."), 0, 0) |
391 |
-- Also let the hogs shout "victory!" |
|
12730
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
392 |
PlaySound(sndVictory, CurrentHedgehog) |
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
393 |
FollowGear(CurrentHedgehog) |
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
394 |
|
12913
20e627c1ac20
ClimbHome, Sniper Rifle training: Unselect weapon after victory
Wuzzy <Wuzzy2@mail.ru>
parents:
12731
diff
changeset
|
395 |
-- Unselect sniper rifle and disable hog controls |
12730
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
396 |
SetInputMask(0) |
12913
20e627c1ac20
ClimbHome, Sniper Rifle training: Unselect weapon after victory
Wuzzy <Wuzzy2@mail.ru>
parents:
12731
diff
changeset
|
397 |
SetWeapon(amNothing) |
12730
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
398 |
AddAmmo(CurrentHedgehog, amSniperRifle, 0) |
2c4a07eb2112
Sniper rifle training: Fix missing victory sound, also disable controls at the end
Wuzzy <Wuzzy2@mail.ru>
parents:
12729
diff
changeset
|
399 |
|
11015 | 400 |
-- Save the time left so we may keep it. |
401 |
time_goal = TurnTimeLeft |
|
402 |
end |
|
403 |
end |
|
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
404 |
SetTeamLabel(playerTeamName, getTargetScore()) |
11015 | 405 |
end |
406 |
end |
|
407 |
||
408 |
-- This function calculates the final score of the player and provides some texts and |
|
409 |
-- data for the final stats screen |
|
410 |
function generateStats() |
|
12731
2b0a4a4b1ba2
Fix division by 0 in sniper rifle training
Wuzzy <Wuzzy2@mail.ru>
parents:
12730
diff
changeset
|
411 |
local accuracy = 0 |
2b0a4a4b1ba2
Fix division by 0 in sniper rifle training
Wuzzy <Wuzzy2@mail.ru>
parents:
12730
diff
changeset
|
412 |
if shots > 0 then |
2b0a4a4b1ba2
Fix division by 0 in sniper rifle training
Wuzzy <Wuzzy2@mail.ru>
parents:
12730
diff
changeset
|
413 |
accuracy = (score/shots)*100 |
2b0a4a4b1ba2
Fix division by 0 in sniper rifle training
Wuzzy <Wuzzy2@mail.ru>
parents:
12730
diff
changeset
|
414 |
end |
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
415 |
local end_score_targets = getTargetScore() |
11015 | 416 |
local end_score_overall |
417 |
if not game_lost then |
|
418 |
local end_score_time = math.ceil(time_goal/5) |
|
419 |
local end_score_accuracy = math.ceil(accuracy * 100) |
|
420 |
end_score_overall = end_score_time + end_score_targets + end_score_accuracy |
|
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
421 |
SetTeamLabel(playerTeamName, tostring(end_score_overall)) |
11015 | 422 |
|
423 |
SendStat(siGameResult, loc("You have successfully finished the sniper rifle training!")) |
|
424 |
SendStat(siCustomAchievement, string.format(loc("You have destroyed %d of %d targets (+%d points)."), score, score_goal, end_score_targets)) |
|
425 |
SendStat(siCustomAchievement, string.format(loc("You have made %d shots."), shots)) |
|
426 |
SendStat(siCustomAchievement, string.format(loc("Accuracy bonus: +%d points"), end_score_accuracy)) |
|
427 |
SendStat(siCustomAchievement, string.format(loc("You had %.2fs remaining on the clock (+%d points)."), (time_goal/1000), end_score_time)) |
|
428 |
else |
|
429 |
SendStat(siGameResult, loc("You lose!")) |
|
11017
16c47a5573e4
change theme used by sniper training, for performance reasons
sheepluva
parents:
11015
diff
changeset
|
430 |
|
11015 | 431 |
SendStat(siCustomAchievement, string.format(loc("You have destroyed %d of %d targets (+%d points)."), score, score_goal, end_score_targets)) |
432 |
SendStat(siCustomAchievement, string.format(loc("You have made %d shots."), shots)) |
|
433 |
end_score_overall = end_score_targets |
|
434 |
end |
|
12346
fb22caa19600
Fix incorrect PointsType in sniper rifle training and That Sinking Feeling
Wuzzy <almikes@aol.com>
parents:
12224
diff
changeset
|
435 |
SendStat(siPointType, loc("points")) |
13065
a297e06d1607
Display score next to team bar in singleplayer challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
12913
diff
changeset
|
436 |
SendStat(siPlayerKills, tostring(end_score_overall), playerTeamName) |
11015 | 437 |
end |
12727
23fb2179945f
Sniper rifle mission: Fix targets spawning twice in dynamite scenes, jacking up the total amount of targets
Wuzzy <Wuzzy2@mail.ru>
parents:
12346
diff
changeset
|
438 |