From 273a1f79a650759b6b7ced07ab6a5522df911bec Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sun, 1 Dec 2019 18:42:56 +0500 Subject: [PATCH] More fixes for Sewer Beta. --- cl_dll/battery.cpp | 4 ++++ cl_dll/health.cpp | 1 + dlls/items.cpp | 4 ++++ dlls/player.cpp | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/cl_dll/battery.cpp b/cl_dll/battery.cpp index e8aa37af..7ae7e14c 100644 --- a/cl_dll/battery.cpp +++ b/cl_dll/battery.cpp @@ -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; diff --git a/cl_dll/health.cpp b/cl_dll/health.cpp index 2c3191ec..9c2bd526 100644 --- a/cl_dll/health.cpp +++ b/cl_dll/health.cpp @@ -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 diff --git a/dlls/items.cpp b/dlls/items.cpp index 9996cef5..7b5cf2e5 100644 --- a/dlls/items.cpp +++ b/dlls/items.cpp @@ -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; diff --git a/dlls/player.cpp b/dlls/player.cpp index da3d4c5a..69e67eaf 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -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" );