share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
changeset 10044 33e64afccd3b
parent 10036 3be36d2fdca6
child 12207 2de020695c20
equal deleted inserted replaced
10043:ca075f0f7cfb 10044:33e64afccd3b
    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()