diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-04-03 13:51:24 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-04-03 13:51:24 +0200 |
commit | f639515054b2122c7166793f7c0a0a751087209f (patch) | |
tree | f0664d6ea1037f93450e5e53b8ecb5060226c170 /src/cgame/cg_draw.c | |
parent | 0d5460522ba3651da1ed5630f7f8a784c5eb6514 (diff) |
Make health bars customizable with cvars.
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r-- | src/cgame/cg_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 340a207..64e5ed7 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -4063,12 +4063,12 @@ static void CG_DrawHealthBars( void ) hf = (float)bar->value / bar->max; - h = 20 * 100 / bar->dist; + h = cg_healthBarSize.value / bar->dist; w = 4 * h * cgDC.aspectScale; Com_sprintf( buffer, sizeof( buffer ), "%d", bar->value ); - color[ 3 ] = 1.0f; + color[ 3 ] = cg_healthBarAlpha.value; VectorSet( color, 0.1, 0.7, 0.1 ); trap_R_SetColor( color ); |