Xonotic
deathmatch.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/mapinfo.qh>
4 
7  {
8  this.gametype_init(this, _("Deathmatch"),"dm","g_dm",GAMETYPE_FLAG_USEPOINTS | GAMETYPE_FLAG_PREFERRED,"","timelimit=15 pointlimit=30 leadlimit=0",_("Score as many frags as you can"));
9  }
10  METHOD(Deathmatch, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
11  {
12  return true;
13  }
14  ATTRIB(Deathmatch, m_legacydefaults, string, "30 20 0");
16 REGISTER_GAMETYPE(DEATHMATCH, NEW(Deathmatch));
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
REGISTER_GAMETYPE(DEATHMATCH, NEW(Deathmatch))
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define INIT(cname)
Definition: oo.qh:198
const int GAMETYPE_FLAG_PREFERRED
Definition: mapinfo.qh:21
const int GAMETYPE_FLAG_USEPOINTS
Definition: mapinfo.qh:20
#define ENDCLASS(cname)
Definition: oo.qh:269