]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
updated and fixed create server menu entries of the modes
authordrjaska <drjaska83@gmail.com>
Sun, 7 Nov 2021 03:24:55 +0000 (05:24 +0200)
committerdrjaska <drjaska83@gmail.com>
Sun, 7 Nov 2021 03:24:55 +0000 (05:24 +0200)
qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh
qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh

index cb85eadfb0402ff487cd2b28ee0d9b7f20b268fa..e853d35532bef99fa691e423f1bb7cc8e1e54efc 100644 (file)
@@ -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)
index bb579884cfa1d029089050774a92863bc8668bee..0e18d05d2742b6759d0eaa4de2109ac306bf5f35 100644 (file)
@@ -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)