New scoreboard options and SCORINFO features
This adds new options to the scoreboard and a few new features to SCORINFO
:
- A new special value to the
DrawString
margin command:playername
, to return the name of the current player. - New flow control margin commands:
IfSpying
,IfSpectator
, andIfDeadSpectator
, that execute a block if the local player's spying on another player, or a (dead) spectator respectively. - New buttons,
sb_scrollup
andsb_scrolldn
to scroll up/down through the player rows if the scoreboard is too tall to fit on the screen. - CVars (
cl_maxscoreboardwidth
andcl_maxscoreboardheight
) that limit the width and height of the scoreboard to a certain percentage of the screen's width and height respectively. - CVars (
cl_scoreboardhorizalign
,cl_scoreboardvertalign
,cl_scoreboardx
, andcl_scoreboardy
) that allows the scoreboard to be aligned and moved anywhere on the screen. It doesn't always have to be centred. - CVars (
cl_usescoreboardscale
,cl_scoreboardscreenwidth
,cl_scoreboardscreenheight
) that allow the scoreboard to be scaled at its own resolution, independent of text scaling.