Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
keepaway.qh
Go to the documentation of this file.
1#pragma once
2
3#include <common/mapinfo.qh>
4
5#ifdef CSQC
6void 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
22
23#ifdef GAMEQC
24const int KA_CARRYING = BIT(0);
25#endif
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
virtual void gametype_init()
Definition mapinfo.qh:117
virtual void m_isAlwaysSupported()
Definition keepaway.qh:13
Keepaway()
Definition keepaway.qh:9
const int KA_CARRYING
Definition keepaway.qh:24
void HUD_Mod_Keepaway(vector pos, vector mySize)
const int GAMETYPE_FLAG_USEPOINTS
Definition mapinfo.qh:20
#define REGISTER_GAMETYPE(NAME, inst)
Definition mapinfo.qh:149
#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