Xonotic
keepaway.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/mapinfo.qh>
4 
5 #ifdef CSQC
6 void HUD_Mod_Keepaway(vector pos, vector mySize);
7 #endif
10  {
11  this.gametype_init(this, _("Keepaway"),"ka","g_keepaway",GAMETYPE_FLAG_USEPOINTS,"","timelimit=20 pointlimit=30",_("Hold the ball to get points for kills"));
12  }
13  METHOD(Keepaway, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
14  {
15  return true;
16  }
17 #ifdef CSQC
18  ATTRIB(Keepaway, m_modicons, void(vector pos, vector mySize), HUD_Mod_Keepaway);
19 #endif
21 REGISTER_GAMETYPE(KEEPAWAY, NEW(Keepaway));
22 
23 #ifdef GAMEQC
24 const int KA_CARRYING = BIT(0);
25 #endif
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
REGISTER_GAMETYPE(KEEPAWAY, NEW(Keepaway))
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define INIT(cname)
Definition: oo.qh:198
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const int GAMETYPE_FLAG_USEPOINTS
Definition: mapinfo.qh:20
#define ENDCLASS(cname)
Definition: oo.qh:269
void HUD_Mod_Keepaway(vector pos, vector mySize)
Definition: cl_keepaway.qc:13