share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 10022 eb981a03de90
parent 9483 14ad1ac00ac9
child 10036 3be36d2fdca6
equal deleted inserted replaced
10021:7f36194af01c 10022:eb981a03de90
    70 -----------------------------
    70 -----------------------------
    71 -- SCRIPT BEGINS
    71 -- SCRIPT BEGINS
    72 -----------------------------
    72 -----------------------------
    73 
    73 
    74 HedgewarsScriptLoad("/Scripts/Locale.lua")
    74 HedgewarsScriptLoad("/Scripts/Locale.lua")
       
    75 HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua")
    75 
    76 
    76 ------------------
    77 ------------------
    77 -- Got Variables?
    78 -- Got Variables?
    78 ------------------
    79 ------------------
    79 
    80 
   716         if GetGearType(gear) == gtAirAttack then
   717         if GetGearType(gear) == gtAirAttack then
   717                 cGear = nil
   718                 cGear = nil
   718         end
   719         end
   719 
   720 
   720 end
   721 end
       
   722 
       
   723 
       
   724 function onAchievementsDeclaration()
       
   725     map = detectMap()
       
   726     
       
   727     for i = 0, (numTeams-1) do
       
   728         if teamScore[i] < 100000 then
       
   729             DeclareAchievement("rope race", teamNameArr[i], map, teamScore[i])
       
   730         end
       
   731     end
       
   732 end