]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a monstercount option for mapinfos
authorMario <zacjardine@y7mail.com>
Fri, 6 Feb 2015 10:05:28 +0000 (21:05 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 6 Feb 2015 10:05:28 +0000 (21:05 +1100)
qcsrc/common/mapinfo.qc
qcsrc/common/mapinfo.qh

index c2a9be18b827e0fe548089e8a25f85112c7b97a6..f3c51cc6a8753891ef7c7d64f7aaf2974795ca02 100644 (file)
@@ -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");
index adb9e19f81b43c620bf228d463ed1ad73262036a..879e5bb43aa3826ec365216d78268d3eaf7f9372 100644 (file)
@@ -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"))