]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Separate intermission tracks for winning and loosing
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 20:58:20 +0000 (23:58 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 20:58:20 +0000 (23:58 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/g_world.qc

index 5831cbd772bc6a426561995f69b06961654063d5..84206b93553fa492a605e44172e5100e984a856e 100644 (file)
@@ -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"\r
 set g_cdtracks_dontusebydefault "" "list used by mapinfo system to automatically assign cdtracks - must be a subset of g_cdtracks_remaplist"\r
 cd remap $g_cdtracks_remaplist\r
-set sv_intermission_cdtrack ""\r
+set sv_intermission_cdtrack_win ""\r
+set sv_intermission_cdtrack_loose ""\r
 set menu_cdtrack feeding_frenzy\r
 \r
 // maxidle (in seconds): kick players idle for more than that amount of time\r
index a49e2e9fce67e3e6563ccb54573b28b92e4e151f..c34b4b5bfe2ee150c64322a738df96b89009af87 100644 (file)
@@ -1353,7 +1353,10 @@ void FixIntermissionClient(entity e)
                if(clienttype(e) == CLIENTTYPE_REAL)\r
                {\r
                        stuffcmd(e, "\nscr_printspeed 1000000\n");\r
-                       s = cvar_string("sv_intermission_cdtrack");\r
+                       if(e.winning)\r
+                               s = cvar_string("sv_intermission_cdtrack_win");\r
+                       else\r
+                               s = cvar_string("sv_intermission_cdtrack_loose");\r
                        if(s != "")\r
                                stuffcmd(e, strcat("\ncd loop ", s, "\n"));\r
                        msg_entity = e;\r