halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[Suggestion] Print the "SayText" messages instantly in the console

Open di57inct opened this issue 10 years ago • 4 comments

Please print the chat messages instantly in the console, rather than when they disappear.

Useful for when you didn't get the chance to read something and you disconnected and/or map changed.

Thank you.

di57inct avatar Dec 17 '13 09:12 di57inct

+1

jstasiak avatar Jan 04 '14 01:01 jstasiak

Yes, this will be a good feature. There is too much delay on showing messages in console.

bolokanar avatar Oct 01 '14 10:10 bolokanar

+1 too

HARDSTYLEBG avatar Oct 10 '14 16:10 HARDSTYLEBG

To implement this two changes are needed: Remove this line: https://github.com/ValveSoftware/halflife/blob/c7240b965743a53a29491dd49320c88eecf6257b/cl_dll/saytext.cpp#L83

And modify this: https://github.com/ValveSoftware/halflife/blob/c7240b965743a53a29491dd49320c88eecf6257b/cl_dll/saytext.cpp#L176-L183

To be like this:

void CHudSayText :: SayTextPrint( const char *pszBuf, int iBufSize, int clientIndex )
{
	// Print it straight to the console
	ConsolePrint( pszBuf );

	if ( gViewPort && gViewPort->AllowedToPrintText() == FALSE )
	{
		return;
	}

Now all SayText input is immediately printed to the console, and will not be printed when it has been removed from the SayText buffer.

SamVanheer avatar Jan 29 '22 17:01 SamVanheer