share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
branchspacecampaign
changeset 9560 5872edd6864e
parent 9558 455f1260ef43
child 9562 241ffe433c3d
equal deleted inserted replaced
9558:455f1260ef43 9560:5872edd6864e
   183 		hero.dead = true
   183 		hero.dead = true
   184 	elseif gear == professor.gear then
   184 	elseif gear == professor.gear then
   185 		professor.dead = true
   185 		professor.dead = true
   186 	end
   186 	end
   187 end
   187 end
       
   188 
       
   189 function onPrecise()
       
   190 	if GameTime > 3000 then
       
   191 		SetAnimSkip(true)   
       
   192 	end
       
   193 end
       
   194 
       
   195 -------------- EVENTS ------------------
       
   196 
       
   197 function onHeroDeath(gear)
       
   198 	if hero.dead then
       
   199 		return true
       
   200 	end
       
   201 	return false
       
   202 end
       
   203 
       
   204 -------------- ACTIONS ------------------
       
   205 
       
   206 function heroDeath(gear)
       
   207 	SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1
       
   208 	SendStat('siCustomAchievement', loc("To win the game you have to eliminate your enemies")) --11
       
   209 	SendStat('siPlayerKills','1',teamC.name)
       
   210 	SendStat('siPlayerKills','0',teamA.name)
       
   211 	EndGame()
       
   212 end
       
   213 
       
   214 -------------- ANIMATIONS ------------------
       
   215 
       
   216 function Skipanim(anim)
       
   217 	if goals[anim] ~= nil then
       
   218 		ShowMission(unpack(goals[anim]))
       
   219     end
       
   220 end
       
   221 
       
   222 function AnimationSetup()
       
   223 	-- TODO ADD DIALOGS
       
   224 end