]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Per campaign level cfg files. eg. if your campaign file is my-capaign.txt, you can...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 12 Sep 2010 21:58:48 +0000 (00:58 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 12 Sep 2010 21:58:48 +0000 (00:58 +0300)
data/qcsrc/server/campaign.qc

index 52797d479f47e233b271fa13b4d661eea1001bdf..6fa46496c797bdff54677359cb6d49527dd9e12f 100644 (file)
@@ -103,6 +103,9 @@ void CampaignPreInit()
        // with the menu a little still...)\r
        cvar_set_normal("sv_gravity", cvar_string("sv_gravity"));\r
 \r
+       // attempt to exec per-campaign-level cfg files\r
+       localcmd(strcat("exec maps/campaign", campaign_name, "_", ftos(campaign_level + 1), ".cfg\n"));\r
+\r
        if(Campaign_Invalid())\r
                return;\r
 \r