ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
776 stars 69 forks source link

Extend buffer under HintText. #1982

Open Rostu13 opened 5 years ago

Rostu13 commented 5 years ago

Problem

In connection with the panorama, HintText has become more flexible and new features have appeared, but due to the limited number of characters, it is very difficult to apply and feel. For example, I have a server mode - bhop on my server and can not display all the information there.

For example in the screenshot you can see how I can not display the words "MyString"

20190210115041_1

ericek111 commented 4 years ago

You can work around this by building and sending Protobuf packets:

// StartMessage(const char[] msgname, const int[] clients, int numClients, int flags)
// StartMessageAll(const char[] msgname)
Protobuf pb = view_as<Protobuf>(StartMessage("HintText", clientIdxs, sizeof(clientIdxs)));
pb.SetString("text", hintTrans);
EndMessage();