From: MirceaKitsune Date: Sun, 12 Sep 2010 21:58:48 +0000 (+0300) Subject: Per campaign level cfg files. eg. if your campaign file is my-capaign.txt, you can... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b744d6d693963fe11419b7922cbc2cccc8f286e8;p=voretournament%2Fvoretournament.git Per campaign level cfg files. eg. if your campaign file is my-capaign.txt, you can make a cfg file called my-campaign_2.cfg, which will be executed when starting level 2 of your campaign. --- diff --git a/data/qcsrc/server/campaign.qc b/data/qcsrc/server/campaign.qc index 52797d47..6fa46496 100644 --- a/data/qcsrc/server/campaign.qc +++ b/data/qcsrc/server/campaign.qc @@ -103,6 +103,9 @@ void CampaignPreInit() // with the menu a little still...) cvar_set_normal("sv_gravity", cvar_string("sv_gravity")); + // attempt to exec per-campaign-level cfg files + localcmd(strcat("exec maps/campaign", campaign_name, "_", ftos(campaign_level + 1), ".cfg\n")); + if(Campaign_Invalid()) return;