Xonotic
lms.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/mapinfo.qh>
4 
7  {
8  this.gametype_init(this, _("Last Man Standing"),"lms","g_lms",GAMETYPE_FLAG_USEPOINTS | GAMETYPE_FLAG_HIDELIMITS,"","timelimit=20 lives=5 leadlimit=0",_("Survive and kill until the enemies have no lives left"));
9  }
10  METHOD(LastManStanding, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
11  {
12  return true;
13  }
14  METHOD(LastManStanding, 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))
15  {
16  TC(Gametype, this);
17  returns(menu, _("Lives:"), 3, 50, 1, "g_lms_lives_override", string_null, string_null);
18  }
19  ATTRIB(LastManStanding, m_legacydefaults, string, "9 20 0");
string string_null
Definition: nil.qh:9
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
const int GAMETYPE_FLAG_HIDELIMITS
Definition: mapinfo.qh:23
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define INIT(cname)
Definition: oo.qh:198
#define TC(T, sym)
Definition: _all.inc:82
const int GAMETYPE_FLAG_USEPOINTS
Definition: mapinfo.qh:20
#define ENDCLASS(cname)
Definition: oo.qh:269
REGISTER_GAMETYPE(LMS, NEW(LastManStanding))