From: Lyberta Date: Thu, 4 May 2017 00:07:49 +0000 (+0300) Subject: Survival: Added gametype to menu. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f4743b9f83a464963211ff4b4b3ebdeea42d17a;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Added gametype to menu. --- diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 9089fced2..138c944ee 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -487,7 +487,7 @@ void HUD_Mod_SURV(vector pos, vector mySize); CLASS(Survival, Gametype) INIT(Survival) { - this.gametype_init(this, _("Survival"),"surv","g_surv",true,"","timelimit=20 pointlimit=10 teams=2 leadlimit=0",_("Survive as long as you can")); + this.gametype_init(this, _("Survival"), "surv", "g_surv", true, "", "timelimit=20 pointlimit=5 teams=2 leadlimit=0", _("Survive as long as you can")); } METHOD(Survival, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc index 481914200..63faabf35 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create.qc @@ -75,6 +75,7 @@ void GameType_ConfigureSliders_for_CurrentGametype(entity me) case MAPINFO_TYPE_CTS: GameType_ConfigureSliders(me, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null); break; case MAPINFO_TYPE_INVASION: GameType_ConfigureSliders(me, _("Point limit:"), 50, 500, 10, string_null, string_null, string_null); break; case MAPINFO_TYPE_TEAM_DEATHMATCH: GameType_ConfigureSliders(me, _("Point limit:"), 5, 100, 5, "g_tdm_point_limit", "g_tdm_teams_override", _("The amount of points needed before the match will end")); break; + case MAPINFO_TYPE_SURVIVAL: GameType_ConfigureSliders(me, _("Point limit:"), 1, 20, 1, "g_surv_point_limit", string_null, _("The amount of points needed before the match will end")); break; default: GameType_ConfigureSliders(me, _("Frag limit:"), 5, 100, 5, "fraglimit_override", string_null, _("The amount of frags needed before the match will end")); break; } } diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index 7f038a85f..29fe0462f 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -693,6 +693,7 @@ float updateCompression() GAMETYPE(MAPINFO_TYPE_NEXBALL) \ GAMETYPE(MAPINFO_TYPE_ONSLAUGHT) \ GAMETYPE(MAPINFO_TYPE_ASSAULT) \ + GAMETYPE(MAPINFO_TYPE_SURVIVAL) \ /* GAMETYPE(MAPINFO_TYPE_INVASION) */ \ /**/