X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapinfo.qh;h=ebfc0e4438e2c6426671a26dd09373221288b418;hb=357918379edc618c840cc761f051e7281c232cda;hp=12026689b8b3195e21ef40db0079c70fe50dacaf;hpb=0a5f730751cf4a7f6ce555ef920fe9fdcd8e59ac;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 12026689b..ebfc0e443 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -17,6 +17,8 @@ float MAPINFO_TYPE_KEEPAWAY = 32768; float MAPINFO_TYPE_ALL = 65535; // this has to include all above bits float MAPINFO_FEATURE_WEAPONS = 1; // not defined for minstagib-only maps +float MAPINFO_FEATURE_VEHICLES = 2; +float MAPINFO_FEATURE_TURRETS = 4; float MAPINFO_FLAG_HIDDEN = 1; // not in lsmaps/menu/vcall/etc., can just be changed to manually float MAPINFO_FLAG_FORBIDDEN = 2; // don't even allow the map by a cvar setting that allows hidden maps @@ -27,6 +29,7 @@ float MapInfo_count; // info about a map that MapInfo loads string MapInfo_Map_bspname; string MapInfo_Map_title; +string MapInfo_Map_titlestring; // either bspname: title or just title, depending on whether bspname is redundant string MapInfo_Map_description; string MapInfo_Map_author; string MapInfo_Map_clientstuff; // not in cache, only for map load @@ -68,6 +71,8 @@ void MapInfo_LoadMap(string s); // list all maps for the current game type string MapInfo_ListAllowedMaps(float pFlagsRequired, float pFlagsForbidden); +// list all allowed maps (for any game type) +string MapInfo_ListAllAllowedMaps(float pFlagsRequired, float pFlagsForbidden); // gets a gametype from a string float MapInfo_Type_FromString(string t);