seta cl_artwork_won 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork"\r
seta cl_artwork_lost 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork"\r
seta cl_artwork_stretch 0 "stretch artwork to fit the screen, even if it brakes image proportions"\r
+seta cl_artwork_fadespeed 0.5 "artwork fade-in speed"\r
+\r
+\r
fov 90\r
seta cl_velocityzoom 0 "velocity based zooming of fov, negative values zoom out"\r
seta cl_velocityzoomtime 0.3 "time value for averaging speed values"\r
float view_set;\r
float camera_mode;\r
float chase_active_old;\r
+float artwork_fade;\r
string artwork_image;\r
string NextFrameCommand;\r
void CSQC_UpdateView(float w, float h)\r
artwork_pos_y = (vid_conheight - artwork_size_y) / 2;\r
}\r
\r
- drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', 1, DRAWFLAG_NORMAL);\r
+ if(artwork_fade < 1)\r
+ artwork_fade += frametime * cvar("cl_artwork_fadespeed");\r
+ else\r
+ artwork_fade = 1;\r
+\r
+ drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL);\r
}\r
else\r
{\r
strunzone(artwork_image);\r
artwork_image = "";\r
}\r
+ artwork_fade = 0;\r
}\r
\r
// draw sbar\r