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