#include "quakedef.h"
-//int sb_updates; // if >= vid.numpages, no update needed
-
#define STAT_MINUS 10 // num frame for '-' stats digit
qpic_t *sb_nums[2][11];
qpic_t *sb_colon, *sb_slash;
Draw_Pic (x + ((vid.width - 320)>>1), y + (vid.height-SBAR_HEIGHT), pic);
}
+void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha);
+void Sbar_DrawAlphaPic (int x, int y, qpic_t *pic, float alpha)
+{
+ if (cl.gametype == GAME_DEATHMATCH)
+ Draw_AlphaPic (x /* + ((vid.width - 320)>>1)*/, y + (vid.height-SBAR_HEIGHT), pic, alpha);
+ else
+ Draw_AlphaPic (x + ((vid.width - 320)>>1), y + (vid.height-SBAR_HEIGHT), pic, alpha);
+}
+
/*
=============
Sbar_DrawTransPic
if (rogue)
{
if ( cl.stats[STAT_ACTIVEWEAPON] >= RIT_LAVA_NAILGUN )
- Sbar_DrawPic (0, -24, rsb_invbar[0]);
+ Sbar_DrawAlphaPic (0, -24, rsb_invbar[0], 0.4);
else
- Sbar_DrawPic (0, -24, rsb_invbar[1]);
+ Sbar_DrawAlphaPic (0, -24, rsb_invbar[1], 0.4);
}
else
{
- Sbar_DrawPic (0, -24, sb_ibar);
+ Sbar_DrawAlphaPic (0, -24, sb_ibar, 0.4);
}
// weapons
else
flashon = (flashon%5) + 2;
- Sbar_DrawPic (i*24, -16, sb_weapons[flashon][i]);
+ Sbar_DrawAlphaPic (i*24, -16, sb_weapons[flashon][i], 0.4);
// if (flashon > 1)
// sb_updates = 0; // force update to remove flash
if (scr_con_current == vid.height)
return; // console is full screen
- // LordHavoc: always redraw
- //if (sb_updates >= vid.numpages)
- // return;
-
scr_copyeverything = 1;
// sb_updates++;
if (sb_showscores || cl.stats[STAT_HEALTH] <= 0)
{
- Sbar_DrawPic (0, 0, sb_scorebar);
+ Sbar_DrawAlphaPic (0, 0, sb_scorebar, 0.4);
Sbar_DrawScoreboard ();
// sb_updates = 0;
}
else if (sb_lines)
{
- Sbar_DrawPic (0, 0, sb_sbar);
+ Sbar_DrawAlphaPic (0, 0, sb_sbar, 0.4);
// keys (hipnotic only)
//MED 01/04/97 moved keys here so they would not be overwritten
fph = total ? (int) ((float) s->frags * 3600.0 / total) : 0;
if (fph < -999) fph = -999;
if (fph > 9999) fph = 9999;
-
+
// put it together
sprintf (num, "%c %4i:%4i %3i:%i%i %s", k == cl.viewentity - 1 ? 12 : ' ', (int) s->frags, fph, minutes, tens, units, s->name);
Draw_String(x - 8, y, num, 0);