From: drjaska Date: Sun, 7 Nov 2021 03:24:55 +0000 (+0200) Subject: updated and fixed create server menu entries of the modes X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aefc51d44a2b38b81644aba7156e35b4d71c117a;p=xonotic%2Fxonotic-data.pk3dir.git updated and fixed create server menu entries of the modes --- diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh b/qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh index cb85eadfb..e853d3553 100644 --- a/qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh +++ b/qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh @@ -22,6 +22,11 @@ CLASS(mayhem, Gametype) return true; } return false; + } + METHOD(mayhem, 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)) + { + TC(Gametype, this); + returns(menu, _("Frag limit:"), 5, 100, 5, "g_mayhem_fraglimit", string_null, _("How many frags worth of score is needed before the match will end")); } ATTRIB(mayhem, m_legacydefaults, string, "30 20 0"); ENDCLASS(mayhem) diff --git a/qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh b/qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh index bb579884c..0e18d05d2 100644 --- a/qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh +++ b/qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh @@ -43,7 +43,7 @@ CLASS(tmayhem, Gametype) METHOD(tmayhem, 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)) { TC(Gametype, this); - returns(menu, _("Point limit:"), 5, 100, 5, "g_tmayhem_point_limit", "g_tmayhem_teams_override", _("The amount of points needed before the match will end")); + returns(menu, _("Frag limit:"), 5, 100, 5, "g_tmayhem_fraglimit", "g_tmayhem_teams_override", _("How many frags worth of score is needed before the match will end")); } ATTRIB(tmayhem, m_legacydefaults, string, "50 20 2 0"); ENDCLASS(tmayhem)