Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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 }
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 }
23
24#ifdef GAMEQC
25REGISTER_NET_LINKED(ENT_CLIENT_GENERATOR)
26REGISTER_NET_LINKED(ENT_CLIENT_CONTROLPOINT_ICON)
27#endif
28
29#ifdef CSQC
32#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void gametype_init()
Definition mapinfo.qh:117
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
string m_legacydefaults
Definition onslaught.qh:20
virtual void m_generate_mapinfo()
Definition onslaught.qh:10
virtual void m_configuremenu()
Definition onslaught.qh:15
#define IL_NEW()
#define TC(T, sym)
Definition _all.inc:82
#define REGISTER_NET_LINKED(id)
Definition net.qh:55
vector MapInfo_Map_supportedGametypes
Definition mapinfo.qh:13
#define REGISTER_GAMETYPE(NAME, inst)
Definition mapinfo.qh:149
const int GAMETYPE_FLAG_TEAMPLAY
Definition mapinfo.qh:19
vector gametype_flags
Definition mapinfo.qh:28
string string_null
Definition nil.qh:9
IntrusiveList g_onsgenerators
Definition onslaught.qh:30
#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
#define STATIC_INIT(func)
during worldspawn
Definition static.qh:32