Browse Source

More fixes for Sewer Beta.

mobile_hacks
Andrey Akhmichin 5 years ago
parent
commit
273a1f79a6
  1. 4
      cl_dll/battery.cpp
  2. 1
      cl_dll/health.cpp
  3. 4
      dlls/items.cpp
  4. 4
      dlls/player.cpp

4
cl_dll/battery.cpp

@ -71,6 +71,10 @@ int CHudBattery::MsgFunc_Battery( const char *pszName, int iSize, void *pbuf )
int CHudBattery::Draw( float flTime ) 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 ) if( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH )
return 1; return 1;

1
cl_dll/health.cpp

@ -238,6 +238,7 @@ int CHudHealth::Draw( float flTime )
int iWidth = HealthWidth / 10; int iWidth = HealthWidth / 10;
#ifdef MOBILE_HACKS #ifdef MOBILE_HACKS
UnpackRGB( r, g, b, g_iHudColor ); UnpackRGB( r, g, b, g_iHudColor );
if( g_iModType != MOD_SEWER_BETA )
#else // MOBILE_HACKS #else // MOBILE_HACKS
UnpackRGB( r, g, b, RGB_YELLOWISH ); UnpackRGB( r, g, b, RGB_YELLOWISH );
#endif // MOBILE_HACKS #endif // MOBILE_HACKS

4
dlls/items.cpp

@ -306,6 +306,10 @@ class CItemBattery : public CItem
} }
BOOL MyTouch( CBasePlayer *pPlayer ) BOOL MyTouch( CBasePlayer *pPlayer )
{ {
#ifdef MOBILE_HACKS
if( g_iModType == MOD_SEWER_BETA )
return FALSE;
#endif // MOBILE_HACKS
if( pPlayer->pev->deadflag != DEAD_NO ) if( pPlayer->pev->deadflag != DEAD_NO )
{ {
return FALSE; return FALSE;

4
dlls/player.cpp

@ -3469,6 +3469,10 @@ void CBasePlayer::CheatImpulseCommands( int iImpulse )
GiveNamedItem( "item_armorvest" ); GiveNamedItem( "item_armorvest" );
GiveNamedItem( "item_helmet" ); GiveNamedItem( "item_helmet" );
} }
else if( g_iModType == MOD_SEWER_BETA )
{
// Nothing here
}
else else
GiveNamedItem( "item_battery" ); GiveNamedItem( "item_battery" );

Loading…
Cancel
Save