X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmapvoting.qh;h=36578740c07fff735e11041ce9811d1284727484;hb=8141387a9bf057652453a8d4dc530116cf4cc31a;hp=18194b7b6b08362a942bef1b0514b9a211ff805f;hpb=e090603a32c8cba598f2c54e355cdb5b32b0d986;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mapvoting.qh b/qcsrc/server/mapvoting.qh index 18194b7b6..36578740c 100644 --- a/qcsrc/server/mapvoting.qh +++ b/qcsrc/server/mapvoting.qh @@ -1,45 +1,40 @@ -#ifndef MAPVOTING_H -#define MAPVOTING_H +#pragma once -#include "../common/constants.qh" +#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); -// definitions -float gametypevote; +bool gametypevote; string getmapname_stored; float mapvote_initialized; - -float mapvote_nextthink; -float mapvote_keeptwotime; -float mapvote_timeout; -string mapvote_message; -const float MAPVOTE_SCREENSHOT_DIRS_COUNT = 4; -string mapvote_screenshot_dirs[MAPVOTE_SCREENSHOT_DIRS_COUNT]; -float mapvote_screenshot_dirs_count; - -float mapvote_count; -float mapvote_count_real; -string mapvote_maps[MAPVOTE_COUNT]; -float mapvote_maps_screenshot_dir[MAPVOTE_COUNT]; -string mapvote_maps_pakfile[MAPVOTE_COUNT]; -float mapvote_maps_suggested[MAPVOTE_COUNT]; -string mapvote_suggestions[MAPVOTE_COUNT]; -float mapvote_suggestion_ptr; -float mapvote_voters; -float mapvote_selections[MAPVOTE_COUNT]; -float mapvote_maps_availability[MAPVOTE_COUNT]; -float mapvote_run; -float mapvote_detail; -float mapvote_abstain; -.float mapvote; - -entity mapvote_ent; -#endif