]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/assault/assault.qh
Merge branch 'terencehill/noclip_death_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / assault / assault.qh
1 #pragma once
2
3 #include <common/mapinfo.qh>
4
5 CLASS(Assault, Gametype)
6     INIT(Assault)
7     {
8         this.gametype_init(this, _("Assault"),"as","g_assault",GAMETYPE_FLAG_TEAMPLAY,"","timelimit=20",_("Destroy obstacles to find and destroy the enemy power core before time runs out"));
9     }
10     METHOD(Assault, m_generate_mapinfo, void(Gametype this, string v))
11     {
12         if(v == "target_assault_roundend")
13             MapInfo_Map_supportedGametypes |= this.m_flags;
14     }
15     METHOD(Assault, m_isTwoBaseMode, bool())
16     {
17         return true;
18     }
19     METHOD(Assault, 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))
20     {
21         TC(Gametype, this);
22         returns(menu, _("Point limit:"),    50,  500, 10, string_null,                 string_null,                    string_null);
23     }
24     ATTRIB(Assault, m_legacydefaults, string, "20 0");
25 ENDCLASS(Assault)
26 REGISTER_GAMETYPE(ASSAULT, NEW(Assault));
27 #define g_assault IS_GAMETYPE(ASSAULT)