3 #include <common/mapinfo.qh>
5 CLASS(Onslaught, Gametype)
8 this.gametype_init(this, _("Onslaught"),"ons","g_onslaught",GAMETYPE_FLAG_TEAMPLAY,"","pointlimit=1 timelimit=20",_("Capture control points to reach and destroy the enemy generator"));
10 METHOD(Onslaught, m_generate_mapinfo, void(Gametype this, string v))
12 if(v == "onslaught_generator")
13 MapInfo_Map_supportedGametypes |= this.m_flags;
15 METHOD(Onslaught, 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))
18 returns(menu, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null);
20 ATTRIB(Onslaught, m_legacydefaults, string, "20 0");
22 REGISTER_GAMETYPE(ONSLAUGHT, NEW(Onslaught));
25 REGISTER_NET_LINKED(ENT_CLIENT_GENERATOR)
26 REGISTER_NET_LINKED(ENT_CLIENT_CONTROLPOINT_ICON)
30 IntrusiveList g_onsgenerators;
31 STATIC_INIT(g_onsgenerators) { g_onsgenerators = IL_NEW(); }