CCCPaste

mat_setvideomode guide [Source / L4D2]

------ Aliasing a scheme reloading command based on mat_setvideomode [L4D2] ------

Command values explanation:
To load some L4D2 resource files, it requires a change in either screen resolution or windowed/fullscreen state.
mat_setvideomode <horizontal resolution> <vertical resolution> <windowed yes/no

In the following examples, the command tells the game to switch to windowed mode and back to fullscreen instantly.
The command requires defining the correct screen resolution you're playing in.

--- Examples here (you can copy / paste these to your autoexec.cfg):

-----4x3 ratio
alias reloadfont "mat_setvideomode 1024 768 1; mat_setvideomode 1024 768 0"
alias reloadfont "mat_setvideomode 1280 1024 1; mat_setvideomode 1280 1024 0"

-----16:10 ratio
alias reloadfont "mat_setvideomode 1280 768 1; mat_setvideomode 1280 768 0"
alias reloadfont "mat_setvideomode 1280 800 1; mat_setvideomode 1280 800 0"
alias reloadfont "mat_setvideomode 1440 900 1; mat_setvideomode 1440 900 0"
alias reloadfont "mat_setvideomode 1600 1024 1; mat_setvideomode 1600 1024 0"
alias reloadfont "mat_setvideomode 1680 1050 1; mat_setvideomode 1680 1050 0"

-----16:9 ratio
alias reloadfont "mat_setvideomode 1280 720 1; mat_setvideomode 1280 720 0"
alias reloadfont "mat_setvideomode 1360 768 1; mat_setvideomode 1360 768 0"
alias reloadfont "mat_setvideomode 1366 768 1; mat_setvideomode 1366 768 0"
alias reloadfont "mat_setvideomode 1600 900 1; mat_setvideomode 1600 900 0"
alias reloadfont "mat_setvideomode 1920 1080 1; mat_setvideomode 1920 1080 0"


NOTE: If you play in windowed mode, then swap the "1" and "0", example:
alias reloadfont "mat_setvideomode 1920 1080 0; mat_setvideomode 1920 1080 1"