3 #include <common/mapinfo.qh>
5 #include <common/gamemodes/gamemode/race/cl_race.qh>
8 CLASS(RaceCTS, Gametype)
11 this.gametype_init(this, _("Race CTS"),"cts","g_cts",0,"cloaked","timelimit=20",_("Race for fastest time."));
13 METHOD(RaceCTS, m_generate_mapinfo, void(Gametype this, string v))
15 if(v == "target_startTimer")
16 MapInfo_Map_supportedGametypes |= this.m_flags;
18 METHOD(RaceCTS, m_setTeams, void(string sa))
20 // this is the skill of the map
21 // not parsed by anything yet
23 // cvar_set("fraglimit", sa);
25 METHOD(RaceCTS, 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))
28 returns(menu, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null);
31 ATTRIB(RaceCTS, m_modicons, void(vector pos, vector mySize), HUD_Mod_Race);
33 ATTRIB(RaceCTS, m_legacydefaults, string, "20 0 0");
35 REGISTER_GAMETYPE(CTS, NEW(RaceCTS));
36 #define g_cts IS_GAMETYPE(CTS)