|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "mapvoting.qh"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 (int pos) |
| string | GameTypeVote_MapInfo_FixName (string m) |
| bool | GameTypeVote_SetGametype (Gametype type, string gametype_string, bool call_hooks) |
| float | GameTypeVote_Start () |
| void | MapVote_Start () |
| void | MapVote_Think () |
| #define autocvar_g_maplist cvar_string("g_maplist") |
Definition at line 5 of file sv_mapvoting.qh.
Referenced by getmaplist(), and Maplist_Init().
| #define autocvar_g_maplist_votable cvar("g_maplist_votable") |
Definition at line 12 of file sv_mapvoting.qh.
Referenced by MapVote_Init(), and MapVote_Think().
Definition at line 649 of file sv_mapvoting.qc.
References cvar_set(), gametypevote, gametypevote_finished, GameTypeVote_SetGametype(), GameTypeVote_Type_FromString(), GTV_CUSTOM, MapInfo_CurrentGametype(), match_gametype, mv_entries, mv_flags, strcpy, voted_gametype, and voted_gametype_string.
Referenced by MapVote_Finished().
Definition at line 66 of file sv_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().
Definition at line 590 of file sv_mapvoting.qc.
References autocvar_sv_vote_gametype_maplist_reset, bprint(), cvar_set(), cvar_string(), CVAR_TYPEFLAG_EXISTS, gametype_custom_enabled, getlsmaps(), localcmd(), lsmaps_reply, MapInfo_count, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_ListAllowedMaps(), MapInfo_RequiredFlags(), MapInfo_SwitchGameType(), MapInfo_Type_ToString(), match_gametype, strcat(), strunzone(), and strzone().
Referenced by GameCommand_gametype(), GameTypeVote_Finished(), MapVote_Init(), and MapVote_Think().
| float GameTypeVote_Start | ( | ) |
Definition at line 687 of file sv_mapvoting.qc.
References argv(), autocvar_sv_vote_gametype_default_current, autocvar_sv_vote_gametype_detail, autocvar_sv_vote_gametype_options, autocvar_sv_vote_gametype_reduce_count, autocvar_sv_vote_gametype_reduce_time, autocvar_sv_vote_gametype_timeout, current_gametype_index, gametype_custom_enabled, gametypevote, GameTypeVote_AddVotable(), GTV_AVAILABLE, loaded_gametype_custom_string, MapInfo_CurrentGametype(), MapInfo_Type_ToString(), MapVote_ClearAllVotes(), MAPVOTE_COUNT, MapVote_Finished(), MapVote_Spawn(), MapVote_UnzoneStrings(), min(), mv_abstain, mv_count, mv_count_real, mv_detail, mv_entries, mv_flags, mv_reduce_count, mv_reduce_time, mv_timeout, strunzone(), strzone(), time, and tokenizebyseparator.
Referenced by MapVote_Think().
| void MapVote_Start | ( | ) |
Definition at line 506 of file sv_mapvoting.qc.
References MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), mapvote_run, and PlayerStats_GameReport_DelayMapVote.
Referenced by CheckRules_World(), and IntermissionThink().
| void MapVote_Think | ( | ) |
Definition at line 521 of file sv_mapvoting.qc.
References alreadychangedlevel, autocvar_g_maplist_votable, autocvar_rescan_pending, autocvar_sv_vote_gametype, cvar_set(), DoNextMapOverride(), GameTypeVote_SetGametype(), GameTypeVote_Start(), get_nextmap, GotoNextMap(), localcmd(), Map_Goto(), Map_Goto_SetStr(), MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), MapVote_Init(), mapvote_initialized, mapvote_run, MapVote_Tick(), match_gametype, mv_entries, mv_winner, mv_winner_time, NULL, player_count, strfree, time, voted_gametype, and voted_gametype_string.
Referenced by CheckRules_World().
| bool autocvar_g_maplist_check_waypoints |
Definition at line 6 of file sv_mapvoting.qh.
Referenced by MapHasRightSize().
| bool autocvar_g_maplist_ignore_sizes |
Definition at line 22 of file sv_mapvoting.qh.
Referenced by MapHasRightSize().
| int autocvar_g_maplist_index |
Definition at line 7 of file sv_mapvoting.qh.
Referenced by GetMaplistPosition().
| string autocvar_g_maplist_mostrecent |
Definition at line 8 of file sv_mapvoting.qh.
Referenced by Map_IsRecent(), and Map_MarkAsRecent().
| int autocvar_g_maplist_mostrecent_count |
Definition at line 9 of file sv_mapvoting.qh.
Referenced by Map_MarkAsRecent().
| bool autocvar_g_maplist_selectrandom |
Definition at line 10 of file sv_mapvoting.qh.
Referenced by GetNextMap().
| float autocvar_g_maplist_shuffle |
Definition at line 11 of file sv_mapvoting.qh.
Referenced by Maplist_Init().
Definition at line 24 of file sv_mapvoting.qh.
Referenced by MapHasRightSize().
Definition at line 23 of file sv_mapvoting.qh.
Referenced by MapHasRightSize().
| bool autocvar_g_maplist_votable_abstain |
Definition at line 13 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| int autocvar_g_maplist_votable_detail |
Definition at line 17 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| int autocvar_g_maplist_votable_reduce_count |
Definition at line 16 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| float autocvar_g_maplist_votable_reduce_time |
Definition at line 15 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| string autocvar_g_maplist_votable_screenshot_dir |
Definition at line 18 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| bool autocvar_g_maplist_votable_show_suggester |
Definition at line 14 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| bool autocvar_g_maplist_votable_suggestions |
Definition at line 19 of file sv_mapvoting.qh.
Referenced by MapVote_Init(), and MapVote_Suggest().
| bool autocvar_g_maplist_votable_suggestions_override_mostrecent |
Definition at line 20 of file sv_mapvoting.qh.
Referenced by MapVote_Suggest().
| float autocvar_g_maplist_votable_timeout |
Definition at line 21 of file sv_mapvoting.qh.
Referenced by MapVote_Init().
| int autocvar_rescan_pending |
Definition at line 25 of file sv_mapvoting.qh.
Referenced by MapVote_Think().
| bool autocvar_sv_vote_gametype |
Definition at line 26 of file sv_mapvoting.qh.
Referenced by DoNextMapOverride(), GameTypeVote_MapInfo_FixName(), GotoMap(), MapVote_Init_Server(), MapVote_Suggest(), and MapVote_Think().
| bool autocvar_sv_vote_gametype_default_current |
Definition at line 32 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start().
| int autocvar_sv_vote_gametype_detail |
Definition at line 31 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start().
Definition at line 33 of file sv_mapvoting.qh.
Referenced by GameTypeVote_SetGametype().
| string autocvar_sv_vote_gametype_options |
Definition at line 28 of file sv_mapvoting.qh.
Referenced by GameTypeVote_GetMask(), and GameTypeVote_Start().
| int autocvar_sv_vote_gametype_reduce_count |
Definition at line 30 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start().
| float autocvar_sv_vote_gametype_reduce_time |
Definition at line 29 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start().
| float autocvar_sv_vote_gametype_timeout |
Definition at line 27 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start().
| bool gametypevote |
Definition at line 62 of file sv_mapvoting.qh.
| string getmapname_stored |
Definition at line 63 of file sv_mapvoting.qh.
Referenced by GetNextMap(), Map_Goto(), and Map_Goto_SetStr().
| int mapvote |
Definition at line 59 of file sv_mapvoting.qh.
| bool mapvote_initialized |
Definition at line 64 of file sv_mapvoting.qh.
Referenced by GotoMap(), IntermissionThink(), MapVote_Suggest(), MapVote_Think(), and PlayerHealth().
| bool mapvote_run |
Definition at line 58 of file sv_mapvoting.qh.
Referenced by MapVote_Start(), and MapVote_Think().
| Gametype match_gametype |
Definition at line 68 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Finished(), GameTypeVote_SetGametype(), MapVote_Init(), and MapVote_Think().
| string mv_pakfile[MAPVOTE_COUNT] |
(maps) pk3 file location
Definition at line 45 of file sv_mapvoting.qh.
Referenced by MapVote_AddVotable(), MapVote_UnzoneStrings(), and MapVote_WriteOption().
| int mv_ranked[MAPVOTE_COUNT] |
(shared) maps/gametypes ranked by most votes, first = most
Definition at line 51 of file sv_mapvoting.qh.
Referenced by MapVote_AddVotableMaps(), MapVote_CheckRules_count(), MapVote_CheckRules_decide(), MapVote_ranked_cmp(), MapVote_ranked_swap(), and MapVote_SendEntity().
| int mv_reduce_count |
Definition at line 57 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Start(), MapVote_CheckRules_decide(), and MapVote_Init().
| float mv_rng[MAPVOTE_COUNT] |
(shared) random() value for each map/gametype to determine tiebreakers
Definition at line 52 of file sv_mapvoting.qh.
Referenced by MapVote_AddVotable(), and MapVote_ranked_cmp().
| bool mv_show_suggester |
(maps) whether to show suggesters, only for maps since you can't suggest gametypes
Definition at line 46 of file sv_mapvoting.qh.
Referenced by MapVote_Init(), and MapVote_WriteOption().
| int mv_ssdir_i[MAPVOTE_COUNT] |
(shared) where to look for screenshots (mv_ssdirs index), set to 0 for gametype voting
Definition at line 44 of file sv_mapvoting.qh.
Referenced by GameTypeVote_AddVotable(), MapVote_AddVotable(), MapVote_WriteOption(), and MapVote_WritePicture().
| int mv_suggestion_ptr |
(maps) index of where the next suggestion should be (starts as 0)
Definition at line 49 of file sv_mapvoting.qh.
Referenced by MapVote_AddVotableMaps(), MapVote_Init(), and MapVote_Suggest().
| string mv_suggestions[MAPVOTE_COUNT] |
(maps) name of the suggested map, later copied into mv_entries
Definition at line 47 of file sv_mapvoting.qh.
Referenced by MapVote_AddVotable(), MapVote_AddVotableMaps(), and MapVote_Suggest().
| int mv_voters |
(shared) number of human voters present
Definition at line 50 of file sv_mapvoting.qh.
Referenced by MapVote_CheckRules_count(), MapVote_CheckRules_decide(), and MapVote_Finished().
| float mv_winner_time |
Definition at line 61 of file sv_mapvoting.qh.
| Gametype voted_gametype |
Definition at line 67 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Finished(), MapVote_Init_Server(), and MapVote_Think().
| string voted_gametype_string |
Definition at line 66 of file sv_mapvoting.qh.
Referenced by GameTypeVote_Finished(), MapVote_Finished(), MapVote_Init_Server(), and MapVote_Think().