]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/lms/lms.qh
Merge branch 'terencehill/shotgun_fixes' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / lms / lms.qh
1 #pragma once
2
3 #include <common/mapinfo.qh>
4
5 #ifdef CSQC
6 void HUD_Mod_LMS(vector myPos, vector mySize);
7 #endif
8 CLASS(LastManStanding, Gametype)
9     INIT(LastManStanding)
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     }
22     ATTRIB(LastManStanding, m_legacydefaults, string, "9 20 0");
23 #ifdef CSQC
24     ATTRIB(LastManStanding, m_modicons, void(vector myPos, vector mySize), HUD_Mod_LMS);
25 #endif
26 ENDCLASS(LastManStanding)
27 REGISTER_GAMETYPE(LMS, NEW(LastManStanding));