Nuclide
Software Development Kit for id Tech

Calling votes, evaluating them. More...

Enumerations

enum  { VOTE_INACTIVE , VOTE_INPROGRESS , VOTE_PASSED }
 

Functions

void Vote_End (void)
 
void Vote_Reset (void)
 
void Vote_Passed (void)
 
void Vote_Failed (void)
 
void Vote_Frame (void)
 
void Vote_InitiateVote (string)
 
void CSEv_VoteY (void)
 
void CSEv_VoteN (void)
 
void CSEv_CallVote_s (string)
 
void Vote_Init (void)
 

Variables

var string g_strVoteCmd
 
var float g_flVoteTime
 
var int g_iVoteState
 
var int autocvar_mp_allowvote = TRUE
 

Detailed Description

Calling votes, evaluating them.

Voting System

When the console variable mp_allowvote is set to 1, players are allowed access to the callvote command.

They have access to the following subcommands:

callvote map [mapname]

Will request a map change to the proposed map. Will alert when the map does not exist on the server.

callvote kick [player id]

Requests a player to be kicked.

callvote timelimit

Requests an adjustment to the timelimit.

callvote fraglimit

Requests an adjustment to the fraglimit.

callvote map_restart

Requests the map to restart, without altering the map cycle.

callvote nextmap

Requests a change to the next map.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VOTE_INACTIVE 
VOTE_INPROGRESS 
VOTE_PASSED 

Function Documentation

◆ CSEv_CallVote_s()

void CSEv_CallVote_s ( string  text)

◆ CSEv_VoteN()

void CSEv_VoteN ( void  )

◆ CSEv_VoteY()

void CSEv_VoteY ( void  )

◆ Vote_End()

void Vote_End ( void  )

◆ Vote_Failed()

void Vote_Failed ( void  )

◆ Vote_Frame()

void Vote_Frame ( void  )

◆ Vote_Init()

void Vote_Init ( void  )

◆ Vote_InitiateVote()

void Vote_InitiateVote ( string  votemsg)

◆ Vote_Passed()

void Vote_Passed ( void  )

◆ Vote_Reset()

void Vote_Reset ( void  )

Variable Documentation

◆ autocvar_mp_allowvote

var int autocvar_mp_allowvote = TRUE

◆ g_flVoteTime

var float g_flVoteTime

◆ g_iVoteState

var int g_iVoteState

◆ g_strVoteCmd

var string g_strVoteCmd