37 voter.mapvote =
CS(voter).impulse;
40 CS(voter).impulse = 0;
125 string basetype =
"";
151 mv_picpath =
strcat(
"gfx/menu/wickedx/gametype_", basetype);
221 int gametypevote_flags =
ReadByte();
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void MapVote_CheckPic(string pic, string pk3, int id)
bool PreviewExists(string name)
bool mv_selection_keyboard
float mv_select_lasttime[MAPVOTE_COUNT]
int mv_flags_start[MAPVOTE_COUNT]
(gt) mv_flags initially
float mv_suggester_cachetime
string mv_suggester_cache
string mv_desc[MAPVOTE_COUNT]
(gt) gametype description
string mv_data[MAPVOTE_COUNT]
(shared) map pk3 name/gametype human readable name
string autocvar_menu_skin
float mv_preview[MAPVOTE_COUNT]
(shared) whether there is a pic
string mv_pics[MAPVOTE_COUNT]
(shared) pic file location
bool ClientCommand_antispam(entity this, string command,.float antispam_fld, float antispam_time, int antispam_count)
Returns true if antispam should prevent the command.
const int SF_MV_DETAIL_COUNTS
mv_detail 1
const int SF_MV_ABSTAIN
mv_abstain is true if this is set
const int SF_MV_DETAIL_WINNER
mv_detail 2
WriteString(chan, ent.netname)
WriteByte(chan, ent.angles.y/DEC_FACTOR)
bool autocvar_hud_cursormode
noref float vid_conheight
#define NET_HANDLE(id, param)
#define WriteHeader(to, id)
void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
string MapInfo_Type_ToString(Gametype t)
string MapInfo_Type_Description(Gametype t)
string MapInfo_Type_ToText(Gametype t)
Gametype MapInfo_Type_FromString(string gtype, bool dowarn, bool is_q3compat)
void MapVote_ReadPlayerVote(entity voter)
void MapVote_WriteOption(int i)
Sends a single map vote option to the client.
bool MapVote_SendEntity(entity this, entity to, int sf)
void GameTypeVote_ReadOption(int i)
void GameTypeVote_WriteOption(int i)
Sends a single gametype vote option to the client.
void MapVote_Winner(int mappos)
void MapVote_Init_Server()
void MapVote_ReadOption(int i)
void MapVote_WritePicture(entity to, int id)
void MapVote_WritePlayerVote(int index)
void MapVote_Init_Client(int sf)
bool mv_abstain
(shared) if abstaining is possible, false in gametype voting
int mv_count
(shared) number of maps/gametypes
const int GTV_CUSTOM
Custom entry.
int mv_flags[MAPVOTE_COUNT]
(shared) map/gametype flags
string mv_entries[MAPVOTE_COUNT]
(shared) map name or gametype name
int mv_detail
(shared) how much information about the votes/results is revealed
string mv_ssdirs[MAPVOTE_SSDIRS_COUNT]
int mv_count_real
(shared) number of maps/gametypes, excluding abstain
const int GTV_AVAILABLE
Can be voted.
int mv_votes[MAPVOTE_COUNT]
(shared) number of votes for the map/gametype
string mv_suggester[MAPVOTE_COUNT]
(maps) .netname of the player who suggested the map
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
ClientState CS(Client this)
bool autocvar_sv_vote_gametype
int mv_ranked[MAPVOTE_COUNT]
(shared) maps/gametypes ranked by most votes, first = most
string mv_pakfile[MAPVOTE_COUNT]
(maps) pk3 file location
string voted_gametype_string
bool mv_show_suggester
(maps) whether to show suggesters, only for maps since you can't suggest gametypes
int mv_ssdir_i[MAPVOTE_COUNT]
(shared) where to look for screenshots (mv_ssdirs index), set to 0 for gametype voting