share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
changeset 13720 8e3d2f7d8737
parent 13173 4d1cf0d76eb7
child 14230 8edbdd3a1fe7
equal deleted inserted replaced
13719:7edaeca8f816 13720:8e3d2f7d8737
    45     setTeamValue(GetHogTeamName(hog), "processed", false)
    45     setTeamValue(GetHogTeamName(hog), "processed", false)
    46 end
    46 end
    47 
    47 
    48 function onGameInit()
    48 function onGameInit()
    49     -- Limit flags that can be set, but allow game schemes to be used
    49     -- Limit flags that can be set, but allow game schemes to be used
    50     DisableGameFlags(gfInfAttack)
    50     DisableGameFlags(gfInfAttack, gfPerHogAmmo, gfSharedAmmo)
    51     EnableGameFlags(gfResetWeps)
    51     EnableGameFlags(gfResetWeps)
    52     -- Set a custom game goal that will show together with the scheme ones
    52     -- Set a custom game goal that will show together with the scheme ones
    53     Goals = loc("Each turn you get one random weapon")
    53     Goals = loc("Each turn you get one random weapon")
    54 end
    54 end
    55 
    55