174 end |
174 end |
175 |
175 |
176 -------------- ACTIONS ------------------ |
176 -------------- ACTIONS ------------------ |
177 |
177 |
178 function heroDeath(gear) |
178 function heroDeath(gear) |
179 SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
179 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
180 SendStat('siCustomAchievement', loc("You have to eliminate all the enemies")) --11 |
180 SendStat(siCustomAchievement, loc("You have to eliminate all the enemies")) |
181 SendStat('siCustomAchievement', loc("Read the Challenge Objectives from within the mission for more details")) --11 |
181 SendStat(siCustomAchievement, loc("Read the Challenge Objectives from within the mission for more details")) |
182 SendStat('siPlayerKills','1',teamB.name) |
182 SendStat(siPlayerKills,'1',teamB.name) |
183 SendStat('siPlayerKills','0',teamA.name) |
183 SendStat(siPlayerKills,'0',teamA.name) |
184 EndGame() |
184 EndGame() |
185 end |
185 end |
186 |
186 |
187 function heroWin(gear) |
187 function heroWin(gear) |
188 saveBonus(3, 4) |
188 saveBonus(3, 4) |
189 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
189 SendStat(siGameResult, loc("Congratulations, you won!")) |
190 SendStat('siCustomAchievement', loc("You complete the mission in "..TotalRounds.." rounds")) --11 |
190 SendStat(siCustomAchievement, loc("You complete the mission in "..TotalRounds.." rounds")) |
191 SendStat('siCustomAchievement', loc("The next 4 times you'll play the \"The last encounter\" mission you'll get 20 more hit points and a Laser Sight")) --11 |
191 SendStat(siCustomAchievement, loc("The next 4 times you'll play the \"The last encounter\" mission you'll get 20 more hit points and a Laser Sight")) |
192 SendStat('siPlayerKills','1',teamA.name) |
192 SendStat(siPlayerKills,'1',teamA.name) |
193 EndGame() |
193 EndGame() |
194 end |
194 end |
195 |
195 |
196 -------------- ANIMATIONS ------------------ |
196 -------------- ANIMATIONS ------------------ |
197 |
197 |