Xonotic
|
#include "mapinfo.qh"
Go to the source code of this file.
Macros | |
#define | WARN_COND (!autocvar_g_mapinfo_ignore_warnings && MapInfo_Map_bspname == mi_shortname) |
#define WARN_COND (!autocvar_g_mapinfo_ignore_warnings && MapInfo_Map_bspname == mi_shortname) |
Definition at line 15 of file mapinfo.qc.
Referenced by _MapInfo_Map_ApplyGametypeEx(), _MapInfo_Parse_Settemp(), MapInfo_Get_ByName_NoFallbacks(), and MapInfo_Type_FromString().
Definition at line 1157 of file mapinfo.qc.
References m_flags, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Get_ByName(), MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, and NULL.
Referenced by MapInfo_CheckMap(), and MapInfo_LoadMapSettings().
float _MapInfo_FilterGametype | ( | int | pGametype, |
int | pFeatures, | ||
int | pFlagsRequired, | ||
int | pFlagsForbidden, | ||
bool | pAbortOnGenerate | ||
) |
Definition at line 162 of file mapinfo.qc.
References _MapInfo_filtered, _MapInfo_filtered_allocated, _MapInfo_FilterList_cmp(), _MapInfo_FilterList_swap(), _MapInfo_globcount, _MapInfo_GlobItem(), buf_create, ftos(), heapsort(), LOG_TRACE, MapInfo_ClearTemps(), MapInfo_count, MapInfo_Get_ByName(), MapInfo_Map_flags, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_progress, and NULL.
Referenced by GameTypeVote_MapInfo_FixName(), make_mapinfo_Think(), MapInfo_FilterGametype(), MapInfo_ListAllAllowedMaps(), MapList_Add_All(), and preMenuInit().
Definition at line 150 of file mapinfo.qc.
References _MapInfo_filtered, _MapInfo_GlobItem(), stof(), and strcasecmp.
Referenced by _MapInfo_FilterGametype(), and MapInfo_FilterString().
Definition at line 142 of file mapinfo.qc.
References _MapInfo_filtered.
Referenced by _MapInfo_FilterGametype(), and MapInfo_FilterString().
Definition at line 263 of file mapinfo.qc.
References _MapInfo_Map_worldspawn_music, car(), cdr(), fclose(), fgets(), FILE_READ, fopen(), FOREACH, ftos(), LOG_INFO, LOG_TRACE, LOG_WARN, MAPINFO_FEATURE_MONSTERS, MAPINFO_FEATURE_TURRETS, MAPINFO_FEATURE_VEHICLES, MAPINFO_FEATURE_WEAPONS, MapInfo_Map_author, MapInfo_Map_description, MapInfo_Map_flags, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, max(), min(), startsWith, stof(), stov(), strcat(), string_null, strlen(), strstrofs, substring(), unquote(), v, vector(), and vlen().
Referenced by MapInfo_Get_ByName_NoFallbacks().
Definition at line 427 of file mapinfo.qc.
References Gametype::m_legacydefaults.
Referenced by _MapInfo_Map_ApplyGametype().
Definition at line 502 of file mapinfo.qc.
Referenced by _MapInfo_Map_ApplyGametypeEx().
Definition at line 507 of file mapinfo.qc.
References Gametype::team.
Referenced by NET_HANDLE(), and XonoticGametypeList_drawListBoxItem().
Definition at line 106 of file mapinfo.qc.
References _MapInfo_globhandle, _MapInfo_globopen, search_getfilename(), string_null, strlen(), and substring().
Referenced by _MapInfo_FilterGametype(), _MapInfo_FilterList_cmp(), MapInfo_BSPName_ByID(), MapInfo_FindName(), MapInfo_ListAllAllowedMaps(), and MapInfo_ListAllowedMaps().
void _MapInfo_Map_ApplyGametype | ( | string | s, |
Gametype | pWantedType, | ||
Gametype | pThisType, | ||
int | load_default | ||
) |
Definition at line 432 of file mapinfo.qc.
References _MapInfo_GetDefault(), car(), cdr(), cvar(), cvar_set(), cvar_string(), Gametype::frags, and MapInfo_Map_supportedGametypes.
Referenced by MapInfo_Get_ByName_NoFallbacks().
Definition at line 512 of file mapinfo.qc.
References _MapInfo_GetDefaultEx(), car(), cdr(), cvar(), cvar_defstring(), cvar_set(), FOREACH, LOG_WARNF, MapInfo_Map_supportedGametypes, MapInfo_Type_ToString(), strcat(), string_null, strstrofs, substring(), v, and WARN_COND.
Referenced by MapInfo_Get_ByName(), MapInfo_Get_ByName_NoFallbacks(), and MapInfo_LoadMapSettings().
void _MapInfo_Map_Reset | ( | ) |
Definition at line 412 of file mapinfo.qc.
References MapInfo_Map_author, MapInfo_Map_clientstuff, MapInfo_Map_description, MapInfo_Map_flags, MapInfo_Map_fog, MapInfo_Map_maxs, MapInfo_Map_mins, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, and MapInfo_Map_titlestring.
Referenced by MapInfo_Get_ByName_NoFallbacks().
Definition at line 627 of file mapinfo.qc.
References _MapInfo_Parse_Settemp(), car(), cdr(), cvar(), cvar_set(), cvar_settemp(), cvar_value_issafe(), fclose(), fgets(), FILE_READ, fopen(), LOG_TRACE, LOG_WARN, MapInfo_Map_clientstuff, MAPINFO_SETTEMP_ACL_SYSTEM, matchacl(), strcat(), strstrofs, substring(), and WARN_COND.
Referenced by _MapInfo_Parse_Settemp(), CampaignPreInit(), and MapInfo_Get_ByName_NoFallbacks().
Definition at line 231 of file mapinfo.qc.
References _MapInfo_GlobItem(), and MapInfo_FilterList_Lookup().
Referenced by InstantAction_LoadMap(), MapInfo_Get_ByID(), MapList_Add_All(), MapList_LoadMap(), XonoticMapList_g_maplistCacheToggle(), and XonoticMapList_refilter().
void MapInfo_Cache_Create | ( | ) |
Definition at line 34 of file mapinfo.qc.
References _MapInfo_Cache_Active, _MapInfo_Cache_Buf_IndexToMapData, _MapInfo_Cache_DB_NameToIndex, buf_create, db_create(), and MapInfo_Cache_Destroy().
Referenced by MapInfo_Cache_Invalidate(), and preMenuInit().
void MapInfo_Cache_Destroy | ( | ) |
Definition at line 24 of file mapinfo.qc.
References _MapInfo_Cache_Active, _MapInfo_Cache_Buf_IndexToMapData, _MapInfo_Cache_DB_NameToIndex, and db_close().
Referenced by MapInfo_Cache_Create(), and MapInfo_Shutdown().
void MapInfo_Cache_Invalidate | ( | ) |
Definition at line 42 of file mapinfo.qc.
References _MapInfo_Cache_Active, and MapInfo_Cache_Create().
Referenced by MapInfo_Enumerate().
Definition at line 77 of file mapinfo.qc.
References _MapInfo_Cache_Active, _MapInfo_Cache_Buf_IndexToMapData, _MapInfo_Cache_DB_NameToIndex, db_get(), MapInfo_Map_author, MapInfo_Map_bspname, MapInfo_Map_description, MapInfo_Map_flags, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, MapInfo_Map_titlestring, and stof().
Referenced by MapInfo_Get_ByName_NoFallbacks().
void MapInfo_Cache_Store | ( | ) |
Definition at line 50 of file mapinfo.qc.
References _MapInfo_Cache_Active, _MapInfo_Cache_Buf_IndexToMapData, _MapInfo_Cache_DB_NameToIndex, db_get(), db_put(), ftos(), MapInfo_Map_author, MapInfo_Map_bspname, MapInfo_Map_description, MapInfo_Map_flags, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, MapInfo_Map_titlestring, and stof().
Referenced by MapInfo_Get_ByName_NoFallbacks().
Definition at line 1170 of file mapinfo.qc.
References _MapInfo_CheckMap(), and MapInfo_ClearTemps().
Referenced by DoNextMapOverride(), GenericCommand_maplist(), getmaplist(), GotoMap(), Map_Check(), MapVote_AddVotable(), MapVote_Suggest(), and ValidateMap().
void MapInfo_ClearTemps | ( | ) |
Definition at line 1299 of file mapinfo.qc.
References MapInfo_Map_author, MapInfo_Map_bspname, MapInfo_Map_clientstuff, MapInfo_Map_description, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, MapInfo_Map_titlestring, and string_null.
Referenced by _MapInfo_FilterGametype(), getladder(), getlsmaps(), getmaplist(), getrankings(), getrecords(), InitGameplayMode(), MapInfo_CheckMap(), MapInfo_FilterString(), MapInfo_Shutdown(), XonoticMapInfoDialog_loadMapInfo(), and XonoticMapList_drawListBoxItem().
int MapInfo_CurrentFeatures | ( | ) |
Definition at line 1140 of file mapinfo.qc.
References cvar(), and MAPINFO_FEATURE_WEAPONS.
Referenced by _MapInfo_CheckMap(), GameCommand_gametype(), GameTypeVote_SetGametype(), GenericCommand_maplist(), GotoFirstMap(), InstantAction_LoadMap(), make_mapinfo_Think(), MapInfo_ListAllAllowedMaps(), MapInfo_ListAllowedMaps(), MapVote_Start(), MapVote_Think(), RestoreGame(), spawnfunc(), and XonoticMapList_refilter().
Gametype MapInfo_CurrentGametype | ( | ) |
Definition at line 1150 of file mapinfo.qc.
References cvar(), cvar_string(), FOREACH, MapInfo_Type_FromString(), and prev.
Referenced by _MapInfo_CheckMap(), Campaign_Invalid(), GameCommand_gametype(), GameType_ConfigureSliders_for_CurrentGametype(), GameTypeVote_SetGametype(), GameTypeVote_Start(), GenericCommand_maplist(), GotoFirstMap(), InstantAction_LoadMap(), make_mapinfo_Think(), MapInfo_ListAllAllowedMaps(), MapInfo_LoadMapSettings(), MapVote_CheckRules_2(), MapVote_Init(), MapVote_SendEntity(), MapVote_Start(), MapVote_Think(), RestoreGame(), spawnfunc(), STATIC_INIT_LATE(), TeamBalance_FindBestTeam(), XonoticGametypeList_loadCvars(), XonoticGametypeList_saveCvars(), and XonoticMapList_refilter().
void MapInfo_Enumerate | ( | ) |
Definition at line 115 of file mapinfo.qc.
References _MapInfo_globcount, _MapInfo_globhandle, _MapInfo_globopen, MapInfo_Cache_Invalidate(), search_begin(), search_end(), and search_getsize().
Referenced by GameCommand_make_mapinfo(), GameTypeVote_MapInfo_FixName(), GameTypeVote_SetGametype(), GenericCommand_maplist(), GotoFirstMap(), MapInfo_ListAllAllowedMaps(), MapInfo_ListAllowedMaps(), MapVote_Start(), preMenuInit(), RestoreGame(), and spawnfunc().
void MapInfo_Filter_Free | ( | ) |
Definition at line 221 of file mapinfo.qc.
References _MapInfo_filtered, and _MapInfo_filtered_allocated.
Referenced by MapInfo_Shutdown().
float MapInfo_FilterGametype | ( | Gametype | pGametype, |
int | pFeatures, | ||
int | pFlagsRequired, | ||
int | pFlagsForbidden, | ||
bool | pAbortOnGenerate | ||
) |
Definition at line 158 of file mapinfo.qc.
References _MapInfo_FilterGametype().
Referenced by GameCommand_gametype(), GameTypeVote_SetGametype(), GenericCommand_maplist(), GotoFirstMap(), InstantAction_LoadMap(), make_mapinfo_Think(), MapInfo_ListAllAllowedMaps(), MapInfo_ListAllowedMaps(), MapVote_Start(), MapVote_Think(), RestoreGame(), spawnfunc(), and XonoticMapList_refilter().
Definition at line 137 of file mapinfo.qc.
References _MapInfo_filtered, and stof().
Referenced by MapInfo_BSPName_ByID(), MapInfo_FindName(), MapInfo_ListAllAllowedMaps(), and MapInfo_ListAllowedMaps().
Definition at line 194 of file mapinfo.qc.
References _MapInfo_filtered, _MapInfo_FilterList_cmp(), _MapInfo_FilterList_swap(), heapsort(), MapInfo_ClearTemps(), MapInfo_count, MapInfo_Get_ByID(), MapInfo_Map_bspname, MapInfo_Map_title, NULL, and strstrofs.
Referenced by XonoticMapList_refilter().
Definition at line 1086 of file mapinfo.qc.
References _MapInfo_GlobItem(), floor(), MapInfo_count, MapInfo_FilterList_Lookup(), MapInfo_FindName_firstResult, MapInfo_FindName_match, startsWithNocase(), strcasecmp, and string_null.
Referenced by MapInfo_FixName(), XonoticMapList_keyDown(), and XonoticMapList_refilter().
Definition at line 1134 of file mapinfo.qc.
References MapInfo_FindName(), and MapInfo_FindName_match.
Referenced by GameTypeVote_MapInfo_FixName(), and ValidateMap().
int MapInfo_ForbiddenFlags | ( | ) |
Definition at line 1324 of file mapinfo.qc.
References cvar(), MAPINFO_FLAG_FORBIDDEN, MAPINFO_FLAG_FRUSTRATING, and MAPINFO_FLAG_HIDDEN.
Referenced by GameCommand_gametype(), GameTypeVote_MapInfo_FixName(), GameTypeVote_SetGametype(), GenericCommand_maplist(), getlsmaps(), GotoFirstMap(), InstantAction_LoadMap(), make_mapinfo_Think(), MapList_Add_All(), Maplist_Init(), MapVote_Init(), MapVote_Start(), MapVote_Think(), RestoreGame(), spawnfunc(), and XonoticMapList_refilter().
Definition at line 256 of file mapinfo.qc.
References MapInfo_BSPName_ByID(), MapInfo_Get_ByName(), NULL, and true.
Referenced by getladder(), getlsmaps(), MapInfo_FilterString(), MUTATOR_HOOKFUNCTION(), XonoticMapInfoDialog_loadMapInfo(), and XonoticMapList_drawListBoxItem().
Definition at line 1067 of file mapinfo.qc.
References _MapInfo_Map_ApplyGametypeEx(), error(), FOREACH, MapInfo_Get_ByName_NoFallbacks(), and MapInfo_Map_supportedGametypes.
Referenced by _MapInfo_CheckMap(), _MapInfo_FilterGametype(), GameTypeVote_AvailabilityStatus(), MapInfo_Get_ByID(), MapInfo_LoadMapSettings(), and swapInPriorityList().
float MapInfo_Get_ByName_NoFallbacks | ( | string | pFilename, |
int | pAllowGenerate, | ||
Gametype | pGametypeToSet | ||
) |
Definition at line 759 of file mapinfo.qc.
References _MapInfo_Generate(), _MapInfo_Map_ApplyGametype(), _MapInfo_Map_ApplyGametypeEx(), _MapInfo_Map_Reset(), _MapInfo_Map_worldspawn_music, _MapInfo_Parse_Settemp(), argv(), car(), cdr(), cvar(), cvar_string(), cvar_value_issafe(), error(), fclose(), fgets(), FILE_READ, FILE_WRITE, floor(), fopen(), FOREACH, fputs(), ftos(), LOG_DEBUG, LOG_WARN, MapInfo_Cache_Retrieve(), MapInfo_Cache_Store(), MAPINFO_FEATURE_MONSTERS, MAPINFO_FEATURE_TURRETS, MAPINFO_FEATURE_VEHICLES, MAPINFO_FEATURE_WEAPONS, MAPINFO_FLAG_FORBIDDEN, MAPINFO_FLAG_FRUSTRATING, MAPINFO_FLAG_HIDDEN, MAPINFO_FLAG_NOAUTOMAPLIST, MapInfo_isRedundant(), MapInfo_Map_author, MapInfo_Map_bspname, MapInfo_Map_clientstuff, MapInfo_Map_description, MapInfo_Map_flags, MapInfo_Map_fog, MapInfo_Map_maxs, MapInfo_Map_mins, MapInfo_Map_supportedFeatures, MapInfo_Map_supportedGametypes, MapInfo_Map_title, MapInfo_Map_titlestring, MAPINFO_SETTEMP_ACL_USER, MAPINFO_TYPE_ALL, MapInfo_Type_FromString(), NULL, random(), stof(), strcat(), strlen(), strstrofs, substring(), tokenize_console, and WARN_COND.
Referenced by MapInfo_Get_ByName().
Definition at line 736 of file mapinfo.qc.
References strcasecmp.
Referenced by MapInfo_Get_ByName_NoFallbacks().
Definition at line 1216 of file mapinfo.qc.
References _MapInfo_FilterGametype(), _MapInfo_GlobItem(), MapInfo_count, MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_FilterList_Lookup(), MAPINFO_TYPE_ALL, strcat(), strlen(), and substring().
Referenced by Maplist_Init().
Definition at line 1202 of file mapinfo.qc.
References _MapInfo_GlobItem(), MapInfo_count, MapInfo_CurrentFeatures(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_FilterList_Lookup(), strcat(), strlen(), and substring().
Referenced by GameTypeVote_SetGametype(), and MapVote_Init().
Definition at line 1183 of file mapinfo.qc.
References cvar_settemp_restore(), localcmd, LOG_INFO, MapInfo_Map_supportedGametypes, and strcat().
Referenced by CampaignSetup(), InstantAction_LoadMap(), and Map_Goto().
Definition at line 1240 of file mapinfo.qc.
References _MapInfo_CheckMap(), _MapInfo_Map_ApplyGametypeEx(), cvar(), floor(), FOREACH, LOG_SEVERE, LOG_SEVEREF, LOG_WARNF, MapInfo_CurrentGametype(), MapInfo_Get_ByName(), MapInfo_LoadMapSettings_SaveGameType(), MapInfo_Map_supportedGametypes, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by InitGameplayMode().
Definition at line 1233 of file mapinfo.qc.
References cvar_set(), MapInfo_LoadedGametype, and MapInfo_SwitchGameType().
Referenced by MapInfo_LoadMapSettings().
int MapInfo_RequiredFlags | ( | ) |
Definition at line 1339 of file mapinfo.qc.
References cvar(), and MAPINFO_FLAG_FRUSTRATING.
Referenced by GameCommand_gametype(), GameTypeVote_MapInfo_FixName(), GameTypeVote_SetGametype(), GenericCommand_maplist(), GotoFirstMap(), InstantAction_LoadMap(), make_mapinfo_Think(), Maplist_Init(), MapVote_Init(), MapVote_Start(), MapVote_Think(), RestoreGame(), spawnfunc(), and XonoticMapList_refilter().
void MapInfo_Shutdown | ( | ) |
Definition at line 1311 of file mapinfo.qc.
References _MapInfo_globhandle, _MapInfo_globopen, MapInfo_Cache_Destroy(), MapInfo_ClearTemps(), MapInfo_Filter_Free(), and search_end().
Referenced by __init_dedicated_server_shutdown(), RestoreGame(), Shutdown(), and XonoticMapList_destroy().
Definition at line 1178 of file mapinfo.qc.
References cvar_set(), and FOREACH.
Referenced by CampaignPreInit(), GameCommand_gametype(), GameTypeVote_SetGametype(), InstantAction_LoadMap(), MapInfo_LoadMapSettings_SaveGameType(), and XonoticGametypeList_saveCvars().
Definition at line 611 of file mapinfo.qc.
Referenced by GameTypeVote_ReadOption(), and XonoticGametypeList_focusedItemChangeNotify().
Definition at line 589 of file mapinfo.qc.
References FOREACH, LOG_WARNF, MapInfo_Map_bspname, NULL, and WARN_COND.
Referenced by Campaign_Invalid(), CampaignPreInit(), GameCommand_gametype(), GameTypeVote_AvailabilityStatus(), GameTypeVote_ReadOption(), GameTypeVote_Type_FromString(), MapInfo_CurrentGametype(), and MapInfo_Get_ByName_NoFallbacks().
Definition at line 616 of file mapinfo.qc.
Referenced by _MapInfo_Map_ApplyGametypeEx(), Gamemode_Init(), GameType_GetIcon(), GameTypeVote_SetGametype(), GameTypeVote_Start(), GetGametype(), isGametypeInFilter(), MapVote_CheckRules_2(), ServerList_TypeSort_Click(), and TeamBalance_FindBestTeam().
Definition at line 621 of file mapinfo.qc.
Referenced by GameType_GetName(), GameTypeVote_ReadOption(), InitGameplayMode(), MapVote_SendEntity(), and Scoreboard_Draw().
Definition at line 236 of file mapinfo.qc.
References strlen(), and substring().
Referenced by _MapInfo_Generate().
int _MapInfo_Cache_Active |
Definition at line 20 of file mapinfo.qc.
Referenced by MapInfo_Cache_Create(), MapInfo_Cache_Destroy(), MapInfo_Cache_Invalidate(), MapInfo_Cache_Retrieve(), and MapInfo_Cache_Store().
int _MapInfo_Cache_Buf_IndexToMapData |
Definition at line 22 of file mapinfo.qc.
Referenced by MapInfo_Cache_Create(), MapInfo_Cache_Destroy(), MapInfo_Cache_Retrieve(), and MapInfo_Cache_Store().
int _MapInfo_Cache_DB_NameToIndex |
Definition at line 21 of file mapinfo.qc.
Referenced by MapInfo_Cache_Create(), MapInfo_Cache_Destroy(), MapInfo_Cache_Retrieve(), and MapInfo_Cache_Store().
float _MapInfo_filtered |
Definition at line 135 of file mapinfo.qc.
Referenced by _MapInfo_FilterGametype(), _MapInfo_FilterList_cmp(), _MapInfo_FilterList_swap(), MapInfo_Filter_Free(), MapInfo_FilterList_Lookup(), and MapInfo_FilterString().
float _MapInfo_filtered_allocated |
Definition at line 136 of file mapinfo.qc.
Referenced by _MapInfo_FilterGametype(), and MapInfo_Filter_Free().
float _MapInfo_globcount |
Definition at line 104 of file mapinfo.qc.
Referenced by _MapInfo_FilterGametype(), and MapInfo_Enumerate().
float _MapInfo_globhandle |
Definition at line 105 of file mapinfo.qc.
Referenced by _MapInfo_GlobItem(), MapInfo_Enumerate(), and MapInfo_Shutdown().
float _MapInfo_globopen |
Definition at line 103 of file mapinfo.qc.
Referenced by _MapInfo_GlobItem(), MapInfo_Enumerate(), and MapInfo_Shutdown().
string _MapInfo_Map_worldspawn_music |
Definition at line 261 of file mapinfo.qc.
Referenced by _MapInfo_Generate(), and MapInfo_Get_ByName_NoFallbacks().
bool autocvar_g_mapinfo_ignore_warnings |
Definition at line 14 of file mapinfo.qc.