diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-24 14:47:03 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-24 14:47:03 +0000 |
| commit | 917ebc17c617dfd27e4e997dce713cb1dfb6cfdc (patch) | |
| tree | 11d85f18ef289de3de322bed5274dc616c23ac45 /datasrc/network.py | |
| parent | 2f28978237f0ead749a39229f1c683df63d34871 (diff) | |
| download | zcatch-917ebc17c617dfd27e4e997dce713cb1dfb6cfdc.tar.gz zcatch-917ebc17c617dfd27e4e997dce713cb1dfb6cfdc.zip | |
begun the work on voting
Diffstat (limited to 'datasrc/network.py')
| -rw-r--r-- | datasrc/network.py | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/datasrc/network.py b/datasrc/network.py index 0f1d3496..8d0bf246 100644 --- a/datasrc/network.py +++ b/datasrc/network.py @@ -224,7 +224,19 @@ Messages = [ NetIntRange("cid", 0, 'MAX_CLIENTS-1'), NetIntRange("emoticon", 0, 'NUM_EMOTICONS-1'), ]), - + + NetMessage("sv_vote_set", [ + NetIntRange("timeout", 0, 60), + NetString("description"), + NetString("command"), + ]), + + NetMessage("sv_vote_status", [ + NetIntRange("yes", 0, 'MAX_CLIENTS'), + NetIntRange("no", 0, 'MAX_CLIENTS'), + NetIntRange("pass", 0, 'MAX_CLIENTS'), + NetIntRange("total", 0, 'MAX_CLIENTS'), + ]), ### Client messages NetMessage("cl_say", [ @@ -251,11 +263,14 @@ Messages = [ NetIntAny("color_body"), NetIntAny("color_feet"), ]), - + NetMessage("cl_kill", []), NetMessage("cl_emoticon", [ NetIntRange("emoticon", 0, 'NUM_EMOTICONS-1'), ]), - + + NetMessage("cl_vote", [ + NetIntRange("vote", -1, 1), + ]), ] |