A fix for HUD messages being cut off in widescreen

Obsidian General.
Post Reply
User avatar
TESLA-X4
Former Developer
Former Developer
Posts: 570
Joined: Wed Jul 01, 2009 3:26 pm
Location: $Recycle.Bin

A fix for HUD messages being cut off in widescreen

Post 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
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post 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?
Image
Post Reply