3 #include <common/mapinfo.qh>
6 void HUD_Mod_CA(vector pos, vector mySize);
7 void HUD_Mod_CA_Export(int fh);
9 CLASS(ClanArena, Gametype)
12 this.gametype_init(this, _("Clan Arena"),"ca","g_ca",GAMETYPE_FLAG_TEAMPLAY | GAMETYPE_FLAG_USEPOINTS,"","timelimit=20 pointlimit=10 teams=2 leadlimit=6",_("Kill all enemy teammates to win the round"));
14 METHOD(ClanArena, m_parse_mapinfo, bool(string k, string v))
17 cvar_set("g_ca_teams", cvar_defstring("g_ca_teams"));
22 cvar_set("g_ca_teams", v);
27 METHOD(ClanArena, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
29 if(spawnpoints >= 8 && diameter > 4096)
33 METHOD(ClanArena, m_setTeams, void(string sa))
35 cvar_set("g_ca_teams", sa);
37 METHOD(ClanArena, 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))
40 returns(menu, _("Frag limit:"), 5, 100, 5, "fraglimit_override", "g_ca_teams_override", _("The amount of frags needed before the match will end"));
43 ATTRIB(ClanArena, m_modicons, void(vector pos, vector mySize), HUD_Mod_CA);
44 ATTRIB(ClanArena, m_modicons_export, void(int fh), HUD_Mod_CA_Export);
46 ATTRIB(ClanArena, m_legacydefaults, string, "10 20 0");
48 REGISTER_GAMETYPE(CA, NEW(ClanArena));
49 #define g_ca IS_GAMETYPE(CA)