Re: Hostname in Scoreboard (HUD) -
03-05-2004
Heres why it won't show...
It seems that the ricochet server has removed the "ServerName" message, also, the client has ditched the message aswell.
Luckily, the code to display the server name is still there but is just idle.
What you need to do is register the "ServerName" network message ( Size as -1 ).
In CHalfLifeMultiplay::SendMOTDToClient ( or wherever you want to put it ) just send the ServerName message along with the server's "hostname" cvar value.
All you need to do is hook the message on the client ( The hook function is still there aswell ) and it should display.
Last edited by Lazy; 03-05-2004 at 19:46..
|