X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmapvoting.qh;h=36578740c07fff735e11041ce9811d1284727484;hb=005a4df13f82d77bb4ec4769ed13a08c41307a03;hp=3a1a0ad6493807f2dcf5e38bb94a07dbcc95384b;hpb=d271f27a5ac351a3a7b39636932f6d661492be1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mapvoting.qh b/qcsrc/server/mapvoting.qh index 3a1a0ad64..36578740c 100644 --- a/qcsrc/server/mapvoting.qh +++ b/qcsrc/server/mapvoting.qh @@ -1,14 +1,40 @@ #pragma once +#define autocvar_g_maplist cvar_string("g_maplist") +bool autocvar_g_maplist_check_waypoints; +int autocvar_g_maplist_index; +string autocvar_g_maplist_mostrecent; +int autocvar_g_maplist_mostrecent_count; +bool autocvar_g_maplist_selectrandom; +float autocvar_g_maplist_shuffle; +#define autocvar_g_maplist_votable cvar("g_maplist_votable") +bool autocvar_g_maplist_votable_abstain; +float autocvar_g_maplist_votable_keeptwotime; +bool autocvar_g_maplist_votable_nodetail; +string autocvar_g_maplist_votable_screenshot_dir; +bool autocvar_g_maplist_votable_suggestions; +bool autocvar_g_maplist_votable_suggestions_override_mostrecent; +float autocvar_g_maplist_votable_timeout; +bool autocvar_g_maplist_ignore_sizes; +bool autocvar_g_maplist_sizes_count_maxplayers = true; +bool autocvar_g_maplist_sizes_count_bots = true; +int autocvar_rescan_pending; +bool autocvar_sv_vote_gametype; +float autocvar_sv_vote_gametype_timeout; +string autocvar_sv_vote_gametype_options; +float autocvar_sv_vote_gametype_keeptwotime; +bool autocvar_sv_vote_gametype_default_current; + // definitions for functions used outside mapvoting.qc void MapVote_Start(); void MapVote_Spawn(); void MapVote_Think(); -void MapVote_SendPicture(float id); +void MapVote_SendPicture(entity to, int id); +bool GameTypeVote_SetGametype(entity type); float GameTypeVote_Start(); -float GameTypeVote_Finished(float pos); +float GameTypeVote_Finished(int pos); string GameTypeVote_MapInfo_FixName(string m); -float gametypevote; +bool gametypevote; string getmapname_stored; float mapvote_initialized;