mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Add "Half-Life: Urbicide" support
This commit is contained in:
parent
cb316742af
commit
e948de3d41
@ -72,7 +72,8 @@ 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 )
|
||||
if( g_iModType == MOD_SEWER_BETA
|
||||
|| g_iModType == MOD_URBICIDE )
|
||||
return 1;
|
||||
#endif // MOBILE_HACKS
|
||||
if( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH )
|
||||
|
@ -238,7 +238,8 @@ int CHudHealth::Draw( float flTime )
|
||||
int iWidth = HealthWidth / 10;
|
||||
#ifdef MOBILE_HACKS
|
||||
UnpackRGB( r, g, b, g_iHudColor );
|
||||
if( g_iModType != MOD_SEWER_BETA )
|
||||
if( !( g_iModType == MOD_SEWER_BETA
|
||||
|| g_iModType == MOD_URBICIDE ) )
|
||||
#else // MOBILE_HACKS
|
||||
UnpackRGB( r, g, b, RGB_YELLOWISH );
|
||||
#endif // MOBILE_HACKS
|
||||
|
@ -410,10 +410,15 @@ void CHud::Init( void )
|
||||
g_iHudColor = RGB_WHITISH;
|
||||
}
|
||||
else if( HUD_IsGame( "induction" ) )
|
||||
{
|
||||
g_iModType = MOD_INDUCTION;
|
||||
g_iHudColor = RGB_YELLOWISH;
|
||||
}
|
||||
{
|
||||
g_iModType = MOD_INDUCTION;
|
||||
g_iHudColor = RGB_YELLOWISH;
|
||||
}
|
||||
else if( HUD_IsGame( "hl_urbicide" ) )
|
||||
{
|
||||
g_iModType = MOD_URBICIDE;
|
||||
g_iHudColor = RGB_WHITISH;
|
||||
}
|
||||
else
|
||||
{
|
||||
g_iModType = MOD_VALVE;
|
||||
|
@ -15,7 +15,8 @@ enum
|
||||
MOD_INDUCTION, // Half-Life: Induction
|
||||
MOD_REDEMPT, // Redemption/Absolute Redemption
|
||||
MOD_SEWER_BETA, // Sewer Beta
|
||||
MOD_TOT // Times of Troubles
|
||||
MOD_TOT, // Times of Troubles
|
||||
MOD_URBICIDE // Half-Life: Urbicide
|
||||
};
|
||||
|
||||
#endif // MODDEF
|
||||
|
Loading…
Reference in New Issue
Block a user