Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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 to the finish line for the 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)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void HUD_Mod_Race(vector pos, vector mySize)
Definition cl_race.qc:42
virtual void gametype_init()
Definition mapinfo.qh:117
Definition cts.qh:8
virtual void m_configuremenu()
Definition cts.qh:25
RaceCTS()
Definition cts.qh:9
virtual void m_setTeams()
Definition cts.qh:18
virtual void m_generate_mapinfo()
Definition cts.qh:13
string m_legacydefaults
Definition cts.qh:33
#define TC(T, sym)
Definition _all.inc:82
vector MapInfo_Map_supportedGametypes
Definition mapinfo.qh:13
#define REGISTER_GAMETYPE(NAME, inst)
Definition mapinfo.qh:149
vector gametype_flags
Definition mapinfo.qh:28
string string_null
Definition nil.qh:9
#define NEW(cname,...)
Definition oo.qh:117
#define INIT(cname)
Definition oo.qh:210
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define ATTRIB(...)
Definition oo.qh:148
vector
Definition self.qh:92