-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HL] Flashlight indicator bug #388
Comments
I can also confirm this on the Mac build |
This happens because the server doesn't update the HUD on save game load. To fix this Add a member Then before this code: Line 3066 in c7240b9
Add this:
Then before this code: Lines 4069 to 4097 in c7240b9
Add this:
And before this code: Line 4181 in c7240b9
Add this:
On save game load the server will tell the client that the flashlight is on. This code is designed so any other data that needs resetting can be done inside an |
This needs one more thing to work properly in all cases: if (m_bRestored)
{
//Always tell client about battery state
MESSAGE_BEGIN(MSG_ONE, gmsgFlashBattery, NULL, pev);
WRITE_BYTE(m_iFlashBattery);
MESSAGE_END();
//Tell client the flashlight is on
if (FlashlightIsOn())
{
MESSAGE_BEGIN(MSG_ONE, gmsgFlashlight, NULL, pev);
WRITE_BYTE(1);
WRITE_BYTE(m_iFlashBattery);
MESSAGE_END();
}
} Otherwise the battery value will be whatever it was before, zero if the game has just been launched. |
This should be resolved in the October 2, 2024 Steam build. |
Save game with fully recharged and switched off flashlight, quit HL, launch HL, load that saved game and look at the flashlight indicator. It says depleted, but it's recharged if you activate it.
Protocol version 48
Exe version 1.1.2.2/Stdio (valve)
Exe build: 12:05:47 Feb 18 2013 (5961)
Processor Information:
Vendor: AuthenticAMD
Speed: 3214 Mhz
4 logical processors
4 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Supported
SSE41: Unsupported
SSE42: Unsupported
Network Information:
Network Speed:
Operating System Version:
Windows 7 (64 bit)
NTFS: Supported
Crypto Provider Codes: Supported 311 0x0 0x0 0x0
Video Card:
Driver: ATI Radeon HD 5700 Series
The text was updated successfully, but these errors were encountered: