mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge 1c71f33cb0
This commit is contained in:
parent
51c682c15e
commit
946e962f3c
@ -49,6 +49,8 @@ void CHudFlashlight::Reset( void )
|
||||
{
|
||||
m_fFade = 0;
|
||||
m_fOn = 0;
|
||||
m_iBat = 100;
|
||||
m_flBat = 1.0;
|
||||
}
|
||||
|
||||
int CHudFlashlight::VidInit( void )
|
||||
|
@ -3868,6 +3868,12 @@ void CBasePlayer::UpdateClientData( void )
|
||||
|
||||
FireTargets( "game_playerspawn", this, this, USE_TOGGLE, 0 );
|
||||
|
||||
// Send flashlight status
|
||||
MESSAGE_BEGIN( MSG_ONE, gmsgFlashlight, NULL, pev );
|
||||
WRITE_BYTE( FlashlightIsOn() ? 1 : 0 );
|
||||
WRITE_BYTE( m_iFlashBattery );
|
||||
MESSAGE_END();
|
||||
|
||||
InitStatusBar();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user