mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-11 14:34:22 +00:00
Fix flashlight in induction.
This commit is contained in:
parent
22a953d3c6
commit
918aacad9e
@ -112,12 +112,20 @@ int CHudFlashlight::Draw( float flTime )
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#ifdef MOBILE_HACKS
|
#ifdef MOBILE_HACKS
|
||||||
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) )
|
if( g_iModType == MOD_INDUCTION )
|
||||||
|| ( g_iModType == MOD_INDUCTION && !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_FLASHLIGHT ) ) ) ) )
|
{
|
||||||
|
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_FLASHLIGHT ) ) ) )
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
#else // MOBILE_HACKS
|
#else // MOBILE_HACKS
|
||||||
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
|
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
|
||||||
#endif // MOBILE_HACKS
|
|
||||||
return 1;
|
return 1;
|
||||||
|
#endif // MOBILE_HACKS
|
||||||
|
|
||||||
if( m_fOn )
|
if( m_fOn )
|
||||||
a = 225;
|
a = 225;
|
||||||
|
@ -226,6 +226,11 @@ void CHud::Init( void )
|
|||||||
g_iModType = MOD_SEWER_BETA;
|
g_iModType = MOD_SEWER_BETA;
|
||||||
g_iHudColor = RGB_WHITISH;
|
g_iHudColor = RGB_WHITISH;
|
||||||
}
|
}
|
||||||
|
else if( HUD_IsGame( "induction" ) )
|
||||||
|
{
|
||||||
|
g_iModType = MOD_INDUCTION;
|
||||||
|
g_iHudColor = RGB_YELLOWISH;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_iModType = MOD_VALVE;
|
g_iModType = MOD_VALVE;
|
||||||
|
@ -3296,7 +3296,8 @@ void CBasePlayer::FlashlightTurnOn( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOBILE_HACKS
|
#ifdef MOBILE_HACKS
|
||||||
if( (pev->weapons & ( 1 << WEAPON_SUIT ) ) || ( g_iModType == MOD_INDUCTION && (pev->weapons & ( 1 << WEAPON_FLASHLIGHT ) ) ) )
|
if( (g_iModType != MOD_INDUCTION && (pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
||||||
|
|| ( g_iModType == MOD_INDUCTION && (pev->weapons & ( 1 << WEAPON_FLASHLIGHT ) ) ) )
|
||||||
#else // MOBILE_HACKS
|
#else // MOBILE_HACKS
|
||||||
if( (pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
if( (pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
||||||
#endif // MOBILE_HACKS
|
#endif // MOBILE_HACKS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user