Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
lms.qh
Go to the documentation of this file.
1#pragma once
2
3#include <common/mapinfo.qh>
4
5#ifdef CSQC
6void HUD_Mod_LMS(vector myPos, vector mySize);
7#endif
10 {
11 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"));
12 }
13 METHOD(LastManStanding, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
14 {
15 return true;
16 }
17 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))
18 {
19 TC(Gametype, this);
20 returns(menu, _("Lives:"), 3, 50, 1, "g_lms_lives_override", string_null, string_null);
21 }
23#ifdef CSQC
24 ATTRIB(LastManStanding, m_modicons, void(vector myPos, vector mySize), HUD_Mod_LMS);
25#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void gametype_init()
Definition mapinfo.qh:117
LastManStanding()
Definition lms.qh:9
string m_legacydefaults
Definition lms.qh:22
virtual void m_isAlwaysSupported()
Definition lms.qh:13
virtual void m_configuremenu()
Definition lms.qh:17
#define TC(T, sym)
Definition _all.inc:82
void HUD_Mod_LMS(vector myPos, vector mySize)
Definition cl_lms.qc:66
const int GAMETYPE_FLAG_USEPOINTS
Definition mapinfo.qh:20
#define REGISTER_GAMETYPE(NAME, inst)
Definition mapinfo.qh:149
const int GAMETYPE_FLAG_HIDELIMITS
Definition mapinfo.qh:23
string string_null
Definition nil.qh:9
#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