halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL:OF] Flaginfo doesn't display output on screen, only in console

Open Litude opened this issue 13 years ago • 2 comments

In Opposing Force when playing Capture the Flag, pressing the Flag info key (activates the command flaginfo) the game currently only displays the output in the console.

In the WON version, this information was shown in the top-left corner in the game view.

Litude avatar Apr 05 '13 23:04 Litude

This no longer works because the notify printing functionality in the engine was changed. Originally the engine could draw a few lines of text in the upper left corner. Text passed through gEngfuncs.pfnConsolePrint that starts with a byte with value 1 would be added to the notify buffer. The code that adds the byte still exists: https://github.com/ValveSoftware/halflife/blob/c7240b965743a53a29491dd49320c88eecf6257b/cl_dll/text_message.cpp#L196-L200

But it no longer has any effect.

The notify printing functionality still exists, but it was reworked to only print the last line of console output when the developer cvar is set to a non-zero value.

It might be easier to switch the text destination to center or chat print instead of trying to re-implement notify functionality.

SamVanheer avatar Feb 16 '21 16:02 SamVanheer

Issue #1170 covers the same thing. I'm not sure if they should be treated as the same issue though.

SamVanheer avatar Feb 16 '21 16:02 SamVanheer