Browse Source

Merge @malortie's patches for Big Lolly.

biglolly
Night Owl 8 years ago
parent
commit
6d67733d7e
  1. 3
      cl_dll/health.cpp
  2. 2
      cl_dll/hud.h
  3. 4
      dlls/items.cpp

3
cl_dll/health.cpp

@ -231,7 +231,8 @@ int CHudHealth::Draw( float flTime )
int iHeight = gHUD.m_iFontHeight; int iHeight = gHUD.m_iFontHeight;
int iWidth = HealthWidth / 10; int iWidth = HealthWidth / 10;
FillRGBA( x, y, iWidth, iHeight, 255, 160, 0, a ); UnpackRGB( r, g, b, RGB_YELLOWISH );
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
} }
DrawDamage( flTime ); DrawDamage( flTime );

2
cl_dll/hud.h

@ -20,7 +20,7 @@
// CHud handles the message, calculation, and drawing the HUD // CHud handles the message, calculation, and drawing the HUD
// //
#define RGB_YELLOWISH 0x00FFA000 //255,160,0 #define RGB_YELLOWISH 0x00FF80C0 //255,128,192
#define RGB_REDISH 0x00FF1010 //255,160,0 #define RGB_REDISH 0x00FF1010 //255,160,0
#define RGB_GREENISH 0x0000A000 //0,160,0 #define RGB_GREENISH 0x0000A000 //0,160,0

4
dlls/items.cpp

@ -210,7 +210,7 @@ class CItemBattery : public CItem
void Precache( void ) void Precache( void )
{ {
PRECACHE_MODEL( "models/w_battery.mdl" ); PRECACHE_MODEL( "models/w_battery.mdl" );
PRECACHE_SOUND( "items/gunpickup2.wav" ); PRECACHE_SOUND( "items/smallmedkit1.wav" );
} }
BOOL MyTouch( CBasePlayer *pPlayer ) BOOL MyTouch( CBasePlayer *pPlayer )
{ {
@ -228,7 +228,7 @@ class CItemBattery : public CItem
pPlayer->pev->armorvalue += gSkillData.batteryCapacity; pPlayer->pev->armorvalue += gSkillData.batteryCapacity;
pPlayer->pev->armorvalue = min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY ); pPlayer->pev->armorvalue = min( pPlayer->pev->armorvalue, MAX_NORMAL_BATTERY );
EMIT_SOUND( pPlayer->edict(), CHAN_ITEM, "items/gunpickup2.wav", 1, ATTN_NORM ); EMIT_SOUND( pPlayer->edict(), CHAN_ITEM, "items/smallmedkit1.wav", 1, ATTN_NORM );
MESSAGE_BEGIN( MSG_ONE, gmsgItemPickup, NULL, pPlayer->pev ); MESSAGE_BEGIN( MSG_ONE, gmsgItemPickup, NULL, pPlayer->pev );
WRITE_STRING( STRING( pev->classname ) ); WRITE_STRING( STRING( pev->classname ) );

Loading…
Cancel
Save