Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
mapvoting.qh
Go to the documentation of this file.
1#pragma once
2
3#ifdef GAMEQC
4#include <common/mapinfo.qh>
5
6const int MAPVOTE_COUNT = 20;
7
8const int MAPVOTE_SSDIRS_COUNT = 4;
11
12// Globals in CSQC & SVQC
13// "shared" = maps & gametypes
25
26// Gametype vote flags
27const int GTV_FORBIDDEN = 0;
28const int GTV_AVAILABLE = 1;
29const int GTV_CUSTOM = 2;
30#endif // GAMEQC
bool mv_abstain
(shared) if abstaining is possible, false in gametype voting
Definition mapvoting.qh:21
int mv_count
(shared) number of maps/gametypes
Definition mapvoting.qh:14
const int GTV_CUSTOM
Custom entry.
Definition mapvoting.qh:29
const int GTV_FORBIDDEN
Cannot be voted.
Definition mapvoting.qh:27
int mv_ssdirs_count
Definition mapvoting.qh:10
int mv_flags[MAPVOTE_COUNT]
(shared) map/gametype flags
Definition mapvoting.qh:18
const int MAPVOTE_COUNT
Max number of votable maps/gametypes.
Definition mapvoting.qh:6
string mv_entries[MAPVOTE_COUNT]
(shared) map name or gametype name
Definition mapvoting.qh:16
int mv_detail
(shared) how much information about the votes/results is revealed
Definition mapvoting.qh:20
string mv_ssdirs[MAPVOTE_SSDIRS_COUNT]
Definition mapvoting.qh:9
float mv_reduce_time
Definition mapvoting.qh:22
int mv_winner
Definition mapvoting.qh:24
int mv_count_real
(shared) number of maps/gametypes, excluding abstain
Definition mapvoting.qh:15
const int GTV_AVAILABLE
Can be voted.
Definition mapvoting.qh:28
int mv_votes[MAPVOTE_COUNT]
(shared) number of votes for the map/gametype
Definition mapvoting.qh:19
const int MAPVOTE_SSDIRS_COUNT
Definition mapvoting.qh:8
string mv_suggester[MAPVOTE_COUNT]
(maps) .netname of the player who suggested the map
Definition mapvoting.qh:17
float mv_timeout
Definition mapvoting.qh:23