Xonotic
cts.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/mapinfo.qh>
4 #if defined(CSQC)
6 #endif
7 
10  {
11  this.gametype_init(this, _("Race CTS"),"cts","g_cts",0,"cloaked","timelimit=20",_("Race for fastest time."));
12  }
13  METHOD(RaceCTS, m_generate_mapinfo, void(Gametype this, string v))
14  {
15  if(v == "target_startTimer")
17  }
18  METHOD(RaceCTS, m_setTeams, void(string sa))
19  {
20  // this is the skill of the map
21  // not parsed by anything yet
22  // for map databases
23  // cvar_set("fraglimit", sa);
24  }
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))
26  {
27  TC(Gametype, this);
28  returns(menu, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null);
29  }
30 #ifdef CSQC
31  ATTRIB(RaceCTS, m_modicons, void(vector pos, vector mySize), HUD_Mod_Race);
32 #endif
33  ATTRIB(RaceCTS, m_legacydefaults, string, "20 0 0");
36 #define g_cts IS_GAMETYPE(CTS)
string string_null
Definition: nil.qh:9
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
int m_flags
Definition: mapinfo.qh:27
Definition: cts.qh:8
#define ATTRIB(...)
Definition: oo.qh:136
#define INIT(cname)
Definition: oo.qh:198
int MapInfo_Map_supportedGametypes
Definition: mapinfo.qh:13
#define TC(T, sym)
Definition: _all.inc:82
void HUD_Mod_Race(vector pos, vector mySize)
Definition: cl_race.qc:41
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector v
Definition: ent_cs.qc:116
#define ENDCLASS(cname)
Definition: oo.qh:269
REGISTER_GAMETYPE(CTS, NEW(RaceCTS))