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
-seta sv_intermission 1 "play intermission music"\r
-seta sv_intermission_cdtrack_win "win_music"\r
-seta sv_intermission_cdtrack_lose "lose_music"\r
+seta cl_intermission 1 "play intermission music"\r
+seta cl_intermission_cdtrack_win "win_music"\r
+seta cl_intermission_cdtrack_lose "lose_music"\r
seta menu_cdtrack feeding_frenzy\r
\r
// maxidle (in seconds): kick players idle for more than that amount of time\r
)\r
teamradar_view();\r
\r
- // Draw Artwork\r
+ // Draw artwork and play intermission music\r
if(intermission && !isdemo()) // the match has ended\r
- if(cvar("cl_artwork"))\r
if(!spectatee_status && gametype != GAME_RPG) // no one wins or loses in RPG\r
{\r
- if(artwork_image == "")\r
+ if(cvar("cl_artwork"))\r
{\r
- if(getstati(STAT_WINNING)) // we are the winner\r
+ if(artwork_image == "")\r
{\r
- if(cvar("cl_artwork_win"))\r
- artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win")))));\r
+ if(getstati(STAT_WINNING)) // we are the winner\r
+ {\r
+ if(cvar("cl_artwork_win"))\r
+ artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win")))));\r
+ }\r
+ else // we have lost\r
+ {\r
+ if(cvar("cl_artwork_lose"))\r
+ artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose")))));\r
+ }\r
+ artwork_image = strzone(artwork_image);\r
+ }\r
+\r
+ if(cvar("cl_artwork_stretch"))\r
+ {\r
+ artwork_size_x = vid_conwidth;\r
+ artwork_size_y = vid_conheight;\r
+ artwork_pos_x = 0;\r
+ artwork_pos_y = 0;\r
}\r
- else // we have lost\r
+ else\r
{\r
- if(cvar("cl_artwork_lose"))\r
- artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose")))));\r
+ artwork_size_x = max(vid_conwidth, vid_conheight);\r
+ artwork_size_y = max(vid_conwidth, vid_conheight);\r
+ artwork_pos_x = (vid_conwidth - artwork_size_x) / 2;\r
+ artwork_pos_y = (vid_conheight - artwork_size_y) / 2;\r
}\r
- artwork_image = strzone(artwork_image);\r
- }\r
\r
- if(cvar("cl_artwork_stretch"))\r
- {\r
- artwork_size_x = vid_conwidth;\r
- artwork_size_y = vid_conheight;\r
- artwork_pos_x = 0;\r
- artwork_pos_y = 0;\r
+ if(artwork_fade < cvar("cl_artwork_alpha") && cvar("cl_artwork_fade"))\r
+ artwork_fade += frametime * cvar("cl_artwork_fade");\r
+ else\r
+ artwork_fade = cvar("cl_artwork_alpha");\r
+\r
+ if(artwork_image != "")\r
+ drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL);\r
}\r
else\r
{\r
- artwork_size_x = max(vid_conwidth, vid_conheight);\r
- artwork_size_y = max(vid_conwidth, vid_conheight);\r
- artwork_pos_x = (vid_conwidth - artwork_size_x) / 2;\r
- artwork_pos_y = (vid_conheight - artwork_size_y) / 2;\r
+ if(artwork_image != "")\r
+ {\r
+ strunzone(artwork_image);\r
+ artwork_image = "";\r
+ }\r
+ artwork_fade = 0;\r
}\r
\r
- if(artwork_fade < cvar("cl_artwork_alpha") && cvar("cl_artwork_fade"))\r
- artwork_fade += frametime * cvar("cl_artwork_fade");\r
- else\r
- artwork_fade = cvar("cl_artwork_alpha");\r
-\r
- if(artwork_image != "")\r
- drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL);\r
- }\r
- else\r
- {\r
- if(artwork_image != "")\r
+ if(cvar("cl_intermission"))\r
{\r
- strunzone(artwork_image);\r
- artwork_image = "";\r
+ string s;\r
+ if(getstati(STAT_WINNING))\r
+ s = cvar_string("cl_intermission_cdtrack_win");\r
+ else\r
+ s = cvar_string("cl_intermission_cdtrack_lose");\r
+ if(s != "")\r
+ localcmd(strcat("\ncd play ", s, "\n"));\r
}\r
- artwork_fade = 0;\r
}\r
\r
// draw sbar\r
\r
void FixIntermissionClient(entity e)\r
{\r
- string s;\r
if(!e.autoscreenshot) // initial call\r
{\r
e.angles = e.v_angle;\r
e.weaponentity.weaponentity.effects = EF_NODRAW;\r
}\r
if(clienttype(e) == CLIENTTYPE_REAL)\r
- if(cvar("sv_intermission"))\r
- if(!e.spectatee_status && !cvar("g_rpg")) // no one wins or loses in RPG\r
{\r
stuffcmd(e, "\nscr_printspeed 1000000\n");\r
- if(e.winning)\r
- s = cvar_string("sv_intermission_cdtrack_win");\r
- else\r
- s = cvar_string("sv_intermission_cdtrack_lose");\r
- if(s != "")\r
- stuffcmd(e, strcat("\ncd play ", s, "\n"));\r
msg_entity = e;\r
WriteByte(MSG_ONE, SVC_INTERMISSION);\r
}\r