AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detecting a clients in-game screen resolution? (https://forums.alliedmods.net/showthread.php?t=63194)

BigDontCry 11-14-2007 16:50

Detecting a clients in-game screen resolution?
 
Is there a way I can detect a clients in-game screen resolution?

Wilson [29th ID] 11-15-2007 03:47

Re: Detecting a clients in-game screen resolution?
 
Pretty sure there's a client CVAR for it. If you figure out what it is I'll tell you how to check it.

_Master_ 11-15-2007 07:34

Re: Detecting a clients in-game screen resolution?
 
I'm pretty sure there isn't.
HL uses a [0,1] interval to handle screen coordinates. This makes it independent from the actual resolution. Exposing this info to anything other than the core would break the very purpose of this system.

Wilson [29th ID] 11-15-2007 09:53

Re: Detecting a clients in-game screen resolution?
 
I'm pretty sure there is a command for it that you can put in the launch options.

For some reason I associated that with there being a client CVAR for it.
Yeah other than that, I can't imagine a way other than client metamod.

BigDontCry 11-15-2007 12:43

Re: Detecting a clients in-game screen resolution?
 
Quote:

Originally Posted by Wilson [29th ID] (Post 553080)
I'm pretty sure there is a command for it that you can put in the launch options.

For some reason I associated that with there being a client CVAR for it.
Yeah other than that, I can't imagine a way other than client metamod.

There is a launch option, but nothing that you can put in your config.cfg or userconfig.cfg though...

+width 800 +height 600

It would be nice to have something that detects the clients screen resolution to align hud messages and such nicely on the screen depending on resolution...

VEN 11-16-2007 15:04

Re: Detecting a clients in-game screen resolution?
 
Not possible. This info is sotred clientside in windows system registry.

rx1983 02-01-2012 10:18

Re: Detecting a clients in-game screen resolution?
 
bump!.
I am looking for this same issue ....
Code:

_setvideomode 1
_vid_default_mode 1
_vid_default_mode_win 1
vid_mode 2

_setvideomode 640 x 480
_setvideomode 640x480
_setvideomode "640x 480"
_setvideomode "640x480"


_setvideomode "800x600"
_setvideomode "800 x 600"


_setvideomode 800 x 600
_setvideomode 800x600

+width 800
+height 600

+width 640
+height 480


vid_config_x 640
vid_config_y 480


+width 640
+height 480


_setvideomode 1

SetVideoMode 640x480

_setvideomode 1
_vid_default_mode 1
_vid_default_mode_win 1
vid_mode 2
vid_config_x 640
vid_config_y 480
+width 640
+height 480

I've been doing some testing and realized that the command _setvideomode 800 x 600, it works after the restart.
would have no way to use it to get the screen resolution of the client, since this plugin takes the video mode: renderer

http://forums.alliedmods.net/showthread.php?p=752203


anyone have any other ideas besides the ven?


All times are GMT -4. The time now is 01:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.