Xonotic
|
#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 () |
string | GotoMap (string m) |
void | GotoNextMap (float reinit) |
void | IntermissionThink (entity this) |
bool | Map_Check (int position, float pass) |
string | Map_Filename (int position) |
void | Map_Goto (float reinit) |
void | Map_Goto_SetFloat (float position) |
void | Map_Goto_SetStr (string nextmapname) |
bool | Map_IsRecent (string m) |
void | Map_MarkAsRecent (string m) |
bool | MapHasRightSize (string map) |
void | Maplist_Init () |
float | MaplistMethod_Iterate () |
float | MaplistMethod_Random () |
float | MaplistMethod_Repeat () |
float | MaplistMethod_Shuffle (float exponent) |
void | ShuffleMaplist () |
Variables | |
float | autoscreenshot |
float | Map_Count |
float | Map_Current |
string | Map_Current_Name |
Definition at line 312 of file intermission.qc.
References alreadychangedlevel, autocvar_g_campaign, autocvar_lastlevel, autocvar_nextmap, autocvar_quit_and_redirect, autocvar_quit_when_empty, autocvar_samelevel, autocvar_sv_vote_gametype, CampaignPostIntermission(), currentbots, cvar_set(), cvar_settemp_restore(), gametypevote, GameTypeVote_MapInfo_FixName(), localcmd, Map_Goto(), Map_Goto_SetStr(), MapInfo_CheckMap(), player_count, redirection_target, and strzone().
Referenced by GotoFirstMap(), GotoMap(), and MapVote_Think().
Definition at line 453 of file intermission.qc.
References autocvar_sv_intermission_cdtrack, EF_NODRAW, effects, FOREACH_WORD, IS_REAL_CLIENT, MAX_WEAPONSLOTS, msg_entity, MSG_ONE, RandomSelection_AddString, RandomSelection_chosen_string, RandomSelection_Init(), RES_HEALTH, SetResourceExplicit(), stuffcmd, SVC_INTERMISSION, time, weaponentities, and WriteByte().
Referenced by IntermissionThink(), and NextLevel().
string GetGametype | ( | ) |
Definition at line 13 of file intermission.qc.
References MapInfo_LoadedGametype, and MapInfo_Type_ToString().
Referenced by DumpStats(), readlevelcvars(), spawnfunc(), WeaponStats_ready(), WinningConditionHelper(), and write_recordmarker().
int GetMaplistPosition | ( | ) |
Definition at line 27 of file intermission.qc.
References argv(), autocvar_g_maplist_index, GetMapname(), and Map_Count.
Referenced by Maplist_Init().
string GetMapname | ( | ) |
Definition at line 18 of file intermission.qc.
References mapname.
Referenced by Campaign_Invalid(), checkpoint_passed(), ctf_CaptureRecord(), ctf_Initialize(), DumpStats(), GameCommand_delrec(), GetMaplistPosition(), getrankings(), IntermissionThink(), race_deleteTime(), race_send_recordtime(), race_SendAll(), race_SendRanking(), race_SendTime(), race_setTime(), race_SpeedAwardFrame(), sandbox_Database_Load(), sandbox_Database_Save(), spawnfunc(), trigger_race_checkpoint_verify(), and WeaponStats_ready().
string GetNextMap | ( | ) |
Definition at line 284 of file intermission.qc.
References autocvar_g_maplist_selectrandom, autocvar_g_maplist_shuffle, getmapname_stored, Map_Goto_SetFloat(), Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), MaplistMethod_Repeat(), and MaplistMethod_Shuffle().
Referenced by GotoNextMap(), and MapVote_Init().
Definition at line 393 of file intermission.qc.
References alreadychangedlevel, autocvar_sv_vote_gametype, cvar_set(), DoNextMapOverride(), GameTypeVote_MapInfo_FixName(), MapInfo_CheckMap(), and mapvote_initialized.
Referenced by GameCommand_gotomap().
Definition at line 373 of file intermission.qc.
References alreadychangedlevel, error(), GetNextMap(), and Map_Goto().
Referenced by GotoFirstMap(), MapVote_Think(), and SelectSpawnPoint().
Definition at line 423 of file intermission.qc.
References autocvar_sv_autoscreenshot, autoscreenshot, CS_CVAR, FixIntermissionClient(), GetMapname(), intermission_exittime, IS_REAL_CLIENT, mapvote_initialized, MapVote_Start(), PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_HOOK, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_BUTTON_USE, strftime_s(), stuffcmd, and time.
Referenced by PlayerPreThink(), and PlayerThink().
Definition at line 118 of file intermission.qc.
References argv(), LOG_DEBUG, Map_Filename(), Map_IsRecent(), MapHasRightSize(), and MapInfo_CheckMap().
Referenced by Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), MaplistMethod_Repeat(), and MaplistMethod_Shuffle().
Definition at line 103 of file intermission.qc.
References argv(), and strcat().
Referenced by Map_Check().
Definition at line 159 of file intermission.qc.
References getmapname_stored, and MapInfo_LoadMap().
Referenced by DoNextMapOverride(), GotoNextMap(), and MapVote_Finished().
Definition at line 153 of file intermission.qc.
References argv(), cvar_set(), ftos(), and Map_Goto_SetStr().
Referenced by GetNextMap().
Definition at line 143 of file intermission.qc.
References getmapname_stored, strunzone(), and strzone().
Referenced by DoNextMapOverride(), Map_Goto_SetFloat(), and MapVote_Finished().
Definition at line 113 of file intermission.qc.
References autocvar_g_maplist_mostrecent, and strhasword.
Referenced by Map_Check(), MapVote_Suggest(), and ValidateMap().
Definition at line 108 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 53 of file intermission.qc.
References 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, AvailableTeams(), currentbots, fclose(), fexists(), fgets(), FILE_READ, floor(), fopen(), GetPlayerLimit(), LOG_TRACE, max(), min(), player_count, stoi, strcat(), and teamplay.
Referenced by Map_Check().
void Maplist_Init | ( | ) |
Definition at line 252 of file intermission.qc.
References argv(), autocvar_g_maplist, autocvar_g_maplist_shuffle, bound(), bprint(), cvar_set(), error(), GetMaplistPosition(), localcmd, Map_Check(), Map_Count, Map_Current, Map_Current_Name, MAPINFO_FLAG_NOAUTOMAPLIST, MapInfo_ForbiddenFlags(), MapInfo_ListAllAllowedMaps(), MapInfo_RequiredFlags(), server_is_dedicated, ShuffleMaplist(), strcpy, and tokenizebyseparator.
Referenced by GetNextMap().
float MaplistMethod_Iterate | ( | ) |
Definition at line 167 of file intermission.qc.
References LOG_TRACE, Map_Check(), Map_Count, Map_Current, and pass.
Referenced by GetNextMap().
float MaplistMethod_Random | ( | ) |
Definition at line 195 of file intermission.qc.
References floor(), LOG_TRACE, Map_Check(), Map_Count, Map_Current, and random().
Referenced by GetNextMap().
float MaplistMethod_Repeat | ( | ) |
Definition at line 186 of file intermission.qc.
References LOG_TRACE, Map_Check(), and Map_Current.
Referenced by GetNextMap().
Definition at line 213 of file intermission.qc.
References argv(), autocvar_g_maplist, ceil(), cvar_set(), ftos(), LOG_TRACE, Map_Check(), Map_Count, Map_Current, random(), strcat(), strlen(), substring(), and tokenizebyseparator.
Referenced by GetNextMap().
void ShuffleMaplist | ( | ) |
Definition at line 388 of file intermission.qc.
References autocvar_g_maplist, cvar_set(), and shufflewords().
Referenced by GameTypeVote_SetGametype(), GotoFirstMap(), Maplist_Init(), and MapVote_Init().
float autoscreenshot |
Definition at line 422 of file intermission.qc.
Referenced by IntermissionThink().
float Map_Count |
Definition at line 23 of file intermission.qc.
Referenced by GetMaplistPosition(), Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), and MaplistMethod_Shuffle().
float Map_Current |
Definition at line 23 of file intermission.qc.
Referenced by Maplist_Init(), MaplistMethod_Iterate(), MaplistMethod_Random(), MaplistMethod_Repeat(), and MaplistMethod_Shuffle().
string Map_Current_Name |
Definition at line 24 of file intermission.qc.
Referenced by Maplist_Init().