Forum

> > CS2D > Scripts > game resolution indicate
Forums overviewCS2D overview Scripts overviewLog in to reply

English game resolution indicate

2 replies
To the start Previous 1 Next To the start

old game resolution indicate

carb0n
BANNED Off Offline

Quote
hello guys !
how can i find out what is game resolution (windowed or not)?
and what is cs2d new resolution ??

old Re: game resolution indicate

DC
Admin Off Offline

Quote
CS2D's new game resolution is always 850x480 (it was 640x480 before). Game content is always scaled to fit this resolution, no matter which screen resolution you use.

The HUD / menus are NOT scaled.
You can use the Lua command cs2d lua cmd player to get the screen resolution of a player:
1
2
screenWidth = player(id, "screenw")
screenHeight = player(id, "screenh")
Note that this returns the game resolution. CS2D might add black borders to keep the width/height ratio of the game content 1:1 so no ugly stretching is applied. These borders will not be taken into account (they will be subtracted from the values you get with screenw/screenh)

Also see cs2d cmd mp_hudscale

For the server it's not possible to check if a client is running in window or fullscreen. It shouldn't matter anyway. Only the resolution is important.
edited 1×, last 12.05.17 01:43:46 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview