91 METHOD(
Gametype,
m_configuremenu,
void(
Gametype this,
entity menu,
void(
entity me,
string pLabel,
float pMin,
float pMax,
float pStep,
string pCvar,
string tCvar,
string pTooltip) returns))
94 returns(menu, _(
"Frag limit:"), 5, 100, 5,
"fraglimit_override",
string_null, _(
"The amount of frags needed before the match will end"));
111 returns(this.message,
"");
113 returns(this.message, icon_path_from_menuskin(
strcat(
"gametype_", this.mdl)));
119 this.netname = g_name;
121 this.message = hname;
123 this.m_mutators =
cons(sname, mutators);
124 this.model2 = defaults;
125 this.m_description = gdescription;
149#define REGISTER_GAMETYPE(NAME, inst) REGISTER(Gametypes, MAPINFO_TYPE, NAME, m_id, inst)
153#define IS_GAMETYPE(NAME) (MapInfo_LoadedGametype == MAPINFO_TYPE_##NAME)
236#define MAPINFO_SETTEMP_ACL_USER cvar_string("g_mapinfo_settemp_acl")
237#define MAPINFO_SETTEMP_ACL_SYSTEM "-g_mapinfo_* -rcon_* -_* -g_ban* +*"
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ATTRIB(Gametype, netname, string)
gametype name as in cvar (with g_ prefix)
string m_legacydefaults
DO NOT USE, this is compatibility for legacy maps!
virtual void m_isTwoBaseMode()
ATTRIB(Gametype, m_modicons_export, void(int fh))
bool m_hidelimits
should this gametype display a score limit in the scoreboard?
virtual void m_generate_mapinfo()
virtual void m_isAlwaysSupported()
virtual void m_parse_mapinfo()
virtual void m_configuremenu()
ATTRIB(Gametype, m_modicons_reset, void())
bool m_weaponarena
does this gametype enforce its own weapon arena?
bool team
does this gametype support teamplay?
int m_priority
gametype priority in random selections
ATTRIB(Gametype, m_modicons, void(vector pos, vector mySize))
ATTRIB(Gametype, m_mutators, string)
bool frags
does this gametype use a point limit?
virtual void gametype_init()
virtual void m_isForcedSupported()
#define FOREACH(list, cond, body)
const int MAPINFO_FEATURE_MONSTERS
vector MapInfo_Map_supportedGametypes
const int GAMETYPE_FLAG_PRIORITY
void _MapInfo_Parse_Settemp(string pFilename, string acl, float type, string s, float recurse)
bool MapReadSizes(string map)
float MapInfo_CheckMap(string s)
const int GAMETYPE_FLAG_USEPOINTS
string MapInfo_FindName_match
float MapInfo_FindName(string s)
bool MapInfo_Get_ByID(int i)
string MapInfo_ListAllowedMaps(Gametype type, float pFlagsRequired, float pFlagsForbidden)
int MapInfo_RequiredFlags()
float MapInfo_FindName_firstResult
string MapInfo_Type_ToString(Gametype t)
string MapInfo_BSPName_ByID(float i)
Gametype MapInfo_LoadedGametype
void MapInfo_FilterString(string sf)
void MapInfo_LoadMap(string s, float reinit)
const int MAPINFO_FLAG_FORBIDDEN
vector _GametypeFlags_FromGametype(int a)
string MapInfo_Map_bspname
string MapInfo_Type_Description(Gametype t)
float MapInfo_FilterGametype(Gametype gametypeFlags, float features, float pFlagsRequired, float pFlagsForbidden, float pAbortOnGenerate)
Gametype MapInfo_CurrentGametype()
int MapInfo_Map_supportedFeatures
void MapInfo_Cache_Destroy()
void MapInfo_Cache_Create()
const int GAMETYPE_FLAG_TEAMPLAY
string _MapInfo_GetDefaultEx(Gametype t)
string _MapInfo_FindArenaFile(string pFilename, string extension)
const int GAMETYPE_FLAG_1V1
Gametype MapInfo_Type_FromString(string t, bool dowarn, bool is_q3compat)
int MapInfo_ForbiddenFlags()
int MapInfo_CurrentFeatures()
string MapInfo_Type_ToText(Gametype t)
float _MapInfo_FilterGametype(vector gametypeFlags, float features, float pFlagsRequired, float pFlagsForbidden, float pAbortOnGenerate)
string MapInfo_Map_author
const int MAPINFO_FEATURE_WEAPONS
const int GAMETYPE_FLAG_WEAPONARENA
const int MAPINFO_FLAG_HIDDEN
void MapInfo_SwitchGameType(Gametype t)
void MapInfo_LoadMapSettings(string s)
void MapInfo_ClearTemps()
const int MAPINFO_FEATURE_VEHICLES
float _MapInfo_GetTeamPlayBool(Gametype t)
string MapInfo_Map_titlestring
const int MAPINFO_FEATURE_TURRETS
void MapInfo_Cache_Invalidate()
string MapInfo_ListAllAllowedMaps(float pFlagsRequired, float pFlagsForbidden)
const int GAMETYPE_FLAG_HIDELIMITS
string MapInfo_Map_clientstuff
string MapInfo_Map_description
const int GAMETYPE_FLAG_PREFERRED
int MapInfo_Get_ByName(string s, float allowGenerate, Gametype gametypeToSet)
const int MAPINFO_FLAG_FRUSTRATING
bool _MapInfo_ParseArena(string arena_filename, int fh, string pFilename, Gametype pGametypeToSet, bool isdefi, bool isgenerator)
string MapInfo_FixName(string s)
const int MAPINFO_FLAG_DONOTWANT
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define METHOD(cname, name, prototype)
#define REGISTRY_SORT(...)
#define REGISTER_REGISTRY(id)
#define REGISTRY(id, max)
Declare a new registry.
#define REGISTRY_CHECK(id)
#define REGISTRY_DEFINE_GET(id, null)
#define STATIC_INIT(func)
during worldspawn
ERASEABLE string cons(string a, string b)