From: MirceaKitsune Date: Sun, 26 Sep 2010 20:58:20 +0000 (+0300) Subject: Separate intermission tracks for winning and loosing X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7896295d14b22c2b40ef9ef264c16f13ae24c725;p=voretournament%2Fvoretournament.git Separate intermission tracks for winning and loosing --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 5831cbd7..84206b93 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1225,7 +1225,8 @@ set sv_foginterval 0 set g_cdtracks_remaplist "feeding_frenzy digital-pursuit brokenlight ninesix sixtyfour_revisited infiltrator stone_fortress high_tech_lab space_walk meltdown inner-peace out-there variable quiet boss_theme ghost-town" "list used by mapinfo system to automatically assign cdtracks - must match the cd remap command" set g_cdtracks_dontusebydefault "" "list used by mapinfo system to automatically assign cdtracks - must be a subset of g_cdtracks_remaplist" cd remap $g_cdtracks_remaplist -set sv_intermission_cdtrack "" +set sv_intermission_cdtrack_win "" +set sv_intermission_cdtrack_loose "" set menu_cdtrack feeding_frenzy // maxidle (in seconds): kick players idle for more than that amount of time diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index a49e2e9f..c34b4b5b 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -1353,7 +1353,10 @@ void FixIntermissionClient(entity e) if(clienttype(e) == CLIENTTYPE_REAL) { stuffcmd(e, "\nscr_printspeed 1000000\n"); - s = cvar_string("sv_intermission_cdtrack"); + if(e.winning) + s = cvar_string("sv_intermission_cdtrack_win"); + else + s = cvar_string("sv_intermission_cdtrack_loose"); if(s != "") stuffcmd(e, strcat("\ncd loop ", s, "\n")); msg_entity = e;