From: Mario Date: Fri, 6 Feb 2015 10:05:28 +0000 (+1100) Subject: Add a monstercount option for mapinfos X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b48ad701803332722472a190a9db215ea6efaba0;p=xonotic%2Fxonotic-data.pk3dir.git Add a monstercount option for mapinfos --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index c2a9be18b..f3c51cc6a 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -705,6 +705,10 @@ void _MapInfo_Map_ApplyGametypeEx(string s, int pWantedType, int pThisType) { // ignore } + else if(k == "monstercount") + { + cvar_set("g_invasion_monster_count", v); + } else { print("Invalid gametype setting in mapinfo for gametype ", MapInfo_Type_ToString(pWantedType), ": ", sa, "\n"); diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index adb9e19f8..879e5bb43 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -85,7 +85,7 @@ REGISTER_GAMETYPE(_("Keepaway"),ka,g_keepaway,KEEPAWAY,true,"timelimit=20 pointl REGISTER_GAMETYPE(_("VIP"),vip,g_vip,VIP,true,"timelimit=20 pointlimit=10 leadlimit=0",_("A VIP is chosen on each team, when a VIP dies, the round is over")); #define g_vip IS_GAMETYPE(VIP) -REGISTER_GAMETYPE(_("Invasion"),inv,g_invasion,INVASION,true,"pointlimit=50 teams=0",_("Survive against waves of monsters")); +REGISTER_GAMETYPE(_("Invasion"),inv,g_invasion,INVASION,true,"pointlimit=50 teams=0 monstercount=10",_("Survive against waves of monsters")); #define g_invasion IS_GAMETYPE(INVASION) REGISTER_GAMETYPE(_("Conquest"),cq,g_conquest,CONQUEST,true,"timelimit=20 pointlimit=1 teams=2",_("Capture all the spawnpoint control points to win"))