{"action":"opened","issue":{"url":"https://api.github.com/repos/ValveSoftware/Counter-Strike-Global-Offensive/issues/657","repository_url":"https://api.github.com/repos/ValveSoftware/Counter-Strike-Global-Offensive","labels_url":"https://api.github.com/repos/ValveSoftware/Counter-Strike-Global-Offensive/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/ValveSoftware/Counter-Strike-Global-Offensive/issues/657/comments","events_url":"https://api.github.com/repos/ValveSoftware/Counter-Strike-Global-Offensive/issues/657/events","html_url":"https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/657","id":146618900,"number":657,"title":"HudMsg doesn't print text","user":{"login":"alex-bel","id":9787417,"avatar_url":"https://avatars.githubusercontent.com/u/9787417?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-bel","html_url":"https://github.com/alex-bel","followers_url":"https://api.github.com/users/alex-bel/followers","following_url":"https://api.github.com/users/alex-bel/following{/other_user}","gists_url":"https://api.github.com/users/alex-bel/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-bel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-bel/subscriptions","organizations_url":"https://api.github.com/users/alex-bel/orgs","repos_url":"https://api.github.com/users/alex-bel/repos","events_url":"https://api.github.com/users/alex-bel/events{/privacy}","received_events_url":"https://api.github.com/users/alex-bel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T13:10:26Z","updated_at":"2016-04-07T13:10:26Z","closed_at":null,"body":"HudMsg doesn't print text\r\n\r\nAccording to client <-> server protocol definition found at https://developer.valvesoftware.com/wiki/CS:GO_User_Messages CS:GO's clientside does support CCSUsrMsg_HudMsg message which is used to print customizable text on client's screen.\r\n\r\nHowever, if you send this message from server nothing will happen.\r\n\r\nI did some research (using source2013 sdk https://github.com/ValveSoftware/source-sdk-2013 as well as decompiler and debugger) and found that:\r\n\r\n1) client.dll does parse CCSUsrMsg_HudMsg and even tries to print it on screen.\r\n\r\n2) Nothing is printed because default font (g_hFontTrebuchet24  @ https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud.cpp#L492 ) is invalid because its initialization fails due to invalid (not loaded) VGUI scheme called \"basemodui_scheme\"\r\n\r\n3) If you replace \"basemodui_scheme\" with \"ClientScheme\" at https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud.cpp#L490 and \"CenterPrintText\" with \"DefaultLarge\" at https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud.cpp#L492 you will make HudMsg working fine. I did it just by patching client.dll and here is the result:\r\n![csgo_hudmsg](https://cloud.githubusercontent.com/assets/9787417/14351795/52f7dbea-fce2-11e5-9cab-6d8cc5ea3fb4.jpg)\r\n\r\n\r\nTo reproduce the issue i've created a dumb Sourcemod plugin which sends HudMsg to every client every 5 seconds. To install it extract the archive to csgo directory of your CS:GO dedicated server. \r\n[csgo_hudmsg.zip](https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/files/208434/csgo_hudmsg.zip)\r\n\r\nI hope this will help to fix the issue."}}