Page 1 of 1

A fix for HUD messages being cut off in widescreen

Posted: Mon Jul 12, 2010 1:49 pm
by TESLA-X4
I've found a fix for HUD messages being cut off (like those on oc_diving and oc_kake) on widescreen resolutions. See the screenshots below if you don't understand what I mean.

Here's how:
1) Assuming you installed Steam to the default location, go to 'C:\Program Files\Steam\steamapps\SourceMods\obsidian\scripts' and open up the file 'HudLayout.res' in Notepad (make a backup of the file first).
2) Perform a search for 'HudMessage', you should see a block like this:

Code: Select all

	HudMessage
	{
		"fieldName" "HudMessage"
		"visible" "1"
		"enabled" "1"
		"wide"	 "640"
		"tall"	 "480"
	}
3) Change

Code: Select all

"wide"	 "640"
to

Code: Select all

"wide"	 "f0"
(for clarity, that's the letter 'f' followed by a zero)
4) Now, save the file and load up the mod, it should be fixed. If you already have your mod open, you can force an update with the console command 'hud_reloadscheme' (note that motd panels will appear messed up after this, but it'll go away after a mod restart)

Hope this helps.

Before:
Image

After:
Image
Image

Posted: Mon Jul 12, 2010 4:29 pm
by Neico
I wonder if this works and where you got that from as even tf2 doesn't have it that way

Edit: works here, can anyone confirm that it also works on non widescreen?