3 #include <common/mapinfo.qh>
6 //void HUD_Mod_CA(vector pos, vector mySize);
7 //void HUD_Mod_CA_Export(int fh);
8 int HUD_Scores_CA(int team);
10 CLASS(ClanArena, Gametype)
13 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"));
15 METHOD(ClanArena, m_parse_mapinfo, bool(string k, string v))
18 cvar_set("g_ca_teams", cvar_defstring("g_ca_teams"));
23 cvar_set("g_ca_teams", v);
28 METHOD(ClanArena, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
30 if(spawnpoints >= 8 && diameter > 3250)
34 METHOD(ClanArena, m_setTeams, void(string sa))
36 cvar_set("g_ca_teams", sa);
38 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))
41 returns(menu, _("Frag limit:"), 5, 100, 5, "fraglimit_override", "g_ca_teams_override", _("The amount of frags needed before the match will end"));
44 //ATTRIB(ClanArena, m_modicons, void(vector pos, vector mySize), HUD_Mod_CA);
45 //ATTRIB(ClanArena, m_modicons_export, void(int fh), HUD_Mod_CA_Export);
46 ATTRIB(ClanArena, m_modscores, int(int team), HUD_Scores_CA);
48 ATTRIB(ClanArena, m_legacydefaults, string, "10 20 0");
50 REGISTER_GAMETYPE(CA, NEW(ClanArena));
51 #define g_ca IS_GAMETYPE(CA)