share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
changeset 5352 7f57d0c7816a
parent 5141 2fb6555011d3
child 8043 da083f8d95e6
equal deleted inserted replaced
5349:ce527b35d063 5352:7f57d0c7816a
    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 + gfPerHogAmmo))
    49     GameFlags = band(bor(GameFlags, gfResetWeps), bnot(gfInfAttack))
    50     -- Set a custom game goal that will show together with the scheme ones
    50     -- Set a custom game goal that will show together with the scheme ones
    51     Goals = loc("Each turn you get one random weapon")
    51     Goals = loc("Each turn you get one random weapon")
    52 end
    52 end
    53 
    53 
    54 function onGameStart()
    54 function onGameStart()