|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "mapvoting.qh"#include <common/mapinfo.qh>#include <common/util.qh>#include <server/bot/api.qh>#include <server/bot/default/cvars.qh>#include <server/campaign.qh>#include <server/client.qh>#include <server/scores_rules.qh>#include <server/world.qh>Go to the source code of this file.
Functions | |
| float | DoNextMapOverride (float reinit) |
| void | FixIntermissionClient (entity e) |
| string | GetGametype () |
| int | GetMaplistPosition () |
| string | GetMapname () |
| string | GetNextMap (void) |
| string | GotoMap (string m) |
| void | GotoNextMap (float reinit) |
| void | IntermissionThink (entity this) |
| bool | Map_Check (string m, int pass) |
| string | Map_Filename (string m) |
| void | Map_Goto (float reinit) |
| void | Map_Goto_SetIndex (int position) |
| void | Map_Goto_SetStr (string nextmapname) |
| bool | Map_IsRecent (string m) |
| void | Map_MarkAsRecent (string m) |
| bool | MapHasRightSize (string map) |
| void | Maplist_Close () |
| int | Maplist_Init (void) |
| int | MaplistMethod_Iterate (void) |
| int | MaplistMethod_Random (void) |
| int | MaplistMethod_Repeat (void) |
| void | Send_NextMap_To_Player (entity pl) |
| void | Set_NextMap (string mapname) |
Variables | |
| float | autoscreenshot |
| int | Map_Count |
| int | Map_Current |
Definition at line 345 of file intermission.qc.
References alreadychangedlevel, autocvar_g_campaign, autocvar_lastlevel, autocvar_quit_and_redirect, autocvar_quit_when_empty, autocvar_samelevel, autocvar_sv_vote_gametype, CampaignPostIntermission(), currentbots, cvar_settemp_restore(), gametypevote, GameTypeVote_MapInfo_FixName(), get_nextmap, localcmd(), Map_Goto(), Map_Goto_SetStr(), MapInfo_CheckMap(), player_count, redirection_target, Set_NextMap(), and strzone().
Referenced by GotoFirstMap(), GotoMap(), and MapVote_Think().
Definition at line 509 of file intermission.qc.
References autocvar_sv_intermission_cdtrack, EF_NODRAW, effects, entity(), FOREACH_WORD, IS_REAL_CLIENT, MAX_WEAPONSLOTS, msg_entity, MSG_ONE, RandomSelection_AddString, RandomSelection_chosen_string, RandomSelection_Init(), SetResourceExplicit(), stuffcmd, SVC_INTERMISSION, time, weaponchild, weaponentities, and WriteByte().
Referenced by IntermissionThink(), and NextLevel().
| string GetGametype | ( | ) |
Definition at line 28 of file intermission.qc.
References MapInfo_LoadedGametype, and MapInfo_Type_ToString().
Referenced by DumpStats(), GameLogInit(), PlayerStats_GetGametype(), readlevelcvars(), spawnfunc(), TeamBalance_FindBestTeam(), WeaponStats_ready(), WinningConditionHelper(), and write_recordmarker().
| int GetMaplistPosition | ( | ) |
Definition at line 41 of file intermission.qc.
References autocvar_g_maplist_index, GetMapname(), Map_Count, and maplist_buffer.
Referenced by Maplist_Init().
| string GetMapname | ( | ) |
Definition at line 33 of file intermission.qc.
References mapname.
Referenced by Campaign_Invalid(), ctf_CaptureRecord(), ctf_Initialize(), DumpStats(), GameCommand_delrec(), GameLogInit(), GetMaplistPosition(), getrankings(), IntermissionThink(), PlayerStats_GameReport_Handler(), race_deleteTime(), race_send_recordtime(), race_SendAll(), race_SendRanking(), race_SendTime(), race_setTime(), race_SpeedAwardFrame(), sandbox_Database_Load(), sandbox_Database_Save(), trigger_race_checkpoint_verify(), and WeaponStats_ready().
Definition at line 323 of file intermission.qc.
References autocvar_g_maplist_selectrandom, getmapname_stored, Map_Goto_SetIndex(), MaplistMethod_Iterate(), MaplistMethod_Random(), and MaplistMethod_Repeat().
Referenced by GotoNextMap(), and MapVote_AddVotable().
Definition at line 424 of file intermission.qc.
References alreadychangedlevel, autocvar_sv_vote_gametype, cvar_set(), DoNextMapOverride(), GameTypeVote_MapInfo_FixName(), get_nextmap, intermission_running, MapInfo_CheckMap(), mapvote_initialized, and Set_NextMap().
Referenced by GameCommand_gotomap().
Definition at line 407 of file intermission.qc.
References alreadychangedlevel, error, GetNextMap(), Map_Goto(), Maplist_Close(), and Maplist_Init().
Referenced by GotoFirstMap(), MapVote_Think(), and SelectSpawnPoint().
Definition at line 456 of file intermission.qc.
References autocvar_sv_autoscreenshot, autoscreenshot, CS_CVAR, entity(), FixIntermissionClient(), GetMapname(), intermission_exittime, IS_REAL_CLIENT, mapvote_initialized, MapVote_Start(), matchid, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_HOOK, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_BUTTON_USE, stuffcmd, and time.
Referenced by PlayerPreThink(), and PlayerThink().
Definition at line 134 of file intermission.qc.
References LOG_DEBUG, Map_Filename(), Map_IsRecent(), MapHasRightSize(), MapInfo_CheckMap(), MAPINFO_FLAG_DONOTWANT, MapInfo_Map_flags, and pass.
Referenced by Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), and MaplistMethod_Repeat().
Definition at line 117 of file intermission.qc.
References strcat().
Referenced by Map_Check(), and Maplist_Init().
Definition at line 178 of file intermission.qc.
References getmapname_stored, and MapInfo_LoadMap().
Referenced by DoNextMapOverride(), GotoNextMap(), MapVote_Finished(), and MapVote_Think().
Definition at line 171 of file intermission.qc.
References cvar_set(), ftos(), Map_Current, Map_Goto_SetStr(), and maplist_buffer.
Referenced by GetNextMap().
Definition at line 161 of file intermission.qc.
References getmapname_stored, strunzone(), and strzone().
Referenced by DoNextMapOverride(), Map_Goto_SetIndex(), MapVote_Finished(), and MapVote_Think().
Definition at line 127 of file intermission.qc.
References autocvar_g_maplist_mostrecent, and strhasword.
Referenced by Map_Check(), MapVote_Suggest(), and ValidateMap().
Definition at line 122 of file intermission.qc.
References autocvar_g_maplist_mostrecent, autocvar_g_maplist_mostrecent_count, cons(), cvar_set(), max(), and strwords().
Referenced by spawnfunc().
Definition at line 67 of file intermission.qc.
References _MapInfo_GetTeamPlayBool(), autocvar_bot_number, autocvar_g_maplist_check_waypoints, autocvar_g_maplist_ignore_sizes, autocvar_g_maplist_sizes_count_bots, autocvar_g_maplist_sizes_count_maxplayers, autocvar_minplayers, autocvar_minplayers_per_team, AVAILABLE_TEAMS, currentbots, cvar(), fexists(), floor(), GetPlayerLimit(), LOG_TRACE, map_maxplayers, map_minplayers, MapInfo_CurrentGametype(), MapReadSizes(), max(), min(), player_count, rint(), strcat(), and teamplay.
Referenced by Map_Check().
| void Maplist_Close | ( | ) |
Definition at line 317 of file intermission.qc.
References maplist_buffer.
Referenced by GotoNextMap(), and MapVote_AddVotableMaps().
Definition at line 239 of file intermission.qc.
References autocvar_g_maplist, autocvar_g_maplist_shuffle, autocvar_sv_dedicated, bound(), bprint(), buf_create, cons(), cvar_set(), error, fexists(), floor(), FOREACH_WORD, GetMaplistPosition(), localcmd(), LOG_DEBUGF, Map_Check(), Map_Count, Map_Current, Map_Filename(), MapInfo_CurrentGametype(), MapInfo_ForbiddenFlags(), MapInfo_ListAllowedMaps(), MapInfo_RequiredFlags(), maplist_buffer, and random().
Referenced by GotoNextMap(), and MapVote_AddVotableMaps().
Definition at line 186 of file intermission.qc.
References LOG_DEBUG, LOG_TRACE, Map_Check(), Map_Count, Map_Current, and maplist_buffer.
Referenced by GetNextMap().
Definition at line 220 of file intermission.qc.
References floor(), LOG_TRACE, Map_Check(), Map_Count, Map_Current, maplist_buffer, and random().
Referenced by GetNextMap().
Definition at line 211 of file intermission.qc.
References LOG_TRACE, Map_Check(), Map_Current, and maplist_buffer.
Referenced by GetNextMap().
Definition at line 13 of file intermission.qc.
References entity(), get_nextmap, and stuffcmd.
Referenced by ClientConnect(), and Set_NextMap().
Definition at line 18 of file intermission.qc.
References _nextmap, FOREACH_CLIENT, IS_REAL_CLIENT, mapname, Send_NextMap_To_Player(), strcpy, and strfree.
Referenced by DoNextMapOverride(), GameCommand_nextmap(), and GotoMap().
| float autoscreenshot |
Definition at line 455 of file intermission.qc.
Referenced by IntermissionThink().
| int Map_Count |
Definition at line 38 of file intermission.qc.
Referenced by GetMaplistPosition(), Maplist_Init(), MaplistMethod_Iterate(), and MaplistMethod_Random().
| int Map_Current |
Definition at line 38 of file intermission.qc.
Referenced by Map_Goto_SetIndex(), Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), and MaplistMethod_Repeat().