ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.55k stars 594 forks source link

Client crash when opening a scoreboard without received an InitHUD message #3773

Open Splatt581 opened 4 weeks ago

Splatt581 commented 4 weeks ago

Players may encounter this issue if they connect to the game server after the "Intermission" event (GoToIntermission() function, SVC_INTERMISSION message), before changing the map.

How to reproduce:

  1. Launch HLDS, execute the string mp_chattime 999;mp_timelimit 0.01 in the server console;
  2. Launch the game client and connect to the server;
  3. After fully connecting to the server, try opening the scoreboard or execute +showscores / +score in the client console;
  4. The game client crashes.

The bug was tested on the CS 1.6 game client for Windows and Linux with latest binaries.

The bug occurs because for some reason the server does not send the InitHUD message to the client in this case. You can also temporarily fix the bug by executing fullupdate in the client console, because this will force the InitHUD to be sent from the server.