3 #include <common/mapinfo.qh>
5 CLASS(Invasion, Gametype)
8 this.gametype_init(this, _("Invasion"),"inv","g_invasion",GAMETYPE_FLAG_USEPOINTS,"","pointlimit=50 teams=0 type=0",_("Survive against waves of monsters"));
10 METHOD(Invasion, m_parse_mapinfo, bool(string k, string v))
14 cvar_set("g_invasion_teams", v);
17 cvar_set("g_invasion_type", v);
22 METHOD(Invasion, m_generate_mapinfo, void(Gametype this, string v))
24 if(v == "invasion_spawnpoint")
25 MapInfo_Map_supportedGametypes |= this.m_flags;
27 METHOD(Invasion, 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))
30 returns(menu, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null);
33 REGISTER_GAMETYPE(INVASION, NEW(Invasion));