mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
More fixes for Sewer Beta.
This commit is contained in:
parent
a019c21185
commit
273a1f79a6
@ -71,6 +71,10 @@ int CHudBattery::MsgFunc_Battery( const char *pszName, int iSize, void *pbuf )
|
||||
|
||||
int CHudBattery::Draw( float flTime )
|
||||
{
|
||||
#ifdef MOBILE_HACKS
|
||||
if( g_iModType == MOD_SEWER_BETA )
|
||||
return 1;
|
||||
#endif // MOBILE_HACKS
|
||||
if( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH )
|
||||
return 1;
|
||||
|
||||
|
@ -238,6 +238,7 @@ int CHudHealth::Draw( float flTime )
|
||||
int iWidth = HealthWidth / 10;
|
||||
#ifdef MOBILE_HACKS
|
||||
UnpackRGB( r, g, b, g_iHudColor );
|
||||
if( g_iModType != MOD_SEWER_BETA )
|
||||
#else // MOBILE_HACKS
|
||||
UnpackRGB( r, g, b, RGB_YELLOWISH );
|
||||
#endif // MOBILE_HACKS
|
||||
|
@ -306,6 +306,10 @@ class CItemBattery : public CItem
|
||||
}
|
||||
BOOL MyTouch( CBasePlayer *pPlayer )
|
||||
{
|
||||
#ifdef MOBILE_HACKS
|
||||
if( g_iModType == MOD_SEWER_BETA )
|
||||
return FALSE;
|
||||
#endif // MOBILE_HACKS
|
||||
if( pPlayer->pev->deadflag != DEAD_NO )
|
||||
{
|
||||
return FALSE;
|
||||
|
@ -3469,6 +3469,10 @@ void CBasePlayer::CheatImpulseCommands( int iImpulse )
|
||||
GiveNamedItem( "item_armorvest" );
|
||||
GiveNamedItem( "item_helmet" );
|
||||
}
|
||||
else if( g_iModType == MOD_SEWER_BETA )
|
||||
{
|
||||
// Nothing here
|
||||
}
|
||||
else
|
||||
GiveNamedItem( "item_battery" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user