MOTD Removal: Difference between revisions
Jump to navigation
Jump to search
Alexthekid (talk | contribs) (Created page with "==Overview== This is a simple code removal to get rid of the MOTD (Message Of The Day) Panel showing every time you load a game. ==hl2mp_client.cpp== In the Server folder of the...") |
Alexthekid (talk | contribs) |
||
Line 1: | Line 1: | ||
==Overview== | ==Overview== | ||
This is a simple code removal to | This is a simple code removal to remove the MOTD (Message Of The Day) Panel showing every time you load a map. | ||
==hl2mp_client.cpp== | ==hl2mp_client.cpp== |
Revision as of 21:48, 1 March 2012
Overview
This is a simple code removal to remove the MOTD (Message Of The Day) Panel showing every time you load a map.
hl2mp_client.cpp
In the Server folder of the source look for and open hl2mp_client.cpp
Search for const ConVar *hostname = cvar->FindVar( "hostname" ); and comment out or delete the following code block
const ConVar *hostname = cvar->FindVar( "hostname" );
const char *title = (hostname) ? hostname->GetString() : "MESSAGE OF THE DAY";
KeyValues *data = new KeyValues("data");
data->SetString( "title", title ); // info panel title
data->SetString( "type", "1" ); // show userdata from stringtable entry
data->SetString( "msg", "motd" ); // use this stringtable entry
pPlayer->ShowViewPortPanel( PANEL_INFO, true, data );
data->deleteThis();
The MOTD should now no longer appear every time you load a map