diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2009-01-12 19:35:38 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2009-01-12 19:35:38 +0000 |
| commit | efd0dbab25533b67c0b231767318e903faf61f3c (patch) | |
| tree | df1e02fdacd121658360539951fdfab52ea24f84 /src/game/server/gamecontext.hpp | |
| parent | 2693bfdaecae78af20b12daff0c3b4eb2888203c (diff) | |
| download | zcatch-efd0dbab25533b67c0b231767318e903faf61f3c.tar.gz zcatch-efd0dbab25533b67c0b231767318e903faf61f3c.zip | |
added vote command on the server to enforce a vote. added sv_vote_kick_bantime to choose how long a user will be banned at votekick (0 for just kick) thanks to magnet and xara
Diffstat (limited to 'src/game/server/gamecontext.hpp')
| -rw-r--r-- | src/game/server/gamecontext.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/server/gamecontext.hpp b/src/game/server/gamecontext.hpp index e98593aa..bea087cb 100644 --- a/src/game/server/gamecontext.hpp +++ b/src/game/server/gamecontext.hpp @@ -57,6 +57,13 @@ public: int64 vote_closetime; char vote_description[512]; char vote_command[512]; + int vote_enforce; + enum + { + VOTE_ENFORCE_UNKNOWN=0, + VOTE_ENFORCE_NO, + VOTE_ENFORCE_YES, + }; // helper functions void create_damageind(vec2 p, float angle_mod, int amount); |