Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
mapvoting.qh File Reference
#include <common/mapinfo.qh>
Include dependency graph for mapvoting.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const int GTV_AVAILABLE = 1
 Can be voted.
const int GTV_CUSTOM = 2
 Custom entry.
const int GTV_FORBIDDEN = 0
 Cannot be voted.
const int MAPVOTE_COUNT = 20
 Max number of votable maps/gametypes.
const int MAPVOTE_SSDIRS_COUNT = 4
bool mv_abstain
 (shared) if abstaining is possible, false in gametype voting
int mv_count
 (shared) number of maps/gametypes
int mv_count_real
 (shared) number of maps/gametypes, excluding abstain
int mv_detail
 (shared) how much information about the votes/results is revealed
string mv_entries [MAPVOTE_COUNT]
 (shared) map name or gametype name
int mv_flags [MAPVOTE_COUNT]
 (shared) map/gametype flags
float mv_reduce_time
string mv_ssdirs [MAPVOTE_SSDIRS_COUNT]
int mv_ssdirs_count
string mv_suggester [MAPVOTE_COUNT]
 (maps) .netname of the player who suggested the map
float mv_timeout
int mv_votes [MAPVOTE_COUNT]
 (shared) number of votes for the map/gametype
int mv_winner

Variable Documentation

◆ GTV_AVAILABLE

◆ GTV_CUSTOM

const int GTV_CUSTOM = 2

◆ GTV_FORBIDDEN

const int GTV_FORBIDDEN = 0

Cannot be voted.

Definition at line 27 of file mapvoting.qh.

Referenced by GameTypeVote_AvailabilityStatus().

◆ MAPVOTE_COUNT

const int MAPVOTE_COUNT = 20

Max number of votable maps/gametypes.

Definition at line 6 of file mapvoting.qh.

Referenced by GameTypeVote_GetMask(), GameTypeVote_Start(), MapVote_Init(), and MapVote_Suggest().

◆ MAPVOTE_SSDIRS_COUNT

const int MAPVOTE_SSDIRS_COUNT = 4

Definition at line 8 of file mapvoting.qh.

Referenced by MapVote_Init().

◆ mv_abstain

bool mv_abstain

(shared) if abstaining is possible, false in gametype voting

Definition at line 21 of file mapvoting.qh.

Referenced by GameTypeVote_Start(), MapVote_CheckPic(), MapVote_CheckRules_decide(), MapVote_Draw(), MapVote_Init(), MapVote_Init_Client(), MapVote_ReadMask(), MapVote_Selection(), and MapVote_SendEntity().

◆ mv_count

◆ mv_count_real

◆ mv_detail

int mv_detail

(shared) how much information about the votes/results is revealed

Definition at line 20 of file mapvoting.qh.

Referenced by GameTypeVote_Start(), MapVote_FormatItem(), MapVote_Init(), MapVote_Init_Client(), MapVote_SendEntity(), and NET_HANDLE().

◆ mv_entries

◆ mv_flags

◆ mv_reduce_time

float mv_reduce_time

◆ mv_ssdirs

◆ mv_ssdirs_count

int mv_ssdirs_count

◆ mv_suggester

◆ mv_timeout

◆ mv_votes

◆ mv_winner