share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
changeset 10036 3be36d2fdca6
parent 8043 da083f8d95e6
child 12207 2de020695c20
equal deleted inserted replaced
10035:ec523f66d0ff 10036:3be36d2fdca6
    44     setTeamValue(GetHogTeamName(hog), "processed", false)
    44     setTeamValue(GetHogTeamName(hog), "processed", false)
    45 end
    45 end
    46 
    46 
    47 function onGameInit()
    47 function onGameInit()
    48     -- Limit flags that can be set, but allow game schemes to be used
    48     -- Limit flags that can be set, but allow game schemes to be used
    49     GameFlags = band(bor(GameFlags, gfResetWeps), bnot(gfInfAttack))
    49     DisableGameFlags(gfInfAttack)
       
    50     EnableGameFlags(gfResetWeps)
    50     -- Set a custom game goal that will show together with the scheme ones
    51     -- Set a custom game goal that will show together with the scheme ones
    51     Goals = loc("Each turn you get one random weapon")
    52     Goals = loc("Each turn you get one random weapon")
    52 end
    53 end
    53 
    54 
    54 function onGameStart()
    55 function onGameStart()