Browse Source

Fix hud color.

eftd
Night Owl 7 years ago
parent
commit
7dc9476ef9
  1. 6
      cl_dll/battery.cpp
  2. 9
      cl_dll/health.cpp
  3. 2
      cl_dll/hud.h

6
cl_dll/battery.cpp

@ -93,8 +93,8 @@ int CHudBattery::Draw( float flTime ) @@ -93,8 +93,8 @@ int CHudBattery::Draw( float flTime )
y = ScreenHeight - ARMOR_BAR_BOTTOM - iHeight;
// Draw empty transparent bar.
r = g = b = 255;
a = 16;
r = g = b = 200;
a = 40;
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
@ -119,7 +119,7 @@ int CHudBattery::Draw( float flTime ) @@ -119,7 +119,7 @@ int CHudBattery::Draw( float flTime )
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
}
else*/
a = MIN_ALPHA;
a = MIN_ALPHA * 2 - 10;
iHeight = ( m_iBat * ARMOR_BAR_HEIGHT ) / 100;

9
cl_dll/health.cpp

@ -187,6 +187,9 @@ int CHudHealth::Draw( float flTime ) @@ -187,6 +187,9 @@ int CHudHealth::Draw( float flTime )
if( ( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH ) || gEngfuncs.IsSpectateOnly() )
return 1;
if( !m_hSprite )
m_hSprite = LoadSprite( "sprites/%d_pain.spr" );
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
return 1;
@ -201,8 +204,8 @@ int CHudHealth::Draw( float flTime ) @@ -201,8 +204,8 @@ int CHudHealth::Draw( float flTime )
y = ScreenHeight - HEALTH_BAR_BOTTOM - iHeight;
// Draw empty transparent bar.
r = g = b = 255;
a = 16;
r = g = b = 200;
a = 40;
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
@ -227,7 +230,7 @@ int CHudHealth::Draw( float flTime ) @@ -227,7 +230,7 @@ int CHudHealth::Draw( float flTime )
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
}
else*/
a = MIN_ALPHA;
a = MIN_ALPHA * 2 - 10;
iHeight = ( m_iHealth * HEALTH_BAR_HEIGHT ) / 100;

2
cl_dll/hud.h

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
#pragma once
#ifndef HUD_H
#define HUD_H
#define RGB_YELLOWISH 0x000080FF //0,128,255
#define RGB_YELLOWISH 0x000040AC //0,64,172
#define RGB_REDISH 0x00FF1010 //255,160,0
#define RGB_GREENISH 0x0000A000 //0,160,0

Loading…
Cancel
Save