float view_set;\r
float camera_mode;\r
float chase_active_old;\r
+string artwork_image;\r
string NextFrameCommand;\r
void CSQC_UpdateView(float w, float h)\r
{\r
float f, i, j;\r
vector v, vo;\r
\r
+ vector artwork_pos, artwork_size;\r
+\r
WaypointSprite_Load();\r
\r
if(spectatee_status)\r
}\r
}\r
\r
+ // Draw Artwork\r
+ if(intermission && !isdemo()) // match has ended\r
+ {\r
+ //if(getstati(STAT_WINNING))\r
+ //localcmd("disconnect\n");\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\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
+ }\r
+\r
+ drawpic(artwork_pos, "gfx/hslimage", artwork_size, '1 1 1', 1, DRAWFLAG_NORMAL);\r
+ }\r
+\r
if(NextFrameCommand)\r
{\r
localcmd("\n", NextFrameCommand, "\n");\r
const float STAT_NB_METERSTART = 45;\r
const float STAT_SHOTORG = 46; // compressShotOrigin\r
const float STAT_LEADLIMIT = 47;\r
-const float STAT_VORE_LOAD = 48;\r
-const float STAT_VORE_DIGESTING = 49;\r
-const float STAT_VORE_EATEN = 50;\r
-const float STAT_VORE_CANLEAVE = 51;\r
+const float STAT_WINNING = 48;\r
+const float STAT_VORE_LOAD = 49;\r
+const float STAT_VORE_DIGESTING = 50;\r
+const float STAT_VORE_EATEN = 51;\r
+const float STAT_VORE_CANLEAVE = 52;\r
const float CTF_STATE_ATTACK = 1;\r
const float CTF_STATE_DEFEND = 2;\r
const float CTF_STATE_COMMANDER = 3;\r
addstat(STAT_DAMAGE_FIRED, AS_INT, stat_fired);\r
addstat(STAT_SHOTORG, AS_INT, stat_shotorg);\r
addstat(STAT_LEADLIMIT, AS_FLOAT, stat_leadlimit);\r
+ addstat(STAT_WINNING, AS_FLOAT, winning);\r
addstat(STAT_VORE_LOAD, AS_INT, stat_stomachload);\r
addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting);\r
addstat(STAT_VORE_EATEN, AS_INT, stat_eaten);\r