Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Mouse position incorrect
8 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
And
player(id,"mousex")and
player(id,"mousey")are based off how we used to fetch their mouse position using
![cs2d lua cmd](img/i_codehelp.png)
![cs2d lua hook](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
edited 1×, last 01.09.23 05:25:49 pm
player(id, 'mousex')does not output values higher than 850x480.
mp_hudscale 0
Increasing resolution, does not increase your field of view.
This way you can check whether mouse is pointing on some object on the map regardless resolution. This is by design.
![user](img/i_friend.png)
https://www.cs2d.com/help.php?cmd=mp_hudscale
![user](img/i_friend.png)
@
![user](img/i_friend.png)
mp_hudscalegreatly distorts the image, makes it fuzzy if you change the resolution from smaller to larger.
I decided to completely rewrite the adaptation of the screen resolution, but when trying to find out the resolution from the player
player(id,'screenw')it sometimes outputs incorrect values (slightly incorrect). Also, these values do not change or change crookedly for the Host (Starting the server through New Game and testing). Similarly for the
clientsettinghook.
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)