Add a gametype flag to indicate that a gametype shouldn't display standard score...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / lms / lms.qh
1 #pragma once
2
3 #include <common/mapinfo.qh>
4
5 CLASS(LastManStanding, Gametype)
6     INIT(LastManStanding)
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");
20 ENDCLASS(LastManStanding)
21 REGISTER_GAMETYPE(LMS, NEW(LastManStanding));