Xonotic
onslaught.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/mapinfo.qh>
4 
7  {
8  this.gametype_init(this, _("Onslaught"),"ons","g_onslaught",GAMETYPE_FLAG_TEAMPLAY,"","pointlimit=1 timelimit=20",_("Capture control points to reach and destroy the enemy generator"));
9  }
10  METHOD(Onslaught, m_generate_mapinfo, void(Gametype this, string v))
11  {
12  if(v == "onslaught_generator")
14  }
15  METHOD(Onslaught, 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))
16  {
17  TC(Gametype, this);
18  returns(menu, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null);
19  }
20  ATTRIB(Onslaught, m_legacydefaults, string, "20 0");
22 REGISTER_GAMETYPE(ONSLAUGHT, NEW(Onslaught));
23 
24 #ifdef GAMEQC
25 REGISTER_NET_LINKED(ENT_CLIENT_GENERATOR)
26 REGISTER_NET_LINKED(ENT_CLIENT_CONTROLPOINT_ICON)
27 #endif
28 
29 #ifdef CSQC
30 IntrusiveList g_onsgenerators;
31 STATIC_INIT(g_onsgenerators) { g_onsgenerators = IL_NEW(); }
32 #endif
string string_null
Definition: nil.qh:9
#define REGISTER_NET_LINKED(id)
Definition: net.qh:67
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
#define IL_NEW()
entity() spawn
#define STATIC_INIT(func)
during worldspawn
Definition: static.qh:32
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
int m_flags
Definition: mapinfo.qh:27
const int GAMETYPE_FLAG_TEAMPLAY
Definition: mapinfo.qh:19
#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
vector v
Definition: ent_cs.qc:116
#define ENDCLASS(cname)
Definition: oo.qh:269
REGISTER_GAMETYPE(ONSLAUGHT, NEW(Onslaught))