Nuclide
Software Development Kit for id Technology
vote.h
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
55var string g_strVoteCmd;
56var float g_flVoteTime;
58var int autocvar_mp_allowvote = TRUE;
59
60enum
61{
65};
66
67void Vote_End(void);
68void Vote_Reset(void);
69void Vote_Passed(void);
70void Vote_Failed(void);
71void Vote_Frame(void);
72void Vote_InitiateVote(string);
73void CSEv_VoteY(void);
74void CSEv_VoteN(void);
75void CSEv_CallVote_s(string);
76void Vote_Init(void);
77 // end of voting
void Vote_Reset(void)
Definition: vote.qc:40
void CSEv_VoteY(void)
Definition: vote.qc:117
void Vote_InitiateVote(string)
Definition: vote.qc:208
var string g_strVoteCmd
Definition: vote.h:55
void CSEv_CallVote_s(string)
Definition: vote.qc:234
void Vote_Init(void)
Definition: vote.qc:269
var int autocvar_mp_allowvote
Definition: vote.h:58
void Vote_Frame(void)
Definition: vote.qc:93
void Vote_End(void)
Definition: vote.qc:23
var int g_iVoteState
Definition: vote.h:57
void CSEv_VoteN(void)
Definition: vote.qc:162
void Vote_Passed(void)
Definition: vote.qc:60
var float g_flVoteTime
Definition: vote.h:56
void Vote_Failed(void)
Definition: vote.qc:77
@ VOTE_INACTIVE
Definition: vote.h:62
@ VOTE_INPROGRESS
Definition: vote.h:63
@ VOTE_PASSED
Definition: vote.h:64