X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fclient%2FView.qc;h=674fb9c0bed449ca69c0f03f41018a68fcebfa92;hp=45e39d8190b49b37be0911069b8d728c6578efb1;hb=87b4d4fe557631584b47eab4de2c2249aaa9904b;hpb=6f4bd08da8dd1a5bca8855c8797285376a19922d diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 45e39d81..674fb9c0 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -250,8 +250,20 @@ void CSQC_Demo_Camera(); float Sbar_WouldDrawScoreboard (); float view_set; float camera_mode; +float reticle_type; float chase_active_old; +float artwork_fade; +float pickup_crosshair_time, pickup_crosshair_size; +float myhealth, myhealth_prev, myhealth_flash; +float contentavgalpha, liquidalpha_prev; +float stomachsplash_alpha, stomachsplash_remove_at_respawn; +float volume_modify_1, volume_modify_2, volume_modify_default_1, volume_modify_default_2; +float volume_modify_changed_1, volume_modify_changed_2; +vector myhealth_gentlergb; +vector liquidcolor_prev; +vector damage_blurpostprocess, content_blurpostprocess; string artwork_image; +string intermission_song; string NextFrameCommand; void CSQC_UpdateView(float w, float h) { @@ -259,7 +271,9 @@ void CSQC_UpdateView(float w, float h) float fov; float f, i, j; vector v, vo; + float a; + vector reticle_pos, reticle_size; vector artwork_pos, artwork_size; WaypointSprite_Load(); @@ -448,6 +462,346 @@ void CSQC_UpdateView(float w, float h) // next R_RenderScene call drawstring('0 0 0', "", '1 1 0', '1 1 1', 0, 0); + // Draw the aiming reticle for weapons that use it + // reticle_type is changed to the item we are zooming / aiming with, to decide which reticle to use + // It must be a persisted float for fading out to work properly (you let go of the zoom button for + // the view to go back to normal, so reticle_type would become 0 as we fade out) + if(spectatee_status || getstati(STAT_HEALTH) <= 0) + reticle_type = 0; // prevent reticle from showing during the respawn zoom effect or for spectators + else if(activeweapon && (button_zoom || zoomscript_caught)) + reticle_type = 2; // weapon zoom + else if(button_zoom || zoomscript_caught) + reticle_type = 1; // normal zoom + + if(cvar("cl_reticle_stretch")) + { + reticle_size_x = vid_conwidth; + reticle_size_y = vid_conheight; + reticle_pos_x = 0; + reticle_pos_y = 0; + } + else + { + reticle_size_x = max(vid_conwidth, vid_conheight); + reticle_size_y = max(vid_conwidth, vid_conheight); + reticle_pos_x = (vid_conwidth - reticle_size_x) / 2; + reticle_pos_y = (vid_conheight - reticle_size_y) / 2; + } + + f = current_zoomfraction; + if(zoomscript_caught) + f = 1; + if(cvar("cl_reticle_item_normal")) + { + precache_pic("gfx/reticle_normal"); + if(reticle_type == 1 && f) + drawpic(reticle_pos, "gfx/reticle_normal", reticle_size, '1 1 1', f * cvar("cl_reticle_item_normal"), DRAWFLAG_NORMAL); + } + if(cvar("cl_reticle_item_weapon")) + { + precache_pic("gfx/reticle_weapon"); + if(reticle_type == 2 && f) + drawpic(reticle_pos, "gfx/reticle_weapon", reticle_size, '1 1 1', f * cvar("cl_reticle_item_weapon"), DRAWFLAG_NORMAL); + } + + // screen effects + if(cvar("hud_contents")) + { + float contentalpha_temp, incontent, liquidalpha, contentfadetime; + vector liquidcolor; + + if (getstati(STAT_VORE_EATEN)) + { + liquidalpha = cvar("hud_contents_stomach_alpha"); + liquidcolor = stov(cvar_string("hud_contents_stomach_color")); + incontent = 1; + } + else + { + switch(pointcontents(view_origin)) + { + case CONTENT_WATER: + liquidalpha = cvar("hud_contents_water_alpha"); + liquidcolor = stov(cvar_string("hud_contents_water_color")); + incontent = 1; + break; + + case CONTENT_LAVA: + liquidalpha = cvar("hud_contents_lava_alpha"); + liquidcolor = stov(cvar_string("hud_contents_lava_color")); + incontent = 1; + break; + + case CONTENT_SLIME: + liquidalpha = cvar("hud_contents_slime_alpha"); + liquidcolor = stov(cvar_string("hud_contents_slime_color")); + incontent = 1; + break; + + default: + liquidalpha = 0; + liquidcolor = '0 0 0'; + incontent = 0; + break; + } + } + + if(incontent) // fade in/out at different speeds so you can do e.g. instant fade when entering water and slow when leaving it. + { // also lets delcare previous values for blending properties, this way it isn't reset until after you have entered a different content + contentfadetime = cvar("hud_contents_fadeintime"); + liquidalpha_prev = liquidalpha; + liquidcolor_prev = liquidcolor; + } + else + contentfadetime = cvar("hud_contents_fadeouttime"); + + contentalpha_temp = bound(0, drawframetime / max(0.0001, contentfadetime), 1); + contentavgalpha = contentavgalpha * (1 - contentalpha_temp) + incontent * contentalpha_temp; + + if(contentavgalpha) + drawfill('0 0 0', '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, liquidcolor_prev, contentavgalpha * liquidalpha_prev, DRAWFLAG_NORMAL); + + if(cvar("hud_postprocessing")) + { + if(cvar("hud_contents_liquid_blur")) + { + // when inside the stomach, we use different blur settings than when we're inside other fluids + content_blurpostprocess_x = 1; + if(getstati(STAT_VORE_EATEN)) + { + content_blurpostprocess_y = contentavgalpha * cvar("hud_contents_stomach_blur"); + content_blurpostprocess_z = contentavgalpha * cvar("hud_contents_stomach_blur_alpha"); + } + else + { + content_blurpostprocess_y = contentavgalpha * cvar("hud_contents_liquid_blur"); + content_blurpostprocess_z = contentavgalpha * cvar("hud_contents_liquid_blur_alpha"); + } + } + else + { + content_blurpostprocess_x = 0; + content_blurpostprocess_y = 0; + content_blurpostprocess_z = 0; + } + } + } + + if(cvar("hud_damage")) + { + float myhealth_flash_temp; + myhealth = getstati(STAT_HEALTH); + + // fade out + myhealth_flash = max(0, myhealth_flash - cvar("hud_damage_fade_rate") * frametime); + // add new damage + myhealth_flash = bound(0, myhealth_flash + dmg_take * cvar("hud_damage_factor"), cvar("hud_damage_maxalpha")); + + float pain_threshold, pain_threshold_lower, pain_threshold_lower_health; + pain_threshold = cvar("hud_damage_pain_threshold"); + pain_threshold_lower = cvar("hud_damage_pain_threshold_lower"); + pain_threshold_lower_health = cvar("hud_damage_pain_threshold_lower_health"); + + if(pain_threshold_lower && myhealth < pain_threshold_lower_health) + { + pain_threshold = pain_threshold - max(cvar("hud_damage_pain_threshold_pulsating_min"), fabs(sin(M_PI * time / cvar("hud_damage_pain_threshold_pulsating_period")))) * pain_threshold_lower * (1 - max(0, myhealth)/pain_threshold_lower_health); + } + + myhealth_flash_temp = bound(0, myhealth_flash - pain_threshold, 1); + + if(myhealth_prev < 1) + { + if(myhealth >= 1) + { + myhealth_flash = 0; // just spawned, clear the flash immediately + myhealth_flash_temp = 0; + } + else + { + myhealth_flash += cvar("hud_damage_fade_rate") * frametime; // dead + } + } + + if(spectatee_status == -1 || intermission) + { + myhealth_flash = 0; // observing, or match ended + myhealth_flash_temp = 0; + } + + myhealth_prev = myhealth; + + if(cvar("cl_gentle_damage") || cvar("cl_gentle")) + { + if(cvar("cl_gentle_damage") == 2) + { + if(myhealth_flash < pain_threshold) // only randomize when the flash is gone + { + myhealth_gentlergb = '1 0 0' * random() + '0 1 0' * random() + '0 0 1' * random(); + } + } + else + myhealth_gentlergb = stov(cvar_string("hud_damage_gentle_color")); + + drawfill('0 0 0', '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, myhealth_gentlergb, cvar("hud_damage_gentle_alpha_multiplier") * bound(0, myhealth_flash_temp, 1) * cvar("hud_damage"), DRAWFLAG_NORMAL); + } + else + drawpic('0 0 0', "gfx/blood", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_damage_color")), bound(0, myhealth_flash_temp, 1) * cvar("hud_damage"), DRAWFLAG_NORMAL); + + if(cvar("hud_postprocessing")) + { + if(cvar("hud_damage_blur")) + { + damage_blurpostprocess_x = 1; + damage_blurpostprocess_y = bound(0, myhealth_flash_temp, 1) * cvar("hud_damage_blur"); + damage_blurpostprocess_z = bound(0, myhealth_flash_temp, 1) * cvar("hud_damage_blur_alpha"); + } + else + { + damage_blurpostprocess_x = 0; + damage_blurpostprocess_y = 0; + damage_blurpostprocess_z = 0; + } + } + } + + if(cvar("hud_stomach")) + { + if(getstati(STAT_VORE_EATEN)) + { + if(stomachsplash_alpha < cvar("hud_stomach")) + stomachsplash_alpha += cvar("hud_stomach_fade_in") * frametime; + else + stomachsplash_alpha = cvar("hud_stomach"); + } + else if(getstati(STAT_HEALTH) > 0) + { + if(stomachsplash_alpha > 0) + stomachsplash_alpha -= cvar("hud_stomach_fade_out") * frametime; + else + stomachsplash_alpha = 0; + } + if(getstati(STAT_HEALTH) <= 0) + stomachsplash_remove_at_respawn = 1; // schedule the effect to be removed next respawn + + if(getstati(STAT_HEALTH) > 0 && stomachsplash_remove_at_respawn) + stomachsplash_alpha = stomachsplash_remove_at_respawn = 0; // we respawned, remove the effect + if(spectatee_status == -1) + stomachsplash_alpha = 0; + + stomachsplash_alpha = bound(0, stomachsplash_alpha, 1); + drawpic('0 0 0', "gfx/food", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_stomach_color")), stomachsplash_alpha, DRAWFLAG_NORMAL); + } + + if(cvar("hud_postprocessing")) + { + // lets apply the postprocess effects from the previous two functions if needed + if(damage_blurpostprocess_x || content_blurpostprocess_x) + { + float blurradius = bound(0, damage_blurpostprocess_y + content_blurpostprocess_y, cvar("hud_postprocessing_maxblurradius")); + float bluralpha = bound(0, damage_blurpostprocess_z + content_blurpostprocess_z, cvar("hud_postprocessing_maxbluralpha")); + cvar_set("r_glsl_postprocess_uservec1", strcat(ftos(blurradius), " ", ftos(bluralpha), " 0 0")); + cvar_set("r_glsl_postprocess_uservec1_enable", "1"); + } + else + { + cvar_set("r_glsl_postprocess_uservec1", "0 0 0 0"); + cvar_set("r_glsl_postprocess_uservec1_enable", "0"); + } + + if(cvar("hud_powerup")) + { + float sharpen_intensity; + if (getstatf(STAT_STRENGTH_FINISHED) - time > 0) + sharpen_intensity += (getstatf(STAT_STRENGTH_FINISHED) - time); + if (getstatf(STAT_INVINCIBLE_FINISHED) - time > 0) + sharpen_intensity += (getstatf(STAT_INVINCIBLE_FINISHED) - time); + sharpen_intensity = bound(0, sharpen_intensity, 5); // powerup warning time is 5 seconds, so fade the effect from there + + if(sharpen_intensity > 0) + { + cvar_set("r_glsl_postprocess_uservec2", strcat("0 ", ftos(-sharpen_intensity * cvar("hud_powerup")), " 0 0")); + cvar_set("r_glsl_postprocess_uservec2_enable", "1"); + } + else + { + cvar_set("r_glsl_postprocess_uservec2", "0 0 0 0"); + cvar_set("r_glsl_postprocess_uservec2_enable", "0"); + } + } + } + + if not(cvar("hud_damage") && cvar("hud_postprocessing")) + { + // don't allow blur to get stuck on if we disable the cvar while damaged + cvar_set("r_glsl_postprocess_uservec1", "0 0 0 0"); + cvar_set("r_glsl_postprocess_uservec1_enable", "0"); + } + if not(cvar("hud_powerup") && cvar("hud_postprocessing")) + { + // don't allow sharpen to get stuck on if we disable the cvar while powered up + cvar_set("r_glsl_postprocess_uservec2", "0 0 0 0"); + cvar_set("r_glsl_postprocess_uservec2_enable", "0"); + } + + // volume cutting + if(cvar("cl_vore_cutvolume_sound") < 1 || cvar("cl_vore_cutvolume_music") < 1) + { + float volume_modify_1_target, volume_modify_2_target, volume_modify_fade; + + if(volume_modify_changed_1 != cvar("menu_volume") || volume_modify_changed_2 != cvar("menu_bgmvolume")) + { + // An ugly hack to allow the cutvolume feature to work with the menu audio sliders. + // Without it, adjusting the music or master sound sliders while fading that volume would have bad results. + // This needs to be done in a better way! Currently, changing the volume sliders will just reset the fading. + + volume_modify_default_1 = cvar("menu_volume"); + volume_modify_default_2 = cvar("menu_bgmvolume"); + + volume_modify_changed_1 = cvar("menu_volume"); + volume_modify_changed_2 = cvar("menu_bgmvolume"); + } + else + { + if(spectatee_status == -1 || intermission) + { + volume_modify_1_target = volume_modify_default_1; + volume_modify_2_target = volume_modify_default_2; + } + else if(getstati(STAT_VORE_EATEN)) + { + volume_modify_1_target = volume_modify_default_1 * cvar("cl_vore_cutvolume_sound"); + volume_modify_2_target = volume_modify_default_2 * cvar("cl_vore_cutvolume_music"); + } + else + { + volume_modify_1_target = volume_modify_default_1; + volume_modify_2_target = volume_modify_default_2; + } + volume_modify_fade = cvar("cl_vore_cutvolume_fade") * frametime; + + if(volume_modify_1 != volume_modify_1_target || volume_modify_2 != volume_modify_2_target) + { + if (volume_modify_1 > volume_modify_1_target + volume_modify_fade) + volume_modify_1 -= volume_modify_fade; + else if (volume_modify_1 < volume_modify_1_target - volume_modify_fade) + volume_modify_1 += volume_modify_fade; + else + volume_modify_1 = volume_modify_1_target; + + if (volume_modify_2 > volume_modify_2_target + volume_modify_fade) + volume_modify_2 -= volume_modify_fade; + else if (volume_modify_2 < volume_modify_2_target - volume_modify_fade) + volume_modify_2 += volume_modify_fade; + else + volume_modify_2 = volume_modify_2_target; + + cvar_set("volume", ftos(volume_modify_1)); + cvar_set("bgmvolume", ftos(volume_modify_2)); + // TODO: Setting the "volume" cvar is a bad way to go, and modifies the menu slider! We need a better way + } + } + } + // Draw the mouse cursor // NOTE: drawpic must happen after R_RenderScene for some reason //drawpic(getmousepos(), "gfx/cursor.tga", '11 14 0', '1 1 1', 1, 0); @@ -489,6 +843,84 @@ void CSQC_UpdateView(float w, float h) ) teamradar_view(); + // Draw artwork and play intermission music + if(intermission && !isdemo() && gametype != GAME_RPG && !spectatee_status) // the match has ended. Don't do this for RPG because no one wins or loses there + { + if(cvar("cl_artwork")) + { + if(artwork_image == "") + { + if(getstati(STAT_WINNING)) // we are the winner + { + if(cvar("cl_artwork_win")) + { + artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win"))))); + artwork_image = strzone(artwork_image); + } + } + else // we have lost + { + if(cvar("cl_artwork_lose")) + { + artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose"))))); + artwork_image = strzone(artwork_image); + } + } + } + + if(cvar("cl_artwork_stretch")) + { + artwork_size_x = vid_conwidth; + artwork_size_y = vid_conheight; + artwork_pos_x = 0; + artwork_pos_y = 0; + } + else + { + artwork_size_x = max(vid_conwidth, vid_conheight); + artwork_size_y = max(vid_conwidth, vid_conheight); + artwork_pos_x = (vid_conwidth - artwork_size_x) / 2; + artwork_pos_y = (vid_conheight - artwork_size_y) / 2; + } + + if(artwork_fade < cvar("cl_artwork_alpha") && cvar("cl_artwork_fade")) + artwork_fade += frametime * cvar("cl_artwork_fade"); + else + artwork_fade = cvar("cl_artwork_alpha"); + + if(artwork_image != "") + drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL); + } + + if(cvar("cl_intermission") && intermission_song == "") // don't start the song each frame + { + if(getstati(STAT_WINNING)) + intermission_song = cvar_string("cl_intermission_cdtrack_win"); + else + intermission_song = cvar_string("cl_intermission_cdtrack_lose"); + if(intermission_song != "") + { + localcmd(strcat("\ncd play ", intermission_song, "\n")); + intermission_song = strzone(intermission_song); + } + } + } + else + { + artwork_fade = 0; + if(artwork_image != "") + { + strunzone(artwork_image); + artwork_image = ""; + } + + if(intermission_song != "") + { + strunzone(intermission_song); + intermission_song = ""; + } + } + // draw sbar if(cvar("r_letterbox") == 0) { if (cvar("cl_showpressedkeys")) { // draw pressed keys when spectating and playing @@ -504,6 +936,12 @@ void CSQC_UpdateView(float w, float h) Sbar_DrawCenterPrint(); // draw centerprint messages even if viewsize >= 120 } + float weapon_clipload, weapon_clipsize, ring_scale; + + float swallow_indicator; + if(cvar("crosshair_swallowindicator")) + swallow_indicator = getstati(STAT_VORE_CANSWALLOW); + float hud; hud = getstati(STAT_HUD); @@ -521,6 +959,7 @@ void CSQC_UpdateView(float w, float h) wcross_origin = project_3d_to_2d(view_origin + MAX_SHOT_DISTANCE * view_forward); wcross_origin_z = 0; if(cvar("crosshair_hittest")) + if(!swallow_indicator) { vector wcross_oldorigin; wcross_oldorigin = wcross_origin; @@ -540,16 +979,75 @@ void CSQC_UpdateView(float w, float h) shottype = SHOTTYPE_HITWORLD; string wcross_style; - wcross_style = cvar_string("crosshair"); + + if(swallow_indicator > 1) + wcross_style = "_canswallow_team.tga"; + else if(swallow_indicator > 0) + wcross_style = "_canswallow.tga"; + else + wcross_style = cvar_string("crosshair"); if (wcross_style != "0") { vector wcross_color, wcross_size; string wcross_name; float wcross_alpha, wcross_scale, wcross_blur, wcross_resolution; - wcross_color_x = cvar("crosshair_color_red"); - wcross_color_y = cvar("crosshair_color_green"); - wcross_color_z = cvar("crosshair_color_blue"); + if(swallow_indicator && (cvar("crosshair_swallowindicator_color_red") || cvar("crosshair_swallowindicator_color_green") || cvar("crosshair_swallowindicator_color_blue"))) + { + wcross_color_x = cvar("crosshair_swallowindicator_color_red"); + wcross_color_y = cvar("crosshair_swallowindicator_color_green"); + wcross_color_z = cvar("crosshair_swallowindicator_color_blue"); + } + else if(cvar("crosshair_color_by_health")) + { + local float x = getstati(STAT_HEALTH); + + //x = red + //y = green + //z = blue + + wcross_color_z = 0; + + if(x > 200) + { + wcross_color_x = 0; + wcross_color_y = 1; + } + else if(x > 150) + { + wcross_color_x = 0.4 - (x-150)*0.02 * 0.4; + wcross_color_y = 0.9 + (x-150)*0.02 * 0.1; + } + else if(x > 100) + { + wcross_color_x = 1 - (x-100)*0.02 * 0.6; + wcross_color_y = 1 - (x-100)*0.02 * 0.1; + wcross_color_z = 1 - (x-100)*0.02; + } + else if(x > 50) + { + wcross_color_x = 1; + wcross_color_y = 1; + wcross_color_z = 0.2 + (x-50)*0.02 * 0.8; + } + else if(x > 20) + { + wcross_color_x = 1; + wcross_color_y = (x-20)*90/27/100; + wcross_color_z = (x-20)*90/27/100 * 0.2; + } + else + { + wcross_color_x = 1; + wcross_color_y = 0; + } + } + else + { + wcross_color_x = cvar("crosshair_color_red"); + wcross_color_y = cvar("crosshair_color_green"); + wcross_color_z = cvar("crosshair_color_blue"); + } wcross_alpha = cvar("crosshair_color_alpha"); wcross_resolution = cvar("crosshair_size"); @@ -564,6 +1062,24 @@ void CSQC_UpdateView(float w, float h) { wcross_scale = 1; } + if(swallow_indicator) + wcross_scale *= cvar("crosshair_swallowindicator_size"); + + if(cvar("crosshair_pickup")) + { + if(pickup_crosshair_time < getstatf(STAT_LAST_PICKUP)) + { + pickup_crosshair_size = 1; + pickup_crosshair_time = getstatf(STAT_LAST_PICKUP); + } + + if(pickup_crosshair_size > 0) + pickup_crosshair_size -= cvar("crosshair_pickup_speed") * frametime; + else + pickup_crosshair_size = 0; + + wcross_scale += sin(pickup_crosshair_size) * cvar("crosshair_pickup"); + } if(shottype == SHOTTYPE_HITENEMY) wcross_scale *= cvar("crosshair_hittest"); // is not queried if hittest is 0 @@ -654,6 +1170,18 @@ void CSQC_UpdateView(float w, float h) wcross_size = drawgetimagesize(wcross_name) * wcross_scale; CROSSHAIR_DRAW(wcross_resolution, wcross_name, wcross_alpha * f); wcross_name_alpha_goal_prev = f; + + // ring around crosshair representing bullets left in weapon clip + weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD); + a = cvar("crosshair_ring_alpha"); + if (weapon_clipload && a) + if (!swallow_indicator) + { + weapon_clipsize = getstati(STAT_WEAPON_CLIPSIZE); + ring_scale = cvar("crosshair_ring_size"); + f = bound(0, weapon_clipload / weapon_clipsize, 1); + DrawCircleClippedPic(wcross_origin, wcross_size_x * ring_scale, "gfx/crosshair_ring.tga", f, wcross_color, wcross_alpha * a, DRAWFLAG_ADDITIVE); + } } } else @@ -678,44 +1206,6 @@ void CSQC_UpdateView(float w, float h) } } - // Draw Artwork - if(intermission && !isdemo()) // match has ended - { - if(artwork_image == "") - { - if(getstati(STAT_WINNING)) - artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!! - else - artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!! - artwork_image = strzone(artwork_image); - } - - if(cvar("cl_artwork_stretch")) - { - artwork_size_x = vid_conwidth; - artwork_size_y = vid_conheight; - artwork_pos_x = 0; - artwork_pos_y = 0; - } - else - { - artwork_size_x = max(vid_conwidth, vid_conheight); - artwork_size_y = max(vid_conwidth, vid_conheight); - artwork_pos_x = (vid_conwidth - artwork_size_x) / 2; - artwork_pos_y = (vid_conheight - artwork_size_y) / 2; - } - - drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', 1, DRAWFLAG_NORMAL); - } - else - { - if(artwork_image != "") - { - strunzone(artwork_image); - artwork_image = ""; - } - } - if(NextFrameCommand) { localcmd("\n", NextFrameCommand, "\n");