Xonotic
|
Go to the source code of this file.
Macros | |
#define | autocvar_g_maplist cvar_string("g_maplist") |
#define | autocvar_g_maplist_votable cvar("g_maplist_votable") |
Functions | |
float | GameTypeVote_Finished (float pos) |
string | GameTypeVote_MapInfo_FixName (string m) |
float | GameTypeVote_Start () |
void | MapVote_SendPicture (entity to, int id) |
void | MapVote_Spawn () |
void | MapVote_Start () |
void | MapVote_Think () |
#define autocvar_g_maplist cvar_string("g_maplist") |
Definition at line 3 of file mapvoting.qh.
Referenced by getmaplist(), GotoFirstMap(), Maplist_Init(), MaplistMethod_Shuffle(), and ShuffleMaplist().
#define autocvar_g_maplist_votable cvar("g_maplist_votable") |
Definition at line 10 of file mapvoting.qh.
Referenced by MapVote_Init(), and MapVote_Think().
Definition at line 95 of file mapvoting.qc.
References _MapInfo_FilterGametype(), autocvar_sv_vote_gametype, GameTypeVote_GetMask(), MapInfo_Enumerate(), MapInfo_FixName(), MapInfo_ForbiddenFlags(), and MapInfo_RequiredFlags().
Referenced by DoNextMapOverride(), GotoMap(), and MapVote_Suggest().
float GameTypeVote_Start | ( | ) |
Definition at line 773 of file mapvoting.qc.
References argv(), autocvar_g_maplist_votable_nodetail, autocvar_sv_vote_gametype_keeptwotime, autocvar_sv_vote_gametype_options, autocvar_sv_vote_gametype_timeout, gametypevote, GameTypeVote_AddVotable(), MapInfo_CurrentGametype(), MapInfo_Type_ToString(), mapvote_abstain, MapVote_ClearAllVotes(), mapvote_count, mapvote_count_real, mapvote_detail, MapVote_Finished(), mapvote_keeptwotime, mapvote_maps, mapvote_maps_flags, MapVote_Spawn(), mapvote_timeout, MapVote_UnzoneStrings(), min(), strunzone(), strzone(), time, and tokenizebyseparator.
Referenced by MapVote_Think().
Definition at line 258 of file mapvoting.qc.
References mapvote_maps, mapvote_maps_screenshot_dir, mapvote_screenshot_dirs, msg_entity, MSG_ONE, strcat(), to, and WriteByte().
Referenced by ClientCommand_mv_getpicture().
void MapVote_Spawn | ( | ) |
Definition at line 407 of file mapvoting.qc.
References mapvote_ent, and MapVote_SendEntity().
Referenced by GameTypeVote_Start(), and MapVote_Init().
void MapVote_Start | ( | ) |
Definition at line 632 of file mapvoting.qc.
References MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), and mapvote_run.
Referenced by CheckRules_World(), and IntermissionThink().
void MapVote_Think | ( | ) |
Definition at line 645 of file mapvoting.qc.
References alreadychangedlevel, autocvar_g_maplist_votable, autocvar_nextmap, autocvar_rescan_pending, autocvar_sv_vote_gametype, cvar_set(), DoNextMapOverride(), GameTypeVote_Start(), GotoNextMap(), localcmd, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), MapVote_Init(), mapvote_initialized, mapvote_nextthink, mapvote_run, MapVote_Tick(), player_count, and time.
Referenced by CheckRules_World().
bool autocvar_g_maplist_check_waypoints |
Definition at line 4 of file mapvoting.qh.
Referenced by MapHasRightSize().
bool autocvar_g_maplist_ignore_sizes |
Definition at line 18 of file mapvoting.qh.
Referenced by MapHasRightSize().
int autocvar_g_maplist_index |
Definition at line 5 of file mapvoting.qh.
Referenced by GetMaplistPosition().
string autocvar_g_maplist_mostrecent |
Definition at line 6 of file mapvoting.qh.
Referenced by Map_IsRecent(), and Map_MarkAsRecent().
int autocvar_g_maplist_mostrecent_count |
Definition at line 7 of file mapvoting.qh.
Referenced by Map_MarkAsRecent().
bool autocvar_g_maplist_selectrandom |
Definition at line 8 of file mapvoting.qh.
Referenced by GetNextMap().
float autocvar_g_maplist_shuffle |
Definition at line 9 of file mapvoting.qh.
Referenced by GameTypeVote_SetGametype(), GetNextMap(), GotoFirstMap(), Maplist_Init(), and MapVote_Init().
Definition at line 20 of file mapvoting.qh.
Referenced by MapHasRightSize().
Definition at line 19 of file mapvoting.qh.
Referenced by MapHasRightSize().
bool autocvar_g_maplist_votable_abstain |
Definition at line 11 of file mapvoting.qh.
Referenced by MapVote_Init().
float autocvar_g_maplist_votable_keeptwotime |
Definition at line 12 of file mapvoting.qh.
Referenced by MapVote_Init().
bool autocvar_g_maplist_votable_nodetail |
Definition at line 13 of file mapvoting.qh.
Referenced by GameTypeVote_Start(), and MapVote_Init().
string autocvar_g_maplist_votable_screenshot_dir |
Definition at line 14 of file mapvoting.qh.
Referenced by MapVote_Init().
bool autocvar_g_maplist_votable_suggestions |
Definition at line 15 of file mapvoting.qh.
Referenced by MapVote_Init(), and MapVote_Suggest().
bool autocvar_g_maplist_votable_suggestions_override_mostrecent |
Definition at line 16 of file mapvoting.qh.
Referenced by MapVote_Suggest().
float autocvar_g_maplist_votable_timeout |
Definition at line 17 of file mapvoting.qh.
Referenced by MapVote_Init().
int autocvar_rescan_pending |
Definition at line 21 of file mapvoting.qh.
Referenced by MapVote_Think().
bool autocvar_sv_vote_gametype |
Definition at line 22 of file mapvoting.qh.
Referenced by DoNextMapOverride(), GameTypeVote_MapInfo_FixName(), GotoMap(), MapVote_SendEntity(), MapVote_Suggest(), and MapVote_Think().
bool autocvar_sv_vote_gametype_default_current |
Definition at line 26 of file mapvoting.qh.
Referenced by MapVote_CheckRules_2().
float autocvar_sv_vote_gametype_keeptwotime |
Definition at line 25 of file mapvoting.qh.
Referenced by GameTypeVote_Start().
string autocvar_sv_vote_gametype_options |
Definition at line 24 of file mapvoting.qh.
Referenced by GameTypeVote_GetMask(), and GameTypeVote_Start().
float autocvar_sv_vote_gametype_timeout |
Definition at line 23 of file mapvoting.qh.
Referenced by GameTypeVote_Start().
float gametypevote |
Definition at line 37 of file mapvoting.qh.
string getmapname_stored |
Definition at line 38 of file mapvoting.qh.
Referenced by GetNextMap(), Map_Goto(), and Map_Goto_SetStr().
float mapvote_initialized |
Definition at line 39 of file mapvoting.qh.
Referenced by GotoMap(), IntermissionThink(), MapVote_Suggest(), MapVote_Think(), and PlayerHealth().